Skip to content

Commit

Permalink
add pallet autoId to autoId domain runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhavyas committed Mar 28, 2024
1 parent d8afdb1 commit 37280f1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions domains/runtime/auto-id/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ frame-support = { version = "4.0.0-dev", default-features = false, git = "https:
frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" }
frame-system-benchmarking = { version = "4.0.0-dev", default-features = false, optional = true, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" }
frame-system-rpc-runtime-api = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" }
pallet-auto-id = { version = "0.1.0", path = "../../pallets/auto-id", default-features = false }
pallet-balances = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" }
pallet-base-fee = { version = "1.0.0-dev", default-features = false, git = "https://github.com/subspace/frontier", rev = "7627e61d80275a4cf24d06f27491f6c31eadb7b7" }
pallet-block-fees = { version = "0.1.0", path = "../../pallets/block-fees", default-features = false }
Expand Down Expand Up @@ -73,6 +74,7 @@ std = [
"frame-support/std",
"frame-system/std",
"frame-system-rpc-runtime-api/std",
"pallet-auto-id/std",
"pallet-balances/std",
"pallet-base-fee/std",
"pallet-domain-id/std",
Expand Down
8 changes: 8 additions & 0 deletions domains/runtime/auto-id/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ impl pallet_transaction_payment::Config for Runtime {
type OperationalFeeMultiplier = OperationalFeeMultiplier;
}

impl pallet_auto_id::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Time = Timestamp;
}

pub struct ExtrinsicStorageFees;

impl domain_pallet_executive::ExtrinsicStorageFees<Runtime> for ExtrinsicStorageFees {
Expand Down Expand Up @@ -430,6 +435,9 @@ construct_runtime!(
Balances: pallet_balances = 20,
TransactionPayment: pallet_transaction_payment = 21,

// AutoId
AutoId: pallet_auto_id = 40,

// messenger stuff
// Note: Indexes should match with indexes on other chains and domains
Messenger: pallet_messenger = 60,
Expand Down

0 comments on commit 37280f1

Please sign in to comment.