diff --git a/Cargo.lock b/Cargo.lock index 049f13f4ab..6c12eb6984 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2364,6 +2364,31 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" +[[package]] +name = "pallet-anchors" +version = "2.0.0" +dependencies = [ + "cfg-mocks", + "cfg-traits", + "cfg-utils", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-aura", + "pallet-authorship", + "pallet-balances", + "pallet-timestamp", + "parity-scale-codec", + "scale-info", + "serde", + "sp-arithmetic", + "sp-consensus-aura", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.7.2)", +] + [[package]] name = "pallet-aura" version = "27.0.0" @@ -2381,6 +2406,36 @@ dependencies = [ "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.7.2)", ] +[[package]] +name = "pallet-authorship" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.7.2#0d7ca59fd4b4d15f9400971f32bc6a51b2fe837f" +dependencies = [ + "frame-support", + "frame-system", + "impl-trait-for-tuples", + "parity-scale-codec", + "scale-info", + "sp-runtime", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.7.2)", +] + +[[package]] +name = "pallet-balances" +version = "28.0.0" +source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.7.2#0d7ca59fd4b4d15f9400971f32bc6a51b2fe837f" +dependencies = [ + "docify", + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-runtime", + "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.7.2)", +] + [[package]] name = "pallet-collective" version = "28.0.0" @@ -3386,7 +3441,7 @@ dependencies = [ [[package]] name = "sp-crypto-ec-utils" version = "0.10.0" -source = "git+https://github.com/paritytech/polkadot-sdk#d37719da022879b4e2ef7947f5c9d2187f666ae7" +source = "git+https://github.com/paritytech/polkadot-sdk#657df04cd901559cc6e33a8dfe70395bddb079f2" dependencies = [ "ark-bls12-377", "ark-bls12-377-ext", @@ -3439,7 +3494,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#d37719da022879b4e2ef7947f5c9d2187f666ae7" +source = "git+https://github.com/paritytech/polkadot-sdk#657df04cd901559cc6e33a8dfe70395bddb079f2" dependencies = [ "proc-macro2", "quote", @@ -3460,7 +3515,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.25.0" -source = "git+https://github.com/paritytech/polkadot-sdk#d37719da022879b4e2ef7947f5c9d2187f666ae7" +source = "git+https://github.com/paritytech/polkadot-sdk#657df04cd901559cc6e33a8dfe70395bddb079f2" dependencies = [ "environmental", "parity-scale-codec", @@ -3595,7 +3650,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#d37719da022879b4e2ef7947f5c9d2187f666ae7" +source = "git+https://github.com/paritytech/polkadot-sdk#657df04cd901559cc6e33a8dfe70395bddb079f2" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -3627,7 +3682,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#d37719da022879b4e2ef7947f5c9d2187f666ae7" +source = "git+https://github.com/paritytech/polkadot-sdk#657df04cd901559cc6e33a8dfe70395bddb079f2" dependencies = [ "Inflector", "expander", @@ -3680,7 +3735,7 @@ source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot [[package]] name = "sp-std" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#d37719da022879b4e2ef7947f5c9d2187f666ae7" +source = "git+https://github.com/paritytech/polkadot-sdk#657df04cd901559cc6e33a8dfe70395bddb079f2" [[package]] name = "sp-storage" @@ -3698,7 +3753,7 @@ dependencies = [ [[package]] name = "sp-storage" version = "19.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#d37719da022879b4e2ef7947f5c9d2187f666ae7" +source = "git+https://github.com/paritytech/polkadot-sdk#657df04cd901559cc6e33a8dfe70395bddb079f2" dependencies = [ "impl-serde", "parity-scale-codec", @@ -3735,7 +3790,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "16.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#d37719da022879b4e2ef7947f5c9d2187f666ae7" +source = "git+https://github.com/paritytech/polkadot-sdk#657df04cd901559cc6e33a8dfe70395bddb079f2" dependencies = [ "parity-scale-codec", "tracing", @@ -3811,7 +3866,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#d37719da022879b4e2ef7947f5c9d2187f666ae7" +source = "git+https://github.com/paritytech/polkadot-sdk#657df04cd901559cc6e33a8dfe70395bddb079f2" dependencies = [ "impl-trait-for-tuples", "log", @@ -4873,11 +4928,6 @@ dependencies = [ "syn 2.0.61", ] -[[patch.unused]] -name = "pallet-balances" -version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.7.2#0d7ca59fd4b4d15f9400971f32bc6a51b2fe837f" - [[patch.unused]] name = "pallet-staking" version = "28.0.0" diff --git a/Cargo.toml b/Cargo.toml index 09d5effb94..f9e9feecb5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ members = [ "libs/traits", "libs/types", "libs/utils", - #"pallets/anchors", + "pallets/anchors", #"pallets/bridge", #"pallets/block-rewards", #"pallets/collator-allowlist", diff --git a/pallets/anchors/src/mock.rs b/pallets/anchors/src/mock.rs index 6d8e1daab1..2bd50063f3 100644 --- a/pallets/anchors/src/mock.rs +++ b/pallets/anchors/src/mock.rs @@ -46,23 +46,11 @@ frame_support::construct_runtime!( impl frame_system::Config for Runtime { type AccountData = pallet_balances::AccountData; type Block = frame_system::mocking::MockBlock; - type RuntimeEvent = (); } +#[derive_impl(pallet_balances::config_preludes::TestDefaultConfig as pallet_balances::DefaultConfig)] impl pallet_balances::Config for Runtime { type AccountStore = System; - type Balance = Balance; - type DustRemoval = (); - type ExistentialDeposit = ConstU64<1>; - type FreezeIdentifier = (); - type MaxFreezes = (); - type MaxHolds = ConstU32<1>; - type MaxLocks = (); - type MaxReserves = (); - type ReserveIdentifier = (); - type RuntimeEvent = (); - type RuntimeHoldReason = (); - type WeightInfo = (); } impl pallet_timestamp::Config for Runtime {