Get substrate dependencies from crates io (#387)

* get Substrate dependencies from crates.io

* removing unused dependencies

* cargo fmt --all

* remove commented dependencies

* remove commented dependencies again

* try to fix compilation
This commit is contained in:
Svyatoslav Nikolsky
2020-09-30 15:26:13 +03:00
committed by Bastian Köcher
parent f43e405b5e
commit 07a514e9f7
26 changed files with 281 additions and 1170 deletions
+37 -209
View File
@@ -8,211 +8,45 @@ repository = "https://github.com/paritytech/parity-bridges-common/"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0" license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false, features = ["derive"] }
serde = { version = "1.0.115", optional = true, features = ["derive"] }
# Bridge dependencies
bp-message-lane = { path = "../../primitives/message-lane", default-features = false }
bp-millau = { path = "../../primitives/millau", default-features = false } bp-millau = { path = "../../primitives/millau", default-features = false }
hex-literal = "0.3" pallet-bridge-call-dispatch = { path = "../../modules/call-dispatch", default-features = false }
pallet-message-lane = { path = "../../modules/message-lane", default-features = false }
[dependencies.codec] pallet-shift-session-manager = { path = "../../modules/shift-session-manager", default-features = false }
package = "parity-scale-codec"
version = "1.3.1"
default-features = false
features = ["derive"]
[dependencies.serde]
version = "1.0.115"
optional = true
features = ["derive"]
# Substrate Dependencies # Substrate Dependencies
[dependencies.pallet-aura]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.pallet-balances] frame-executive = { version = "2.0", default-features = false }
version = "2.0.0" frame-support = { version = "2.0", default-features = false }
tag = 'v2.0.0' frame-system = { version = "2.0", default-features = false }
default-features = false frame-system-rpc-runtime-api = { version = "2.0", default-features = false }
git = "https://github.com/paritytech/substrate/" pallet-aura = { version = "2.0", default-features = false }
pallet-balances = { version = "2.0", default-features = false }
pallet-grandpa = { version = "2.0", default-features = false }
pallet-randomness-collective-flip = { version = "2.0", default-features = false }
pallet-session = { version = "2.0", default-features = false }
pallet-sudo = { version = "2.0", default-features = false }
pallet-timestamp = { version = "2.0", default-features = false }
pallet-transaction-payment = { version = "2.0", default-features = false }
sp-api = { version = "2.0", default-features = false }
sp-block-builder = { version = "2.0", default-features = false }
sp-consensus-aura = { version = "0.8", default-features = false }
sp-core = { version = "2.0", default-features = false }
sp-inherents = { version = "2.0", default-features = false }
sp-offchain = { version = "2.0", default-features = false }
sp-runtime = { version = "2.0", default-features = false }
sp-session = { version = "2.0", default-features = false }
sp-std = { version = "2.0", default-features = false }
sp-transaction-pool = { version = "2.0", default-features = false }
sp-version = { version = "2.0", default-features = false }
[dependencies.pallet-bridge-call-dispatch] [build-dependencies]
version = "0.1.0" wasm-builder-runner = { package = "substrate-wasm-builder-runner", version = "1.0.5" }
default-features = false
path = "../../modules/call-dispatch"
[dependencies.pallet-message-lane]
version = "0.1.0"
default-features = false
path = "../../modules/message-lane"
[dependencies.frame-support]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.pallet-grandpa]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.pallet-sudo]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.pallet-shift-session-manager]
version = "0.1.0"
default-features = false
path = "../../modules/shift-session-manager"
[dependencies.pallet-session]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.frame-system]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.pallet-timestamp]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.frame-executive]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-block-builder]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-core]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-inherents]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-io]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-offchain]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-runtime]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-session]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-staking]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-std]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-version]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.bp-header-chain]
version = "0.1.0"
default-features = false
path = "../../primitives/header-chain"
[dependencies.bp-message-lane]
version = "0.1.0"
default-features = false
path = "../../primitives/message-lane"
# Dev Dependencies
[build-dependencies.wasm-builder-runner]
version = "1.0.5"
tag = 'v2.0.0'
package = "substrate-wasm-builder-runner"
git = "https://github.com/paritytech/substrate/"
[features] [features]
default = ["std"] default = ["std"]
@@ -220,17 +54,18 @@ std = [
"bp-message-lane/std", "bp-message-lane/std",
"bp-millau/std", "bp-millau/std",
"codec/std", "codec/std",
"frame-benchmarking/std",
"frame-executive/std", "frame-executive/std",
"frame-support/std", "frame-support/std",
"frame-system-rpc-runtime-api/std",
"frame-system/std", "frame-system/std",
"frame-system-rpc-runtime-api/std",
"pallet-aura/std", "pallet-aura/std",
"pallet-balances/std", "pallet-balances/std",
"pallet-bridge-call-dispatch/std", "pallet-bridge-call-dispatch/std",
"pallet-grandpa/std", "pallet-grandpa/std",
"pallet-message-lane/std",
"pallet-randomness-collective-flip/std", "pallet-randomness-collective-flip/std",
"pallet-shift-session-manager/std", "pallet-shift-session-manager/std",
"pallet-session/std",
"pallet-sudo/std", "pallet-sudo/std",
"pallet-timestamp/std", "pallet-timestamp/std",
"pallet-transaction-payment/std", "pallet-transaction-payment/std",
@@ -240,7 +75,6 @@ std = [
"sp-consensus-aura/std", "sp-consensus-aura/std",
"sp-core/std", "sp-core/std",
"sp-inherents/std", "sp-inherents/std",
"sp-io/std",
"sp-offchain/std", "sp-offchain/std",
"sp-runtime/std", "sp-runtime/std",
"sp-session/std", "sp-session/std",
@@ -248,9 +82,3 @@ std = [
"sp-transaction-pool/std", "sp-transaction-pool/std",
"sp-version/std", "sp-version/std",
] ]
runtime-benchmarks = [
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
+26 -131
View File
@@ -9,147 +9,42 @@ repository = "https://github.com/paritytech/parity-bridges-common/"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0" license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
futures = "0.3.5"
jsonrpc-core = "15.0.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" structopt = "0.3.17"
[dependencies.millau-runtime] # Bridge dependencies
optional = true
version = "0.1.0"
path = "../millau-runtime"
default-features = false
features = ["std"]
[dependencies.rialto-runtime] millau-runtime = { path = "../millau-runtime", optional = true }
optional = true pallet-message-lane-rpc = { path = "../../modules/message-lane/rpc" }
version = "0.1.0" rialto-runtime = { path = "../rialto-runtime", optional = true }
path = "../rialto-runtime"
default-features = false
features = ["std"]
[dependencies.sc-cli] # Substrate Dependencies
version = "0.8.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.sc-rpc] frame-benchmarking = "2.0"
version = "2.0.0" frame-benchmarking-cli = "2.0"
tag = 'v2.0.0' sc-basic-authorship = "0.8"
git = "https://github.com/paritytech/substrate.git" sc-cli = "0.8"
sc-client-api = "2.0"
[dependencies.sp-core] sc-consensus = "0.8"
version = "2.0.0" sc-consensus-aura = "0.8"
tag = 'v2.0.0' sc-executor = "0.8"
git = "https://github.com/paritytech/substrate.git" sc-finality-grandpa = "0.8"
sc-service = "0.8"
[dependencies.sc-executor] sc-rpc = "2.0"
version = "0.8.0" sc-transaction-pool = "2.0"
tag = 'v2.0.0' sp-consensus = "0.8"
git = "https://github.com/paritytech/substrate.git" sp-consensus-aura = "0.8"
sp-core = "2.0"
[dependencies.sc-service] sp-inherents = "2.0"
version = "0.8.0" sp-finality-grandpa = "2.0"
tag = 'v2.0.0' sp-runtime = "2.0"
git = "https://github.com/paritytech/substrate.git" substrate-frame-rpc-system = "2.0"
[dependencies.sp-inherents]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.sc-transaction-pool]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.sp-transaction-pool]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.sc-network]
version = "0.8.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.sc-consensus-aura]
version = "0.8.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.sp-consensus-aura]
version = "0.8.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.sp-consensus]
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"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.grandpa-primitives]
package = "sp-finality-grandpa"
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.sc-consensus]
version = "0.8.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.sc-client-api]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.sp-runtime]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.sc-basic-authorship]
version = "0.8.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.substrate-frame-rpc-system]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.frame-benchmarking]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.frame-benchmarking-cli]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[build-dependencies] [build-dependencies]
build-script-utils = { package = "substrate-build-script-utils", version = "2.0" }
frame-benchmarking-cli = "2.0"
vergen = "3.1.0" vergen = "3.1.0"
[build-dependencies.build-script-utils]
package = "substrate-build-script-utils"
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[build-dependencies.frame-benchmarking-cli]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[features] [features]
default = [] default = []
millau = [ millau = [
+1 -1
View File
@@ -14,13 +14,13 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Parity Bridges Common. If not, see <http://www.gnu.org/licenses/>. // along with Parity Bridges Common. If not, see <http://www.gnu.org/licenses/>.
use grandpa_primitives::AuthorityId as GrandpaId;
use rialto_runtime::{ use rialto_runtime::{
AccountId, AuraConfig, BalancesConfig, BridgeKovanConfig, BridgeRialtoConfig, GenesisConfig, GrandpaConfig, AccountId, AuraConfig, BalancesConfig, BridgeKovanConfig, BridgeRialtoConfig, GenesisConfig, GrandpaConfig,
SessionConfig, SessionKeys, Signature, SudoConfig, SystemConfig, WASM_BINARY, SessionConfig, SessionKeys, Signature, SudoConfig, SystemConfig, WASM_BINARY,
}; };
use sp_consensus_aura::sr25519::AuthorityId as AuraId; use sp_consensus_aura::sr25519::AuthorityId as AuraId;
use sp_core::{sr25519, Pair, Public}; use sp_core::{sr25519, Pair, Public};
use sp_finality_grandpa::AuthorityId as GrandpaId;
use sp_runtime::traits::{IdentifyAccount, Verify}; use sp_runtime::traits::{IdentifyAccount, Verify};
/// Specialized `ChainSpec`. This is a specialization of the general Substrate ChainSpec type. /// Specialized `ChainSpec`. This is a specialization of the general Substrate ChainSpec type.
+48 -237
View File
@@ -8,255 +8,65 @@ repository = "https://github.com/paritytech/parity-bridges-common/"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0" license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false, features = ["derive"] }
hex-literal = "0.3"
libsecp256k1 = { version = "0.3.4", optional = true, default-features = false, features = ["hmac"] }
serde = { version = "1.0.115", optional = true, features = ["derive"] }
# Bridge dependencies
bp-currency-exchange = { path = "../../primitives/currency-exchange", default-features = false }
bp-eth-poa = { path = "../../primitives/ethereum-poa", default-features = false }
bp-header-chain = { path = "../../primitives/header-chain", default-features = false }
bp-message-lane = { path = "../../primitives/message-lane", default-features = false }
bp-millau = { path = "../../primitives/millau", default-features = false } bp-millau = { path = "../../primitives/millau", default-features = false }
bp-rialto = { path = "../../primitives/rialto", default-features = false } bp-rialto = { path = "../../primitives/rialto", default-features = false }
hex-literal = "0.3" pallet-bridge-eth-poa = { path = "../../modules/ethereum", default-features = false }
pallet-bridge-call-dispatch = { path = "../../modules/call-dispatch", default-features = false }
[dependencies.codec] pallet-bridge-currency-exchange = { path = "../../modules/currency-exchange", default-features = false }
package = "parity-scale-codec" pallet-message-lane = { path = "../../modules/message-lane", default-features = false }
version = "1.3.1" pallet-shift-session-manager = { path = "../../modules/shift-session-manager", default-features = false }
default-features = false
features = ["derive"]
[dependencies.libsecp256k1]
optional = true
version = "0.3.4"
default-features = false
features = ["hmac"]
[dependencies.serde]
version = "1.0.116"
optional = true
features = ["derive"]
# Substrate Dependencies # Substrate Dependencies
[dependencies.pallet-aura]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.pallet-balances] frame-benchmarking = { version = "2.0", default-features = false, optional = true }
version = "2.0.0" frame-executive = { version = "2.0", default-features = false }
tag = 'v2.0.0' frame-support = { version = "2.0", default-features = false }
default-features = false frame-system = { version = "2.0", default-features = false }
git = "https://github.com/paritytech/substrate/" frame-system-rpc-runtime-api = { version = "2.0", default-features = false }
pallet-aura = { version = "2.0", default-features = false }
pallet-balances = { version = "2.0", default-features = false }
pallet-grandpa = { version = "2.0", default-features = false }
pallet-randomness-collective-flip = { version = "2.0", default-features = false }
pallet-session = { version = "2.0", default-features = false }
pallet-sudo = { version = "2.0", default-features = false }
pallet-timestamp = { version = "2.0", default-features = false }
pallet-transaction-payment = { version = "2.0", default-features = false }
sp-api = { version = "2.0", default-features = false }
sp-block-builder = { version = "2.0", default-features = false }
sp-consensus-aura = { version = "0.8", default-features = false }
sp-core = { version = "2.0", default-features = false }
sp-inherents = { version = "2.0", default-features = false }
sp-io = { version = "2.0", default-features = false }
sp-offchain = { version = "2.0", default-features = false }
sp-runtime = { version = "2.0", default-features = false }
sp-session = { version = "2.0", default-features = false }
sp-std = { version = "2.0", default-features = false }
sp-transaction-pool = { version = "2.0", default-features = false }
sp-version = { version = "2.0", default-features = false }
[dependencies.pallet-bridge-eth-poa] [dev-dependencies]
version = "0.1.0" libsecp256k1 = { version = "0.3.4", features = ["hmac"] }
default-features = false
path = "../../modules/ethereum"
[dependencies.pallet-bridge-call-dispatch] [build-dependencies]
version = "0.1.0" wasm-builder-runner = { package = "substrate-wasm-builder-runner", version = "1.0.5" }
default-features = false
path = "../../modules/call-dispatch"
[dependencies.pallet-bridge-currency-exchange]
version = "0.1.0"
default-features = false
path = "../../modules/currency-exchange"
[dependencies.pallet-message-lane]
version = "0.1.0"
default-features = false
path = "../../modules/message-lane"
[dependencies.frame-support]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.pallet-grandpa]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.pallet-shift-session-manager]
version = "0.1.0"
default-features = false
path = "../../modules/shift-session-manager"
[dependencies.pallet-sudo]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.pallet-session]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.frame-system]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.pallet-timestamp]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.frame-executive]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-block-builder]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-core]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-inherents]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-io]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-offchain]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-runtime]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-session]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-staking]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-std]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-version]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.bp-currency-exchange]
version = "0.1.0"
default-features = false
path = "../../primitives/currency-exchange"
[dependencies.bp-eth-poa]
version = "0.1.0"
default-features = false
path = "../../primitives/ethereum-poa"
[dependencies.bp-header-chain]
version = "0.1.0"
default-features = false
path = "../../primitives/header-chain"
[dependencies.bp-message-lane]
version = "0.1.0"
default-features = false
path = "../../primitives/message-lane"
# Dev Dependencies
[dev-dependencies.libsecp256k1]
version = "0.3.4"
default-features = false
features = ["hmac"]
[dev-dependencies.bp-eth-poa]
version = "0.1.0"
default-features = false
features = ["std"]
path = "../../primitives/ethereum-poa"
[build-dependencies.wasm-builder-runner]
version = "1.0.5"
tag = 'v2.0.0'
package = "substrate-wasm-builder-runner"
git = "https://github.com/paritytech/substrate/"
[features] [features]
default = ["std"] default = ["std"]
std = [ std = [
"bp-currency-exchange/std", "bp-currency-exchange/std",
"bp-eth-poa/std", "bp-eth-poa/std",
"bp-header-chain/std",
"bp-message-lane/std", "bp-message-lane/std",
"bp-millau/std", "bp-millau/std",
"bp-rialto/std", "bp-rialto/std",
@@ -268,10 +78,11 @@ std = [
"frame-system/std", "frame-system/std",
"pallet-aura/std", "pallet-aura/std",
"pallet-balances/std", "pallet-balances/std",
"pallet-bridge-eth-poa/std",
"pallet-bridge-call-dispatch/std", "pallet-bridge-call-dispatch/std",
"pallet-bridge-currency-exchange/std", "pallet-bridge-currency-exchange/std",
"pallet-bridge-eth-poa/std",
"pallet-grandpa/std", "pallet-grandpa/std",
"pallet-message-lane/std",
"pallet-randomness-collective-flip/std", "pallet-randomness-collective-flip/std",
"pallet-shift-session-manager/std", "pallet-shift-session-manager/std",
"pallet-sudo/std", "pallet-sudo/std",
+11 -36
View File
@@ -8,45 +8,22 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false } codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false }
# Bridge dependencies
bp-message-dispatch = { path = "../../primitives/message-dispatch", default-features = false } bp-message-dispatch = { path = "../../primitives/message-dispatch", default-features = false }
bp-runtime = { path = "../../primitives/runtime", default-features = false } bp-runtime = { path = "../../primitives/runtime", default-features = false }
# Substrate Based Dependencies # Substrate Dependencies
[dependencies.frame-support]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.frame-system] frame-support = { version = "2.0", default-features = false }
version = "2.0.0" frame-system = { version = "2.0", default-features = false }
tag = 'v2.0.0' sp-std = { version = "2.0", default-features = false }
default-features = false sp-runtime = { version = "2.0", default-features = false }
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-std] [dev-dependencies]
version = "2.0.0" sp-core = "2.0"
tag = 'v2.0.0' sp-io = "2.0"
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-runtime]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-core]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-io]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[features] [features]
default = ["std"] default = ["std"]
@@ -55,8 +32,6 @@ std = [
"bp-runtime/std", "bp-runtime/std",
"frame-support/std", "frame-support/std",
"frame-system/std", "frame-system/std",
"sp-core/std",
"sp-io/std",
"sp-runtime/std", "sp-runtime/std",
"sp-std/std", "sp-std/std",
] ]
+17 -40
View File
@@ -7,57 +7,31 @@ edition = "2018"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0" license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
bp-currency-exchange = { path = "../../primitives/currency-exchange", default-features = false }
bp-header-chain = { path = "../../primitives/header-chain", default-features = false }
codec = { package = "parity-scale-codec", version = "1.3.4", default-features = false } codec = { package = "parity-scale-codec", version = "1.3.4", default-features = false }
serde = { version = "1.0", optional = true } serde = { version = "1.0", optional = true }
# Substrate Based Dependencies # Bridge dependencies
[dependencies.frame-support]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.frame-system] bp-currency-exchange = { path = "../../primitives/currency-exchange", default-features = false }
version = "2.0.0" bp-header-chain = { path = "../../primitives/header-chain", default-features = false }
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-std] # Substrate Dependencies
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-runtime] frame-benchmarking = { version = "2.0", default-features = false, optional = true }
version = "2.0.0" frame-support = { version = "2.0", default-features = false }
tag = 'v2.0.0' frame-system = { version = "2.0", default-features = false }
default-features = false sp-runtime = { version = "2.0", default-features = false }
git = "https://github.com/paritytech/substrate/" sp-std = { version = "2.0", default-features = false, optional = true }
[dependencies.frame-benchmarking] [dev-dependencies]
optional = true sp-core = "2.0"
version = "2.0.0" sp-io = "2.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dev-dependencies.sp-core]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"
[dev-dependencies.sp-io]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"
[features] [features]
default = ["std"] default = ["std"]
std = [ std = [
"bp-currency-exchange/std", "bp-currency-exchange/std",
"bp-header-chain/std",
"codec/std", "codec/std",
"frame-benchmarking/std", "frame-benchmarking/std",
"frame-support/std", "frame-support/std",
@@ -66,4 +40,7 @@ std = [
"sp-runtime/std", "sp-runtime/std",
"sp-std/std", "sp-std/std",
] ]
runtime-benchmarks = ["frame-benchmarking"] runtime-benchmarks = [
"frame-benchmarking",
"sp-std",
]
@@ -7,9 +7,6 @@ edition = "2018"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0" license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
# General dependencies
codec = { package = "parity-scale-codec", version = "1.3.4" } codec = { package = "parity-scale-codec", version = "1.3.4" }
ethereum-types = "0.9.2" ethereum-types = "0.9.2"
finality-grandpa = "0.12.3" finality-grandpa = "0.12.3"
@@ -20,30 +17,12 @@ log = "0.4.11"
rialto-runtime = { path = "../../../bin/rialto-runtime" } rialto-runtime = { path = "../../../bin/rialto-runtime" }
[dependencies.sp-blockchain] # Substrate Dependencies
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-finality-grandpa] sc-finality-grandpa = "0.8"
version = "2.0.0" sp-blockchain = "2.0"
tag = 'v2.0.0' sp-finality-grandpa = "2.0"
git = "https://github.com/paritytech/substrate/" sp-runtime = "2.0"
[dependencies.sp-runtime]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"
[dependencies.sc-finality-grandpa]
version = "0.8.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"
[dev-dependencies] [dev-dependencies]
hex = "0.4" sp-core = "2.0"
[dev-dependencies.sp-core]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"
+10 -44
View File
@@ -7,58 +7,24 @@ edition = "2018"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0" license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
bp-eth-poa = { path = "../../primitives/ethereum-poa", default-features = false }
codec = { package = "parity-scale-codec", version = "1.3.4", default-features = false } codec = { package = "parity-scale-codec", version = "1.3.4", default-features = false }
hex-literal = "0.3" libsecp256k1 = { version = "0.3.4", default-features = false, features = ["hmac"], optional = true }
serde = { version = "1.0", optional = true } serde = { version = "1.0", optional = true }
# Substrate Based Dependencies # Bridge dependencies
[dependencies.frame-support]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.frame-system] bp-eth-poa = { path = "../../primitives/ethereum-poa", default-features = false }
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-std] # Substrate Dependencies
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-io] frame-benchmarking = { version = "2.0", default-features = false, optional = true }
version = "2.0.0" frame-support = { version = "2.0", default-features = false }
tag = 'v2.0.0' frame-system = { version = "2.0", default-features = false }
default-features = false sp-io = { version = "2.0", default-features = false }
git = "https://github.com/paritytech/substrate/" sp-runtime = { version = "2.0", default-features = false }
sp-std = { version = "2.0", default-features = false }
[dependencies.sp-runtime]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.libsecp256k1]
optional = true
version = "0.3.4"
default-features = false
features = ["hmac"]
# Dev Dependencies
[dev-dependencies] [dev-dependencies]
bp-eth-poa = { path = "../../primitives/ethereum-poa", features = ["std"] }
libsecp256k1 = { version = "0.3.4", features = ["hmac"] } libsecp256k1 = { version = "0.3.4", features = ["hmac"] }
[features] [features]
+11 -35
View File
@@ -7,54 +7,30 @@ edition = "2018"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0" license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
bp-message-dispatch = { path = "../../primitives/message-dispatch", default-features = false }
bp-message-lane = { path = "../../primitives/message-lane", default-features = false }
bp-runtime = { path = "../../primitives/runtime", default-features = false }
codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false } codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false }
# Substrate Based Dependencies # Bridge dependencies
[dependencies.frame-support] bp-message-lane = { path = "../../primitives/message-lane", default-features = false }
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.frame-system] # Substrate Dependencies
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-std] frame-support = { version = "2.0", default-features = false }
version = "2.0.0" frame-system = { version = "2.0", default-features = false }
tag = 'v2.0.0' sp-runtime = { version = "2.0", default-features = false }
default-features = false sp-std = { version = "2.0", default-features = false }
git = "https://github.com/paritytech/substrate/"
[dev-dependencies.sp-core] [dev-dependencies]
version = "2.0.0" sp-core = "2.0"
tag = 'v2.0.0' sp-io = "2.0"
git = "https://github.com/paritytech/substrate/"
[dev-dependencies.sp-io]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"
[dev-dependencies.sp-runtime]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"
[features] [features]
default = ["std"] default = ["std"]
std = [ std = [
"bp-message-dispatch/std",
"bp-message-lane/std", "bp-message-lane/std",
"bp-runtime/std",
"codec/std", "codec/std",
"frame-support/std", "frame-support/std",
"frame-system/std", "frame-system/std",
"sp-runtime/std",
"sp-std/std", "sp-std/std",
] ]
+10 -38
View File
@@ -7,50 +7,22 @@ edition = "2018"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0" license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
bp-runtime = { path = "../../../primitives/runtime" }
bp-message-lane = { path = "../../../primitives/message-lane" }
derive_more = "0.99.2" derive_more = "0.99.2"
futures = { version = "0.3.5", features = ["compat"] } futures = { version = "0.3.5", features = ["compat"] }
jsonrpc-core = "15.0.0" jsonrpc-core = "15.0.0"
jsonrpc-core-client = "15.0.0" jsonrpc-core-client = "15.0.0"
jsonrpc-derive = "15.0.0" jsonrpc-derive = "15.0.0"
# Substrate Based Dependencies # Bridge dependencies
[dependencies.sc-client-api] bp-runtime = { path = "../../../primitives/runtime" }
version = "2.0.0" bp-message-lane = { path = "../../../primitives/message-lane" }
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-blockchain] # Substrate Dependencies
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-core] sc-client-api = "2.0"
version = "2.0.0" sp-blockchain = "2.0"
tag = 'v2.0.0' sp-core = "2.0"
git = "https://github.com/paritytech/substrate/" sp-runtime = "2.0"
sp-state-machine = "0.8"
[dependencies.sp-runtime] sp-trie = "2.0"
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-state-machine]
version = "0.8.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-trie]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"
[dev-dependencies]
async-std = "1.6.5"
[dev-dependencies.substrate-test-runtime-client]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"
@@ -175,75 +175,3 @@ fn unwrap_or_best<Block: BlockT>(backend: &impl BackendT<Block>, block: Option<B
fn blockchain_err(err: BlockchainError) -> Error { fn blockchain_err(err: BlockchainError) -> Error {
Error::Client(Box::new(err)) Error::Client(Box::new(err))
} }
#[cfg(test)]
mod tests {
use super::*;
use sp_core::Blake2Hasher;
use sp_runtime::{codec::Decode, traits::Header as HeaderT};
use substrate_test_runtime_client::{
runtime::Block, Backend, DefaultTestClientBuilderExt, TestClientBuilder, TestClientBuilderExt,
};
const TEST_INSTANCE: InstanceId = [0, 0, 0, 1];
const TEST_LANE: LaneId = [0, 0, 0, 1];
fn test_key() -> StorageKey {
StorageKey(sp_core::storage::well_known_keys::CODE.to_vec())
}
struct TestRuntimeAdapter;
impl Runtime for TestRuntimeAdapter {
fn message_key(&self, instance: &InstanceId, _lane: &LaneId, _nonce: MessageNonce) -> Option<StorageKey> {
if *instance == TEST_INSTANCE {
Some(test_key())
} else {
None
}
}
fn inbound_lane_data_key(&self, instance: &InstanceId, _lane: &LaneId) -> Option<StorageKey> {
if *instance == TEST_INSTANCE {
Some(test_key())
} else {
None
}
}
}
fn test_handler() -> MessageLaneRpcHandler<Block, Backend, TestRuntimeAdapter> {
let builder = TestClientBuilder::new();
let (_, backend) = builder.build_with_backend();
MessageLaneRpcHandler::new(backend, Arc::new(TestRuntimeAdapter))
}
#[test]
fn storage_proof_is_actually_generated() {
// the only thing we actually care here is that RPC actually generates storage proof
// that can be verified from runtime
// proof is generated by RPC
let handler = test_handler();
let proof = handler
.prove_messages(TEST_INSTANCE, TEST_LANE, 1, 3, None)
.wait()
.unwrap();
// proof is then relayed + checked by runtime (sp_trie supports no_std)
// (storage root is known to underlying bridge pallet)
let root = *handler
.backend
.blockchain()
.header(BlockId::Number(0))
.unwrap()
.unwrap()
.state_root();
let proof = StorageProof::new(Decode::decode(&mut &proof[..]).unwrap());
let trie_db = proof.into_memory_db::<Blake2Hasher>();
let checked_storage_value =
sp_trie::read_trie_value::<sp_trie::Layout<_>, _>(&trie_db, &root, &test_key().0).unwrap();
assert!(checked_storage_value.is_some());
}
}
@@ -9,49 +9,17 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false } codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false }
# Substrate Based Dependencies # Substrate Dependencies
[dependencies.frame-support] frame-support = { version = "2.0", default-features = false }
version = "2.0.0" frame-system = { version = "2.0", default-features = false }
tag = 'v2.0.0' pallet-session = { version = "2.0", default-features = false }
default-features = false sp-staking = { version = "2.0", default-features = false }
git = "https://github.com/paritytech/substrate/" sp-std = { version = "2.0", default-features = false }
[dependencies.frame-system] [dev-dependencies]
version = "2.0.0" sp-core = "2.0"
tag = 'v2.0.0' sp-runtime = "2.0"
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.pallet-session]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-core]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-runtime]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-staking]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-std]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[features] [features]
default = ["std"] default = ["std"]
@@ -60,8 +28,6 @@ std = [
"frame-support/std", "frame-support/std",
"frame-system/std", "frame-system/std",
"pallet-session/std", "pallet-session/std",
"sp-core/std",
"sp-runtime/std",
"sp-staking/std", "sp-staking/std",
"sp-std/std", "sp-std/std",
] ]
+15 -68
View File
@@ -8,79 +8,26 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
bp-header-chain = { path = "../../primitives/header-chain", default-features = false } codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false }
finality-grandpa = { version = "0.12.3", default-features = false } finality-grandpa = { version = "0.12.3", default-features = false }
hash-db = { version = "0.15.2", default-features = false } hash-db = { version = "0.15.2", default-features = false }
serde = { version = "1.0", optional = true }
num-traits = { version = "0.2", default-features = false } num-traits = { version = "0.2", default-features = false }
serde = { version = "1.0", optional = true }
[dependencies.codec] # Substrate Dependencies
package = "parity-scale-codec"
version = "1.3.1"
default-features = false
features = ["derive"]
# Substrate Based Dependencies frame-support = { version = "2.0", default-features = false }
frame-system = { version = "2.0", default-features = false }
sp-finality-grandpa = { version = "2.0", default-features = false }
sp-runtime = { version = "2.0", default-features = false }
sp-std = { version = "2.0", default-features = false }
sp-trie = { version = "2.0", default-features = false }
[dependencies.frame-support] [dev-dependencies]
version = "2.0.0" sp-core = "2.0"
tag = 'v2.0.0' sp-io = "2.0"
default-features = false sp-keyring = "2.0"
git = "https://github.com/paritytech/substrate/" sp-state-machine = "0.8"
[dependencies.frame-system]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-runtime]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-std]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.sp-trie]
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"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"
[dev-dependencies.sp-core]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dev-dependencies.sp-state-machine]
version = "0.8.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[features] [features]
default = ["std"] default = ["std"]
@@ -89,11 +36,11 @@ std = [
"finality-grandpa/std", "finality-grandpa/std",
"frame-support/std", "frame-support/std",
"frame-system/std", "frame-system/std",
"hash-db/std",
"num-traits/std", "num-traits/std",
"serde", "serde",
"sp-finality-grandpa/std", "sp-finality-grandpa/std",
"sp-runtime/std", "sp-runtime/std",
"sp-std/std", "sp-std/std",
"sp-trie/std", "sp-trie/std",
"sp-io/std",
] ]
@@ -9,31 +9,17 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
codec = { package = "parity-scale-codec", version = "1.3.4", default-features = false } codec = { package = "parity-scale-codec", version = "1.3.4", default-features = false }
# Substrate Based Dependencies # Substrate Dependencies
[dependencies.sp-api] frame-support = { version = "2.0", default-features = false }
version = "2.0.0" sp-api = { version = "2.0", default-features = false }
tag = 'v2.0.0' sp-std = { version = "2.0", default-features = false }
default-features = false
git = "https://github.com/paritytech/substrate.git"
[dependencies.sp-std]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate.git"
[features] [features]
default = ["std"] default = ["std"]
std = [ std = [
"codec/std", "codec/std",
"frame-support/std",
"sp-api/std", "sp-api/std",
"sp-std/std", "sp-std/std",
"frame-support/std",
] ]
+25 -46
View File
@@ -7,49 +7,27 @@ edition = "2018"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0" license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
serde = { version = "1.0", optional = true } codec = { package = "parity-scale-codec", version = "1.3.4", default-features = false }
serde-big-array = { version = "0.2", optional = true }
ethbloom = { version = "0.8", default-features = false } ethbloom = { version = "0.8", default-features = false }
parity-bytes = { version = "0.1", default-features = false }
primitive-types = { version = "0.7", default-features = false, features = ["codec", "rlp"] }
fixed-hash = { version = "0.5", default-features = false } fixed-hash = { version = "0.5", default-features = false }
hash-db = { version = "0.15.2", default-features = false }
impl-rlp = { version = "0.2", default-features = false } impl-rlp = { version = "0.2", default-features = false }
impl-serde = { version = "0.2.3", optional = true } impl-serde = { version = "0.2.3", optional = true }
codec = { package = "parity-scale-codec", version = "1.3.4", default-features = false } libsecp256k1 = { version = "0.3.4", default-features = false, features = ["hmac"] }
rlp = { version = "0.4", default-features = false } parity-bytes = { version = "0.1", default-features = false }
hash-db = { version = "0.15.2", default-features = false }
triehash = { version = "0.8.2", default-features = false }
plain_hasher = { version = "0.2.2", default-features = false } plain_hasher = { version = "0.2.2", default-features = false }
primitive-types = { version = "0.7", default-features = false, features = ["codec", "rlp"] }
rlp = { version = "0.4", default-features = false }
serde = { version = "1.0", optional = true }
serde-big-array = { version = "0.2", optional = true }
triehash = { version = "0.8.2", default-features = false }
# Substrate Based Dependencies # Substrate Dependencies
[dependencies.sp-api]
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate.git"
[dependencies.sp-std] sp-api = { version = "2.0", default-features = false }
version = "2.0.0" sp-io = { version = "2.0", default-features = false }
tag = 'v2.0.0' sp-runtime = { version = "2.0", default-features = false }
default-features = false sp-std = { version = "2.0", default-features = false }
git = "https://github.com/paritytech/substrate.git"
[dependencies.sp-runtime]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate.git"
[dependencies.libsecp256k1]
version = "0.3.4"
default-features = false
features = ["hmac"]
[dev-dependencies] [dev-dependencies]
hex-literal = "0.2" hex-literal = "0.2"
@@ -57,22 +35,23 @@ hex-literal = "0.2"
[features] [features]
default = ["std"] default = ["std"]
std = [ std = [
"serde/std", "codec/std",
"serde-big-array",
"ethbloom/std", "ethbloom/std",
"parity-bytes/std",
"primitive-types/std",
"primitive-types/serde",
"fixed-hash/std", "fixed-hash/std",
"hash-db/std",
"impl-rlp/std", "impl-rlp/std",
"impl-serde", "impl-serde",
"codec/std", "libsecp256k1/std",
"parity-bytes/std",
"plain_hasher/std",
"primitive-types/std",
"primitive-types/serde",
"rlp/std", "rlp/std",
"sp-std/std", "serde/std",
"sp-runtime/std", "serde-big-array",
"sp-api/std", "sp-api/std",
"sp-io/std", "sp-io/std",
"hash-db/std", "sp-runtime/std",
"sp-std/std",
"triehash/std", "triehash/std",
"plain_hasher/std",
] ]
+4 -18
View File
@@ -9,25 +9,11 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false, features = ["derive"] } codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false, features = ["derive"] }
# Substrate Based Dependencies # Substrate Dependencies
[dependencies.frame-support] frame-support = { version = "2.0", default-features = false }
version = "2.0.0" sp-api = { version = "2.0", default-features = false }
tag = 'v2.0.0' sp-std = { version = "2.0", default-features = false }
default-features = false
git = "https://github.com/paritytech/substrate.git"
[dependencies.sp-api]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate.git"
[features] [features]
default = ["std"] default = ["std"]
+3 -3
View File
@@ -9,9 +9,9 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
# Substrate Based Dependencies # Substrate Based Dependencies
sp-api = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", tag = 'v2.0.0', default-features = false } sp-api = { version = "2.0", default-features = false }
sp-core = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", tag = 'v2.0.0', default-features = false } sp-core = { version = "2.0", default-features = false }
sp-std = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", tag = 'v2.0.0', default-features = false } sp-std = { version = "2.0", default-features = false }
[features] [features]
default = ["std"] default = ["std"]
+3 -3
View File
@@ -9,9 +9,9 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
# Substrate Based Dependencies # Substrate Based Dependencies
sp-api = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", tag = 'v2.0.0', default-features = false } sp-api = { version = "2.0.0", default-features = false }
sp-core = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", tag = 'v2.0.0', default-features = false } sp-core = { version = "2.0.0", default-features = false }
sp-std = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", tag = 'v2.0.0', default-features = false } sp-std = { version = "2.0.0", default-features = false }
[features] [features]
default = ["std"] default = ["std"]
+2 -6
View File
@@ -9,13 +9,9 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false } codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false }
# Substrate Based Dependencies # Substrate Dependencies
[dependencies.sp-io] sp-io = { version = "2.0", default-features = false }
version = "2.0.0"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[features] [features]
default = ["std"] default = ["std"]
-36
View File
@@ -1,36 +0,0 @@
[package]
name = "bp-substrate"
version = "0.1.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde = { version = "1.0", optional = true }
[dependencies.sp-finality-grandpa]
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"
tag = 'v2.0.0'
default-features = false
git = "https://github.com/paritytech/substrate/"
[dependencies.parity-scale-codec]
version = "1.3.1"
default-features = false
features = ["derive"]
[features]
default = ["std"]
std = [
"serde/std",
"sp-runtime/std",
"sp-finality-grandpa/std",
]
+18 -42
View File
@@ -9,64 +9,40 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
ansi_term = "0.12" ansi_term = "0.12"
async-std = "1.6.5" async-std = "1.6.5"
async-trait = "0.1.40" async-trait = "0.1.40"
bp-currency-exchange = { path = "../../primitives/currency-exchange" }
bp-eth-poa = { path = "../../primitives/ethereum-poa" }
clap = { version = "2.33.3", features = ["yaml"] } clap = { version = "2.33.3", features = ["yaml"] }
codec = { package = "parity-scale-codec", version = "1.3.4" } codec = { package = "parity-scale-codec", version = "1.3.4" }
env_logger = "0.7.0" env_logger = "0.7.0"
ethabi = "12.0" ethabi = "12.0"
ethabi-contract = "11.0" ethabi-contract = "11.0"
ethabi-derive = "12.0" ethabi-derive = "12.0"
exchange-relay = { path = "../exchange-relay" }
futures = "0.3.5" futures = "0.3.5"
headers-relay = { path = "../headers-relay" }
hex = "0.4" hex = "0.4"
hex-literal = "0.3" hex-literal = "0.3"
log = "0.4.11" log = "0.4.11"
messages-relay = { path = "../messages-relay" }
num-traits = "0.2" num-traits = "0.2"
parity-crypto = { version = "0.6", features = ["publickey"] } parity-crypto = { version = "0.6", features = ["publickey"] }
relay-ethereum-client = { path = "../ethereum-client" }
relay-rialto-client = { path = "../rialto-client" }
relay-substrate-client = { path = "../substrate-client" }
rialto-runtime = { path = "../../bin/rialto-runtime" }
relay-utils = { path = "../utils" }
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.57" serde_json = "1.0.57"
time = "0.2" time = "0.2"
# Substrate Based Dependencies # Bridge dependencies
[dependencies.frame-system]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate/"
[dependencies.pallet-transaction-payment] bp-currency-exchange = { path = "../../primitives/currency-exchange" }
version = "2.0.0" bp-eth-poa = { path = "../../primitives/ethereum-poa" }
tag = 'v2.0.0' exchange-relay = { path = "../exchange-relay" }
git = "https://github.com/paritytech/substrate.git" headers-relay = { path = "../headers-relay" }
messages-relay = { path = "../messages-relay" }
relay-ethereum-client = { path = "../ethereum-client" }
relay-rialto-client = { path = "../rialto-client" }
relay-substrate-client = { path = "../substrate-client" }
relay-utils = { path = "../utils" }
rialto-runtime = { path = "../../bin/rialto-runtime" }
[dependencies.node-primitives] # Substrate Dependencies
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.sp-core] frame-system = "2.0"
version = "2.0.0" pallet-transaction-payment = "2.0"
tag = 'v2.0.0' sp-core = "2.0"
git = "https://github.com/paritytech/substrate.git" sp-keyring = "2.0"
sp-runtime = "2.0"
[dependencies.sp-keyring] substrate-prometheus-endpoint = "0.8"
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.sp-runtime]
version = "2.0.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
[dependencies.substrate-prometheus-endpoint]
version = "0.8.0"
tag = 'v2.0.0'
git = "https://github.com/paritytech/substrate.git"
+2 -2
View File
@@ -17,5 +17,5 @@ millau-runtime = { path = "../../bin/millau-runtime" }
# Substrate Dependencies # Substrate Dependencies
frame-system = { version = "2.0.0", tag = 'v2.0.0', git = "https://github.com/paritytech/substrate.git" } frame-system = "2.0"
sp-runtime = { version = "2.0.0", tag = 'v2.0.0', git = "https://github.com/paritytech/substrate.git" } sp-runtime = "2.0"
+6 -6
View File
@@ -11,14 +11,14 @@ headers-relay = { path = "../headers-relay" }
relay-substrate-client = { path = "../substrate-client" } relay-substrate-client = { path = "../substrate-client" }
relay-utils = { path = "../utils" } relay-utils = { path = "../utils" }
# Supported Chains # Bridge dependencies
rialto-runtime = { path = "../../bin/rialto-runtime" } rialto-runtime = { path = "../../bin/rialto-runtime" }
# Substrate Dependencies # Substrate Dependencies
frame-system = { version = "2.0.0", tag = 'v2.0.0', git = "https://github.com/paritytech/substrate.git" } frame-system = "2.0"
pallet-transaction-payment = { version = "2.0.0", tag = 'v2.0.0', git = "https://github.com/paritytech/substrate.git" } pallet-transaction-payment = "2.0"
sp-core = { version = "2.0.0", tag = 'v2.0.0', git = "https://github.com/paritytech/substrate.git" } sp-core = "2.0"
sp-keyring = { version = "2.0.0", tag = 'v2.0.0', git = "https://github.com/paritytech/substrate.git" } sp-keyring = "2.0"
sp-runtime = { version = "2.0.0", tag = 'v2.0.0', git = "https://github.com/paritytech/substrate.git" } sp-runtime = "2.0"
+9 -6
View File
@@ -8,16 +8,19 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
[dependencies] [dependencies]
async-trait = "0.1.40" async-trait = "0.1.40"
codec = { package = "parity-scale-codec", version = "1.3.4" } codec = { package = "parity-scale-codec", version = "1.3.4" }
headers-relay = { path = "../headers-relay" }
jsonrpsee = { git = "https://github.com/svyatonik/jsonrpsee.git", branch = "shared-client-in-rpc-api", default-features = false, features = ["http"] } jsonrpsee = { git = "https://github.com/svyatonik/jsonrpsee.git", branch = "shared-client-in-rpc-api", default-features = false, features = ["http"] }
log = "0.4.11" log = "0.4.11"
num-traits = "0.2" num-traits = "0.2"
# Bridge dependencies
headers-relay = { path = "../headers-relay" }
relay-utils = { path = "../utils" } relay-utils = { path = "../utils" }
# Substrate Dependencies # Substrate Dependencies
frame-support = { version = "2.0.0", tag = 'v2.0.0', git = "https://github.com/paritytech/substrate.git" } frame-support = "2.0"
frame-system = { version = "2.0.0", tag = 'v2.0.0', git = "https://github.com/paritytech/substrate.git" } frame-system = "2.0"
sp-core = { version = "2.0.0", tag = 'v2.0.0', git = "https://github.com/paritytech/substrate.git" } sp-core = "2.0"
sp-runtime = { version = "2.0.0", tag = 'v2.0.0', git = "https://github.com/paritytech/substrate.git" } sp-runtime = "2.0"
sp-std = { version = "2.0.0", tag = 'v2.0.0', git = "https://github.com/paritytech/substrate.git" } sp-std = "2.0"
+1 -1
View File
@@ -18,5 +18,5 @@ paste = "1.0"
relay-millau-client = { path = "../millau-client" } relay-millau-client = { path = "../millau-client" }
relay-rialto-client = { path = "../rialto-client" } relay-rialto-client = { path = "../rialto-client" }
relay-substrate-client = { path = "../substrate-client" } relay-substrate-client = { path = "../substrate-client" }
sp-runtime = { version = "2.0.0", tag = 'v2.0.0', git = "https://github.com/paritytech/substrate.git" } sp-runtime = "2.0"
structopt = "0.3" structopt = "0.3"
+2 -1
View File
@@ -13,4 +13,5 @@ log = "0.4.11"
sysinfo = "0.15" sysinfo = "0.15"
# Substrate dependencies # Substrate dependencies
substrate-prometheus-endpoint = { version = "0.8.0", git = "https://github.com/paritytech/substrate.git", tag = "v2.0.0" }
substrate-prometheus-endpoint = "0.8"