diff --git a/Cargo.lock b/Cargo.lock index ef7484b00..7a241d11d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -701,7 +701,7 @@ checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] name = "binary-merkle-tree" version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "hash-db", "log", @@ -1729,7 +1729,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-support", "frame-support-procedural", @@ -1753,7 +1753,7 @@ dependencies = [ [[package]] name = "frame-election-provider-solution-type" version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", @@ -1764,7 +1764,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-election-provider-solution-type", "frame-support", @@ -1780,7 +1780,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "aquamarine", "frame-support", @@ -1821,7 +1821,7 @@ dependencies = [ [[package]] name = "frame-metadata-hash-extension" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "array-bytes", "docify", @@ -1836,7 +1836,7 @@ dependencies = [ [[package]] name = "frame-support" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "aquamarine", "array-bytes", @@ -1877,7 +1877,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "Inflector", "cfg-expr", @@ -1897,7 +1897,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 3.1.0", @@ -1909,7 +1909,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "proc-macro2", "quote", @@ -1919,7 +1919,7 @@ dependencies = [ [[package]] name = "frame-system" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "cfg-if 1.0.0", "docify", @@ -1939,7 +1939,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -1953,7 +1953,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "docify", "parity-scale-codec", @@ -1963,7 +1963,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-support", "parity-scale-codec", @@ -3224,7 +3224,7 @@ checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" [[package]] name = "pallet-asset-conversion" version = "10.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3242,7 +3242,7 @@ dependencies = [ [[package]] name = "pallet-asset-rate" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3256,7 +3256,7 @@ dependencies = [ [[package]] name = "pallet-assets" version = "29.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3272,7 +3272,7 @@ dependencies = [ [[package]] name = "pallet-aura" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-support", "frame-system", @@ -3288,7 +3288,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-support", "frame-system", @@ -3303,7 +3303,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-support", "frame-system", @@ -3316,7 +3316,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3339,7 +3339,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "aquamarine", "docify", @@ -3360,7 +3360,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "docify", "frame-benchmarking", @@ -3375,7 +3375,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-support", "frame-system", @@ -3394,7 +3394,7 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "array-bytes", "binary-merkle-tree", @@ -3419,7 +3419,7 @@ dependencies = [ [[package]] name = "pallet-broker" version = "0.6.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "bitvec", "frame-benchmarking", @@ -3437,7 +3437,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3453,7 +3453,7 @@ dependencies = [ [[package]] name = "pallet-contracts" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "bitflags 1.3.2", "environmental", @@ -3485,7 +3485,7 @@ dependencies = [ [[package]] name = "pallet-contracts-proc-macro" version = "18.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "proc-macro2", "quote", @@ -3495,7 +3495,7 @@ dependencies = [ [[package]] name = "pallet-contracts-uapi" version = "5.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "bitflags 1.3.2", "parity-scale-codec", @@ -3507,7 +3507,7 @@ dependencies = [ [[package]] name = "pallet-conviction-voting" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "assert_matches", "frame-benchmarking", @@ -3523,7 +3523,7 @@ dependencies = [ [[package]] name = "pallet-delegated-staking" version = "1.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-support", "frame-system", @@ -3538,7 +3538,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3555,7 +3555,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -3577,7 +3577,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-support-benchmarking" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -3590,7 +3590,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3608,7 +3608,7 @@ dependencies = [ [[package]] name = "pallet-fast-unstake" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "docify", "frame-benchmarking", @@ -3626,7 +3626,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3648,7 +3648,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "enumflags2", "frame-benchmarking", @@ -3664,7 +3664,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3683,7 +3683,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3699,7 +3699,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3715,7 +3715,7 @@ dependencies = [ [[package]] name = "pallet-message-queue" version = "31.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "environmental", "frame-benchmarking", @@ -3734,7 +3734,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3751,7 +3751,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3766,7 +3766,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools" version = "25.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-support", "frame-system", @@ -3784,7 +3784,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-benchmarking" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -3804,7 +3804,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-runtime-api" version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "pallet-nomination-pools", "parity-scale-codec", @@ -3814,7 +3814,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-support", "frame-system", @@ -3830,7 +3830,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -3853,7 +3853,7 @@ dependencies = [ [[package]] name = "pallet-parameters" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "docify", "frame-benchmarking", @@ -3870,7 +3870,7 @@ dependencies = [ [[package]] name = "pallet-preimage" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3886,7 +3886,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3900,7 +3900,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3914,7 +3914,7 @@ dependencies = [ [[package]] name = "pallet-referenda" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3931,7 +3931,7 @@ dependencies = [ [[package]] name = "pallet-root-testing" version = "4.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-support", "frame-system", @@ -3945,7 +3945,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "docify", "frame-benchmarking", @@ -3962,7 +3962,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-support", "frame-system", @@ -3983,7 +3983,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -3999,7 +3999,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -4016,7 +4016,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4037,7 +4037,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "19.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "log", "sp-arithmetic", @@ -4046,7 +4046,7 @@ dependencies = [ [[package]] name = "pallet-staking-runtime-api" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "parity-scale-codec", "sp-api", @@ -4056,7 +4056,7 @@ dependencies = [ [[package]] name = "pallet-state-trie-migration" version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -4072,7 +4072,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "docify", "frame-benchmarking", @@ -4087,7 +4087,7 @@ dependencies = [ [[package]] name = "pallet-template" version = "0.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -4099,7 +4099,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "docify", "frame-benchmarking", @@ -4118,7 +4118,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-support", "frame-system", @@ -4133,7 +4133,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -4145,7 +4145,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "docify", "frame-benchmarking", @@ -4163,7 +4163,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -4178,7 +4178,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -4192,7 +4192,7 @@ dependencies = [ [[package]] name = "pallet-whitelist" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -4206,7 +4206,7 @@ dependencies = [ [[package]] name = "pallet-xcm" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "bounded-collections", "frame-benchmarking", @@ -4229,7 +4229,7 @@ dependencies = [ [[package]] name = "pallet-xcm-benchmarks" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-support", @@ -4251,8 +4251,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4e69bf016dc406eff7d53a7d3f7cf1c2e72c82b9088aac1118591e36dd2cd3e9" dependencies = [ "bitcoin_hashes", - "rand 0.7.3", - "rand_core 0.5.1", + "rand 0.8.5", + "rand_core 0.6.4", "serde", "unicode-normalization", ] @@ -4407,7 +4407,7 @@ dependencies = [ [[package]] name = "polkadot-core-primitives" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "parity-scale-codec", "scale-info", @@ -4418,7 +4418,7 @@ dependencies = [ [[package]] name = "polkadot-parachain-primitives" version = "6.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "bounded-collections", "derive_more", @@ -4434,7 +4434,7 @@ dependencies = [ [[package]] name = "polkadot-primitives" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "bitvec", "hex-literal", @@ -4455,13 +4455,12 @@ dependencies = [ "sp-keystore", "sp-runtime", "sp-staking", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?branch=master)", ] [[package]] name = "polkadot-runtime-common" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "bitvec", "frame-benchmarking", @@ -4510,7 +4509,7 @@ dependencies = [ [[package]] name = "polkadot-runtime-metrics" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "bs58", "frame-benchmarking", @@ -4522,7 +4521,7 @@ dependencies = [ [[package]] name = "polkadot-runtime-parachains" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "bitflags 1.3.2", "bitvec", @@ -5127,7 +5126,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "25.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "array-bytes", "parking_lot", @@ -5390,9 +5389,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.209" +version = "1.0.210" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99fce0ffe7310761ca6bf9faf5115afbc19688edd00171d81b1bb1b116c63e09" +checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a" dependencies = [ "serde_derive", ] @@ -5408,9 +5407,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.209" +version = "1.0.210" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5831b979fd7b5439637af1752d535ff49f4860c0f341d1baeb6faf0f4242170" +checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f" dependencies = [ "proc-macro2", "quote", @@ -5567,7 +5566,7 @@ checksum = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7" [[package]] name = "slot-range-helper" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "enumn", "parity-scale-codec", @@ -5610,7 +5609,7 @@ dependencies = [ [[package]] name = "solochain-template-runtime" version = "0.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-benchmarking", "frame-executive", @@ -5649,7 +5648,7 @@ dependencies = [ [[package]] name = "sp-api" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "docify", "hash-db", @@ -5671,7 +5670,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "15.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "Inflector", "blake2", @@ -5685,7 +5684,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "30.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "parity-scale-codec", "scale-info", @@ -5697,7 +5696,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "23.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "docify", "integer-sqrt", @@ -5729,7 +5728,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "parity-scale-codec", "scale-info", @@ -5741,7 +5740,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "sp-api", "sp-inherents", @@ -5751,7 +5750,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.32.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "async-trait", "parity-scale-codec", @@ -5767,7 +5766,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.32.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "async-trait", "parity-scale-codec", @@ -5785,7 +5784,7 @@ dependencies = [ [[package]] name = "sp-consensus-beefy" version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "lazy_static", "parity-scale-codec", @@ -5806,7 +5805,7 @@ dependencies = [ [[package]] name = "sp-consensus-grandpa" version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "finality-grandpa", "log", @@ -5823,7 +5822,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.32.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "parity-scale-codec", "scale-info", @@ -5834,7 +5833,7 @@ dependencies = [ [[package]] name = "sp-core" version = "28.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "array-bytes", "bandersnatch_vrfs", @@ -5881,7 +5880,7 @@ dependencies = [ [[package]] name = "sp-crypto-ec-utils" version = "0.10.0" -source = "git+https://github.com/paritytech/polkadot-sdk#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk#f0e420a031b2b0d4c2d3c065ab3e4c43a160b0d7" dependencies = [ "ark-bls12-377", "ark-bls12-377-ext", @@ -5901,7 +5900,7 @@ dependencies = [ [[package]] name = "sp-crypto-hashing" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "blake2b_simd", "byteorder", @@ -5914,7 +5913,7 @@ dependencies = [ [[package]] name = "sp-crypto-hashing-proc-macro" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "quote", "sp-crypto-hashing", @@ -5924,7 +5923,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "proc-macro2", "quote", @@ -5934,7 +5933,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk#f0e420a031b2b0d4c2d3c065ab3e4c43a160b0d7" dependencies = [ "proc-macro2", "quote", @@ -5944,7 +5943,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.25.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "environmental", "parity-scale-codec", @@ -5954,7 +5953,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.25.0" -source = "git+https://github.com/paritytech/polkadot-sdk#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk#f0e420a031b2b0d4c2d3c065ab3e4c43a160b0d7" dependencies = [ "environmental", "parity-scale-codec", @@ -5964,7 +5963,7 @@ dependencies = [ [[package]] name = "sp-genesis-builder" version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "parity-scale-codec", "scale-info", @@ -5976,7 +5975,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -5989,7 +5988,7 @@ dependencies = [ [[package]] name = "sp-io" version = "30.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "bytes 1.7.1", "docify", @@ -6015,7 +6014,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "31.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "sp-core", "sp-runtime", @@ -6025,7 +6024,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.34.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "parity-scale-codec", "parking_lot", @@ -6036,7 +6035,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "11.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "thiserror", "zstd", @@ -6045,7 +6044,7 @@ dependencies = [ [[package]] name = "sp-metadata-ir" version = "0.6.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-metadata 16.0.0", "parity-scale-codec", @@ -6055,7 +6054,7 @@ dependencies = [ [[package]] name = "sp-mmr-primitives" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "log", "parity-scale-codec", @@ -6072,7 +6071,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "parity-scale-codec", "scale-info", @@ -6085,7 +6084,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "sp-api", "sp-core", @@ -6095,7 +6094,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "backtrace", "lazy_static", @@ -6105,7 +6104,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "31.0.1" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "docify", "either", @@ -6131,7 +6130,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "bytes 1.7.1", "impl-trait-for-tuples", @@ -6150,7 +6149,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "24.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk#f0e420a031b2b0d4c2d3c065ab3e4c43a160b0d7" dependencies = [ "bytes 1.7.1", "impl-trait-for-tuples", @@ -6169,7 +6168,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "Inflector", "expander", @@ -6182,7 +6181,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk#f0e420a031b2b0d4c2d3c065ab3e4c43a160b0d7" dependencies = [ "Inflector", "expander", @@ -6195,7 +6194,7 @@ dependencies = [ [[package]] name = "sp-session" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "parity-scale-codec", "scale-info", @@ -6209,7 +6208,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -6222,7 +6221,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.35.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "hash-db", "log", @@ -6242,17 +6241,17 @@ dependencies = [ [[package]] name = "sp-std" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" [[package]] name = "sp-std" version = "14.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk#f0e420a031b2b0d4c2d3c065ab3e4c43a160b0d7" [[package]] name = "sp-storage" version = "19.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "impl-serde", "parity-scale-codec", @@ -6264,7 +6263,7 @@ dependencies = [ [[package]] name = "sp-storage" version = "19.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk#f0e420a031b2b0d4c2d3c065ab3e4c43a160b0d7" dependencies = [ "impl-serde", "parity-scale-codec", @@ -6276,7 +6275,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "async-trait", "parity-scale-codec", @@ -6288,7 +6287,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "16.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "parity-scale-codec", "tracing", @@ -6299,7 +6298,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "16.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk#f0e420a031b2b0d4c2d3c065ab3e4c43a160b0d7" dependencies = [ "parity-scale-codec", "tracing", @@ -6310,7 +6309,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "26.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "sp-api", "sp-runtime", @@ -6319,7 +6318,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "ahash", "hash-db", @@ -6342,7 +6341,7 @@ dependencies = [ [[package]] name = "sp-version" version = "29.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "impl-serde", "parity-scale-codec", @@ -6359,7 +6358,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "13.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -6370,9 +6369,8 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ - "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", @@ -6381,7 +6379,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "20.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk#f0e420a031b2b0d4c2d3c065ab3e4c43a160b0d7" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -6392,7 +6390,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "27.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "bounded-collections", "parity-scale-codec", @@ -6443,7 +6441,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "staging-xcm" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "array-bytes", "bounded-collections", @@ -6462,7 +6460,7 @@ dependencies = [ [[package]] name = "staging-xcm-builder" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-support", "frame-system", @@ -6484,7 +6482,7 @@ dependencies = [ [[package]] name = "staging-xcm-executor" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "environmental", "frame-benchmarking", @@ -6602,7 +6600,7 @@ dependencies = [ [[package]] name = "substrate-bip39" version = "0.4.7" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "hmac 0.12.1", "pbkdf2", @@ -6614,7 +6612,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "17.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "build-helper", "cargo_metadata", @@ -7081,9 +7079,9 @@ version = "1.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ - "cfg-if 0.1.10", + "cfg-if 1.0.0", "digest 0.10.7", - "rand 0.7.3", + "rand 0.8.5", "static_assertions", ] @@ -7364,7 +7362,7 @@ dependencies = [ [[package]] name = "westend-runtime" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "binary-merkle-tree", "bitvec", @@ -7469,7 +7467,7 @@ dependencies = [ [[package]] name = "westend-runtime-constants" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-support", "polkadot-primitives", @@ -7676,7 +7674,7 @@ dependencies = [ [[package]] name = "xcm-procedural" version = "7.0.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "Inflector", "proc-macro2", @@ -7687,7 +7685,7 @@ dependencies = [ [[package]] name = "xcm-runtime-apis" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#020cda338b0c3a5c46d488d4bbf8efc339f05d7e" +source = "git+https://github.com/paritytech/polkadot-sdk.git?branch=master#178e699c7d9a9f399040e290943dd13873772c68" dependencies = [ "frame-support", "parity-scale-codec", diff --git a/examples/async/examples/benchmark_bulk_xt.rs b/examples/async/examples/benchmark_bulk_xt.rs index 642588235..fe49fd374 100644 --- a/examples/async/examples/benchmark_bulk_xt.rs +++ b/examples/async/examples/benchmark_bulk_xt.rs @@ -18,23 +18,26 @@ use sp_keyring::AccountKeyring; use substrate_api_client::{ ac_primitives::{ - DefaultRuntimeConfig, ExtrinsicSigner as GenericExtrinsicSigner, SignExtrinsic, + Config, ExtrinsicSigner as GenericExtrinsicSigner, SignExtrinsic, WestendRuntimeConfig, }, rpc::JsonrpseeClient, Api, SubmitExtrinsic, }; -use westend_runtime::{AccountId, BalancesCall, RuntimeCall}; +use westend_runtime::{BalancesCall, RuntimeCall}; // Define an extrinsic signer type which sets the generic types of the `GenericExtrinsicSigner`. // This way, the types don't have to be reassigned with every usage of this type and makes // the code better readable. -type ExtrinsicSigner = GenericExtrinsicSigner; +type ExtrinsicSigner = GenericExtrinsicSigner; // To access the ExtrinsicAddress type of the Signer, we need to do this via the trait `SignExtrinsic`. // For better code readability, we define a simple type here and, at the same time, assign the // AccountId type of the `SignExtrinsic` trait. type ExtrinsicAddressOf = >::ExtrinsicAddress; +// AccountId type of westend runtime. +type AccountId = ::AccountId; + #[tokio::main] async fn main() { env_logger::init(); @@ -42,7 +45,7 @@ async fn main() { // Initialize api and set the signer (sender) that is used to sign the extrinsics. let signer = AccountKeyring::Alice.pair(); let client = JsonrpseeClient::with_default_url().await.unwrap(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); api.set_signer(signer.into()); let recipient: ExtrinsicAddressOf = AccountKeyring::Bob.to_account_id().into(); diff --git a/examples/async/examples/check_extrinsic_events.rs b/examples/async/examples/check_extrinsic_events.rs index 62b699a3d..9e271b0ac 100644 --- a/examples/async/examples/check_extrinsic_events.rs +++ b/examples/async/examples/check_extrinsic_events.rs @@ -16,7 +16,7 @@ use sp_keyring::AccountKeyring; use substrate_api_client::{ ac_node_api::RawEventDetails, - ac_primitives::{Config, DefaultRuntimeConfig}, + ac_primitives::{Config, WestendRuntimeConfig}, extrinsic::BalancesExtrinsics, rpc::JsonrpseeClient, Api, GetAccountInformation, SubmitAndWatch, TransactionStatus, XtStatus, @@ -25,9 +25,9 @@ use substrate_api_client::{ // To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet. // Therefore, we need to use the `AssetRuntimeConfig` in this example. // ! However, most Substrate runtimes do not use the asset pallet at all. So if you run an example against your own node -// you most likely should use `DefaultRuntimeConfig` instead. +// you most likely should use `WestendRuntimeConfig` instead. -type Hash = ::Hash; +type Hash = ::Hash; #[tokio::main] async fn main() { @@ -36,7 +36,7 @@ async fn main() { // Initialize api and set the signer (sender) that is used to sign the extrinsics. let alice_signer = AccountKeyring::Alice.pair(); let client = JsonrpseeClient::with_default_url().await.unwrap(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); api.set_signer(alice_signer.into()); let alice = AccountKeyring::Alice.to_account_id(); diff --git a/examples/async/examples/compose_extrinsic.rs b/examples/async/examples/compose_extrinsic.rs index e0c21a591..90dabb0ab 100644 --- a/examples/async/examples/compose_extrinsic.rs +++ b/examples/async/examples/compose_extrinsic.rs @@ -23,30 +23,27 @@ use sp_runtime::{generic::Era, MultiAddress}; use substrate_api_client::{ ac_compose_macros::{compose_call, compose_extrinsic_offline}, ac_primitives::{ - config::Config, AssetTip, DefaultRuntimeConfig, ExtrinsicParams, ExtrinsicSigner, - GenericAdditionalParams, SignExtrinsic, + config::Config, ExtrinsicParams, ExtrinsicSigner, GenericAdditionalParams, PlainTip, + SignExtrinsic, WestendRuntimeConfig, }, rpc::JsonrpseeClient, Api, GetChainInfo, SubmitAndWatch, XtStatus, }; -use westend_runtime::{BalancesCall, RuntimeCall}; +use westend_runtime::{Address, BalancesCall, RuntimeCall}; -type AssetExtrinsicSigner = ::ExtrinsicSigner; -type AccountId = ::AccountId; +type DefaultExtrinsicSigner = ::ExtrinsicSigner; +type AccountId = ::AccountId; type ExtrinsicAddressOf = >::ExtrinsicAddress; -type Hash = ::Hash; +type Hash = ::Hash; /// Get the balance type from your node runtime and adapt it if necessary. -type Balance = ::Balance; -/// We need AssetTip here, because the kitchensink runtime uses the asset pallet. Change to PlainTip if your node uses the balance pallet only. -type AdditionalParams = GenericAdditionalParams, Hash>; - -type Address = ::Address; +type Balance = ::Balance; +type AdditionalParams = GenericAdditionalParams, Hash>; // To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet. // Therefore, we need to use the `AssetRuntimeConfig` in this example. // ! However, most Substrate runtimes do not use the asset pallet at all. So if you run an example against your own node -// you most likely should use `DefaultRuntimeConfig` instead. +// you most likely should use `WestendRuntimeConfig` instead. #[tokio::main] async fn main() { @@ -56,8 +53,8 @@ async fn main() { let signer = AccountKeyring::Alice.pair(); let client = JsonrpseeClient::with_default_url().await.unwrap(); - let mut api = Api::::new(client).await.unwrap(); - let extrinsic_signer = ExtrinsicSigner::::new(signer); + let mut api = Api::::new(client).await.unwrap(); + let extrinsic_signer = ExtrinsicSigner::::new(signer); // Signer is needed to set the nonce and sign the extrinsic. api.set_signer(extrinsic_signer.clone()); @@ -84,12 +81,12 @@ async fn main() { let signer_nonce = api.get_nonce().await.unwrap(); println!("[+] Alice's Account Nonce is {}", signer_nonce); - let recipients_extrinsic_address: ExtrinsicAddressOf = + let recipients_extrinsic_address: ExtrinsicAddressOf = recipient.clone().into(); // Construct an extrinsic using only functionality available in no_std let xt = { - let extrinsic_params = ::ExtrinsicParams::new( + let extrinsic_params = ::ExtrinsicParams::new( spec_version, transaction_version, signer_nonce, diff --git a/examples/async/examples/custom_nonce.rs b/examples/async/examples/custom_nonce.rs index 48276ad6f..c31c9a58e 100644 --- a/examples/async/examples/custom_nonce.rs +++ b/examples/async/examples/custom_nonce.rs @@ -19,7 +19,7 @@ use sp_keyring::AccountKeyring; use sp_runtime::{generic::Era, MultiAddress}; use substrate_api_client::{ - ac_primitives::{DefaultRuntimeConfig, GenericAdditionalParams}, + ac_primitives::{GenericAdditionalParams, WestendRuntimeConfig}, rpc::JsonrpseeClient, Api, Error, GetChainInfo, SubmitAndWatch, UnexpectedTxStatus, XtStatus, }; @@ -28,7 +28,7 @@ use westend_runtime::{BalancesCall, RuntimeCall}; // To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet. // Therefore, we need to use the `AssetRuntimeConfig` in this example. // ! However, most Substrate runtimes do not use the asset pallet at all. So if you run an example against your own node -// you most likely should use `DefaultRuntimeConfig` instead. +// you most likely should use `WestendRuntimeConfig` instead. #[tokio::main] async fn main() { @@ -37,7 +37,7 @@ async fn main() { // Initialize api and set the signer (sender) that is used to sign the extrinsics. let signer = AccountKeyring::Alice.pair(); let client = JsonrpseeClient::with_default_url().await.unwrap(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); api.set_signer(signer.into()); // Information for Era for mortal transactions. diff --git a/examples/async/examples/get_account_identity.rs b/examples/async/examples/get_account_identity.rs index 3fed26d92..faecec7f5 100644 --- a/examples/async/examples/get_account_identity.rs +++ b/examples/async/examples/get_account_identity.rs @@ -21,7 +21,7 @@ use sp_core::{crypto::Pair, H256}; use sp_keyring::AccountKeyring; use substrate_api_client::{ ac_compose_macros::compose_extrinsic, - ac_primitives::{DefaultRuntimeConfig, UncheckedExtrinsicV4}, + ac_primitives::{UncheckedExtrinsicV4, WestendRuntimeConfig}, rpc::JsonrpseeClient, Api, GetStorage, SubmitAndWatch, XtStatus, }; @@ -36,7 +36,7 @@ type IdentityInformation = ::IdentityInformatio // To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet. // Therefore, we need to use the `AssetRuntimeConfig` in this example. // ! However, most Substrate runtimes do not use the asset pallet at all. So if you run an example against your own node -// you most likely should use `DefaultRuntimeConfig` instead. +// you most likely should use `WestendRuntimeConfig` instead. #[tokio::main] async fn main() { @@ -45,7 +45,7 @@ async fn main() { // Create the node-api client and set the signer. let client = JsonrpseeClient::with_default_url().await.unwrap(); let signer = AccountKeyring::Alice.pair(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); api.set_signer(signer.clone().into()); // Fill Identity storage. diff --git a/examples/async/examples/get_blocks.rs b/examples/async/examples/get_blocks.rs index c2e4a0cb6..9a1aada60 100644 --- a/examples/async/examples/get_blocks.rs +++ b/examples/async/examples/get_blocks.rs @@ -17,7 +17,7 @@ //! To compile this example for async you need to set the `--no-default-features` flag use substrate_api_client::{ - ac_primitives::DefaultRuntimeConfig, + ac_primitives::WestendRuntimeConfig, rpc::{HandleSubscription, JsonrpseeClient}, Api, GetChainInfo, SubscribeChain, }; @@ -25,7 +25,7 @@ use substrate_api_client::{ // To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet. // Therefore, we need to use the `AssetRuntimeConfig` in this example. // ! However, most Substrate runtimes do not use the asset pallet at all. So if you run an example against your own node -// you most likely should use `DefaultRuntimeConfig` instead. +// you most likely should use `WestendRuntimeConfig` instead. #[tokio::main] async fn main() { @@ -33,7 +33,7 @@ async fn main() { // Initialize the api. let client = JsonrpseeClient::with_default_url().await.unwrap(); - let api = Api::::new(client).await.unwrap(); + let api = Api::::new(client).await.unwrap(); let (genesis_block, header_hash, signed_block) = tokio::try_join!( api.get_genesis_block(), diff --git a/examples/async/examples/get_storage.rs b/examples/async/examples/get_storage.rs index 4f91698be..b7b3b0cf0 100644 --- a/examples/async/examples/get_storage.rs +++ b/examples/async/examples/get_storage.rs @@ -19,23 +19,23 @@ use frame_system::AccountInfo as GenericAccountInfo; use pallet_staking::Exposure; use sp_keyring::AccountKeyring; use substrate_api_client::{ - ac_primitives::{Config, DefaultRuntimeConfig}, + ac_primitives::{Config, WestendRuntimeConfig}, rpc::JsonrpseeClient, Api, GetAccountInformation, GetStorage, }; -use westend_runtime::AccountId; // To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet. // Therefore, we need to use the `AssetRuntimeConfig` in this example. // ! However, most Substrate runtimes do not use the asset pallet at all. So if you run an example against your own node -// you most likely should use `DefaultRuntimeConfig` instead. +// you most likely should use `WestendRuntimeConfig` instead. type AccountInfo = GenericAccountInfo< - ::Index, - ::AccountData, + ::Index, + ::AccountData, >; -type Balance = ::Balance; +type Balance = ::Balance; +type AccountId = ::AccountId; #[tokio::main] async fn main() { @@ -43,7 +43,7 @@ async fn main() { // Initialize the api. let client = JsonrpseeClient::with_default_url().await.unwrap(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); // Get some plain storage values. let (maybe_balance, proof) = tokio::try_join!( diff --git a/examples/async/examples/new_json_rpc_api_calls.rs b/examples/async/examples/new_json_rpc_api_calls.rs index b1eb8c21b..4d77043c5 100644 --- a/examples/async/examples/new_json_rpc_api_calls.rs +++ b/examples/async/examples/new_json_rpc_api_calls.rs @@ -22,7 +22,7 @@ use sp_core::Bytes; use sp_keyring::AccountKeyring; use substrate_api_client::{ ac_compose_macros::rpc_params, - ac_primitives::DefaultRuntimeConfig, + ac_primitives::WestendRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::{HandleSubscription, JsonrpseeClient, Request, Subscribe}, Api, @@ -31,7 +31,7 @@ use substrate_api_client::{ // To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet. // Therefore, we need to use the `AssetRuntimeConfig` in this example. // ! However, most Substrate runtimes do not use the asset pallet at all. So if you run an example against your own node -// you most likely should use `DefaultRuntimeConfig` instead. +// you most likely should use `WestendRuntimeConfig` instead. #[tokio::main] async fn main() { @@ -40,7 +40,7 @@ async fn main() { // Initialize api and set the signer (sender) that is used to sign the extrinsics. let signer = AccountKeyring::Alice.pair(); let client = JsonrpseeClient::with_default_url().await.unwrap(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); api.set_signer(signer.into()); // Retrieve all available rpc methods: diff --git a/examples/async/examples/print_metadata.rs b/examples/async/examples/print_metadata.rs index 1f780a086..6bb52888f 100644 --- a/examples/async/examples/print_metadata.rs +++ b/examples/async/examples/print_metadata.rs @@ -17,13 +17,13 @@ //! debugging tool. use substrate_api_client::{ - ac_primitives::DefaultRuntimeConfig, api_client::UpdateRuntime, rpc::JsonrpseeClient, Api, + ac_primitives::WestendRuntimeConfig, api_client::UpdateRuntime, rpc::JsonrpseeClient, Api, }; // To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet. // Therefore, we need to use the `AssetRuntimeConfig` in this example. // ! However, most Substrate runtimes do not use the asset pallet at all. So if you run an example against your own node -// you most likely should use `DefaultRuntimeConfig` instead. +// you most likely should use `WestendRuntimeConfig` instead. #[tokio::main] async fn main() { @@ -31,7 +31,7 @@ async fn main() { // Initialize the api, which retrieves the metadata from the node upon initialization. let client = JsonrpseeClient::with_default_url().await.unwrap(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); let meta = api.metadata().clone(); diff --git a/examples/async/examples/query_runtime_api.rs b/examples/async/examples/query_runtime_api.rs index 89f9e4871..7abd9bb66 100644 --- a/examples/async/examples/query_runtime_api.rs +++ b/examples/async/examples/query_runtime_api.rs @@ -19,7 +19,7 @@ use codec::Encode; use sp_core::sr25519; use sp_keyring::AccountKeyring; use substrate_api_client::{ - ac_primitives::DefaultRuntimeConfig, + ac_primitives::WestendRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::JsonrpseeClient, runtime_api::{AuthorityDiscoveryApi, CoreApi, MetadataApi, RuntimeApi, TransactionPaymentApi}, @@ -29,7 +29,7 @@ use substrate_api_client::{ // To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet. // Therefore, we need to use the `AssetRuntimeConfig` in this example. // ! However, most Substrate runtimes do not use the asset pallet at all. So if you run an example against your own node -// you most likely should use `DefaultRuntimeConfig` instead. +// you most likely should use `WestendRuntimeConfig` instead. #[tokio::main] async fn main() { @@ -37,7 +37,7 @@ async fn main() { // Initialize the api, which retrieves the metadata from the node upon initialization. let client = JsonrpseeClient::with_default_url().await.unwrap(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); let alice_pair = AccountKeyring::Alice.pair(); api.set_signer(alice_pair.into()); let runtime_api = api.runtime_api(); diff --git a/examples/async/examples/runtime_update_async.rs b/examples/async/examples/runtime_update_async.rs index fd047e54c..d009120eb 100644 --- a/examples/async/examples/runtime_update_async.rs +++ b/examples/async/examples/runtime_update_async.rs @@ -16,7 +16,7 @@ use sp_keyring::AccountKeyring; use sp_weights::Weight; use substrate_api_client::{ ac_compose_macros::{compose_call, compose_extrinsic}, - ac_primitives::{Config, DefaultRuntimeConfig}, + ac_primitives::{Config, WestendRuntimeConfig}, api_client::UpdateRuntime, rpc::JsonrpseeClient, rpc_api::RuntimeUpdateDetector, @@ -25,7 +25,7 @@ use substrate_api_client::{ use tokio::select; use tokio_util::sync::CancellationToken; -type Hash = ::Hash; +type Hash = ::Hash; #[tokio::main] async fn main() { @@ -33,7 +33,7 @@ async fn main() { // Initialize the api. let client = JsonrpseeClient::with_default_url().await.unwrap(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); let sudoer = AccountKeyring::Alice.pair(); api.set_signer(sudoer.into()); @@ -75,9 +75,9 @@ async fn main() { } pub async fn send_code_update_extrinsic( - api: &substrate_api_client::Api, + api: &substrate_api_client::Api, ) { - let new_wasm: &[u8] = include_bytes!("westend_runtime.compact.compressed.wasm"); + let new_wasm: &[u8] = include_bytes!("kitchensink_runtime.compact.compressed.wasm"); // this call can only be called by sudo let call = compose_call!(api.metadata(), "System", "set_code", new_wasm.to_vec()).unwrap(); diff --git a/examples/async/examples/staking_batch_payout.rs b/examples/async/examples/staking_batch_payout.rs index 40853a4b4..bf3719803 100644 --- a/examples/async/examples/staking_batch_payout.rs +++ b/examples/async/examples/staking_batch_payout.rs @@ -16,7 +16,7 @@ use pallet_staking::{ActiveEraInfo, Exposure}; use sp_keyring::AccountKeyring; use sp_runtime::{app_crypto::Ss58Codec, AccountId32}; use substrate_api_client::{ - ac_primitives::DefaultRuntimeConfig, + ac_primitives::WestendRuntimeConfig, extrinsic::{StakingExtrinsics, UtilityExtrinsics}, rpc::JsonrpseeClient, Api, GetStorage, SubmitAndWatch, XtStatus, @@ -27,7 +27,7 @@ const MAX_BATCHED_TRANSACTION: u32 = 9; // To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet. // Therefore, we need to use the `AssetRuntimeConfig` in this example. // ! However, most Substrate runtimes do not use the asset pallet at all. So if you run an example against your own node -// you most likely should use `DefaultRuntimeConfig` instead. +// you most likely should use `WestendRuntimeConfig` instead. pub type EraIndex = u32; @@ -54,7 +54,7 @@ async fn main() { // Initialize api and set the signer (sender) that is used to sign the extrinsics. let alice = AccountKeyring::Alice.pair(); let client = JsonrpseeClient::with_default_url().await.unwrap(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); api.set_signer(alice.into()); // Give a valid validator account address. In the kitchinsink runtime, this is Alice. @@ -148,7 +148,7 @@ async fn main() { pub async fn get_last_reward_received_for( account: &AccountId32, current_era: EraIndex, - api: &substrate_api_client::Api, + api: &substrate_api_client::Api, ) -> Option { let ledger_storage_key = api.metadata().storage_map_key("Staking", "Ledger", account).unwrap(); diff --git a/examples/async/examples/subscribe_events.rs b/examples/async/examples/subscribe_events.rs index 199b8d162..dbe14387b 100644 --- a/examples/async/examples/subscribe_events.rs +++ b/examples/async/examples/subscribe_events.rs @@ -19,7 +19,7 @@ use log::debug; use sp_core::H256 as Hash; use substrate_api_client::{ - ac_primitives::DefaultRuntimeConfig, rpc::JsonrpseeClient, Api, SubscribeEvents, + ac_primitives::WestendRuntimeConfig, rpc::JsonrpseeClient, Api, SubscribeEvents, }; // This module depends on the specific node runtime. @@ -29,7 +29,7 @@ use westend_runtime::RuntimeEvent; // To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet. // Therefore, we need to use the `AssetRuntimeConfig` in this example. // ! However, most Substrate runtimes do not use the asset pallet at all. So if you run an example against your own node -// you most likely should use `DefaultRuntimeConfig` instead. +// you most likely should use `WestendRuntimeConfig` instead. #[tokio::main] async fn main() { @@ -37,7 +37,7 @@ async fn main() { // Initialize the api. let client = JsonrpseeClient::with_default_url().await.unwrap(); - let api = Api::::new(client).await.unwrap(); + let api = Api::::new(client).await.unwrap(); println!("Subscribe to events"); let mut subscription = api.subscribe_events().await.unwrap(); diff --git a/examples/async/examples/sudo.rs b/examples/async/examples/sudo.rs index 50b6fdf70..0cff8b9e3 100644 --- a/examples/async/examples/sudo.rs +++ b/examples/async/examples/sudo.rs @@ -21,29 +21,33 @@ use sp_keyring::AccountKeyring; use substrate_api_client::{ ac_compose_macros::{compose_call, compose_extrinsic}, ac_primitives::{ - DefaultRuntimeConfig, ExtrinsicSigner as GenericExtrinsicSigner, SignExtrinsic, - UncheckedExtrinsicV4, + Config, ExtrinsicSigner as GenericExtrinsicSigner, SignExtrinsic, UncheckedExtrinsicV4, + WestendRuntimeConfig, }, rpc::JsonrpseeClient, Api, GetAccountInformation, SubmitAndWatch, XtStatus, }; -use westend_runtime::AccountId; // To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet. // Therefore, we need to use the `AssetRuntimeConfig` in this example. // ! However, most Substrate runtimes do not use the asset pallet at all. So if you run an example against your own node -// you most likely should use `DefaultRuntimeConfig` instead. +// you most likely should use `WestendRuntimeConfig` instead. // Define an extrinsic signer type which sets the generic types of the `GenericExtrinsicSigner`. // This way, the types don't have to be reassigned with every usage of this type and makes // the code better readable. -type ExtrinsicSigner = GenericExtrinsicSigner; +type ExtrinsicSigner = GenericExtrinsicSigner; // To access the ExtrinsicAddress type of the Signer, we need to do this via the trait `SignExtrinsic`. // For better code readability, we define a simple type here and, at the same time, assign the // AccountId type of the `SignExtrinsic` trait. type ExtrinsicAddressOf = >::ExtrinsicAddress; +// AccountId type of westend runtime. +type AccountId = ::AccountId; +type Address = ::Address; +type Balance = ::Balance; + #[tokio::main] async fn main() { env_logger::init(); @@ -51,7 +55,7 @@ async fn main() { // Initialize api and set the signer (sender) that is used to sign the extrinsics. let sudoer = AccountKeyring::Alice.pair(); let client = JsonrpseeClient::with_default_url().await.unwrap(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); api.set_signer(sudoer.into()); // Set the recipient of newly issued funds. @@ -65,15 +69,14 @@ async fn main() { let recipients_extrinsic_address: ExtrinsicAddressOf = recipient.clone().into(); let new_balance = recipient_balance + 100; - let call: ([u8; 2], sp_runtime::MultiAddress, Compact<_>) = - compose_call!( - api.metadata(), - "Balances", - "force_set_balance", - recipients_extrinsic_address, - Compact(new_balance) - ) - .unwrap(); + let call: ([u8; 2], Address, Compact<_>) = compose_call!( + api.metadata(), + "Balances", + "force_set_balance", + recipients_extrinsic_address, + Compact(new_balance) + ) + .unwrap(); let xt: UncheckedExtrinsicV4<_, _, _, _> = compose_extrinsic!(&api, "Sudo", "sudo", call).unwrap(); diff --git a/examples/sync/examples/runtime_update_sync.rs b/examples/sync/examples/runtime_update_sync.rs index 5554cfba7..c1dffa766 100644 --- a/examples/sync/examples/runtime_update_sync.rs +++ b/examples/sync/examples/runtime_update_sync.rs @@ -22,21 +22,21 @@ use sp_weights::Weight; use std::{sync::Arc, thread}; use substrate_api_client::{ ac_compose_macros::{compose_call, compose_extrinsic}, - ac_primitives::{Config, DefaultRuntimeConfig}, + ac_primitives::{Config, WestendRuntimeConfig}, api_client::UpdateRuntime, rpc::TungsteniteRpcClient, rpc_api::RuntimeUpdateDetector, Api, SubmitAndWatch, SubscribeEvents, XtStatus, }; -type Hash = ::Hash; +type Hash = ::Hash; fn main() { env_logger::init(); // Initialize the api. let client = TungsteniteRpcClient::with_default_url(1); - let mut api = Api::::new(client).unwrap(); + let mut api = Api::::new(client).unwrap(); let sudoer = AccountKeyring::Alice.pair(); api.set_signer(sudoer.into()); @@ -73,7 +73,7 @@ fn main() { } pub fn send_code_update_extrinsic( - api: &substrate_api_client::Api, + api: &substrate_api_client::Api, ) { let new_wasm: &[u8] = include_bytes!("westend_runtime.compact.compressed.wasm"); diff --git a/examples/sync/examples/transfer_with_tungstenite_client.rs b/examples/sync/examples/transfer_with_tungstenite_client.rs index 5f15ad63d..4b3d77bd7 100755 --- a/examples/sync/examples/transfer_with_tungstenite_client.rs +++ b/examples/sync/examples/transfer_with_tungstenite_client.rs @@ -21,14 +21,14 @@ use sp_core::{ }; use sp_runtime::MultiAddress; use substrate_api_client::{ - ac_primitives::DefaultRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::TungsteniteRpcClient, + ac_primitives::WestendRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::TungsteniteRpcClient, Api, GetAccountInformation, SubmitAndWatch, XtStatus, }; // To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet. // Therefore, we need to use the `AssetRuntimeConfig` in this example. // ! However, most Substrate runtimes do not use the asset pallet at all. So if you run an example against your own node -// you most likely should use `DefaultRuntimeConfig` instead. +// you most likely should use `WestendRuntimeConfig` instead. fn main() { env_logger::init(); @@ -43,7 +43,7 @@ fn main() { // Initialize api and set the signer (sender) that is used to sign the extrinsics. let client = TungsteniteRpcClient::with_default_url(100); - let mut api = Api::::new(client).unwrap(); + let mut api = Api::::new(client).unwrap(); api.set_signer(alice.clone().into()); // Retrieve bobs current balance. diff --git a/examples/sync/examples/transfer_with_ws_client.rs b/examples/sync/examples/transfer_with_ws_client.rs index f6628d5ec..4e7d5dd81 100755 --- a/examples/sync/examples/transfer_with_ws_client.rs +++ b/examples/sync/examples/transfer_with_ws_client.rs @@ -21,14 +21,14 @@ use sp_core::{ }; use sp_runtime::MultiAddress; use substrate_api_client::{ - ac_primitives::DefaultRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::WsRpcClient, Api, + ac_primitives::WestendRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::WsRpcClient, Api, GetAccountInformation, SubmitAndWatch, XtStatus, }; // To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet. // Therefore, we need to use the `AssetRuntimeConfig` in this example. // ! However, most Substrate runtimes do not use the asset pallet at all. So if you run an example against your own node -// you most likely should use `DefaultRuntimeConfig` instead. +// you most likely should use `WestendRuntimeConfig` instead. fn main() { env_logger::init(); @@ -43,7 +43,7 @@ fn main() { // Initialize api and set the signer (sender) that is used to sign the extrinsics. let client = WsRpcClient::with_default_url(); - let mut api = Api::::new(client).unwrap(); + let mut api = Api::::new(client).unwrap(); api.set_signer(alice.clone().into()); // Retrieve bobs current balance. diff --git a/examples/wasm/examples/wasm_example.rs b/examples/wasm/examples/wasm_example.rs index 1ae690dc1..1d0ee39f2 100644 --- a/examples/wasm/examples/wasm_example.rs +++ b/examples/wasm/examples/wasm_example.rs @@ -21,7 +21,7 @@ use sp_core::{ use sp_runtime::MultiAddress; pub use sp_runtime::OpaqueExtrinsic as UncheckedExtrinsic; use std::process::ExitCode; -use substrate_api_client::ac_primitives::{DefaultRuntimeConfig, ExtrinsicSigner}; +use substrate_api_client::ac_primitives::{ExtrinsicSigner, WestendRuntimeConfig}; fn main() -> Result { // This test is not yet very sophisticated and not exhaustive. @@ -37,8 +37,8 @@ fn main() -> Result { .unwrap() .into(); let _bob: MultiAddress = MultiAddress::Id(bob_account); - let es_converted: ExtrinsicSigner = alice.clone().into(); - let es_new = ExtrinsicSigner::::new(alice.clone()); + let es_converted: ExtrinsicSigner = alice.clone().into(); + let es_new = ExtrinsicSigner::::new(alice.clone()); assert_eq!(es_converted.signer().public(), es_new.signer().public()); let extrinsic = UncheckedExtrinsic::from_bytes(&[]); diff --git a/primitives/src/config/mod.rs b/primitives/src/config/mod.rs index c630c6766..0f72cca4c 100644 --- a/primitives/src/config/mod.rs +++ b/primitives/src/config/mod.rs @@ -24,9 +24,11 @@ use crate::{extrinsic_params, ExtrinsicSigner, SignExtrinsic}; pub use asset_runtime_config::*; pub use default_runtime_config::*; +pub use westend_runtime_config::*; pub mod asset_runtime_config; pub mod default_runtime_config; +pub mod westend_runtime_config; /// Runtime types. pub trait Config { @@ -166,3 +168,44 @@ impl> Config type ContractCurrency = T::ContractCurrency; type StakingBalance = T::StakingBalance; } + +/// Changes the Address type of the underlying Runtime Config. This allows to change the type of the Config without +/// having to define all the other types as well. +/// +/// # Example +/// +/// ``` +/// use ac_primitives::{ DefaultRuntimeConfig, WithAddress }; +/// +/// type WestendRuntimeConfig = WithAddress; +#[derive(Decode, Encode, Clone, Eq, PartialEq, Debug)] +pub struct WithAddress +where + T: Config, + A: Debug + Clone + Encode + From, +{ + _marker: PhantomData<(T, A)>, +} + +impl Config for WithAddress +where + T: Config, + A: Debug + Clone + Encode + From, +{ + type Index = T::Index; + type BlockNumber = T::BlockNumber; + type Hash = T::Hash; + type AccountId = T::AccountId; + type Address = A; + type Signature = T::Signature; + type Hasher = T::Hasher; + type Header = T::Header; + type AccountData = T::AccountData; + type ExtrinsicParams = T::ExtrinsicParams; + type CryptoKey = T::CryptoKey; + type ExtrinsicSigner = ExtrinsicSigner; + type Block = T::Block; + type Balance = T::Balance; + type ContractCurrency = T::ContractCurrency; + type StakingBalance = T::StakingBalance; +} diff --git a/src/api/rpc_api/events.rs b/src/api/rpc_api/events.rs index 56cb36325..bbd815670 100644 --- a/src/api/rpc_api/events.rs +++ b/src/api/rpc_api/events.rs @@ -233,7 +233,7 @@ mod tests { use super::*; use crate::rpc::mocks::RpcClientMock; use ac_node_api::{metadata::Metadata, test_utils::*}; - use ac_primitives::DefaultRuntimeConfig; + use ac_primitives::WestendRuntimeConfig; use codec::{Decode, Encode}; use frame_metadata::RuntimeMetadataPrefixed; use scale_info::TypeInfo; @@ -257,7 +257,7 @@ mod tests { fn create_mock_api( metadata: Metadata, data: HashMap, - ) -> Api { + ) -> Api { // Create new api. let genesis_hash = H256::random(); let runtime_version = RuntimeVersion::default(); @@ -381,9 +381,9 @@ mod tests { let xt2: Bytes = UncheckedExtrinsic::new_unsigned(call2).encode().into(); let xt3: Bytes = UncheckedExtrinsic::new_unsigned(call3).encode().into(); - let xt_hash1 = ::Hasher::hash(&xt1); - let xt_hash2 = ::Hasher::hash(&xt2); - let xt_hash3 = ::Hasher::hash(&xt3); + let xt_hash1 = ::Hasher::hash(&xt1); + let xt_hash2 = ::Hasher::hash(&xt2); + let xt_hash3 = ::Hasher::hash(&xt3); let block = Block { header: default_header(), extrinsics: vec![xt1, xt2, xt3] }; let signed_block = SignedBlock { block, justifications: None }; diff --git a/testing/async/examples/author_tests.rs b/testing/async/examples/author_tests.rs index c6ca4d456..797778af3 100644 --- a/testing/async/examples/author_tests.rs +++ b/testing/async/examples/author_tests.rs @@ -20,18 +20,18 @@ use sp_keyring::AccountKeyring; use substrate_api_client::{ ac_node_api::RawEventDetails, ac_primitives::{ - Config, DefaultRuntimeConfig, ExtrinsicSigner as GenericExtrinsicSigner, SignExtrinsic, + Config, ExtrinsicSigner as GenericExtrinsicSigner, SignExtrinsic, WestendRuntimeConfig, }, rpc::{HandleSubscription, JsonrpseeClient}, Api, SubmitAndWatch, SubmitExtrinsic, TransactionStatus, XtStatus, }; use westend_runtime::{AccountId, BalancesCall, RuntimeCall}; -type ExtrinsicSigner = GenericExtrinsicSigner; +type ExtrinsicSigner = GenericExtrinsicSigner; type ExtrinsicAddressOf = >::ExtrinsicAddress; -type Hash = ::Hash; -type MyApi = Api; -type Index = ::Index; +type Hash = ::Hash; +type MyApi = Api; +type Index = ::Index; #[tokio::main] async fn main() { diff --git a/testing/async/examples/chain_tests.rs b/testing/async/examples/chain_tests.rs index 49f47beb7..74c36b122 100644 --- a/testing/async/examples/chain_tests.rs +++ b/testing/async/examples/chain_tests.rs @@ -13,12 +13,12 @@ limitations under the License. */ -//! Tests for the chain rpc interface functions, including testing the DefaultRuntimeConfig -//! and Signer generation for the DefaultRuntimeConfig. +//! Tests for the chain rpc interface functions, including testing the WestendRuntimeConfig +//! and Signer generation for the WestendRuntimeConfig. use sp_keyring::AccountKeyring; use substrate_api_client::{ - ac_primitives::DefaultRuntimeConfig, + ac_primitives::WestendRuntimeConfig, rpc::{HandleSubscription, JsonrpseeClient}, Api, GetChainInfo, SubscribeChain, }; @@ -27,7 +27,7 @@ use substrate_api_client::{ async fn main() { // Setup let client = JsonrpseeClient::with_default_url().await.unwrap(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); let signer = AccountKeyring::Alice.pair(); api.set_signer(signer.into()); diff --git a/testing/async/examples/dispatch_errors_tests.rs b/testing/async/examples/dispatch_errors_tests.rs index 9bcd149f9..c9f6374b0 100644 --- a/testing/async/examples/dispatch_errors_tests.rs +++ b/testing/async/examples/dispatch_errors_tests.rs @@ -19,7 +19,7 @@ use sp_core::H256; use sp_keyring::AccountKeyring; use sp_runtime::MultiAddress; use substrate_api_client::{ - ac_primitives::DefaultRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::JsonrpseeClient, Api, + ac_primitives::WestendRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::JsonrpseeClient, Api, Error, GetAccountInformation, GetBalance, SubmitAndWatch, XtStatus, }; @@ -29,7 +29,7 @@ async fn main() { let client = JsonrpseeClient::with_default_url().await.unwrap(); let alice_signer = AccountKeyring::Alice.pair(); let bob_signer = AccountKeyring::Bob.pair(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); let alice = AccountKeyring::Alice.to_account_id(); let balance_of_alice = api.get_account_data(&alice).await.unwrap().unwrap().free; diff --git a/testing/async/examples/events_tests.rs b/testing/async/examples/events_tests.rs index eadd7c0b4..ad020a468 100644 --- a/testing/async/examples/events_tests.rs +++ b/testing/async/examples/events_tests.rs @@ -20,14 +20,14 @@ use frame_support::dispatch::DispatchInfo; use sp_keyring::AccountKeyring; use substrate_api_client::{ ac_node_api::{EventDetails, StaticEvent}, - ac_primitives::{Config, DefaultRuntimeConfig}, + ac_primitives::{Config, WestendRuntimeConfig}, extrinsic::BalancesExtrinsics, rpc::JsonrpseeClient, Api, FetchEvents, GetChainInfo, SubmitAndWatch, SubscribeEvents, XtStatus, }; use westend_runtime::RuntimeEvent; -type Hash = ::Hash; +type Hash = ::Hash; /// Check out frame_system::Event::ExtrinsicSuccess: #[derive(Decode, Debug)] @@ -45,7 +45,7 @@ async fn main() { // Setup let client = JsonrpseeClient::with_default_url().await.unwrap(); let alice_pair = AccountKeyring::Alice.pair(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); api.set_signer(alice_pair.into()); let bob = AccountKeyring::Bob.to_account_id(); @@ -76,7 +76,7 @@ async fn main() { // Wait for event callbacks from the node, which are received via subscription. for _ in 0..5 { let event_records = event_subscription - .next_events::::Hash>() + .next_events::::Hash>() .await .unwrap() .unwrap(); diff --git a/testing/async/examples/frame_system_tests.rs b/testing/async/examples/frame_system_tests.rs index b26c4df40..171b75702 100644 --- a/testing/async/examples/frame_system_tests.rs +++ b/testing/async/examples/frame_system_tests.rs @@ -19,7 +19,7 @@ use codec::Decode; use frame_support::dispatch::DispatchInfo; use sp_keyring::AccountKeyring; use substrate_api_client::{ - ac_node_api::StaticEvent, ac_primitives::DefaultRuntimeConfig, rpc::JsonrpseeClient, Api, + ac_node_api::StaticEvent, ac_primitives::WestendRuntimeConfig, rpc::JsonrpseeClient, Api, GetAccountInformation, SystemApi, }; @@ -39,7 +39,7 @@ async fn main() { // Setup let client = JsonrpseeClient::with_default_url().await.unwrap(); let alice_pair = AccountKeyring::Alice.pair(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); api.set_signer(alice_pair.into()); let alice = AccountKeyring::Alice.to_account_id(); diff --git a/testing/async/examples/pallet_balances_tests.rs b/testing/async/examples/pallet_balances_tests.rs index b491f31b7..7a591acf4 100644 --- a/testing/async/examples/pallet_balances_tests.rs +++ b/testing/async/examples/pallet_balances_tests.rs @@ -17,7 +17,7 @@ use sp_keyring::AccountKeyring; use substrate_api_client::{ - ac_primitives::DefaultRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::JsonrpseeClient, Api, + ac_primitives::WestendRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::JsonrpseeClient, Api, GetAccountInformation, GetBalance, SubmitAndWatch, XtStatus, }; @@ -25,7 +25,7 @@ use substrate_api_client::{ async fn main() { // Setup let client = JsonrpseeClient::with_default_url().await.unwrap(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); let ed = api.get_existential_deposit().await.unwrap(); println!("[+] Existential deposit is {}\n", ed); diff --git a/testing/async/examples/pallet_contract_tests.rs b/testing/async/examples/pallet_contract_tests.rs index d23b143aa..f5d5122d7 100644 --- a/testing/async/examples/pallet_contract_tests.rs +++ b/testing/async/examples/pallet_contract_tests.rs @@ -18,7 +18,7 @@ use codec::Decode; use sp_keyring::AccountKeyring; use substrate_api_client::{ - ac_compose_macros::primitives::DefaultRuntimeConfig, ac_node_api::StaticEvent, + ac_compose_macros::primitives::WestendRuntimeConfig, ac_node_api::StaticEvent, ac_primitives::Determinism, extrinsic::ContractsExtrinsics, rpc::JsonrpseeClient, Api, SubmitAndWatch, XtStatus, }; @@ -27,7 +27,7 @@ use westend_runtime::AccountId; // To test this example with CI we run it against the Substrate kitchensink node, which uses the asset pallet. // Therefore, we need to use the `AssetRuntimeConfig` in this example. // ! However, most Substrate runtimes do not use the asset pallet at all. So if you run an example against your own node -// you most likely should use `DefaultRuntimeConfig` instead. +// you most likely should use `WestendRuntimeConfig` instead. #[allow(unused)] #[derive(Decode)] @@ -46,7 +46,7 @@ async fn main() { // Initialize api and set the signer (sender) that is used to sign the extrinsics. let signer = AccountKeyring::Alice.pair(); let client = JsonrpseeClient::with_default_url().await.unwrap(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); api.set_signer(signer.into()); println!("[+] Alice's Account Nonce is {}", api.get_nonce().await.unwrap()); diff --git a/testing/async/examples/pallet_transaction_payment_tests.rs b/testing/async/examples/pallet_transaction_payment_tests.rs index 125b4520a..799060276 100644 --- a/testing/async/examples/pallet_transaction_payment_tests.rs +++ b/testing/async/examples/pallet_transaction_payment_tests.rs @@ -18,7 +18,7 @@ use codec::Encode; use sp_keyring::AccountKeyring; use substrate_api_client::{ - ac_primitives::DefaultRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::JsonrpseeClient, Api, + ac_primitives::WestendRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::JsonrpseeClient, Api, GetChainInfo, GetTransactionPayment, }; @@ -27,7 +27,7 @@ async fn main() { // Setup let client = JsonrpseeClient::with_default_url().await.unwrap(); let alice_pair = AccountKeyring::Alice.pair(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); api.set_signer(alice_pair.into()); let bob = AccountKeyring::Bob.to_account_id(); diff --git a/testing/async/examples/runtime_api_tests.rs b/testing/async/examples/runtime_api_tests.rs index 8700524db..2b48d8d60 100644 --- a/testing/async/examples/runtime_api_tests.rs +++ b/testing/async/examples/runtime_api_tests.rs @@ -18,7 +18,7 @@ use sp_core::{sr25519, Decode}; use sp_keyring::AccountKeyring; use substrate_api_client::{ - ac_primitives::DefaultRuntimeConfig, + ac_primitives::WestendRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::JsonrpseeClient, runtime_api::{ @@ -33,7 +33,7 @@ async fn main() { // Setup let client = JsonrpseeClient::with_default_url().await.unwrap(); let alice_pair = AccountKeyring::Alice.pair(); - let mut api = Api::::new(client).await.unwrap(); + let mut api = Api::::new(client).await.unwrap(); api.set_signer(alice_pair.into()); let runtime_api = api.runtime_api(); diff --git a/testing/async/examples/state_tests.rs b/testing/async/examples/state_tests.rs index ab9e519a0..808766256 100644 --- a/testing/async/examples/state_tests.rs +++ b/testing/async/examples/state_tests.rs @@ -22,12 +22,12 @@ use sp_core::{crypto::Ss58Codec, sr25519}; use sp_keyring::AccountKeyring; use sp_staking::EraIndex; use substrate_api_client::{ - ac_primitives::{Config, DefaultRuntimeConfig}, + ac_primitives::{Config, WestendRuntimeConfig}, rpc::JsonrpseeClient, Api, GetChainInfo, GetStorage, }; -type KitchensinkConfig = DefaultRuntimeConfig; +type KitchensinkConfig = WestendRuntimeConfig; type Balance = ::Balance; type AccountData = GenericAccountData; type ErasStakers = Exposure< diff --git a/testing/sync/examples/tungstenite_client_test.rs b/testing/sync/examples/tungstenite_client_test.rs index 33105062d..ac14c8240 100755 --- a/testing/sync/examples/tungstenite_client_test.rs +++ b/testing/sync/examples/tungstenite_client_test.rs @@ -19,7 +19,7 @@ use sp_core::{ }; use sp_runtime::MultiAddress; use substrate_api_client::{ - ac_primitives::DefaultRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::TungsteniteRpcClient, + ac_primitives::WestendRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::TungsteniteRpcClient, Api, GetAccountInformation, SubmitAndWatch, XtStatus, }; @@ -31,7 +31,7 @@ fn main() { ) .unwrap(); let client = TungsteniteRpcClient::with_default_url(100); - let mut api = Api::::new(client).unwrap(); + let mut api = Api::::new(client).unwrap(); api.set_signer(alice.clone().into()); let bob = sr25519::Public::from_ss58check("5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty") diff --git a/testing/sync/examples/ws_client_test.rs b/testing/sync/examples/ws_client_test.rs index 37f8a0838..268ae9667 100755 --- a/testing/sync/examples/ws_client_test.rs +++ b/testing/sync/examples/ws_client_test.rs @@ -19,7 +19,7 @@ use sp_core::{ }; use sp_runtime::MultiAddress; use substrate_api_client::{ - ac_primitives::DefaultRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::WsRpcClient, Api, + ac_primitives::WestendRuntimeConfig, extrinsic::BalancesExtrinsics, rpc::WsRpcClient, Api, GetAccountInformation, SubmitAndWatch, XtStatus, }; @@ -31,7 +31,7 @@ fn main() { ) .unwrap(); let client = WsRpcClient::with_default_url(); - let mut api = Api::::new(client).unwrap(); + let mut api = Api::::new(client).unwrap(); api.set_signer(alice.clone().into()); let bob = sr25519::Public::from_ss58check("5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty")