From d054fabbc1aac6c8c358443b7b86de66360bacc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Mon, 28 Sep 2020 20:23:08 +0200 Subject: [PATCH] Bump Substrate to v2.0.0 (#382) * Change script to update versions. * Bump versions. * Address remainders. * cargo fmt --all * Fix tests. * Whitelist BlueOak license * Fix benchmarks? --- bridges/bin/millau-runtime/Cargo.toml | 106 +++++++++--------- bridges/bin/millau-runtime/src/lib.rs | 20 ++-- bridges/bin/node/Cargo.toml | 94 ++++++++-------- bridges/bin/node/src/cli.rs | 34 +++++- bridges/bin/node/src/command.rs | 63 ++++++++++- bridges/bin/rialto-runtime/Cargo.toml | 106 +++++++++--------- bridges/bin/rialto-runtime/src/lib.rs | 33 +++--- bridges/modules/call-dispatch/Cargo.toml | 24 ++-- bridges/modules/call-dispatch/src/lib.rs | 2 +- bridges/modules/currency-exchange/Cargo.toml | 28 ++--- bridges/modules/currency-exchange/src/lib.rs | 2 +- .../ethereum-contract/builtin/Cargo.toml | 20 ++-- bridges/modules/ethereum/Cargo.toml | 24 ++-- bridges/modules/ethereum/src/mock.rs | 2 +- bridges/modules/message-lane/Cargo.toml | 24 ++-- bridges/modules/message-lane/rpc/Cargo.toml | 34 +++--- bridges/modules/message-lane/src/mock.rs | 2 +- .../modules/shift-session-manager/Cargo.toml | 28 ++--- .../modules/shift-session-manager/src/lib.rs | 2 +- bridges/modules/substrate/Cargo.toml | 40 +++---- bridges/modules/substrate/src/mock.rs | 2 +- .../primitives/currency-exchange/Cargo.toml | 12 +- bridges/primitives/ethereum-poa/Cargo.toml | 16 +-- bridges/primitives/message-lane/Cargo.toml | 12 +- bridges/primitives/runtime/Cargo.toml | 4 +- bridges/primitives/substrate/Cargo.toml | 8 +- bridges/relays/ethereum/Cargo.toml | 28 ++--- bridges/relays/utils/Cargo.toml | 2 +- 28 files changed, 428 insertions(+), 344 deletions(-) diff --git a/bridges/bin/millau-runtime/Cargo.toml b/bridges/bin/millau-runtime/Cargo.toml index a6b2cb3f1d32..e766a58d790f 100644 --- a/bridges/bin/millau-runtime/Cargo.toml +++ b/bridges/bin/millau-runtime/Cargo.toml @@ -23,14 +23,14 @@ features = ["derive"] # Substrate Dependencies [dependencies.pallet-aura] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.pallet-balances] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" @@ -45,26 +45,26 @@ default-features = false path = "../../modules/message-lane" [dependencies.frame-support] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.pallet-grandpa] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.pallet-randomness-collective-flip] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.pallet-sudo] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" @@ -74,124 +74,124 @@ default-features = false path = "../../modules/shift-session-manager" [dependencies.pallet-session] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.frame-system] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.frame-system-rpc-runtime-api] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.pallet-timestamp] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.pallet-transaction-payment] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.frame-executive] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" # Substrate Primitives [dependencies.sp-api] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-block-builder] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-consensus-aura] -version = "0.8.0-rc6" -tag = 'v2.0.0-rc6' +version = "0.8.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-core] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-inherents] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-io] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-offchain] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-runtime] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-session] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-staking] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-std] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-transaction-pool] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-version] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.frame-benchmarking] optional = true -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" @@ -209,7 +209,7 @@ path = "../../primitives/message-lane" [build-dependencies.wasm-builder-runner] version = "1.0.5" -tag = 'v2.0.0-rc6' +tag = 'v2.0.0' package = "substrate-wasm-builder-runner" git = "https://github.com/paritytech/substrate/" diff --git a/bridges/bin/millau-runtime/src/lib.rs b/bridges/bin/millau-runtime/src/lib.rs index 93ae91ea9c04..394cb0d1c82b 100644 --- a/bridges/bin/millau-runtime/src/lib.rs +++ b/bridges/bin/millau-runtime/src/lib.rs @@ -200,16 +200,15 @@ impl frame_system::Trait for Runtime { type AvailableBlockRatio = AvailableBlockRatio; /// Version of the runtime. type Version = Version; - /// Converts a module to the index of the module in `construct_runtime!`. - /// - /// This type is being generated by `construct_runtime!`. - type ModuleToIndex = ModuleToIndex; + /// Provides information about the pallet setup in the runtime. + type PalletInfo = PalletInfo; /// What to do if a new account is created. type OnNewAccount = (); /// What to do if an account is fully reaped from the system. type OnKilledAccount = (); /// The data to be stored in an account. type AccountData = pallet_balances::AccountData; + // TODO: update me (https://github.com/paritytech/parity-bridges-common/issues/78) /// Weight information for the extrinsics of this pallet. type SystemWeightInfo = (); } @@ -230,15 +229,13 @@ impl pallet_bridge_call_dispatch::Trait for Runtime { impl pallet_grandpa::Trait for Runtime { type Event = Event; type Call = Call; - type KeyOwnerProofSystem = (); - type KeyOwnerProof = >::Proof; - type KeyOwnerIdentification = >::IdentificationTuple; - type HandleEquivocation = (); + // TODO: update me (https://github.com/paritytech/parity-bridges-common/issues/78) + type WeightInfo = (); } parameter_types! { @@ -250,11 +247,15 @@ impl pallet_timestamp::Trait for Runtime { type Moment = u64; type OnTimestampSet = Aura; type MinimumPeriod = MinimumPeriod; + // TODO: update me (https://github.com/paritytech/parity-bridges-common/issues/78) type WeightInfo = (); } parameter_types! { pub const ExistentialDeposit: u128 = 500; + // For weight estimation, we assume that the most locks on an individual account will be 50. + // This number may need to be adjusted in the future if this assumption no longer holds true. + pub const MaxLocks: u32 = 50; } impl pallet_balances::Trait for Runtime { @@ -265,7 +266,9 @@ impl pallet_balances::Trait for Runtime { type DustRemoval = (); type ExistentialDeposit = ExistentialDeposit; type AccountStore = System; + // TODO: update me (https://github.com/paritytech/parity-bridges-common/issues/78) type WeightInfo = (); + type MaxLocks = MaxLocks; } parameter_types! { @@ -301,6 +304,7 @@ impl pallet_session::Trait for Runtime { type SessionHandler = ::KeyTypeIdProviders; type Keys = SessionKeys; type DisabledValidatorsThreshold = (); + // TODO: update me (https://github.com/paritytech/parity-bridges-common/issues/78) type WeightInfo = (); } diff --git a/bridges/bin/node/Cargo.toml b/bridges/bin/node/Cargo.toml index 7f6015d639c9..72770e0db7c3 100644 --- a/bridges/bin/node/Cargo.toml +++ b/bridges/bin/node/Cargo.toml @@ -10,7 +10,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0" [dependencies] futures = "0.3.5" -jsonrpc-core = "14.2.0" +jsonrpc-core = "15.0.0" log = "0.4.11" pallet-message-lane-rpc = { version = "0.1.0", path = "../../modules/message-lane/rpc" } structopt = "0.3.17" @@ -30,110 +30,110 @@ default-features = false features = ["std"] [dependencies.sc-cli] -version = "0.8.0-rc6" -tag = 'v2.0.0-rc6' +version = "0.8.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sc-rpc] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sp-core] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sc-executor] -version = "0.8.0-rc6" -tag = 'v2.0.0-rc6' +version = "0.8.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sc-service] -version = "0.8.0-rc6" -tag = 'v2.0.0-rc6' +version = "0.8.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sp-inherents] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sc-transaction-pool] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sp-transaction-pool] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sc-network] -version = "0.8.0-rc6" -tag = 'v2.0.0-rc6' +version = "0.8.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sc-consensus-aura] -version = "0.8.0-rc6" -tag = 'v2.0.0-rc6' +version = "0.8.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sp-consensus-aura] -version = "0.8.0-rc6" -tag = 'v2.0.0-rc6' +version = "0.8.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sp-consensus] -version = "0.8.0-rc6" -tag = 'v2.0.0-rc6' +version = "0.8.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sc-finality-grandpa] package = "sc-finality-grandpa" -version = "0.8.0-rc6" -tag = 'v2.0.0-rc6' +version = "0.8.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.grandpa-primitives] package = "sp-finality-grandpa" -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sc-consensus] -version = "0.8.0-rc6" -tag = 'v2.0.0-rc6' +version = "0.8.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sc-client-api] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sp-runtime] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sc-basic-authorship] -version = "0.8.0-rc6" -tag = 'v2.0.0-rc6' +version = "0.8.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.substrate-frame-rpc-system] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.frame-benchmarking] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.frame-benchmarking-cli] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [build-dependencies] @@ -141,13 +141,13 @@ vergen = "3.1.0" [build-dependencies.build-script-utils] package = "substrate-build-script-utils" -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [build-dependencies.frame-benchmarking-cli] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [features] diff --git a/bridges/bin/node/src/cli.rs b/bridges/bin/node/src/cli.rs index a7399fa716df..1149c4f910c8 100644 --- a/bridges/bin/node/src/cli.rs +++ b/bridges/bin/node/src/cli.rs @@ -29,9 +29,37 @@ pub struct Cli { /// Possible subcommands of the main binary. #[derive(Debug, StructOpt)] pub enum Subcommand { - /// A set of base subcommands handled by `sc_cli`. - #[structopt(flatten)] - Base(sc_cli::Subcommand), + /// Key management cli utilities + Key(sc_cli::KeySubcommand), + /// Verify a signature for a message, provided on STDIN, with a given (public or secret) key. + Verify(sc_cli::VerifyCmd), + + /// Generate a seed that provides a vanity address. + Vanity(sc_cli::VanityCmd), + + /// Sign a message, with a given (secret) key. + Sign(sc_cli::SignCmd), + + /// Build a chain specification. + BuildSpec(sc_cli::BuildSpecCmd), + + /// Validate blocks. + CheckBlock(sc_cli::CheckBlockCmd), + + /// Export blocks. + ExportBlocks(sc_cli::ExportBlocksCmd), + + /// Export the state of a given block into a chain spec. + ExportState(sc_cli::ExportStateCmd), + + /// Import blocks. + ImportBlocks(sc_cli::ImportBlocksCmd), + + /// Remove the whole chain. + PurgeChain(sc_cli::PurgeChainCmd), + + /// Revert the chain to a previous state. + Revert(sc_cli::RevertCmd), /// The custom benchmark subcommmand benchmarking runtime pallets. #[structopt(name = "benchmark", about = "Benchmark runtime pallets.")] diff --git a/bridges/bin/node/src/command.rs b/bridges/bin/node/src/command.rs index f216c3c42d1c..7a7417c9a5f1 100644 --- a/bridges/bin/node/src/command.rs +++ b/bridges/bin/node/src/command.rs @@ -100,17 +100,70 @@ pub fn run() -> sc_cli::Result<()> { Ok(()) } } - Some(Subcommand::Base(subcommand)) => { - let runner = cli.create_runner(subcommand)?; - runner.run_subcommand(subcommand, |config| { + Some(Subcommand::Key(cmd)) => cmd.run(), + Some(Subcommand::Sign(cmd)) => cmd.run(), + Some(Subcommand::Verify(cmd)) => cmd.run(), + Some(Subcommand::Vanity(cmd)) => cmd.run(), + Some(Subcommand::BuildSpec(cmd)) => { + let runner = cli.create_runner(cmd)?; + runner.sync_run(|config| cmd.run(config.chain_spec, config.network)) + } + Some(Subcommand::CheckBlock(cmd)) => { + let runner = cli.create_runner(cmd)?; + runner.async_run(|config| { let PartialComponents { client, - backend, task_manager, import_queue, .. } = new_partial(&config)?; - Ok((client, backend, import_queue, task_manager)) + Ok((cmd.run(client, import_queue), task_manager)) + }) + } + Some(Subcommand::ExportBlocks(cmd)) => { + let runner = cli.create_runner(cmd)?; + runner.async_run(|config| { + let PartialComponents { + client, task_manager, .. + } = new_partial(&config)?; + Ok((cmd.run(client, config.database), task_manager)) + }) + } + Some(Subcommand::ExportState(cmd)) => { + let runner = cli.create_runner(cmd)?; + runner.async_run(|config| { + let PartialComponents { + client, task_manager, .. + } = new_partial(&config)?; + Ok((cmd.run(client, config.chain_spec), task_manager)) + }) + } + Some(Subcommand::ImportBlocks(cmd)) => { + let runner = cli.create_runner(cmd)?; + runner.async_run(|config| { + let PartialComponents { + client, + task_manager, + import_queue, + .. + } = new_partial(&config)?; + Ok((cmd.run(client, import_queue), task_manager)) + }) + } + Some(Subcommand::PurgeChain(cmd)) => { + let runner = cli.create_runner(cmd)?; + runner.sync_run(|config| cmd.run(config.database)) + } + Some(Subcommand::Revert(cmd)) => { + let runner = cli.create_runner(cmd)?; + runner.async_run(|config| { + let PartialComponents { + client, + task_manager, + backend, + .. + } = new_partial(&config)?; + Ok((cmd.run(client, backend), task_manager)) }) } None => { diff --git a/bridges/bin/rialto-runtime/Cargo.toml b/bridges/bin/rialto-runtime/Cargo.toml index 101477915342..5ea4c9fc9023 100644 --- a/bridges/bin/rialto-runtime/Cargo.toml +++ b/bridges/bin/rialto-runtime/Cargo.toml @@ -29,14 +29,14 @@ features = ["derive"] # Substrate Dependencies [dependencies.pallet-aura] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.pallet-balances] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" @@ -61,20 +61,20 @@ default-features = false path = "../../modules/message-lane" [dependencies.frame-support] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.pallet-grandpa] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.pallet-randomness-collective-flip] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" @@ -84,130 +84,130 @@ default-features = false path = "../../modules/shift-session-manager" [dependencies.pallet-sudo] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.pallet-session] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.frame-system] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.frame-system-rpc-runtime-api] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.pallet-timestamp] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.pallet-transaction-payment] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.frame-executive] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" # Substrate Primitives [dependencies.sp-api] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-block-builder] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-consensus-aura] -version = "0.8.0-rc6" -tag = 'v2.0.0-rc6' +version = "0.8.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-core] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-inherents] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-io] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-offchain] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-runtime] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-session] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-staking] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-std] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-transaction-pool] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-version] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.frame-benchmarking] optional = true -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" @@ -246,7 +246,7 @@ path = "../../primitives/ethereum-poa" [build-dependencies.wasm-builder-runner] version = "1.0.5" -tag = 'v2.0.0-rc6' +tag = 'v2.0.0' package = "substrate-wasm-builder-runner" git = "https://github.com/paritytech/substrate/" diff --git a/bridges/bin/rialto-runtime/src/lib.rs b/bridges/bin/rialto-runtime/src/lib.rs index 2ef00bf9e160..6b207dbdb095 100644 --- a/bridges/bin/rialto-runtime/src/lib.rs +++ b/bridges/bin/rialto-runtime/src/lib.rs @@ -209,16 +209,15 @@ impl frame_system::Trait for Runtime { type AvailableBlockRatio = AvailableBlockRatio; /// Version of the runtime. type Version = Version; - /// Converts a module to the index of the module in `construct_runtime!`. - /// - /// This type is being generated by `construct_runtime!`. - type ModuleToIndex = ModuleToIndex; + /// Provides information about the pallet setup in the runtime. + type PalletInfo = PalletInfo; /// What to do if a new account is created. type OnNewAccount = (); /// What to do if an account is fully reaped from the system. type OnKilledAccount = (); /// The data to be stored in an account. type AccountData = pallet_balances::AccountData; + // TODO: update me (https://github.com/paritytech/parity-bridges-common/issues/78) /// Weight information for the extrinsics of this pallet. type SystemWeightInfo = (); } @@ -336,15 +335,13 @@ impl bp_currency_exchange::DepositInto for DepositInto { impl pallet_grandpa::Trait for Runtime { type Event = Event; type Call = Call; - type KeyOwnerProofSystem = (); - type KeyOwnerProof = >::Proof; - type KeyOwnerIdentification = >::IdentificationTuple; - type HandleEquivocation = (); + // TODO: update me (https://github.com/paritytech/parity-bridges-common/issues/78) + type WeightInfo = (); } parameter_types! { @@ -356,11 +353,15 @@ impl pallet_timestamp::Trait for Runtime { type Moment = u64; type OnTimestampSet = Aura; type MinimumPeriod = MinimumPeriod; + // TODO: update me (https://github.com/paritytech/parity-bridges-common/issues/78) type WeightInfo = (); } parameter_types! { pub const ExistentialDeposit: u128 = 500; + // For weight estimation, we assume that the most locks on an individual account will be 50. + // This number may need to be adjusted in the future if this assumption no longer holds true. + pub const MaxLocks: u32 = 50; } impl pallet_balances::Trait for Runtime { @@ -371,7 +372,9 @@ impl pallet_balances::Trait for Runtime { type DustRemoval = (); type ExistentialDeposit = ExistentialDeposit; type AccountStore = System; + // TODO: update me (https://github.com/paritytech/parity-bridges-common/issues/78) type WeightInfo = (); + type MaxLocks = MaxLocks; } parameter_types! { @@ -407,6 +410,7 @@ impl pallet_session::Trait for Runtime { type SessionHandler = ::KeyTypeIdProviders; type Keys = SessionKeys; type DisabledValidatorsThreshold = (); + // TODO: update me (https://github.com/paritytech/parity-bridges-common/issues/78) type WeightInfo = (); } @@ -642,16 +646,9 @@ impl_runtime_apis! { #[cfg(feature = "runtime-benchmarks")] impl frame_benchmarking::Benchmark for Runtime { fn dispatch_benchmark( - pallet: Vec, - benchmark: Vec, - lowest_range_values: Vec, - highest_range_values: Vec, - steps: Vec, - repeat: u32, - extra: bool, + config: frame_benchmarking::BenchmarkConfig, ) -> Result, sp_runtime::RuntimeString> { use frame_benchmarking::{Benchmarking, BenchmarkBatch, TrackedStorageKey, add_benchmark}; - let mut batches = Vec::::new(); let whitelist: Vec = vec![ // Block Number hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef702a5c1b19ab7a04f536c519aca4983ac").to_vec().into(), @@ -664,7 +661,9 @@ impl_runtime_apis! { // Caller 0 Account hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef7b99d880ec681799c0cf30e8886371da946c154ffd9992e395af90b5b13cc6f295c77033fce8a9045824a6690bbf99c6db269502f0a8d1d2a008542d5690a0749").to_vec().into(), ]; - let params = (&pallet, &benchmark, &lowest_range_values, &highest_range_values, &steps, repeat, &whitelist, extra); + + let mut batches = Vec::::new(); + let params = (&config, &whitelist); use pallet_bridge_currency_exchange::benchmarking::{ Module as BridgeCurrencyExchangeBench, diff --git a/bridges/modules/call-dispatch/Cargo.toml b/bridges/modules/call-dispatch/Cargo.toml index 838f0aa6a9b2..83e86ba0e0b6 100644 --- a/bridges/modules/call-dispatch/Cargo.toml +++ b/bridges/modules/call-dispatch/Cargo.toml @@ -13,38 +13,38 @@ bp-runtime = { path = "../../primitives/runtime", default-features = false } # Substrate Based Dependencies [dependencies.frame-support] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.frame-system] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-std] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-runtime] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-core] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-io] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" diff --git a/bridges/modules/call-dispatch/src/lib.rs b/bridges/modules/call-dispatch/src/lib.rs index 1524c0d22380..6adac937e5cd 100644 --- a/bridges/modules/call-dispatch/src/lib.rs +++ b/bridges/modules/call-dispatch/src/lib.rs @@ -363,7 +363,7 @@ mod tests { type AvailableBlockRatio = AvailableBlockRatio; type MaximumBlockLength = MaximumBlockLength; type Version = (); - type ModuleToIndex = (); + type PalletInfo = (); type AccountData = (); type OnNewAccount = (); type OnKilledAccount = (); diff --git a/bridges/modules/currency-exchange/Cargo.toml b/bridges/modules/currency-exchange/Cargo.toml index 09bb1c25cba9..5e3c980447c9 100644 --- a/bridges/modules/currency-exchange/Cargo.toml +++ b/bridges/modules/currency-exchange/Cargo.toml @@ -14,44 +14,44 @@ serde = { version = "1.0", optional = true } # Substrate Based Dependencies [dependencies.frame-support] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.frame-system] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-std] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-runtime] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.frame-benchmarking] optional = true -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dev-dependencies.sp-core] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [dev-dependencies.sp-io] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [features] diff --git a/bridges/modules/currency-exchange/src/lib.rs b/bridges/modules/currency-exchange/src/lib.rs index aace287eb583..036f3b564c10 100644 --- a/bridges/modules/currency-exchange/src/lib.rs +++ b/bridges/modules/currency-exchange/src/lib.rs @@ -345,7 +345,7 @@ mod tests { type AvailableBlockRatio = AvailableBlockRatio; type MaximumBlockLength = MaximumBlockLength; type Version = (); - type ModuleToIndex = (); + type PalletInfo = (); type AccountData = (); type OnNewAccount = (); type OnKilledAccount = (); diff --git a/bridges/modules/ethereum-contract/builtin/Cargo.toml b/bridges/modules/ethereum-contract/builtin/Cargo.toml index 3911c2cd1067..5ade9e6deb15 100644 --- a/bridges/modules/ethereum-contract/builtin/Cargo.toml +++ b/bridges/modules/ethereum-contract/builtin/Cargo.toml @@ -21,29 +21,29 @@ log = "0.4.11" rialto-runtime = { path = "../../../bin/rialto-runtime" } [dependencies.sp-blockchain] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [dependencies.sp-finality-grandpa] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [dependencies.sp-runtime] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [dependencies.sc-finality-grandpa] -version = "0.8.0-rc6" -tag = 'v2.0.0-rc6' +version = "0.8.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [dev-dependencies] hex = "0.4" [dev-dependencies.sp-core] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" diff --git a/bridges/modules/ethereum/Cargo.toml b/bridges/modules/ethereum/Cargo.toml index affabfe7976f..7c66ad26f74c 100644 --- a/bridges/modules/ethereum/Cargo.toml +++ b/bridges/modules/ethereum/Cargo.toml @@ -14,39 +14,39 @@ serde = { version = "1.0", optional = true } # Substrate Based Dependencies [dependencies.frame-support] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.frame-system] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-std] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-io] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-runtime] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.frame-benchmarking] optional = true -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" diff --git a/bridges/modules/ethereum/src/mock.rs b/bridges/modules/ethereum/src/mock.rs index db84afacc496..2c46c7c5407d 100644 --- a/bridges/modules/ethereum/src/mock.rs +++ b/bridges/modules/ethereum/src/mock.rs @@ -64,7 +64,7 @@ impl frame_system::Trait for TestRuntime { type AvailableBlockRatio = AvailableBlockRatio; type MaximumBlockLength = MaximumBlockLength; type Version = (); - type ModuleToIndex = (); + type PalletInfo = (); type AccountData = (); type OnNewAccount = (); type OnKilledAccount = (); diff --git a/bridges/modules/message-lane/Cargo.toml b/bridges/modules/message-lane/Cargo.toml index d9a2c3c46bfa..c983b6cd99a5 100644 --- a/bridges/modules/message-lane/Cargo.toml +++ b/bridges/modules/message-lane/Cargo.toml @@ -15,36 +15,36 @@ codec = { package = "parity-scale-codec", version = "1.3.1", default-features = # Substrate Based Dependencies [dependencies.frame-support] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.frame-system] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-std] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dev-dependencies.sp-core] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [dev-dependencies.sp-io] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [dev-dependencies.sp-runtime] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [features] diff --git a/bridges/modules/message-lane/rpc/Cargo.toml b/bridges/modules/message-lane/rpc/Cargo.toml index 83c41604ad1e..843cfe6e24fe 100644 --- a/bridges/modules/message-lane/rpc/Cargo.toml +++ b/bridges/modules/message-lane/rpc/Cargo.toml @@ -11,46 +11,46 @@ bp-runtime = { path = "../../../primitives/runtime" } bp-message-lane = { path = "../../../primitives/message-lane" } derive_more = "0.99.2" futures = { version = "0.3.5", features = ["compat"] } -jsonrpc-core = "14.2.0" -jsonrpc-core-client = "14.2.0" -jsonrpc-derive = "14.2.1" +jsonrpc-core = "15.0.0" +jsonrpc-core-client = "15.0.0" +jsonrpc-derive = "15.0.0" # Substrate Based Dependencies [dependencies.sc-client-api] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [dependencies.sp-blockchain] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [dependencies.sp-core] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [dependencies.sp-runtime] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [dependencies.sp-state-machine] -version = "0.8.0-rc6" -tag = 'v2.0.0-rc6' +version = "0.8.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [dependencies.sp-trie] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [dev-dependencies] async-std = "1.6.2" [dev-dependencies.substrate-test-runtime-client] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" diff --git a/bridges/modules/message-lane/src/mock.rs b/bridges/modules/message-lane/src/mock.rs index a682d6705b55..b8b71c5db19b 100644 --- a/bridges/modules/message-lane/src/mock.rs +++ b/bridges/modules/message-lane/src/mock.rs @@ -78,7 +78,7 @@ impl frame_system::Trait for TestRuntime { type AvailableBlockRatio = AvailableBlockRatio; type MaximumBlockLength = MaximumBlockLength; type Version = (); - type ModuleToIndex = (); + type PalletInfo = (); type AccountData = (); type OnNewAccount = (); type OnKilledAccount = (); diff --git a/bridges/modules/shift-session-manager/Cargo.toml b/bridges/modules/shift-session-manager/Cargo.toml index 706733e73fee..7684157380b6 100644 --- a/bridges/modules/shift-session-manager/Cargo.toml +++ b/bridges/modules/shift-session-manager/Cargo.toml @@ -12,44 +12,44 @@ codec = { package = "parity-scale-codec", version = "1.3.1", default-features = # Substrate Based Dependencies [dependencies.frame-support] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.frame-system] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.pallet-session] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-core] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-runtime] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-staking] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-std] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" diff --git a/bridges/modules/shift-session-manager/src/lib.rs b/bridges/modules/shift-session-manager/src/lib.rs index d2ca15d21599..918c2513f41b 100644 --- a/bridges/modules/shift-session-manager/src/lib.rs +++ b/bridges/modules/shift-session-manager/src/lib.rs @@ -132,7 +132,7 @@ mod tests { type AvailableBlockRatio = AvailableBlockRatio; type MaximumBlockLength = MaximumBlockLength; type Version = (); - type ModuleToIndex = (); + type PalletInfo = (); type AccountData = (); type OnNewAccount = (); type OnKilledAccount = (); diff --git a/bridges/modules/substrate/Cargo.toml b/bridges/modules/substrate/Cargo.toml index 6fb935e54831..2d16493a360e 100644 --- a/bridges/modules/substrate/Cargo.toml +++ b/bridges/modules/substrate/Cargo.toml @@ -23,62 +23,62 @@ features = ["derive"] # Substrate Based Dependencies [dependencies.frame-support] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.frame-system] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-finality-grandpa] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-runtime] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-std] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dependencies.sp-trie] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" # Dev Dependencies [dev-dependencies.sp-io] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [dev-dependencies.sp-core] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dev-dependencies.sp-keyring] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" [dev-dependencies.sp-state-machine] -version = "0.8.0-rc6" -tag = 'v2.0.0-rc6' +version = "0.8.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" diff --git a/bridges/modules/substrate/src/mock.rs b/bridges/modules/substrate/src/mock.rs index 303f1ad61db5..8cedca4ac429 100644 --- a/bridges/modules/substrate/src/mock.rs +++ b/bridges/modules/substrate/src/mock.rs @@ -60,7 +60,7 @@ impl frame_system::Trait for TestRuntime { type AvailableBlockRatio = AvailableBlockRatio; type MaximumBlockLength = MaximumBlockLength; type Version = (); - type ModuleToIndex = (); + type PalletInfo = (); type AccountData = (); type OnNewAccount = (); type OnKilledAccount = (); diff --git a/bridges/primitives/currency-exchange/Cargo.toml b/bridges/primitives/currency-exchange/Cargo.toml index a958f83c4372..6f70280f16dc 100644 --- a/bridges/primitives/currency-exchange/Cargo.toml +++ b/bridges/primitives/currency-exchange/Cargo.toml @@ -12,20 +12,20 @@ codec = { package = "parity-scale-codec", version = "1.3.4", default-features = # Substrate Based Dependencies [dependencies.sp-api] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate.git" [dependencies.sp-std] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate.git" [dependencies.frame-support] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate.git" diff --git a/bridges/primitives/ethereum-poa/Cargo.toml b/bridges/primitives/ethereum-poa/Cargo.toml index 95b6fa213219..6ff4c0481a3c 100644 --- a/bridges/primitives/ethereum-poa/Cargo.toml +++ b/bridges/primitives/ethereum-poa/Cargo.toml @@ -23,26 +23,26 @@ plain_hasher = { version = "0.2.2", default-features = false } # Substrate Based Dependencies [dependencies.sp-api] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate.git" [dependencies.sp-std] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate.git" [dependencies.sp-runtime] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate.git" [dependencies.sp-io] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate.git" diff --git a/bridges/primitives/message-lane/Cargo.toml b/bridges/primitives/message-lane/Cargo.toml index 538a5d6fb72a..c551a11627cb 100644 --- a/bridges/primitives/message-lane/Cargo.toml +++ b/bridges/primitives/message-lane/Cargo.toml @@ -12,20 +12,20 @@ codec = { package = "parity-scale-codec", version = "1.3.1", default-features = # Substrate Based Dependencies [dependencies.frame-support] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate.git" [dependencies.sp-api] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate.git" [dependencies.sp-std] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate.git" diff --git a/bridges/primitives/runtime/Cargo.toml b/bridges/primitives/runtime/Cargo.toml index a0c8cb035cac..249e49f151e9 100644 --- a/bridges/primitives/runtime/Cargo.toml +++ b/bridges/primitives/runtime/Cargo.toml @@ -12,8 +12,8 @@ codec = { package = "parity-scale-codec", version = "1.3.1", default-features = # Substrate Based Dependencies [dependencies.sp-io] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" diff --git a/bridges/primitives/substrate/Cargo.toml b/bridges/primitives/substrate/Cargo.toml index c452b767a8ab..3756bd7bf804 100644 --- a/bridges/primitives/substrate/Cargo.toml +++ b/bridges/primitives/substrate/Cargo.toml @@ -11,14 +11,14 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0" serde = { version = "1.0", optional = true } [dependencies.sp-finality-grandpa] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate.git" [dependencies.sp-runtime] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' default-features = false git = "https://github.com/paritytech/substrate/" diff --git a/bridges/relays/ethereum/Cargo.toml b/bridges/relays/ethereum/Cargo.toml index ab6872dabf20..08f1b147aae6 100644 --- a/bridges/relays/ethereum/Cargo.toml +++ b/bridges/relays/ethereum/Cargo.toml @@ -40,38 +40,38 @@ features = ["http"] # Substrate Based Dependencies [dependencies.frame-system] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate/" [dependencies.pallet-transaction-payment] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.node-primitives] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sp-core] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sp-keyring] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.sp-runtime] -version = "2.0.0-rc6" -tag = 'v2.0.0-rc6' +version = "2.0.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.substrate-prometheus-endpoint] -version = "0.8.0-rc6" -tag = 'v2.0.0-rc6' +version = "0.8.0" +tag = 'v2.0.0' git = "https://github.com/paritytech/substrate.git" [dependencies.rialto-runtime] diff --git a/bridges/relays/utils/Cargo.toml b/bridges/relays/utils/Cargo.toml index ffebd82a51ae..029fdd4547d0 100644 --- a/bridges/relays/utils/Cargo.toml +++ b/bridges/relays/utils/Cargo.toml @@ -13,4 +13,4 @@ log = "0.4.11" sysinfo = "0.15" # Substrate dependencies -substrate-prometheus-endpoint = { version = "0.8.0-rc6", git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0-rc6" } +substrate-prometheus-endpoint = { version = "0.8.0", git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0" }