Skip to content

moved over utility pallet from substrate repo#6

Closed
flipchan wants to merge 4 commits intomainfrom
utility
Closed

moved over utility pallet from substrate repo#6
flipchan wants to merge 4 commits intomainfrom
utility

Conversation

@flipchan
Copy link
Contributor

Related to ticket POLKA-55

added the utility pallet from substrate

@flipchan
Copy link
Contributor Author

currently a work in progress

@andor0
Copy link
Contributor

andor0 commented Jul 21, 2021

Can do without copy source code of pallet-utility:

diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml
index 4c69369..24c0f7b 100644
--- a/runtime/Cargo.toml
+++ b/runtime/Cargo.toml
@@ -114,6 +114,12 @@ git = 'https://github.com/paritytech/substrate.git'
 rev = 'd6c33e7ec313f9bd5e319dc0a5a3ace5543f9617'
 version = '3.0.0'
 
+[dependencies.pallet-utility]
+default-features = false
+git = 'https://github.com/paritytech/substrate.git'
+rev = 'd6c33e7ec313f9bd5e319dc0a5a3ace5543f9617'
+version = '3.0.0'
+
 [dependencies.sp-api]
 default-features = false
 git = 'https://github.com/paritytech/substrate.git'
@@ -223,6 +229,7 @@ std = [
     'pallet-timestamp/std',
     'pallet-transaction-payment-rpc-runtime-api/std',
     'pallet-transaction-payment/std',
+    'pallet-utility/std',
     'sp-api/std',
     'sp-block-builder/std',
     'sp-consensus-aura/std',
diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs
index 227f231..2ad5ce8 100644
--- a/runtime/src/lib.rs
+++ b/runtime/src/lib.rs
@@ -375,6 +375,12 @@ where
 	type Extrinsic = UncheckedExtrinsic;
 }
 
+impl pallet_utility::Config for Runtime {
+	type Event = Event;
+	type Call = Call;
+	type WeightInfo = pallet_utility::weights::SubstrateWeight<Runtime>;
+}
+
 // Create the runtime by composing the FRAME pallets that were previously configured.
 construct_runtime!(
 	pub enum Runtime where
@@ -392,6 +398,7 @@ construct_runtime!(
 		TransactionPayment: pallet_transaction_payment::{Pallet, Storage},
 		Sudo: pallet_sudo::{Pallet, Call, Config<T>, Storage, Event<T>},
 		Oracle: pallet_oracle::{Pallet, Call, Storage, Event<T>},
+		Utility: pallet_utility::{Pallet, Call, Event},
 	}
 );

@flipchan
Copy link
Contributor Author

@andor0 yes, will push new code

@flipchan
Copy link
Contributor Author

Could not change branch, new pr is: #29

@flipchan flipchan closed this Aug 16, 2021
seunlanlege pushed a commit that referenced this pull request Sep 20, 2021
@flipchan flipchan deleted the utility branch September 20, 2021 16:09
haroldsphinx added a commit that referenced this pull request Jan 27, 2022
# This is the 1st commit message:

rebase

# This is the commit message #2:

rebase

# This is the commit message #3:

add origin

# This is the commit message #4:

Delete build-artifacts.yml
# This is the commit message #5:

rebase

# This is the commit message #6:

fixes #535 (#553)

* fixes #535

* don't skip integration tests

* remove ref: main

* get github ref from action

* try base_ref

* try GITHUB_SHA

* GITHUB_REF_NAME

* back to GITHUB_SHA

* checkout pull request commit

* renamee to release-pipeline

* back to

Co-authored-by: Seun Lanlege <seunlanlege@gmail.com>
# This is the commit message #7:

fetch depth
haroldsphinx added a commit that referenced this pull request Jan 27, 2022
# This is the 1st commit message:

fetch depth

# The commit message #2 will be skipped:

# Update checkout action

# The commit message #3 will be skipped:

# Update checkout action

# The commit message #4 will be skipped:

# Update checkout action

# The commit message #5 will be skipped:

# Update checkout action

# The commit message #6 will be skipped:

# Update checkout action

# The commit message #7 will be skipped:

# Update checkout action
haroldsphinx added a commit that referenced this pull request Jan 27, 2022
# This is the 1st commit message:

fetch depth

# The commit message #2 will be skipped:

# Update checkout action

# The commit message #3 will be skipped:

# Update checkout action

# The commit message #4 will be skipped:

# Update checkout action

# The commit message #5 will be skipped:

# Update checkout action

# The commit message #6 will be skipped:

# Update checkout action

# The commit message #7 will be skipped:

# Update checkout action

# The commit message #8 will be skipped:

# Update checkout action

# The commit message #9 will be skipped:

# Update checkout action

# The commit message #10 will be skipped:

# Update checkout action
haroldsphinx added a commit that referenced this pull request Jan 27, 2022
# This is the 1st commit message:

fetch depth

# The commit message #2 will be skipped:

# Update checkout action

# The commit message #3 will be skipped:

# Update checkout action

# The commit message #4 will be skipped:

# Update checkout action

# The commit message #5 will be skipped:

# Update checkout action

# The commit message #6 will be skipped:

# Update checkout action

# The commit message #7 will be skipped:

# Update checkout action

# The commit message #8 will be skipped:

# Update checkout action

# The commit message #9 will be skipped:

# Update checkout action

# The commit message #10 will be skipped:

# Update checkout action

# The commit message #11 will be skipped:

# Update checkout action

# The commit message #12 will be skipped:

# Update checkout action

# The commit message #13 will be skipped:

# Update checkout action

# The commit message #14 will be skipped:

# Update checkout action

# The commit message #15 will be skipped:

# Update checkout action

# The commit message #16 will be skipped:

# Update checkout action

# The commit message #17 will be skipped:

# Update checkout action
gitbook-com bot pushed a commit that referenced this pull request Feb 20, 2022
seunlanlege pushed a commit that referenced this pull request Oct 6, 2022
dzmitry-lahoda added a commit that referenced this pull request Dec 14, 2022
# This is the 1st commit message:

lfs

# This is the commit message #2:

staging migration

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

# This is the commit message #3:

picasso

# This is the commit message #4:

yamlgit add .git add .

# This is the commit message #5:

fmt; reuse; clean

Signed-off-by: Dzmitry Lahoda <dzmitry@lahoda.pro>

# This is the commit message #6:

trying replace nixops devnet

# This is the commit message #7:

fixed container

# This is the commit message #8:

zombies in compose

# This is the commit message #9:

getting routes

# This is the commit message #10:

ops mapping

# This is the commit message #11:

returned garbage for happy refactoring

# This is the commit message #12:

more

# This is the commit message #13:

revert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants