diff --git a/Cargo.lock b/Cargo.lock index 4d82a0222450..940d6a7d07e0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1227,7 +1227,7 @@ checksum = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3" [[package]] name = "fork-tree" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "parity-scale-codec", ] @@ -1235,7 +1235,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -1252,7 +1252,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-benchmarking", "parity-scale-codec", @@ -1271,7 +1271,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -1286,7 +1286,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "11.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "parity-scale-codec", "serde", @@ -1297,7 +1297,7 @@ dependencies = [ [[package]] name = "frame-support" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "bitmask", "frame-metadata", @@ -1321,7 +1321,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support-procedural-tools", "proc-macro2 1.0.10", @@ -1332,7 +1332,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -1344,7 +1344,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "proc-macro2 1.0.10", "quote 1.0.3", @@ -1354,7 +1354,7 @@ dependencies = [ [[package]] name = "frame-system" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -1370,7 +1370,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "parity-scale-codec", "sp-api", @@ -3252,7 +3252,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3270,7 +3270,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3287,7 +3287,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3308,7 +3308,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-benchmarking", "frame-support", @@ -3323,7 +3323,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-benchmarking", "frame-support", @@ -3339,7 +3339,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-benchmarking", "frame-support", @@ -3354,7 +3354,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3368,7 +3368,7 @@ dependencies = [ [[package]] name = "pallet-finality-tracker" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3384,7 +3384,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3402,7 +3402,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "enumflags2", "frame-benchmarking", @@ -3418,7 +3418,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3437,7 +3437,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3453,7 +3453,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3467,7 +3467,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3481,7 +3481,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3496,7 +3496,7 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3509,7 +3509,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "enumflags2", "frame-support", @@ -3524,7 +3524,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-benchmarking", "frame-support", @@ -3539,7 +3539,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3557,7 +3557,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3572,7 +3572,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3593,7 +3593,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.10", @@ -3604,7 +3604,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3618,7 +3618,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-benchmarking", "frame-support", @@ -3635,7 +3635,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3648,7 +3648,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -3666,7 +3666,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "parity-scale-codec", @@ -3679,7 +3679,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3693,7 +3693,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-support", "frame-system", @@ -3708,7 +3708,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "enumflags2", "frame-support", @@ -5219,7 +5219,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "bytes 0.5.4", "derive_more 0.99.5", @@ -5246,7 +5246,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -5262,7 +5262,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "impl-trait-for-tuples", "sc-chain-spec-derive", @@ -5278,7 +5278,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.10", @@ -5289,7 +5289,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "ansi_term 0.12.1", "app_dirs", @@ -5331,7 +5331,7 @@ dependencies = [ [[package]] name = "sc-client" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "derive_more 0.99.5", "fnv", @@ -5368,7 +5368,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "derive_more 0.99.5", "fnv", @@ -5402,7 +5402,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "blake2-rfc", "hash-db", @@ -5432,7 +5432,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "derive_more 0.99.5", "fork-tree", @@ -5474,7 +5474,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "fork-tree", "parity-scale-codec", @@ -5487,7 +5487,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "futures 0.3.4", "futures-timer 3.0.2", @@ -5508,7 +5508,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "log 0.4.8", "sc-client-api", @@ -5522,7 +5522,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "derive_more 0.99.5", "lazy_static", @@ -5550,7 +5550,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "derive_more 0.99.5", "log 0.4.8", @@ -5567,7 +5567,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "log 0.4.8", "parity-scale-codec", @@ -5582,7 +5582,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "cranelift-codegen", "cranelift-wasm", @@ -5603,7 +5603,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "assert_matches", "finality-grandpa", @@ -5639,7 +5639,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "ansi_term 0.12.1", "futures 0.3.4", @@ -5656,7 +5656,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "derive_more 0.99.5", "hex", @@ -5671,7 +5671,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "bitflags", "bytes 0.5.4", @@ -5723,7 +5723,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "futures 0.3.4", "futures-timer 3.0.2", @@ -5739,7 +5739,7 @@ dependencies = [ [[package]] name = "sc-network-test" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "env_logger 0.7.1", "futures 0.3.4", @@ -5765,7 +5765,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "bytes 0.5.4", "fnv", @@ -5792,7 +5792,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "futures 0.3.4", "libp2p", @@ -5805,7 +5805,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "futures 0.3.4", "hash-db", @@ -5838,7 +5838,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "derive_more 0.99.5", "futures 0.3.4", @@ -5862,7 +5862,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "jsonrpc-core", "jsonrpc-http-server", @@ -5877,7 +5877,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "derive_more 0.99.5", "exit-future", @@ -5928,7 +5928,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "log 0.4.8", "parity-scale-codec", @@ -5942,7 +5942,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "bytes 0.5.4", "futures 0.3.4", @@ -5964,7 +5964,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "erased-serde", "log 0.4.8", @@ -5979,7 +5979,7 @@ dependencies = [ [[package]] name = "sc-transaction-graph" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "derive_more 0.99.5", "futures 0.3.4", @@ -5999,7 +5999,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "derive_more 0.99.5", "futures 0.3.4", @@ -6384,7 +6384,7 @@ dependencies = [ [[package]] name = "sp-allocator" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "derive_more 0.99.5", "log 0.4.8", @@ -6396,7 +6396,7 @@ dependencies = [ [[package]] name = "sp-api" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "hash-db", "parity-scale-codec", @@ -6411,7 +6411,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "blake2-rfc", "proc-macro-crate", @@ -6423,7 +6423,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "parity-scale-codec", "serde", @@ -6435,7 +6435,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "integer-sqrt", "num-traits 0.2.11", @@ -6449,7 +6449,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "parity-scale-codec", "sp-api", @@ -6461,7 +6461,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -6472,7 +6472,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "parity-scale-codec", "sp-api", @@ -6484,7 +6484,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "derive_more 0.99.5", "log 0.4.8", @@ -6500,7 +6500,7 @@ dependencies = [ [[package]] name = "sp-chain-spec" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "serde", "serde_json", @@ -6509,7 +6509,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "derive_more 0.99.5", "futures 0.3.4", @@ -6532,7 +6532,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "parity-scale-codec", "sp-api", @@ -6546,7 +6546,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "parity-scale-codec", "sp-api", @@ -6562,7 +6562,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -6574,7 +6574,7 @@ dependencies = [ [[package]] name = "sp-core" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "base58", "blake2-rfc", @@ -6615,7 +6615,7 @@ dependencies = [ [[package]] name = "sp-database" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "kvdb", "parking_lot 0.10.2", @@ -6624,7 +6624,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "proc-macro2 1.0.10", "quote 1.0.3", @@ -6634,7 +6634,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "environmental", "sp-std", @@ -6644,7 +6644,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "parity-scale-codec", "serde", @@ -6657,7 +6657,7 @@ dependencies = [ [[package]] name = "sp-finality-tracker" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -6667,7 +6667,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "derive_more 0.99.5", "parity-scale-codec", @@ -6679,7 +6679,7 @@ dependencies = [ [[package]] name = "sp-io" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "futures 0.3.4", "hash-db", @@ -6699,7 +6699,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "lazy_static", "sp-core", @@ -6710,7 +6710,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "sp-api", "sp-runtime", @@ -6719,7 +6719,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "backtrace", "log 0.4.8", @@ -6728,7 +6728,7 @@ dependencies = [ [[package]] name = "sp-phragmen" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "parity-scale-codec", "serde", @@ -6740,7 +6740,7 @@ dependencies = [ [[package]] name = "sp-phragmen-compact" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.10", @@ -6751,7 +6751,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "serde", "sp-core", @@ -6760,7 +6760,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "hash256-std-hasher", "impl-trait-for-tuples", @@ -6781,7 +6781,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "parity-scale-codec", "primitive-types", @@ -6796,7 +6796,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "Inflector", "proc-macro-crate", @@ -6808,7 +6808,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "serde", "serde_json", @@ -6817,7 +6817,7 @@ dependencies = [ [[package]] name = "sp-session" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "sp-api", "sp-core", @@ -6828,7 +6828,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -6838,7 +6838,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "hash-db", "log 0.4.8", @@ -6857,12 +6857,12 @@ dependencies = [ [[package]] name = "sp-std" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" [[package]] name = "sp-storage" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "impl-serde 0.2.3", "ref-cast", @@ -6874,7 +6874,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -6888,7 +6888,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "tracing", ] @@ -6896,7 +6896,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "derive_more 0.99.5", "futures 0.3.4", @@ -6911,7 +6911,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "hash-db", "memory-db", @@ -6925,7 +6925,7 @@ dependencies = [ [[package]] name = "sp-utils" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "futures 0.3.4", "futures-core", @@ -6936,7 +6936,7 @@ dependencies = [ [[package]] name = "sp-version" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "impl-serde 0.2.3", "parity-scale-codec", @@ -6948,7 +6948,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -7076,7 +7076,7 @@ dependencies = [ [[package]] name = "substrate-browser-utils" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "chrono", "clear_on_drop", @@ -7103,7 +7103,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "platforms", ] @@ -7111,7 +7111,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.4", @@ -7132,7 +7132,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "async-std", "derive_more 0.99.5", @@ -7146,7 +7146,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "futures 0.3.4", "hash-db", @@ -7166,7 +7166,7 @@ dependencies = [ [[package]] name = "substrate-test-runtime" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "cfg-if", "frame-executive", @@ -7205,7 +7205,7 @@ dependencies = [ [[package]] name = "substrate-test-runtime-client" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" dependencies = [ "futures 0.3.4", "parity-scale-codec", @@ -7223,7 +7223,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder-runner" version = "1.0.5" -source = "git+https://github.com/paritytech/substrate#fc6e2a625d807509605c8e790ba3f5136236aa12" +source = "git+https://github.com/paritytech/substrate#b20dc82aedd47538a1f17ff125d58fe4f12e2b7c" [[package]] name = "substrate-wasm-builder-runner" diff --git a/runtime/common/src/parachains.rs b/runtime/common/src/parachains.rs index 4536eff98b06..631f8d34ce49 100644 --- a/runtime/common/src/parachains.rs +++ b/runtime/common/src/parachains.rs @@ -35,7 +35,7 @@ use sp_staking::{ }; use frame_support::{ traits::KeyOwnerProofSystem, - dispatch::{IsSubType}, + dispatch::IsSubType, weights::{SimpleDispatchInfo, Weight, MINIMUM_WEIGHT}, }; use primitives::{ @@ -59,11 +59,30 @@ use inherents::{ProvideInherent, InherentData, MakeFatalError, InherentIdentifie use system::{ ensure_none, ensure_signed, - offchain::SubmitSignedTransaction, + offchain::{CreateSignedTransaction, SendSignedTransaction, Signer}, }; use crate::attestations::{self, IncludedBlocks}; use crate::registrar::Registrar; +pub const KEY_TYPE: KeyTypeId = KeyTypeId(*b"para"); + +pub mod crypto { + use super::KEY_TYPE; + use sp_runtime::{ + app_crypto::{app_crypto, sr25519}, + traits::Verify, + }; + use sp_core::sr25519::Signature as Sr25519Signature; + app_crypto!(sr25519, KEY_TYPE); + + pub struct AuthorityId; + impl system::offchain::AppCrypto<::Signer, Sr25519Signature> for AuthorityId { + type RuntimeAppPublic = Public; + type GenericSignature = Sr25519Signature; + type GenericPublic = sp_core::sr25519::Public; + } +} + // ranges for iteration of general block number don't work, so this // is a utility to get around that. struct BlockNumberRange { @@ -220,7 +239,10 @@ impl GetSessionNumber for session::historical::Proof { } } -pub trait Trait: attestations::Trait + session::historical::Trait { +pub trait Trait: CreateSignedTransaction> + attestations::Trait + session::historical::Trait { + // The transaction signing authority + type AuthorityId: system::offchain::AppCrypto; + /// The outer origin type. type Origin: From + From>; @@ -293,9 +315,6 @@ pub trait Trait: attestations::Trait + session::historical::Trait { /// A type that converts the opaque hash type to exact one. type BlockHashConversion: Convert; - - /// Submit a signed transaction. - type SubmitSignedTransaction: SubmitSignedTransaction::Call>; } /// Origin for the parachains module. @@ -794,15 +813,13 @@ impl Module { pub fn submit_double_vote_report( report: DoubleVoteReport, ) -> Option<()> { - let call = Call::report_double_vote(report); - - let res = T::SubmitSignedTransaction::submit_signed(call); - - if res.iter().any(|(_, r)| r.is_ok()) { - Some(()) - } else { - None - } + Signer::::all_accounts() + .send_signed_transaction( + move |_account| { + Call::report_double_vote(report.clone()) + } + ); + return Some(()) } /// Dispatch some messages from a parachain. @@ -1543,7 +1560,7 @@ mod tests { use super::Call as ParachainsCall; use bitvec::{bitvec, vec::BitVec}; use sp_io::TestExternalities; - use sp_core::{H256, Blake2Hasher}; + use sp_core::{H256, Blake2Hasher, sr25519}; use sp_trie::NodeCodec; use sp_runtime::{ impl_opaque_keys, @@ -1631,6 +1648,13 @@ mod tests { type OnKilledAccount = (); } + impl system::offchain::SendTransactionTypes for Test where + Call: From, + { + type OverarchingCall = Call; + type Extrinsic = TestXt; + } + parameter_types! { pub const Period: BlockNumber = 1; pub const Offset: BlockNumber = 0; @@ -1760,7 +1784,6 @@ mod tests { type NextNewSession = Session; type ElectionLookahead = ElectionLookahead; type Call = Call; - type SubmitTransaction = system::offchain::TransactionSubmitter<(), Test, TestXt>; type UnsignedPriority = StakingUnsignedPriority; } @@ -1817,8 +1840,7 @@ mod tests { // This is needed for a custom `AccountId` type which is `u64` in testing here. pub mod test_keys { - use sp_core::crypto::KeyTypeId; - + use sp_core::{crypto::KeyTypeId, sr25519}; pub const KEY_TYPE: KeyTypeId = KeyTypeId(*b"test"); mod app { @@ -1837,10 +1859,16 @@ mod tests { } pub type ReporterId = app::Public; - pub type ReporterSignature = app::Signature; + pub struct ReporterAuthorityId; + impl system::offchain::AppCrypto for ReporterAuthorityId { + type RuntimeAppPublic = ReporterId; + type GenericSignature = sr25519::Signature; + type GenericPublic = sr25519::Public; + } } impl Trait for Test { + type AuthorityId = test_keys::ReporterAuthorityId; type Origin = Origin; type Call = Call; type ParachainCurrency = Balances; @@ -1860,29 +1888,28 @@ mod tests { type ReportOffence = Offences; type BlockHashConversion = sp_runtime::traits::Identity; type KeyOwnerProofSystem = Historical; - type SubmitSignedTransaction = system::offchain::TransactionSubmitter< - test_keys::ReporterId, - Test, - Extrinsic, - >; } type Extrinsic = TestXt; - impl system::offchain::CreateTransaction for Test { - type Public = test_keys::ReporterId; - type Signature = test_keys::ReporterSignature; - - fn create_transaction>( - call: ::Call, - _public: Self::Public, + impl system::offchain::CreateSignedTransaction for Test where + Call: From, + { + fn create_transaction>( + call: Call, + _public: test_keys::ReporterId, _account: ::AccountId, nonce: ::Index, - ) -> Option<(::Call, ::SignaturePayload)> { + ) -> Option<(Call, ::SignaturePayload)> { Some((call, (nonce, ()))) } } + impl system::offchain::SigningTypes for Test { + type Public = test_keys::ReporterId; + type Signature = sr25519::Signature; + } + type Parachains = Module; type Balances = balances::Module; type System = system::Module; diff --git a/runtime/common/src/registrar.rs b/runtime/common/src/registrar.rs index 2d1111cf7be8..8867e72842c8 100644 --- a/runtime/common/src/registrar.rs +++ b/runtime/common/src/registrar.rs @@ -676,7 +676,7 @@ mod tests { CandidateReceipt, HeadData, ValidityAttestation, Statement, Chain, CollatorPair, CandidateCommitments, }, - Balance, BlockNumber, Header, + Balance, BlockNumber, Header, Signature, }; use frame_support::{ traits::{KeyOwnerProofSystem, OnInitialize, OnFinalize}, @@ -745,6 +745,13 @@ mod tests { type OnKilledAccount = Balances; } + impl system::offchain::SendTransactionTypes for Test where + Call: From, + { + type OverarchingCall = Call; + type Extrinsic = TestXt; + } + parameter_types! { pub const ExistentialDeposit: Balance = 1; } @@ -834,7 +841,6 @@ mod tests { type NextNewSession = Session; type ElectionLookahead = ElectionLookahead; type Call = Call; - type SubmitTransaction = system::offchain::TransactionSubmitter<(), Test, TestXt>; type UnsignedPriority = StakingUnsignedPriority; } @@ -851,7 +857,8 @@ mod tests { // This is needed for a custom `AccountId` type which is `u64` in testing here. pub mod test_keys { - use sp_core::crypto::KeyTypeId; + use sp_core::{crypto::KeyTypeId, sr25519}; + use primitives::Signature; pub const KEY_TYPE: KeyTypeId = KeyTypeId(*b"test"); @@ -872,10 +879,16 @@ mod tests { } pub type ReporterId = app::Public; - pub type ReporterSignature = app::Signature; + pub struct ReporterAuthorityId; + impl system::offchain::AppCrypto for ReporterAuthorityId { + type RuntimeAppPublic = ReporterId; + type GenericSignature = sr25519::Signature; + type GenericPublic = sr25519::Public; + } } impl parachains::Trait for Test { + type AuthorityId = test_keys::ReporterAuthorityId; type Origin = Origin; type Call = Call; type ParachainCurrency = balances::Module; @@ -893,29 +906,28 @@ mod tests { type IdentificationTuple = )>>::IdentificationTuple; type ReportOffence = (); type BlockHashConversion = sp_runtime::traits::Identity; - type SubmitSignedTransaction = system::offchain::TransactionSubmitter< - test_keys::ReporterId, - Test, - Extrinsic, - >; } type Extrinsic = TestXt; - impl system::offchain::CreateTransaction for Test { - type Public = test_keys::ReporterId; - type Signature = test_keys::ReporterSignature; - - fn create_transaction>( - call: ::Call, - _public: Self::Public, + impl system::offchain::CreateSignedTransaction for Test where + Call: From, + { + fn create_transaction>( + call: Call, + _public: test_keys::ReporterId, _account: ::AccountId, nonce: ::Index, - ) -> Option<(::Call, ::SignaturePayload)> { + ) -> Option<(Call, ::SignaturePayload)> { Some((call, (nonce, ()))) } } + impl system::offchain::SigningTypes for Test { + type Public = test_keys::ReporterId; + type Signature = Signature; + } + parameter_types! { pub const ParathreadDeposit: Balance = 10; pub const QueueSize: usize = 2; diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index 8c0ac5d36008..ab8e0b6c76ba 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -32,6 +32,7 @@ use runtime_common::{attestations, claims, parachains, registrar, slots, NegativeImbalance, BlockHashCount, MaximumBlockWeight, AvailableBlockRatio, MaximumBlockLength, }; +use sp_core::sr25519; use sp_runtime::{ create_runtime_str, generic, impl_opaque_keys, ApplyExtrinsicResult, KeyTypeId, Percent, Permill, Perbill, Perquintill, RuntimeDebug, @@ -41,7 +42,7 @@ use sp_runtime::{ curve::PiecewiseLinear, traits::{ BlakeTwo256, Block as BlockT, SignedExtension, OpaqueKeys, ConvertInto, IdentityLookup, - DispatchInfoOf, Extrinsic as ExtrinsicT, SaturatedConversion, + DispatchInfoOf, Extrinsic as ExtrinsicT, SaturatedConversion, Verify, }, }; #[cfg(feature = "runtime-benchmarks")] @@ -58,7 +59,6 @@ use frame_support::{ }; use im_online::sr25519::AuthorityId as ImOnlineId; use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId; -use system::offchain::TransactionSubmitter; use transaction_payment_rpc_runtime_api::RuntimeDispatchInfo; use session::{historical as session_historical}; @@ -84,7 +84,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("kusama"), impl_name: create_runtime_str!("parity-kusama"), authoring_version: 2, - spec_version: 1059, + spec_version: 1060, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, @@ -322,7 +322,6 @@ impl staking::Trait for Runtime { type NextNewSession = Session; type ElectionLookahead = ElectionLookahead; type Call = Call; - type SubmitTransaction = TransactionSubmitter<(), Runtime, UncheckedExtrinsic>; type UnsignedPriority = StakingUnsignedPriority; } @@ -467,8 +466,6 @@ impl offences::Trait for Runtime { impl authority_discovery::Trait for Runtime {} -type SubmitTransaction = TransactionSubmitter; - parameter_types! { pub const SessionDuration: BlockNumber = EPOCH_DURATION_IN_BLOCKS as _; } @@ -481,8 +478,6 @@ parameter_types! { impl im_online::Trait for Runtime { type AuthorityId = ImOnlineId; type Event = Event; - type Call = Call; - type SubmitTransaction = SubmitTransaction; type ReportUnresponsiveness = Offences; type SessionDuration = SessionDuration; type UnsignedPriority = StakingUnsignedPriority; @@ -522,6 +517,7 @@ parameter_types! { } impl parachains::Trait for Runtime { + type AuthorityId = FishermanAuthorityId; type Origin = Origin; type Call = Call; type ParachainCurrency = Balances; @@ -541,17 +537,22 @@ impl parachains::Trait for Runtime { type IdentificationTuple = )>>::IdentificationTuple; type ReportOffence = Offences; type BlockHashConversion = sp_runtime::traits::Identity; - type SubmitSignedTransaction = TransactionSubmitter; } -impl system::offchain::CreateTransaction for Runtime { - type Public = ::Signer; - type Signature = primitives::Signature; +pub struct FishermanAuthorityId; +impl system::offchain::AppCrypto<::Signer, Signature> for FishermanAuthorityId { + type RuntimeAppPublic = parachain::FishermanId; + type GenericSignature = sr25519::Signature; + type GenericPublic = sr25519::Public; +} - fn create_transaction>( - call: ::Call, - public: Self::Public, - account: ::AccountId, +impl system::offchain::CreateSignedTransaction for Runtime where + Call: From, +{ + fn create_transaction>( + call: Call, + public: ::Signer, + account: AccountId, nonce: ::Index, ) -> Option<(Call, ::SignaturePayload)> { let period = BlockHashCount::get() @@ -575,14 +576,28 @@ impl system::offchain::CreateTransaction for Runtim parachains::ValidateDoubleVoteReports::::new(), ); let raw_payload = SignedPayload::new(call, extra).map_err(|e| { - debug::warn!("Unable to create signed payload: {:?}", e) + debug::warn!("Unable to create signed payload: {:?}", e); }).ok()?; - let signature = TSigner::sign(public, &raw_payload)?; + let signature = raw_payload.using_encoded(|payload| { + C::sign(payload, public) + })?; let (call, extra, _) = raw_payload.deconstruct(); Some((call, (account, signature, extra))) } } +impl system::offchain::SigningTypes for Runtime { + type Public = ::Signer; + type Signature = Signature; +} + +impl system::offchain::SendTransactionTypes for Runtime where + Call: From, +{ + type OverarchingCall = Call; + type Extrinsic = UncheckedExtrinsic; +} + parameter_types! { pub const ParathreadDeposit: Balance = 5 * DOLLARS; pub const QueueSize: usize = 2; diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 91a6f0452627..a37aa9418ea4 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -33,6 +33,7 @@ use primitives::{ AccountId, AccountIndex, Balance, BlockNumber, Hash, Nonce, Signature, Moment, parachain::{self, ActiveParas, AbridgedCandidateReceipt, SigningContext}, ValidityError, }; +use sp_core::sr25519; use sp_runtime::{ create_runtime_str, generic, impl_opaque_keys, ApplyExtrinsicResult, KeyTypeId, Percent, Permill, Perbill, Perquintill, RuntimeDebug, @@ -43,6 +44,7 @@ use sp_runtime::{ traits::{ BlakeTwo256, Block as BlockT, SignedExtension, OpaqueKeys, ConvertInto, DispatchInfoOf, IdentityLookup, Extrinsic as ExtrinsicT, SaturatedConversion, + Verify, }, }; #[cfg(feature = "runtime-benchmarks")] @@ -59,9 +61,8 @@ use frame_support::{ }; use im_online::sr25519::AuthorityId as ImOnlineId; use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId; -use system::offchain::TransactionSubmitter; use transaction_payment_rpc_runtime_api::RuntimeDispatchInfo; -use session::{historical as session_historical}; +use session::historical as session_historical; #[cfg(feature = "std")] pub use staking::StakerStatus; @@ -326,7 +327,6 @@ impl staking::Trait for Runtime { type NextNewSession = Session; type ElectionLookahead = ElectionLookahead; type Call = Call; - type SubmitTransaction = TransactionSubmitter<(), Runtime, UncheckedExtrinsic>; type UnsignedPriority = StakingUnsignedPriority; } @@ -472,8 +472,6 @@ impl offences::Trait for Runtime { impl authority_discovery::Trait for Runtime {} -type SubmitTransaction = TransactionSubmitter; - parameter_types! { pub const SessionDuration: BlockNumber = EPOCH_DURATION_IN_BLOCKS as _; } @@ -486,8 +484,6 @@ parameter_types! { impl im_online::Trait for Runtime { type AuthorityId = ImOnlineId; type Event = Event; - type Call = Call; - type SubmitTransaction = SubmitTransaction; type SessionDuration = SessionDuration; type ReportUnresponsiveness = Offences; type UnsignedPriority = ImOnlineUnsignedPriority; @@ -528,6 +524,7 @@ parameter_types! { } impl parachains::Trait for Runtime { + type AuthorityId = FishermanAuthorityId; type Origin = Origin; type Call = Call; type ParachainCurrency = Balances; @@ -547,17 +544,22 @@ impl parachains::Trait for Runtime { type IdentificationTuple = )>>::IdentificationTuple; type ReportOffence = Offences; type BlockHashConversion = sp_runtime::traits::Identity; - type SubmitSignedTransaction = TransactionSubmitter; } -impl system::offchain::CreateTransaction for Runtime { - type Public = ::Signer; - type Signature = primitives::Signature; +pub struct FishermanAuthorityId; +impl system::offchain::AppCrypto<::Signer, Signature> for FishermanAuthorityId { + type RuntimeAppPublic = parachain::FishermanId; + type GenericSignature = sr25519::Signature; + type GenericPublic = sr25519::Public; +} - fn create_transaction>( - call: ::Call, - public: Self::Public, - account: ::AccountId, +impl system::offchain::CreateSignedTransaction for Runtime where + Call: From, +{ + fn create_transaction>( + call: Call, + public: ::Signer, + account: AccountId, nonce: ::Index, ) -> Option<(Call, ::SignaturePayload)> { let period = BlockHashCount::get() @@ -581,14 +583,28 @@ impl system::offchain::CreateTransaction for Runtim parachains::ValidateDoubleVoteReports::::new(), ); let raw_payload = SignedPayload::new(call, extra).map_err(|e| { - debug::warn!("Unable to create signed payload: {:?}", e) + debug::warn!("Unable to create signed payload: {:?}", e); }).ok()?; - let signature = TSigner::sign(public, &raw_payload)?; + let signature = raw_payload.using_encoded(|payload| { + C::sign(payload, public) + })?; let (call, extra, _) = raw_payload.deconstruct(); Some((call, (account, signature, extra))) } } +impl system::offchain::SigningTypes for Runtime { + type Public = ::Signer; + type Signature = Signature; +} + +impl system::offchain::SendTransactionTypes for Runtime where + Call: From, +{ + type OverarchingCall = Call; + type Extrinsic = UncheckedExtrinsic; +} + parameter_types! { pub const ParathreadDeposit: Balance = 500 * DOLLARS; pub const QueueSize: usize = 2; diff --git a/runtime/test-runtime/src/lib.rs b/runtime/test-runtime/src/lib.rs index 84890bc072ff..801f0779adb2 100644 --- a/runtime/test-runtime/src/lib.rs +++ b/runtime/test-runtime/src/lib.rs @@ -31,7 +31,7 @@ use runtime_common::{attestations, claims, parachains, registrar, slots, BlockHashCount, MaximumBlockWeight, AvailableBlockRatio, MaximumBlockLength, }; - +use sp_core::sr25519; use sp_runtime::{ create_runtime_str, generic, impl_opaque_keys, ApplyExtrinsicResult, Perbill, Perquintill, RuntimeDebug, KeyTypeId, @@ -41,7 +41,7 @@ use sp_runtime::{ curve::PiecewiseLinear, traits::{ BlakeTwo256, Block as BlockT, StaticLookup, SignedExtension, OpaqueKeys, ConvertInto, - DispatchInfoOf, Extrinsic as ExtrinsicT, SaturatedConversion, + DispatchInfoOf, Extrinsic as ExtrinsicT, SaturatedConversion, Verify, }, }; use version::RuntimeVersion; @@ -56,7 +56,6 @@ use frame_support::{ }; use pallet_transaction_payment_rpc_runtime_api::RuntimeDispatchInfo; use session::historical as session_historical; -use system::offchain::TransactionSubmitter; #[cfg(feature = "std")] pub use staking::StakerStatus; @@ -153,6 +152,13 @@ impl system::Trait for Runtime { type OnKilledAccount = (); } +impl system::offchain::SendTransactionTypes for Runtime where + Call: From, +{ + type OverarchingCall = Call; + type Extrinsic = UncheckedExtrinsic; +} + parameter_types! { pub const EpochDuration: u64 = EPOCH_DURATION_IN_BLOCKS as u64; pub const ExpectedBlockTime: Moment = MILLISECS_PER_BLOCK; @@ -303,7 +309,6 @@ impl staking::Trait for Runtime { type NextNewSession = Session; type ElectionLookahead = ElectionLookahead; type Call = Call; - type SubmitTransaction = system::offchain::TransactionSubmitter<(), Runtime, Extrinsic>; type UnsignedPriority = StakingUnsignedPriority; } @@ -331,6 +336,7 @@ parameter_types! { } impl parachains::Trait for Runtime { + type AuthorityId = FishermanAuthorityId; type Origin = Origin; type Call = Call; type ParachainCurrency = Balances; @@ -352,17 +358,22 @@ impl parachains::Trait for Runtime { >::IdentificationTuple; type ReportOffence = Offences; type BlockHashConversion = sp_runtime::traits::Identity; - type SubmitSignedTransaction = TransactionSubmitter; } -impl system::offchain::CreateTransaction for Runtime { - type Public = ::Signer; - type Signature = primitives::Signature; +pub struct FishermanAuthorityId; +impl system::offchain::AppCrypto<::Signer, Signature> for FishermanAuthorityId { + type RuntimeAppPublic = parachain::FishermanId; + type GenericSignature = sr25519::Signature; + type GenericPublic = sr25519::Public; +} - fn create_transaction>( - call: ::Call, - public: Self::Public, - account: ::AccountId, +impl system::offchain::CreateSignedTransaction for Runtime where + Call: From, +{ + fn create_transaction>( + call: Call, + public: ::Signer, + account: AccountId, nonce: ::Index, ) -> Option<(Call, ::SignaturePayload)> { let period = BlockHashCount::get() @@ -386,15 +397,22 @@ impl system::offchain::CreateTransaction for Runtim parachains::ValidateDoubleVoteReports::::new(), ); let raw_payload = SignedPayload::new(call, extra).map_err(|e| { - debug::warn!("Unable to create signed payload: {:?}", e) + debug::warn!("Unable to create signed payload: {:?}", e); }).ok()?; - let signature = TSigner::sign(public, &raw_payload)?; + let signature = raw_payload.using_encoded(|payload| { + C::sign(payload, public) + })?; let (call, extra, _) = raw_payload.deconstruct(); let address = Indices::unlookup(account); Some((call, (address, signature, extra))) } } +impl system::offchain::SigningTypes for Runtime { + type Public = ::Signer; + type Signature = Signature; +} + impl offences::Trait for Runtime { type Event = Event; type IdentificationTuple = session::historical::IdentificationTuple; diff --git a/runtime/westend/src/lib.rs b/runtime/westend/src/lib.rs index f14cfe88c71f..20883ff30036 100644 --- a/runtime/westend/src/lib.rs +++ b/runtime/westend/src/lib.rs @@ -30,6 +30,7 @@ use runtime_common::{attestations, parachains, registrar, impls::{CurrencyToVoteHandler, TargetedFeeAdjustment, ToAuthor}, BlockHashCount, MaximumBlockWeight, AvailableBlockRatio, MaximumBlockLength, }; +use sp_core::sr25519; use sp_runtime::{ create_runtime_str, generic, impl_opaque_keys, ApplyExtrinsicResult, KeyTypeId, Perbill, Perquintill, RuntimeDebug, @@ -40,7 +41,7 @@ use sp_runtime::{ curve::PiecewiseLinear, traits::{ BlakeTwo256, Block as BlockT, SignedExtension, OpaqueKeys, ConvertInto, IdentityLookup, - DispatchInfoOf, StaticLookup, Extrinsic as ExtrinsicT, SaturatedConversion, + DispatchInfoOf, StaticLookup, Extrinsic as ExtrinsicT, SaturatedConversion, Verify, }, }; #[cfg(feature = "runtime-benchmarks")] @@ -57,9 +58,8 @@ use frame_support::{ }; use im_online::sr25519::AuthorityId as ImOnlineId; use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId; -use system::offchain::TransactionSubmitter; use transaction_payment_rpc_runtime_api::RuntimeDispatchInfo; -use session::{historical as session_historical}; +use session::historical as session_historical; #[cfg(feature = "std")] pub use staking::StakerStatus; @@ -313,7 +313,6 @@ impl staking::Trait for Runtime { type NextNewSession = Session; type ElectionLookahead = ElectionLookahead; type Call = Call; - type SubmitTransaction = TransactionSubmitter<(), Runtime, UncheckedExtrinsic>; type UnsignedPriority = StakingUnsignedPriority; } @@ -337,8 +336,6 @@ impl offences::Trait for Runtime { impl authority_discovery::Trait for Runtime {} -type SubmitTransaction = TransactionSubmitter; - parameter_types! { pub const SessionDuration: BlockNumber = EPOCH_DURATION_IN_BLOCKS as _; } @@ -351,8 +348,6 @@ parameter_types! { impl im_online::Trait for Runtime { type AuthorityId = ImOnlineId; type Event = Event; - type Call = Call; - type SubmitTransaction = SubmitTransaction; type ReportUnresponsiveness = Offences; type SessionDuration = SessionDuration; type UnsignedPriority = StakingUnsignedPriority; @@ -392,6 +387,7 @@ parameter_types! { } impl parachains::Trait for Runtime { + type AuthorityId = FishermanAuthorityId; type Origin = Origin; type Call = Call; type ParachainCurrency = Balances; @@ -411,17 +407,22 @@ impl parachains::Trait for Runtime { type IdentificationTuple = )>>::IdentificationTuple; type ReportOffence = Offences; type BlockHashConversion = sp_runtime::traits::Identity; - type SubmitSignedTransaction = TransactionSubmitter; } -impl system::offchain::CreateTransaction for Runtime { - type Public = ::Signer; - type Signature = primitives::Signature; +pub struct FishermanAuthorityId; +impl system::offchain::AppCrypto<::Signer, Signature> for FishermanAuthorityId { + type RuntimeAppPublic = parachain::FishermanId; + type GenericSignature = sr25519::Signature; + type GenericPublic = sr25519::Public; +} - fn create_transaction>( - call: ::Call, - public: Self::Public, - account: ::AccountId, +impl system::offchain::CreateSignedTransaction for Runtime where + Call: From, +{ + fn create_transaction>( + call: Call, + public: ::Signer, + account: AccountId, nonce: ::Index, ) -> Option<(Call, ::SignaturePayload)> { let period = BlockHashCount::get() @@ -445,14 +446,28 @@ impl system::offchain::CreateTransaction for Runtim parachains::ValidateDoubleVoteReports::::new(), ); let raw_payload = SignedPayload::new(call, extra).map_err(|e| { - debug::warn!("Unable to create signed payload: {:?}", e) + debug::warn!("Unable to create signed payload: {:?}", e); }).ok()?; - let signature = TSigner::sign(public, &raw_payload)?; + let signature = raw_payload.using_encoded(|payload| { + C::sign(payload, public) + })?; let (call, extra, _) = raw_payload.deconstruct(); Some((call, (account, signature, extra))) } } +impl system::offchain::SigningTypes for Runtime { + type Public = ::Signer; + type Signature = Signature; +} + +impl system::offchain::SendTransactionTypes for Runtime where + Call: From, +{ + type OverarchingCall = Call; + type Extrinsic = UncheckedExtrinsic; +} + parameter_types! { pub const ParathreadDeposit: Balance = 5 * DOLLARS; pub const QueueSize: usize = 2;