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 29, 2024
1 parent 2090496 commit ba5f1b5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

10 changes: 5 additions & 5 deletions domains/runtime/auto-id/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ 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 }
pallet-domain-id = { version = "0.1.0", path = "../../pallets/domain-id", default-features = false }
pallet-messenger = { version = "0.1.0", path = "../../pallets/messenger", default-features = false }
Expand Down Expand Up @@ -73,28 +73,28 @@ 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",
"pallet-block-fees/std",
"pallet-domain-id/std",
"pallet-messenger/std",
"pallet-sudo/std",
"pallet-timestamp/std",
"pallet-transaction-payment-rpc-runtime-api/std",
"pallet-transaction-payment/std",
"pallet-transaction-payment-rpc-runtime-api/std",
"pallet-transporter/std",
"scale-info/std",
"sp-api/std",
"sp-block-builder/std",
"sp-core/std",
"sp-domains/std",
"sp-session/std",
"sp-inherents/std",
"sp-messenger/std",
"sp-messenger-host-functions/std",
"sp-mmr-primitives/std",
"sp-offchain/std",
"sp-runtime/std",
"sp-session/std",
"sp-std/std",
"sp-storage?/std",
"sp-subspace-mmr/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 ba5f1b5

Please sign in to comment.