mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-23 17:28:23 +00:00
upgrade to polkadot SDK 2503
This commit is contained in:
parent
e60363ecc3
commit
1fe1aa66b6
257 changed files with 2313 additions and 2419 deletions
3506
operator/Cargo.lock
generated
3506
operator/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -5,7 +5,7 @@ edition = "2021"
|
|||
homepage = "https://datahaven.xyz/"
|
||||
license = "GPL-3"
|
||||
repository = "https://github.com/datahavenxyz/datahaven"
|
||||
version = "0.26.0"
|
||||
version = "0.23.0"
|
||||
|
||||
[workspace]
|
||||
members = [
|
||||
|
|
@ -44,7 +44,6 @@ pallet-external-validators = { path = "./pallets/external-validators", default-f
|
|||
pallet-external-validators-rewards = { path = "./pallets/external-validators-rewards", default-features = false }
|
||||
pallet-outbound-commitment-store = { path = "./pallets/outbound-commitment-store", default-features = false }
|
||||
pallet-proxy-genesis-companion = { path = "./pallets/proxy-genesis-companion", default-features = false }
|
||||
pallet-grandpa-benchmarking = { path = "./pallets/grandpa-benchmarking", default-features = false }
|
||||
pallet-session-benchmarking = { path = "./pallets/session-benchmarking", default-features = false }
|
||||
|
||||
# Crates.io (wasm)
|
||||
|
|
@ -57,7 +56,7 @@ async-trait = { version = "0.1.42" }
|
|||
blake2-rfc = { version = "0.2.18", default-features = false }
|
||||
byte-slice-cast = { version = "1.2.1", default-features = false }
|
||||
clap = { version = "4.5.10", features = ["derive", "env"] }
|
||||
codec = { version = "3.6.12", default-features = false, package = "parity-scale-codec" }
|
||||
codec = { version = "3.7.4", default-features = false, package = "parity-scale-codec" }
|
||||
ethabi = { version = "2.0.0", default-features = false, package = "ethabi-decode" }
|
||||
ethbloom = { version = "0.14.1", default-features = false }
|
||||
ethereum-types = { version = "0.15.1", default-features = false }
|
||||
|
|
@ -83,7 +82,7 @@ openssl-sys = { version = "0.9", features = [
|
|||
"vendored",
|
||||
] } # This is just to set the "vendored" feature required for the crossbuild, so that OpenSSL builds from source
|
||||
parity-bytes = { version = "0.1.2", default-features = false }
|
||||
parity-scale-codec = { version = "3.0.0", default-features = false, features = [
|
||||
parity-scale-codec = { version = "3.7.4", default-features = false, features = [
|
||||
"derive",
|
||||
] }
|
||||
paste = "1.0.14"
|
||||
|
|
@ -108,117 +107,117 @@ tracing-subscriber = { version = "=0.3.19", features = [
|
|||
url = "2.2.2"
|
||||
|
||||
# Polkadot SDK
|
||||
cumulus-primitives-core = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
frame-benchmarking-cli = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
frame-executive = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
frame-metadata-hash-extension = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
frame-support = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
frame-support-test = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
frame-system = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
frame-system-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
frame-try-runtime = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
mmr-gadget = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
mmr-rpc = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-assets = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-authorship = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-babe = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-beefy = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-beefy-mmr = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-collator-selection = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-collective = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-conviction-voting = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-identity = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-im-online = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-message-queue = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-migrations = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-mmr = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-multisig = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-nfts = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-offences = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-parameters = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-preimage = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-proxy = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-referenda = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-safe-mode = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-scheduler = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-session = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-sudo = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-transaction-payment = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-treasury = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-tx-pause = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-utility = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-whitelist = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
pallet-xcm = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
parachain-info = { package = "staging-parachain-info", git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false }
|
||||
parachains-common = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2412-6", default-features = false }
|
||||
polkadot-parachain-primitives = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
polkadot-primitives = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
polkadot-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-basic-authorship = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-cli = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-client-api = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-consensus = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-consensus-babe = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-consensus-beefy = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-consensus-beefy-rpc = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-consensus-manual-seal = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-executor = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-network = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-network-sync = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-offchain = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-rpc = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-service = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-telemetry = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sc-transaction-pool-api = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-api = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-application-crypto = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-arithmetic = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-block-builder = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-blockchain = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-consensus = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-consensus-babe = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-consensus-beefy = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-consensus-slots = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-crypto-hashing = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-genesis-builder = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-inherents = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-io = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-keystore = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-mmr-primitives = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-offchain = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-runtime-interface = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-session = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-staking = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-std = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-storage = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-tracing = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-trie = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
sp-version = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
substrate-build-script-utils = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
substrate-frame-rpc-system = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
substrate-prometheus-endpoint = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
xcm = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false, package = "staging-xcm" }
|
||||
xcm-builder = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false, package = "staging-xcm-builder" }
|
||||
xcm-executor = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false, package = "staging-xcm-executor" }
|
||||
cumulus-primitives-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
frame-benchmarking-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
frame-executive = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
frame-metadata-hash-extension = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
frame-support = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
frame-support-test = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
frame-system = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
frame-system-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
frame-try-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
mmr-gadget = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
mmr-rpc = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-assets = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-authorship = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-babe = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-beefy = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-beefy-mmr = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-collator-selection = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2503", default-features = false }
|
||||
pallet-collective = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-conviction-voting = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-identity = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-im-online = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-message-queue = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-migrations = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-mmr = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-multisig = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-nfts = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-offences = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-parameters = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-preimage = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-proxy = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-referenda = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-safe-mode = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-scheduler = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-session = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-staking = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-sudo = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-transaction-payment = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-treasury = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-tx-pause = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-utility = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-whitelist = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
pallet-xcm = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
parachain-info = { package = "staging-parachain-info", git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2503", default-features = false }
|
||||
parachains-common = { git = "https://github.com/paritytech/polkadot-sdk.git", branch = "stable2503", default-features = false }
|
||||
polkadot-parachain-primitives = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
polkadot-primitives = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
polkadot-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-basic-authorship = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-client-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-consensus = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-consensus-babe = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-consensus-beefy = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-consensus-beefy-rpc = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-consensus-manual-seal = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-executor = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-network = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-network-sync = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-offchain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-rpc = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-service = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-telemetry = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sc-transaction-pool-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-application-crypto = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-arithmetic = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-block-builder = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-blockchain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-consensus = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-consensus-babe = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-consensus-beefy = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-consensus-slots = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-crypto-hashing = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-genesis-builder = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-inherents = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-io = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-keystore = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-mmr-primitives = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-offchain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-runtime-interface = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-session = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-staking = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-storage = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-tracing = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-trie = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
sp-version = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
substrate-build-script-utils = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
substrate-frame-rpc-system = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
substrate-prometheus-endpoint = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
xcm = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false, package = "staging-xcm" }
|
||||
xcm-builder = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false, package = "staging-xcm-builder" }
|
||||
xcm-executor = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false, package = "staging-xcm-executor" }
|
||||
|
||||
# Snowbridge
|
||||
bp-relayers = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
bp-relayers = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
bridge-hub-common = { path = "primitives/snowbridge/bridge-hub-common", default-features = false }
|
||||
snowbridge-beacon-primitives = { path = "primitives/snowbridge/beacon", default-features = false }
|
||||
snowbridge-core = { path = "primitives/snowbridge/core", default-features = false }
|
||||
|
|
@ -231,7 +230,7 @@ snowbridge-pallet-ethereum-client = { path = "pallets/ethereum-client", default-
|
|||
snowbridge-pallet-ethereum-client-fixtures = { path = "pallets/ethereum-client/fixtures", default-features = false }
|
||||
snowbridge-pallet-inbound-queue-v2 = { path = "pallets/inbound-queue-v2", default-features = false }
|
||||
snowbridge-pallet-inbound-queue-v2-fixtures = { path = "pallets/inbound-queue-v2/fixtures", default-features = false }
|
||||
snowbridge-pallet-outbound-queue = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2412-6", default-features = false }
|
||||
snowbridge-pallet-outbound-queue = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2503", default-features = false }
|
||||
snowbridge-pallet-outbound-queue-v2 = { path = "pallets/outbound-queue-v2", default-features = false }
|
||||
snowbridge-pallet-system = { path = "pallets/system", default-features = false }
|
||||
snowbridge-pallet-system-v2 = { path = "pallets/system-v2", default-features = false }
|
||||
|
|
@ -240,74 +239,74 @@ snowbridge-test-utils = { path = "primitives/snowbridge/test-utils", default-fea
|
|||
snowbridge-verification-primitives = { path = "primitives/snowbridge/verification", default-features = false }
|
||||
|
||||
# Frontier (wasm)
|
||||
evm = { git = "https://github.com/rust-ethereum/evm", rev = "6d86fe2d3bcc14887c2575f62958a67ac2d523db", default-features = false }
|
||||
fp-account = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
fp-evm = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
fp-rpc = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
fp-self-contained = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
fp-storage = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
pallet-base-fee = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
pallet-dynamic-fee = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
pallet-ethereum = { git = "https://github.com/polkadot-evm/frontier/", branch = "stable2412", default-features = false }
|
||||
pallet-evm = { git = "https://github.com/polkadot-evm/frontier/", branch = "stable2412", default-features = false }
|
||||
pallet-evm-chain-id = { git = "https://github.com/polkadot-evm/frontier/", branch = "stable2412", default-features = false }
|
||||
pallet-evm-precompile-blake2 = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
pallet-evm-precompile-bn128 = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
pallet-evm-precompile-modexp = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
pallet-evm-precompile-sha3fips = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
pallet-evm-precompile-simple = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
pallet-hotfix-sufficients = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
precompile-utils = { git = "https://github.com/polkadot-evm/frontier/", branch = "stable2412", default-features = false }
|
||||
precompile-utils-macro = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
evm = { version = "0.43.2", default-features = false }
|
||||
fp-account = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
fp-evm = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
fp-rpc = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
fp-self-contained = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
fp-storage = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
pallet-base-fee = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
pallet-dynamic-fee = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
pallet-ethereum = { git = "https://github.com/polkadot-evm/frontier/", branch = "stable2503", default-features = false }
|
||||
pallet-evm = { git = "https://github.com/polkadot-evm/frontier/", branch = "stable2503", default-features = false }
|
||||
pallet-evm-chain-id = { git = "https://github.com/polkadot-evm/frontier/", branch = "stable2503", default-features = false }
|
||||
pallet-evm-precompile-blake2 = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
pallet-evm-precompile-bn128 = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
pallet-evm-precompile-modexp = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
pallet-evm-precompile-sha3fips = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
pallet-evm-precompile-simple = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
pallet-hotfix-sufficients = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
precompile-utils = { git = "https://github.com/polkadot-evm/frontier/", branch = "stable2503", default-features = false }
|
||||
precompile-utils-macro = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
|
||||
# Frontier (client)
|
||||
fc-api = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
fc-cli = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
fc-consensus = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
fc-db = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412" }
|
||||
fc-mapping-sync = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
fc-rpc = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
fc-rpc-core = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
fc-storage = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2412", default-features = false }
|
||||
fc-api = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
fc-cli = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
fc-consensus = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
fc-db = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503" }
|
||||
fc-mapping-sync = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
fc-rpc = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
fc-rpc-core = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
fc-storage = { git = "https://github.com/polkadot-evm/frontier", branch = "stable2503", default-features = false }
|
||||
|
||||
# StorageHub
|
||||
## Runtime
|
||||
pallet-bucket-nfts = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
pallet-cr-randomness = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
pallet-file-system = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
pallet-file-system-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
pallet-payment-streams = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
pallet-payment-streams-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
pallet-proofs-dealer = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
pallet-proofs-dealer-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
pallet-randomness = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
pallet-storage-providers = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
pallet-storage-providers-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shp-constants = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shp-data-price-updater = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shp-file-key-verifier = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shp-file-metadata = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shp-forest-verifier = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shp-traits = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shp-treasury-funding = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
pallet-bucket-nfts = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
pallet-cr-randomness = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
pallet-file-system = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
pallet-file-system-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
pallet-payment-streams = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
pallet-payment-streams-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
pallet-proofs-dealer = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
pallet-proofs-dealer-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
pallet-randomness = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
pallet-storage-providers = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
pallet-storage-providers-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shp-constants = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shp-data-price-updater = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shp-file-key-verifier = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shp-file-metadata = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shp-forest-verifier = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shp-traits = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shp-treasury-funding = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
## Client
|
||||
shc-actors-derive = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shc-actors-framework = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shc-blockchain-service = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shc-client = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shc-common = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shc-file-manager = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shc-file-transfer-service = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shc-fisherman-service = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shc-forest-manager = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shc-indexer-db = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shc-indexer-service = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shc-rpc = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shp-opaque = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shp-tx-implicits-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shp-types = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
shc-actors-derive = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shc-actors-framework = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shc-blockchain-service = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shc-client = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shc-common = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shc-file-manager = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shc-file-transfer-service = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shc-fisherman-service = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shc-forest-manager = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shc-indexer-db = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shc-indexer-service = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shc-rpc = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shp-opaque = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shp-tx-implicits-runtime-api = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
shp-types = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
## Precompiles
|
||||
pallet-evm-precompile-file-system = { git = "https://github.com/Moonsong-Labs/storage-hub.git", tag = "v0.4.3", default-features = false }
|
||||
pallet-evm-precompile-file-system = { git = "https://github.com/Moonsong-Labs/storage-hub.git", branch = "feat/polkadot-upgrade-stable2503", default-features = false }
|
||||
|
||||
|
||||
# Static linking
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
#![allow(unused_imports)]
|
||||
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use sp_std::marker::PhantomData;
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weights for `{{pallet}}`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ frame-support = { workspace = true }
|
|||
frame-system = { workspace = true }
|
||||
sp-core = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
snowbridge-core = { workspace = true }
|
||||
snowbridge-outbound-queue-primitives = { workspace = true }
|
||||
|
|
@ -48,7 +47,6 @@ std = [
|
|||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
"xcm/std",
|
||||
"xcm-builder/std",
|
||||
"pallet-balances/std",
|
||||
|
|
|
|||
|
|
@ -29,7 +29,9 @@
|
|||
//! It uses a dedicated Ethereum sovereign account to hold locked tokens during transfers.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::vec;
|
||||
use frame_support::{
|
||||
pallet_prelude::*,
|
||||
traits::{
|
||||
|
|
@ -41,7 +43,6 @@ use snowbridge_core::TokenId;
|
|||
use snowbridge_outbound_queue_primitives::v2::{Command, Message as OutboundMessage, SendMessage};
|
||||
use sp_core::{H160, H256};
|
||||
use sp_runtime::{traits::Saturating, BoundedVec};
|
||||
use sp_std::vec;
|
||||
|
||||
pub use pallet::*;
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ frame-system = { workspace = true }
|
|||
sp-core = { workspace = true }
|
||||
sp-io = { optional = true, workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
pallet-timestamp = { optional = true, workspace = true }
|
||||
snowbridge-beacon-primitives = { workspace = true }
|
||||
|
|
@ -77,7 +76,6 @@ std = [
|
|||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
'frame-benchmarking/std',
|
||||
]
|
||||
try-runtime = [
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ snowbridge-beacon-primitives = { workspace = true }
|
|||
snowbridge-core = { workspace = true }
|
||||
snowbridge-inbound-queue-primitives = { workspace = true }
|
||||
sp-core = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
|
@ -33,5 +32,4 @@ std = [
|
|||
"snowbridge-core/std",
|
||||
"snowbridge-inbound-queue-primitives/std",
|
||||
"sp-core/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -3,7 +3,9 @@
|
|||
// Generated, do not edit!
|
||||
// See README.md for instructions to generate
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::{boxed::Box, vec};
|
||||
use hex_literal::hex;
|
||||
use snowbridge_beacon_primitives::{
|
||||
types::deneb, AncestryProof, BeaconHeader, ExecutionProof, NextSyncCommitteeUpdate,
|
||||
|
|
@ -11,7 +13,6 @@ use snowbridge_beacon_primitives::{
|
|||
};
|
||||
use snowbridge_inbound_queue_primitives::{EventProof, InboundQueueFixture, Log, Proof};
|
||||
use sp_core::U256;
|
||||
use sp_std::{boxed::Box, vec};
|
||||
|
||||
const SC_SIZE: usize = 512;
|
||||
const SC_BITS_SIZE: usize = 64;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ use super::*;
|
|||
use frame_support::ensure;
|
||||
use snowbridge_beacon_primitives::ExecutionProof;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use snowbridge_beacon_primitives::merkle_proof::{generalized_index_length, subtree_index};
|
||||
use snowbridge_ethereum::Receipt;
|
||||
use snowbridge_inbound_queue_primitives::{
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
//!
|
||||
//! * [`Call::submit`]: Submit a finalized beacon header with an optional sync committee update
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
pub mod config;
|
||||
pub mod functions;
|
||||
|
|
@ -38,6 +39,7 @@ mod tests_electra;
|
|||
#[cfg(feature = "runtime-benchmarks")]
|
||||
mod benchmarking;
|
||||
|
||||
use alloc::boxed::Box;
|
||||
use frame_support::{
|
||||
dispatch::{DispatchResult, PostDispatchInfo},
|
||||
pallet_prelude::OptionQuery,
|
||||
|
|
@ -53,7 +55,6 @@ use snowbridge_beacon_primitives::{
|
|||
};
|
||||
use snowbridge_core::{BasicOperatingMode, RingBufferMap};
|
||||
use sp_core::H256;
|
||||
use sp_std::prelude::*;
|
||||
pub use weights::WeightInfo;
|
||||
|
||||
use functions::{
|
||||
|
|
@ -71,6 +72,7 @@ pub const LOG_TARGET: &str = "ethereum-client";
|
|||
pub mod pallet {
|
||||
use super::*;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use frame_support::pallet_prelude::*;
|
||||
use frame_system::pallet_prelude::*;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
use crate as ethereum_beacon_client;
|
||||
use crate::config;
|
||||
use alloc::default::Default;
|
||||
use frame_support::{derive_impl, dispatch::DispatchResult, parameter_types};
|
||||
use pallet_timestamp;
|
||||
use snowbridge_beacon_primitives::{Fork, ForkVersions};
|
||||
use snowbridge_inbound_queue_primitives::{Log, Proof};
|
||||
use sp_std::default::Default;
|
||||
use std::{fs::File, path::PathBuf};
|
||||
|
||||
type Block = frame_system::mocking::MockBlock<Test>;
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
use crate as ethereum_beacon_client;
|
||||
use crate::config;
|
||||
use alloc::default::Default;
|
||||
use frame_support::{derive_impl, dispatch::DispatchResult, parameter_types};
|
||||
use pallet_timestamp;
|
||||
use snowbridge_beacon_primitives::{Fork, ForkVersions};
|
||||
use snowbridge_inbound_queue_primitives::{Log, Proof};
|
||||
use sp_std::default::Default;
|
||||
use std::{fs::File, path::PathBuf};
|
||||
|
||||
type Block = frame_system::mocking::MockBlock<Test>;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
#![allow(unused_imports)]
|
||||
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use sp_std::marker::PhantomData;
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for ethereum_beacon_client.
|
||||
pub trait WeightInfo {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ frame-system = { workspace = true }
|
|||
sp-core = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-staking = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
frame-benchmarking = { workspace = true }
|
||||
|
||||
|
|
@ -58,7 +57,6 @@ std = [
|
|||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-staking/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"frame-benchmarking/runtime-benchmarks",
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
//! Storage will be cleared after a period of time.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
#[cfg(test)]
|
||||
mod mock;
|
||||
|
|
@ -33,6 +34,7 @@ pub mod weights;
|
|||
|
||||
pub use pallet::*;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use {
|
||||
crate::types::{EraRewardsUtils, HandleInflation, SendMessage},
|
||||
frame_support::traits::{Get, ValidatorSet},
|
||||
|
|
@ -44,7 +46,6 @@ use {
|
|||
Perbill,
|
||||
},
|
||||
sp_staking::SessionIndex,
|
||||
sp_std::vec::Vec,
|
||||
};
|
||||
|
||||
/// Trait for checking if a validator has been slashed in a given era
|
||||
|
|
@ -65,10 +66,10 @@ pub mod pallet {
|
|||
use sp_runtime::PerThing;
|
||||
|
||||
pub use crate::weights::WeightInfo;
|
||||
use alloc::collections::BTreeMap;
|
||||
use {
|
||||
super::*, frame_support::pallet_prelude::*, frame_system::pallet_prelude::OriginFor,
|
||||
pallet_external_validators::traits::EraIndexProvider, sp_runtime::Saturating,
|
||||
sp_std::collections::btree_map::BTreeMap,
|
||||
};
|
||||
|
||||
/// The current storage version.
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with Tanssi. If not, see <http://www.gnu.org/licenses/>
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use snowbridge_outbound_queue_primitives::SendError;
|
||||
use sp_core::{H160, H256};
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
/// Data needed for EigenLayer rewards submission via Snowbridge.
|
||||
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
#![allow(unused_imports)]
|
||||
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use sp_std::marker::PhantomData;
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_external_validators_rewards.
|
||||
pub trait WeightInfo {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ frame-system = { workspace = true }
|
|||
impl-trait-for-tuples = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-staking = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
sp-core = { workspace = true }
|
||||
|
||||
frame-benchmarking = { workspace = true }
|
||||
|
|
@ -56,7 +55,6 @@ std = [
|
|||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-staking/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"frame-benchmarking/runtime-benchmarks",
|
||||
|
|
|
|||
|
|
@ -31,16 +31,17 @@
|
|||
//! The structure of this pallet and the concept of eras is inspired by `pallet_staking` from Polkadot.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
pub use pallet::*;
|
||||
use {
|
||||
alloc::{collections::btree_set::BTreeSet, vec::Vec},
|
||||
frame_support::pallet_prelude::Weight,
|
||||
log::log,
|
||||
parity_scale_codec::{Decode, Encode, MaxEncodedLen},
|
||||
parity_scale_codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen},
|
||||
scale_info::TypeInfo,
|
||||
sp_runtime::{traits::Get, RuntimeDebug},
|
||||
sp_staking::SessionIndex,
|
||||
sp_std::{collections::btree_set::BTreeSet, vec::Vec},
|
||||
traits::{
|
||||
ActiveEraInfo, EraIndex, EraIndexProvider, ExternalIndexProvider, InvulnerablesProvider,
|
||||
OnEraEnd, OnEraStart, ValidatorProvider,
|
||||
|
|
@ -92,6 +93,7 @@ pub mod pallet {
|
|||
use frame_support::traits::Currency;
|
||||
use {
|
||||
super::*,
|
||||
alloc::vec::Vec,
|
||||
frame_support::{
|
||||
dispatch::DispatchResultWithPostInfo,
|
||||
pallet_prelude::*,
|
||||
|
|
@ -101,7 +103,6 @@ pub mod pallet {
|
|||
frame_system::pallet_prelude::*,
|
||||
sp_core::H160,
|
||||
sp_runtime::{traits::Convert, SaturatedConversion},
|
||||
sp_std::vec::Vec,
|
||||
};
|
||||
|
||||
/// Configure the pallet by specifying the parameters and types on which it depends.
|
||||
|
|
@ -255,7 +256,7 @@ pub mod pallet {
|
|||
// T::ValidatorId does not impl Ord or Hash so we cannot collect into set directly,
|
||||
// but we can check for duplicates if we encode them first.
|
||||
.map(|x| x.encode())
|
||||
.collect::<sp_std::collections::btree_set::BTreeSet<_>>();
|
||||
.collect::<alloc::collections::btree_set::BTreeSet<_>>();
|
||||
assert!(
|
||||
duplicate_validators.len() == self.whitelisted_validators.len(),
|
||||
"duplicate validators in genesis."
|
||||
|
|
@ -763,7 +764,17 @@ impl<T: Config> InvulnerablesProvider<T::ValidatorId> for Pallet<T> {
|
|||
|
||||
/// Mode of era-forcing.
|
||||
#[derive(
|
||||
Copy, Clone, PartialEq, Eq, Default, Encode, Decode, RuntimeDebug, TypeInfo, MaxEncodedLen,
|
||||
Copy,
|
||||
Clone,
|
||||
PartialEq,
|
||||
Eq,
|
||||
Default,
|
||||
Encode,
|
||||
Decode,
|
||||
RuntimeDebug,
|
||||
TypeInfo,
|
||||
MaxEncodedLen,
|
||||
DecodeWithMemTracking,
|
||||
)]
|
||||
pub enum Forcing {
|
||||
/// Not forcing anything - just let whatever happen.
|
||||
|
|
|
|||
|
|
@ -199,6 +199,7 @@ impl pallet_session::Config for Test {
|
|||
type SessionHandler = TestSessionHandler;
|
||||
type Keys = MockSessionKeys;
|
||||
type WeightInfo = ();
|
||||
type DisablingStrategy = ();
|
||||
}
|
||||
|
||||
// Pallet to provide some mock data, used to test
|
||||
|
|
@ -298,9 +299,12 @@ pub fn new_test_ext() -> sp_io::TestExternalities {
|
|||
keys,
|
||||
..Default::default()
|
||||
};
|
||||
pallet_balances::GenesisConfig::<Test> { balances }
|
||||
.assimilate_storage(&mut t)
|
||||
.unwrap();
|
||||
pallet_balances::GenesisConfig::<Test> {
|
||||
balances,
|
||||
..Default::default()
|
||||
}
|
||||
.assimilate_storage(&mut t)
|
||||
.unwrap();
|
||||
pallet_external_validators::GenesisConfig::<Test> {
|
||||
skip_external_validators: false,
|
||||
whitelisted_validators,
|
||||
|
|
|
|||
|
|
@ -14,12 +14,12 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with Tanssi. If not, see <http://www.gnu.org/licenses/>
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use parity_scale_codec::{Decode, Encode, MaxEncodedLen};
|
||||
use scale_info::TypeInfo;
|
||||
use snowbridge_outbound_queue_primitives::SendError;
|
||||
use sp_core::H256;
|
||||
use sp_runtime::RuntimeDebug;
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
/// Information regarding the active era (era in used in session).
|
||||
#[derive(Clone, Encode, Decode, RuntimeDebug, TypeInfo, MaxEncodedLen)]
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
#![allow(unused_imports)]
|
||||
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use sp_std::marker::PhantomData;
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_external_validators.
|
||||
pub trait WeightInfo {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ pallet-balances = { workspace = true }
|
|||
sp-core = { workspace = true }
|
||||
sp-io = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
xcm = { workspace = true }
|
||||
xcm-builder = { workspace = true }
|
||||
|
|
@ -87,7 +86,6 @@ std = [
|
|||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
"tracing/std",
|
||||
"xcm-builder/std",
|
||||
"xcm-executor/std",
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ snowbridge-beacon-primitives = { workspace = true }
|
|||
snowbridge-core = { workspace = true }
|
||||
snowbridge-inbound-queue-primitives = { workspace = true }
|
||||
sp-core = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
|
@ -33,5 +32,4 @@ std = [
|
|||
"snowbridge-core/std",
|
||||
"snowbridge-inbound-queue-primitives/std",
|
||||
"sp-core/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
pub mod register_token;
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@
|
|||
// Generated, do not edit!
|
||||
// See ethereum client README.md for instructions to generate
|
||||
|
||||
use alloc::vec;
|
||||
use hex_literal::hex;
|
||||
use snowbridge_beacon_primitives::{
|
||||
types::deneb, AncestryProof, BeaconHeader, ExecutionProof, VersionedExecutionPayloadHeader,
|
||||
};
|
||||
use snowbridge_inbound_queue_primitives::{EventProof, InboundQueueFixture, Log, Proof};
|
||||
use sp_core::U256;
|
||||
use sp_std::vec;
|
||||
|
||||
pub fn make_register_token_message() -> InboundQueueFixture {
|
||||
InboundQueueFixture {
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ mod mock;
|
|||
mod test;
|
||||
|
||||
pub use crate::weights::WeightInfo;
|
||||
use alloc::boxed::Box;
|
||||
use frame_system::ensure_signed;
|
||||
use snowbridge_core::{
|
||||
sparse_bitmap::{SparseBitmap, SparseBitmapImpl},
|
||||
|
|
@ -48,7 +49,6 @@ use snowbridge_inbound_queue_primitives::{
|
|||
};
|
||||
use sp_core::H160;
|
||||
use sp_runtime::traits::Zero;
|
||||
use sp_std::prelude::*;
|
||||
use xcm::prelude::*;
|
||||
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
use super::*;
|
||||
use codec::Encode;
|
||||
use core::marker::PhantomData;
|
||||
use frame_support::traits::Get;
|
||||
use sp_runtime::traits::TryConvert;
|
||||
use sp_runtime::DispatchError;
|
||||
use sp_std::marker::PhantomData;
|
||||
use xcm::prelude::{ExecuteXcm, Location, Parachain, SendError, SendXcm, XcmHash};
|
||||
|
||||
/// A message processor that simply returns the Blake2_256 hash of the SCALE encoded message
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ use super::*;
|
|||
|
||||
use crate::{self as inbound_queue_v2, message_processors::XcmMessageProcessor};
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use core::{convert::From, default::Default, marker::PhantomData};
|
||||
use frame_support::{derive_impl, parameter_types, traits::ConstU32};
|
||||
use hex_literal::hex;
|
||||
use scale_info::TypeInfo;
|
||||
|
|
@ -17,7 +18,6 @@ use sp_runtime::{
|
|||
traits::{IdentityLookup, MaybeEquivalence, TryConvert},
|
||||
BuildStorage, DispatchError,
|
||||
};
|
||||
use sp_std::{convert::From, default::Default, marker::PhantomData};
|
||||
use xcm::{opaque::latest::WESTEND_GENESIS_HASH, prelude::*};
|
||||
type Block = frame_system::mocking::MockBlock<Test>;
|
||||
pub use snowbridge_test_utils::mock_xcm::{MockXcmExecutor, MockXcmSender};
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
#![allow(unused_imports)]
|
||||
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use sp_std::marker::PhantomData;
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for ethereum_beacon_client.
|
||||
pub trait WeightInfo {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ sp-arithmetic = { workspace = true }
|
|||
sp-core = { workspace = true }
|
||||
sp-io = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
bp-relayers = { workspace = true }
|
||||
bridge-hub-common = { workspace = true }
|
||||
|
|
@ -82,7 +81,6 @@ std = [
|
|||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
"xcm-builder/std",
|
||||
"xcm-executor/std",
|
||||
"xcm/std",
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ snowbridge-core = { workspace = true }
|
|||
snowbridge-merkle-tree = { workspace = true }
|
||||
snowbridge-outbound-queue-primitives = { workspace = true }
|
||||
sp-api = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
xcm = { workspace = true }
|
||||
|
||||
[features]
|
||||
|
|
@ -35,6 +34,5 @@ std = [
|
|||
"snowbridge-merkle-tree/std",
|
||||
"snowbridge-outbound-queue-primitives/std",
|
||||
"sp-api/std",
|
||||
"sp-std/std",
|
||||
"xcm/std",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@
|
|||
// Generated, do not edit!
|
||||
// See ethereum client README.md for instructions to generate
|
||||
|
||||
use alloc::vec;
|
||||
use hex_literal::hex;
|
||||
use snowbridge_beacon_primitives::{
|
||||
types::deneb, AncestryProof, BeaconHeader, ExecutionProof, VersionedExecutionPayloadHeader,
|
||||
};
|
||||
use snowbridge_verification_primitives::{EventFixture, EventProof, Log, Proof};
|
||||
use sp_core::U256;
|
||||
use sp_std::vec;
|
||||
|
||||
pub fn make_submit_delivery_receipt_message() -> EventFixture {
|
||||
EventFixture {
|
||||
|
|
|
|||
|
|
@ -49,6 +49,8 @@
|
|||
//!
|
||||
//! * `prove_message`: Generate a merkle proof for a committed message
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
pub mod api;
|
||||
pub mod process_message_impl;
|
||||
pub mod send_message_impl;
|
||||
|
|
@ -93,7 +95,6 @@ use sp_runtime::{
|
|||
traits::{BlockNumberProvider, Hash, MaybeEquivalence},
|
||||
DigestItem,
|
||||
};
|
||||
use sp_std::prelude::*;
|
||||
pub use types::{OnNewCommitment, PendingOrder, ProcessMessageOriginOf};
|
||||
pub use weights::WeightInfo;
|
||||
use xcm::latest::{Location, NetworkId};
|
||||
|
|
@ -107,6 +108,8 @@ pub use pallet::*;
|
|||
#[frame_support::pallet]
|
||||
pub mod pallet {
|
||||
use super::*;
|
||||
use alloc::boxed::Box;
|
||||
use alloc::vec::Vec;
|
||||
use frame_support::pallet_prelude::*;
|
||||
use frame_system::pallet_prelude::*;
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ use frame_support::{
|
|||
};
|
||||
|
||||
use codec::{DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use core::marker::PhantomData;
|
||||
use hex_literal::hex;
|
||||
use scale_info::TypeInfo;
|
||||
use snowbridge_core::{
|
||||
|
|
@ -23,7 +24,6 @@ use sp_runtime::{
|
|||
traits::{BlakeTwo256, IdentityLookup, Keccak256},
|
||||
AccountId32, BuildStorage, FixedU128,
|
||||
};
|
||||
use sp_std::marker::PhantomData;
|
||||
use xcm::prelude::Here;
|
||||
use xcm_executor::traits::ConvertLocation;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ use scale_info::TypeInfo;
|
|||
pub use snowbridge_merkle_tree::MerkleProof;
|
||||
use sp_core::H256;
|
||||
use sp_runtime::RuntimeDebug;
|
||||
use sp_std::prelude::*;
|
||||
|
||||
pub type ProcessMessageOriginOf<T> = <Pallet<T> as ProcessMessage>::Origin;
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ frame-system = { workspace = true }
|
|||
pallet-proxy = { workspace = true }
|
||||
scale-info = { workspace = true, features = ["derive"] }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
pallet-balances = { workspace = true, features = ["insecure_zero_ed", "std"] }
|
||||
|
|
@ -30,7 +29,6 @@ std = [
|
|||
"pallet-proxy/std",
|
||||
"scale-info/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
try-runtime = [
|
||||
"frame-support/try-runtime",
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
//! obstacles to including it here.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
#[cfg(test)]
|
||||
mod mock;
|
||||
|
|
@ -32,9 +33,9 @@ pub use pallet::*;
|
|||
|
||||
#[pallet]
|
||||
pub mod pallet {
|
||||
use alloc::vec::Vec;
|
||||
use frame_support::pallet_prelude::*;
|
||||
use frame_system::pallet_prelude::BlockNumberFor;
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
/// Pallet for configuring proxy at genesis
|
||||
#[pallet::pallet]
|
||||
|
|
@ -44,7 +45,11 @@ pub mod pallet {
|
|||
/// This pallet requires pallet-proxy to be installed.
|
||||
#[pallet::config]
|
||||
pub trait Config:
|
||||
frame_system::Config + pallet_proxy::Config<ProxyType = <Self as Config>::ProxyType>
|
||||
frame_system::Config
|
||||
+ pallet_proxy::Config<
|
||||
ProxyType = <Self as Config>::ProxyType,
|
||||
BlockNumberProvider = frame_system::Pallet<Self>,
|
||||
>
|
||||
{
|
||||
/// This MUST be the same as in pallet_proxy or it won't compile
|
||||
type ProxyType: MaybeSerializeDeserialize + Clone;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ frame-support = { workspace = true }
|
|||
frame-system = { workspace = true }
|
||||
pallet-session = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
|
@ -30,7 +29,6 @@ std = [
|
|||
"frame-system/std",
|
||||
"pallet-session/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"frame-benchmarking/runtime-benchmarks",
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ snowbridge-pallet-system = { workspace = true }
|
|||
sp-core = { workspace = true }
|
||||
sp-io = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
xcm = { workspace = true }
|
||||
xcm-executor = { workspace = true }
|
||||
|
||||
|
|
@ -70,7 +69,6 @@ std = [
|
|||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
"xcm-executor/std",
|
||||
"xcm/std",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ exclude-from-umbrella = true
|
|||
codec = { features = ["derive"], workspace = true }
|
||||
snowbridge-core.workspace = true
|
||||
sp-api.workspace = true
|
||||
sp-std.workspace = true
|
||||
xcm.workspace = true
|
||||
|
||||
[features]
|
||||
|
|
@ -30,6 +29,5 @@ std = [
|
|||
"codec/std",
|
||||
"snowbridge-core/std",
|
||||
"sp-api/std",
|
||||
"sp-std/std",
|
||||
"xcm/std",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ pub mod api;
|
|||
pub mod weights;
|
||||
pub use weights::*;
|
||||
|
||||
use core::prelude::*;
|
||||
use frame_support::{pallet_prelude::*, traits::EnsureOrigin};
|
||||
use frame_system::pallet_prelude::*;
|
||||
use snowbridge_core::{AgentIdOf as LocationHashOf, AssetMetadata, TokenId, TokenIdOf};
|
||||
|
|
@ -40,7 +41,6 @@ use snowbridge_pallet_system::{ForeignToNativeId, NativeToForeignId};
|
|||
use sp_core::{H160, H256};
|
||||
use sp_io::hashing::blake2_256;
|
||||
use sp_runtime::traits::MaybeEquivalence;
|
||||
use sp_std::prelude::*;
|
||||
use xcm::prelude::*;
|
||||
use xcm_executor::traits::ConvertLocation;
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ snowbridge-outbound-queue-primitives.workspace = true
|
|||
sp-core.workspace = true
|
||||
sp-io.workspace = true
|
||||
sp-runtime.workspace = true
|
||||
sp-std.workspace = true
|
||||
xcm.workspace = true
|
||||
xcm-executor.workspace = true
|
||||
|
||||
|
|
@ -63,7 +62,6 @@ std = [
|
|||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
"xcm-executor/std",
|
||||
"xcm/std",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ exclude-from-umbrella = true
|
|||
codec = { features = ["derive"], workspace = true }
|
||||
snowbridge-core.workspace = true
|
||||
sp-api.workspace = true
|
||||
sp-std.workspace = true
|
||||
xcm.workspace = true
|
||||
|
||||
[features]
|
||||
|
|
@ -30,6 +29,5 @@ std = [
|
|||
"codec/std",
|
||||
"snowbridge-core/std",
|
||||
"sp-api/std",
|
||||
"sp-std/std",
|
||||
"xcm/std",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@
|
|||
//!
|
||||
//! * [`Call::register_token`]: Register a token location as a wrapped ERC20 contract on Ethereum.
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
#[cfg(test)]
|
||||
mod mock;
|
||||
|
||||
|
|
@ -32,6 +34,7 @@ pub mod api;
|
|||
pub mod weights;
|
||||
pub use weights::*;
|
||||
|
||||
use alloc::boxed::Box;
|
||||
use frame_support::{
|
||||
pallet_prelude::*,
|
||||
traits::{
|
||||
|
|
@ -53,7 +56,6 @@ use snowbridge_outbound_queue_primitives::{
|
|||
use sp_core::{RuntimeDebug, H160, H256};
|
||||
use sp_io::hashing::blake2_256;
|
||||
use sp_runtime::{traits::MaybeEquivalence, DispatchError, SaturatedConversion};
|
||||
use sp_std::prelude::*;
|
||||
use xcm::prelude::*;
|
||||
use xcm_executor::traits::ConvertLocation;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
//! Governance API for controlling the Ethereum side of the bridge
|
||||
use super::*;
|
||||
use core::marker::PhantomData;
|
||||
use frame_support::{
|
||||
migrations::VersionedMigration,
|
||||
pallet_prelude::*,
|
||||
|
|
@ -9,7 +10,6 @@ use frame_support::{
|
|||
weights::Weight,
|
||||
};
|
||||
use log;
|
||||
use sp_std::marker::PhantomData;
|
||||
|
||||
#[cfg(feature = "try-runtime")]
|
||||
use sp_runtime::TryRuntimeError;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ frame-system = { workspace = true }
|
|||
parity-scale-codec = { workspace = true, features = ["max-encoded-len"] }
|
||||
sp-core = { workspace = true }
|
||||
sp-io = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
# Frontier
|
||||
evm = { workspace = true, features = ["with-codec"] }
|
||||
|
|
@ -42,5 +41,4 @@ std = [
|
|||
"precompile-utils/std",
|
||||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -17,13 +17,16 @@
|
|||
//! Precompile to interact with pallet_balances instances using the ERC20 interface standard.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::vec;
|
||||
use alloc::vec::Vec;
|
||||
use core::{iter::repeat, marker::PhantomData};
|
||||
use evm::{ExitError, ExitReason};
|
||||
use fp_evm::{Context, Log, PrecompileFailure, PrecompileHandle, Transfer};
|
||||
use frame_support::traits::ConstU32;
|
||||
use precompile_utils::{evm::costs::call_cost, prelude::*};
|
||||
use sp_core::{H160, U256};
|
||||
use sp_std::{iter::repeat, marker::PhantomData, vec, vec::Vec};
|
||||
|
||||
#[cfg(test)]
|
||||
mod mock;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ parity-scale-codec = { workspace = true, features = [ "max-encoded-len" ] }
|
|||
sp-core = { workspace = true }
|
||||
sp-io = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
# Frontier
|
||||
evm = { workspace = true, features = [ "with-codec" ] }
|
||||
|
|
@ -43,5 +42,4 @@ std = [
|
|||
"precompile-utils/std",
|
||||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -15,7 +15,9 @@
|
|||
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use core::marker::PhantomData;
|
||||
use evm::ExitReason;
|
||||
use fp_evm::{Context, ExitRevert, PrecompileFailure, PrecompileHandle, Transfer};
|
||||
|
|
@ -29,7 +31,6 @@ use precompile_utils::{evm::costs::call_cost, prelude::*};
|
|||
use sp_core::{H160, H256, U256};
|
||||
use sp_io::hashing::keccak_256;
|
||||
use sp_runtime::traits::UniqueSaturatedInto;
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
#[cfg(test)]
|
||||
mod mock;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ parity-scale-codec = { workspace = true, features = ["max-encoded-len"] }
|
|||
sp-core = { workspace = true }
|
||||
sp-io = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
# Frontier
|
||||
evm = { workspace = true, features = ["with-codec"] }
|
||||
|
|
@ -46,6 +45,5 @@ std = [
|
|||
"precompile-utils/std",
|
||||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
runtime-benchmarks = []
|
||||
|
|
|
|||
|
|
@ -17,7 +17,10 @@
|
|||
//! Precompile to interact with pallet_collective instances.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::boxed::Box;
|
||||
use alloc::vec::Vec;
|
||||
use core::marker::PhantomData;
|
||||
use fp_account::AccountId20;
|
||||
use fp_evm::Log;
|
||||
|
|
@ -32,7 +35,6 @@ use parity_scale_codec::{DecodeLimit as _, MaxEncodedLen};
|
|||
use precompile_utils::prelude::*;
|
||||
use sp_core::{Decode, Get, H160, H256};
|
||||
use sp_runtime::traits::Dispatchable;
|
||||
use sp_std::{boxed::Box, vec::Vec};
|
||||
|
||||
#[cfg(test)]
|
||||
mod mock;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ pallet-conviction-voting = { workspace = true }
|
|||
parity-scale-codec = { workspace = true, features = ["derive"] }
|
||||
sp-core = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
# Frontier
|
||||
fp-evm = { workspace = true }
|
||||
|
|
@ -44,7 +43,6 @@ std = [
|
|||
"parity-scale-codec/std",
|
||||
"precompile-utils/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"frame-support/runtime-benchmarks",
|
||||
|
|
|
|||
|
|
@ -15,11 +15,13 @@
|
|||
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use core::marker::PhantomData;
|
||||
use fp_evm::PrecompileHandle;
|
||||
use frame_support::dispatch::{GetDispatchInfo, PostDispatchInfo};
|
||||
use frame_support::traits::{Currency, Polling};
|
||||
use frame_system::pallet_prelude::BlockNumberFor;
|
||||
use pallet_conviction_voting::Call as ConvictionVotingCall;
|
||||
use pallet_conviction_voting::{
|
||||
AccountVote, Casting, ClassLocksFor, Conviction, Delegating, Tally, TallyOf, Vote, Voting,
|
||||
|
|
@ -29,8 +31,6 @@ use pallet_evm::{AddressMapping, Log};
|
|||
use precompile_utils::prelude::*;
|
||||
use sp_core::{Get, MaxEncodedLen, H160, H256, U256};
|
||||
use sp_runtime::traits::{Dispatchable, StaticLookup};
|
||||
use sp_std::marker::PhantomData;
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
#[cfg(test)]
|
||||
mod mock;
|
||||
|
|
@ -56,10 +56,10 @@ type ClassOf<Runtime> = <<Runtime as pallet_conviction_voting::Config>::Polls as
|
|||
<Runtime as pallet_conviction_voting::Config>::MaxTurnout,
|
||||
>,
|
||||
>>::Class;
|
||||
type VotingOf<Runtime> = Voting<
|
||||
type VotingOf<Runtime, Instance = ()> = Voting<
|
||||
BalanceOf<Runtime>,
|
||||
<Runtime as frame_system::Config>::AccountId,
|
||||
BlockNumberFor<Runtime>,
|
||||
pallet_conviction_voting::BlockNumberFor<Runtime, Instance>,
|
||||
<<Runtime as pallet_conviction_voting::Config>::Polls as Polling<TallyOf<Runtime>>>::Index,
|
||||
<Runtime as pallet_conviction_voting::Config>::MaxVotes,
|
||||
>;
|
||||
|
|
@ -109,18 +109,16 @@ impl<Runtime> ConvictionVotingPrecompile<Runtime>
|
|||
where
|
||||
Runtime: pallet_conviction_voting::Config + pallet_evm::Config + frame_system::Config,
|
||||
BalanceOf<Runtime>: TryFrom<U256> + Into<U256>,
|
||||
<Runtime as frame_system::Config>::RuntimeCall:
|
||||
Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo,
|
||||
<<Runtime as frame_system::Config>::RuntimeCall as Dispatchable>::RuntimeOrigin:
|
||||
From<Option<Runtime::AccountId>>,
|
||||
Runtime::RuntimeCall: Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo,
|
||||
<Runtime::RuntimeCall as Dispatchable>::RuntimeOrigin: From<Option<Runtime::AccountId>>,
|
||||
Runtime::AccountId: Into<H160>,
|
||||
<Runtime as frame_system::Config>::RuntimeCall: From<ConvictionVotingCall<Runtime>>,
|
||||
Runtime::RuntimeCall: From<ConvictionVotingCall<Runtime>>,
|
||||
IndexOf<Runtime>: TryFrom<u32> + TryInto<u32>,
|
||||
ClassOf<Runtime>: TryFrom<u16> + TryInto<u16>,
|
||||
<Runtime as pallet_conviction_voting::Config>::Polls: Polling<
|
||||
Tally<
|
||||
<<Runtime as pallet_conviction_voting::Config>::Currency as Currency<
|
||||
<Runtime as frame_system::Config>::AccountId,
|
||||
Runtime::AccountId,
|
||||
>>::Balance,
|
||||
<Runtime as pallet_conviction_voting::Config>::MaxTurnout,
|
||||
>,
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
//! Test utilities
|
||||
use super::*;
|
||||
use alloc::collections::btree_map::BTreeMap;
|
||||
use frame_support::{
|
||||
construct_runtime, parameter_types,
|
||||
traits::{Everything, PollStatus, Polling, TotalIssuanceOf},
|
||||
|
|
@ -29,7 +30,6 @@ use sp_runtime::{
|
|||
traits::{BlakeTwo256, ConstU32, ConstU64, IdentityLookup},
|
||||
BuildStorage, DispatchError, Perbill,
|
||||
};
|
||||
use sp_std::collections::btree_map::BTreeMap;
|
||||
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
use frame_support::traits::VoteTally;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ parity-scale-codec = { workspace = true, features = ["max-encoded-len"] }
|
|||
sp-core = { workspace = true }
|
||||
sp-io = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
# Frontier
|
||||
evm = { workspace = true, features = ["with-codec"] }
|
||||
|
|
@ -48,6 +47,5 @@ std = [
|
|||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
use core::marker::PhantomData;
|
||||
use fp_evm::PrecompileHandle;
|
||||
use frame_support::dispatch::{GetDispatchInfo, PostDispatchInfo};
|
||||
use frame_support::traits::fungible::Inspect;
|
||||
|
|
@ -31,7 +32,6 @@ use pallet_evm::AddressMapping;
|
|||
use precompile_utils::prelude::*;
|
||||
use sp_core::{H160, U256};
|
||||
use sp_runtime::traits::Dispatchable;
|
||||
use sp_std::marker::PhantomData;
|
||||
|
||||
/// Solidity selector for the TokensLocked event:
|
||||
/// keccak256("TokensLocked(address,uint256)")
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ parity-scale-codec = { workspace = true, features = ["max-encoded-len"] }
|
|||
sp-core = { workspace = true }
|
||||
sp-io = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
# Frontier
|
||||
fp-evm = { workspace = true }
|
||||
|
|
@ -46,5 +45,4 @@ std = [
|
|||
"precompile-utils/std",
|
||||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use super::*;
|
||||
use alloc::vec::Vec;
|
||||
use frame_support::{
|
||||
ensure,
|
||||
traits::{Get, Time},
|
||||
|
|
@ -22,7 +23,6 @@ use frame_support::{
|
|||
use sp_core::H256;
|
||||
use sp_io::hashing::keccak_256;
|
||||
use sp_runtime::traits::UniqueSaturatedInto;
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
/// EIP2612 permit typehash.
|
||||
pub const PERMIT_TYPEHASH: [u8; 32] = keccak256!(
|
||||
|
|
@ -39,9 +39,11 @@ pub struct Eip2612<Runtime, Metadata, Instance = ()>(PhantomData<(Runtime, Metad
|
|||
impl<Runtime, Metadata, Instance> Eip2612<Runtime, Metadata, Instance>
|
||||
where
|
||||
Runtime: pallet_balances::Config<Instance> + pallet_evm::Config,
|
||||
Runtime::RuntimeCall: Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo,
|
||||
Runtime::RuntimeCall: From<pallet_balances::Call<Runtime, Instance>>,
|
||||
<Runtime::RuntimeCall as Dispatchable>::RuntimeOrigin: From<Option<Runtime::AccountId>>,
|
||||
<Runtime as frame_system::Config>::RuntimeCall:
|
||||
Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo,
|
||||
<Runtime as frame_system::Config>::RuntimeCall: From<pallet_balances::Call<Runtime, Instance>>,
|
||||
<<Runtime as frame_system::Config>::RuntimeCall as Dispatchable>::RuntimeOrigin:
|
||||
From<Option<Runtime::AccountId>>,
|
||||
BalanceOf<Runtime, Instance>: TryFrom<U256> + Into<U256>,
|
||||
Metadata: Erc20Metadata,
|
||||
Instance: InstanceToPrefix + 'static,
|
||||
|
|
|
|||
|
|
@ -17,7 +17,10 @@
|
|||
//! Precompile to interact with pallet_balances instances using the ERC20 interface standard.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
use core::convert::{TryFrom, TryInto};
|
||||
use core::marker::PhantomData;
|
||||
use fp_evm::PrecompileHandle;
|
||||
use frame_support::{
|
||||
dispatch::{GetDispatchInfo, PostDispatchInfo},
|
||||
|
|
@ -33,10 +36,6 @@ use pallet_balances::pallet::{
|
|||
use pallet_evm::AddressMapping;
|
||||
use precompile_utils::prelude::*;
|
||||
use sp_core::{H160, H256, U256};
|
||||
use sp_std::{
|
||||
convert::{TryFrom, TryInto},
|
||||
marker::PhantomData,
|
||||
};
|
||||
|
||||
mod eip2612;
|
||||
use eip2612::Eip2612;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ parity-scale-codec = { workspace = true, features = [ "max-encoded-len" ] }
|
|||
sp-core = { workspace = true }
|
||||
sp-io = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
pallet-identity = { workspace = true }
|
||||
|
||||
# Frontier
|
||||
|
|
@ -47,7 +46,6 @@ std = [
|
|||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"frame-support/runtime-benchmarks",
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@
|
|||
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::boxed::Box;
|
||||
use alloc::vec::Vec;
|
||||
use core::marker::PhantomData;
|
||||
use fp_evm::PrecompileHandle;
|
||||
use frame_support::dispatch::{GetDispatchInfo, PostDispatchInfo};
|
||||
use frame_support::sp_runtime::traits::StaticLookup;
|
||||
|
|
@ -30,9 +33,6 @@ use parity_scale_codec::MaxEncodedLen;
|
|||
use precompile_utils::prelude::*;
|
||||
use sp_core::{ConstU32, Get, H160, H256, U256};
|
||||
use sp_runtime::traits::Dispatchable;
|
||||
use sp_std::boxed::Box;
|
||||
use sp_std::marker::PhantomData;
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
#[cfg(test)]
|
||||
mod mock;
|
||||
|
|
@ -78,8 +78,10 @@ where
|
|||
>,
|
||||
Runtime::AccountId: Into<H160>,
|
||||
Runtime::Hash: From<H256>,
|
||||
Runtime::RuntimeCall: Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo,
|
||||
<Runtime::RuntimeCall as Dispatchable>::RuntimeOrigin: From<Option<Runtime::AccountId>>,
|
||||
<Runtime as frame_system::Config>::RuntimeCall:
|
||||
Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo,
|
||||
<<Runtime as frame_system::Config>::RuntimeCall as Dispatchable>::RuntimeOrigin:
|
||||
From<Option<Runtime::AccountId>>,
|
||||
Runtime::RuntimeCall: From<pallet_identity::Call<Runtime>>,
|
||||
BalanceOf<Runtime>: TryFrom<U256> + Into<U256> + solidity::Codec,
|
||||
<Runtime as pallet_evm::Config>::AddressMapping: AddressMapping<Runtime::AccountId>,
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ where
|
|||
// AccountCodes: Blake2128(16) + H160(20) + Vec(5)
|
||||
// We asume an existing precompile can hold at most 5 bytes worth of dummy code.
|
||||
handle.record_db_read::<Runtime>(41)?;
|
||||
pallet_evm::Pallet::<Runtime>::create_account(address.0, DUMMY_CODE.to_vec());
|
||||
pallet_evm::Pallet::<Runtime>::create_account(address.0, DUMMY_CODE.to_vec(), None);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ pallet-preimage = { workspace = true }
|
|||
parity-scale-codec = { workspace = true, features = ["derive"] }
|
||||
sp-core = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
# Frontier
|
||||
fp-evm = { workspace = true }
|
||||
|
|
@ -41,8 +40,6 @@ std = [
|
|||
"pallet-evm/std",
|
||||
"pallet-preimage/std",
|
||||
"parity-scale-codec/std",
|
||||
"parity-scale-codec/std",
|
||||
"precompile-utils/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -15,7 +15,10 @@
|
|||
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use core::marker::PhantomData;
|
||||
use fp_evm::PrecompileHandle;
|
||||
use frame_support::dispatch::{GetDispatchInfo, PostDispatchInfo};
|
||||
use frame_support::traits::ConstU32;
|
||||
|
|
@ -24,7 +27,6 @@ use pallet_preimage::Call as PreimageCall;
|
|||
use precompile_utils::prelude::*;
|
||||
use sp_core::{Hasher, H256};
|
||||
use sp_runtime::traits::Dispatchable;
|
||||
use sp_std::{marker::PhantomData, vec::Vec};
|
||||
|
||||
#[cfg(test)]
|
||||
mod mock;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ pallet-proxy = { workspace = true }
|
|||
parity-scale-codec = { workspace = true, features = ["derive"] }
|
||||
sp-core = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
# Frontier
|
||||
evm = { workspace = true, features = ["with-codec"] }
|
||||
|
|
@ -47,5 +46,4 @@ std = [
|
|||
"precompile-utils/std",
|
||||
"sp-core/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
|
|
@ -15,7 +15,10 @@
|
|||
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use core::marker::PhantomData;
|
||||
use evm::ExitReason;
|
||||
use fp_evm::{
|
||||
Context, PrecompileFailure, PrecompileHandle, Transfer, ACCOUNT_CODES_METADATA_PROOF_SIZE,
|
||||
|
|
@ -33,7 +36,6 @@ use sp_runtime::{
|
|||
traits::{ConstU32, Dispatchable, StaticLookup, Zero},
|
||||
SaturatedConversion,
|
||||
};
|
||||
use sp_std::marker::PhantomData;
|
||||
|
||||
/// System account size in bytes = Pallet_Name_Hash (16) + Storage_name_hash (16) +
|
||||
/// Blake2_128Concat (16) + AccountId (20) + AccountInfo (4 + 12 + AccountData (4* 16)) = 148
|
||||
|
|
@ -57,11 +59,12 @@ where
|
|||
<Runtime as frame_system::Config>::RuntimeCall:
|
||||
Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo,
|
||||
<<Runtime as frame_system::Config>::RuntimeCall as Dispatchable>::RuntimeOrigin:
|
||||
From<Option<Runtime::AccountId>>,
|
||||
From<Option<<Runtime as frame_system::Config>::AccountId>>,
|
||||
<Runtime as frame_system::Config>::RuntimeCall:
|
||||
From<ProxyCall<Runtime>> + From<BalancesCall<Runtime>>,
|
||||
<Runtime as pallet_balances::Config<()>>::Balance: TryFrom<U256> + Into<U256>,
|
||||
<Runtime as pallet_evm::Config>::AddressMapping: AddressMapping<Runtime::AccountId>,
|
||||
<Runtime as pallet_evm::Config>::AddressMapping:
|
||||
AddressMapping<<Runtime as frame_system::Config>::AccountId>,
|
||||
{
|
||||
fn is_allowed(_caller: H160, selector: Option<u32>) -> bool {
|
||||
match selector {
|
||||
|
|
@ -85,16 +88,17 @@ where
|
|||
Runtime:
|
||||
pallet_proxy::Config + pallet_evm::Config + frame_system::Config + pallet_balances::Config,
|
||||
<<Runtime as pallet_proxy::Config>::RuntimeCall as Dispatchable>::RuntimeOrigin:
|
||||
From<Option<Runtime::AccountId>>,
|
||||
From<Option<<Runtime as frame_system::Config>::AccountId>>,
|
||||
<Runtime as pallet_proxy::Config>::ProxyType: Decode + EvmProxyCallFilter,
|
||||
<Runtime as frame_system::Config>::RuntimeCall:
|
||||
Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo,
|
||||
<<Runtime as frame_system::Config>::RuntimeCall as Dispatchable>::RuntimeOrigin:
|
||||
From<Option<Runtime::AccountId>>,
|
||||
From<Option<<Runtime as frame_system::Config>::AccountId>>,
|
||||
<Runtime as frame_system::Config>::RuntimeCall:
|
||||
From<ProxyCall<Runtime>> + From<BalancesCall<Runtime>>,
|
||||
<Runtime as pallet_balances::Config<()>>::Balance: TryFrom<U256> + Into<U256>,
|
||||
<Runtime as pallet_evm::Config>::AddressMapping: AddressMapping<Runtime::AccountId>,
|
||||
<Runtime as pallet_evm::Config>::AddressMapping:
|
||||
AddressMapping<<Runtime as frame_system::Config>::AccountId>,
|
||||
{
|
||||
fn is_allowed(_caller: H160, selector: Option<u32>) -> bool {
|
||||
match selector {
|
||||
|
|
@ -147,16 +151,17 @@ where
|
|||
Runtime:
|
||||
pallet_proxy::Config + pallet_evm::Config + frame_system::Config + pallet_balances::Config,
|
||||
<<Runtime as pallet_proxy::Config>::RuntimeCall as Dispatchable>::RuntimeOrigin:
|
||||
From<Option<Runtime::AccountId>>,
|
||||
From<Option<<Runtime as frame_system::Config>::AccountId>>,
|
||||
<Runtime as pallet_proxy::Config>::ProxyType: Decode + EvmProxyCallFilter,
|
||||
<Runtime as frame_system::Config>::RuntimeCall:
|
||||
Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo,
|
||||
<<Runtime as frame_system::Config>::RuntimeCall as Dispatchable>::RuntimeOrigin:
|
||||
From<Option<Runtime::AccountId>>,
|
||||
From<Option<<Runtime as frame_system::Config>::AccountId>>,
|
||||
<Runtime as frame_system::Config>::RuntimeCall:
|
||||
From<ProxyCall<Runtime>> + From<BalancesCall<Runtime>>,
|
||||
<Runtime as pallet_balances::Config<()>>::Balance: TryFrom<U256> + Into<U256>,
|
||||
<Runtime as pallet_evm::Config>::AddressMapping: AddressMapping<Runtime::AccountId>,
|
||||
<Runtime as pallet_evm::Config>::AddressMapping:
|
||||
AddressMapping<<Runtime as frame_system::Config>::AccountId>,
|
||||
{
|
||||
/// Register a proxy account for the sender that is able to make calls on its behalf.
|
||||
/// The dispatch origin for this call must be Signed.
|
||||
|
|
@ -198,8 +203,8 @@ where
|
|||
return Err(revert("Cannot add more than one proxy"));
|
||||
}
|
||||
|
||||
let delegate: <Runtime::Lookup as StaticLookup>::Source =
|
||||
Runtime::Lookup::unlookup(delegate.clone());
|
||||
let delegate: <<Runtime as frame_system::Config>::Lookup as StaticLookup>::Source =
|
||||
<Runtime as frame_system::Config>::Lookup::unlookup(delegate.clone());
|
||||
let call: ProxyCall<Runtime> = ProxyCall::<Runtime>::add_proxy {
|
||||
delegate,
|
||||
proxy_type,
|
||||
|
|
@ -233,8 +238,8 @@ where
|
|||
})?;
|
||||
let delay = delay.into();
|
||||
|
||||
let delegate: <Runtime::Lookup as StaticLookup>::Source =
|
||||
Runtime::Lookup::unlookup(delegate.clone());
|
||||
let delegate: <<Runtime as frame_system::Config>::Lookup as StaticLookup>::Source =
|
||||
<Runtime as frame_system::Config>::Lookup::unlookup(delegate.clone());
|
||||
let origin = Runtime::AddressMapping::into_account_id(handle.context().caller);
|
||||
let call: ProxyCall<Runtime> = ProxyCall::<Runtime>::remove_proxy {
|
||||
delegate,
|
||||
|
|
@ -413,7 +418,7 @@ where
|
|||
let transfer = if value.is_zero() {
|
||||
None
|
||||
} else {
|
||||
let contract_address: Runtime::AccountId =
|
||||
let contract_address: <Runtime as frame_system::Config>::AccountId =
|
||||
Runtime::AddressMapping::into_account_id(handle.context().address);
|
||||
|
||||
// Send back funds received by the precompile.
|
||||
|
|
@ -421,12 +426,12 @@ where
|
|||
handle,
|
||||
Some(contract_address).into(),
|
||||
pallet_balances::Call::<Runtime>::transfer_allow_death {
|
||||
dest: Runtime::Lookup::unlookup(who),
|
||||
dest: <Runtime as frame_system::Config>::Lookup::unlookup(who),
|
||||
value: {
|
||||
let balance: <Runtime as pallet_balances::Config<()>>::Balance =
|
||||
value.try_into().map_err(|_| PrecompileFailure::Revert {
|
||||
exit_status: fp_evm::ExitRevert::Reverted,
|
||||
output: sp_std::vec::Vec::new(),
|
||||
output: Vec::new(),
|
||||
})?;
|
||||
balance
|
||||
},
|
||||
|
|
|
|||
|
|
@ -551,6 +551,7 @@ fn test_nested_evm_bypass_proxy_should_allow_elevating_proxy_type() {
|
|||
max_priority_fee_per_gas: Some(U256::zero()),
|
||||
nonce: None,
|
||||
access_list: Vec::new(),
|
||||
authorization_list: Vec::new(),
|
||||
});
|
||||
|
||||
// call the evm call in a proxy call
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ pallet-referenda = { workspace = true }
|
|||
parity-scale-codec = { workspace = true, features = ["derive"] }
|
||||
sp-core = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
# Frontier
|
||||
fp-evm = { workspace = true }
|
||||
|
|
@ -47,7 +46,6 @@ std = [
|
|||
"parity-scale-codec/std",
|
||||
"precompile-utils/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"frame-support/runtime-benchmarks",
|
||||
|
|
|
|||
|
|
@ -15,7 +15,11 @@
|
|||
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::boxed::Box;
|
||||
use alloc::vec::Vec;
|
||||
use core::{marker::PhantomData, str::FromStr};
|
||||
use fp_evm::PrecompileHandle;
|
||||
use frame_support::dispatch::{GetDispatchInfo, PostDispatchInfo};
|
||||
use frame_support::traits::{
|
||||
|
|
@ -29,8 +33,8 @@ use pallet_referenda::{
|
|||
use parity_scale_codec::{Encode, MaxEncodedLen};
|
||||
use precompile_utils::prelude::*;
|
||||
use sp_core::{H160, H256, U256};
|
||||
use sp_runtime::str_array;
|
||||
use sp_runtime::traits::Dispatchable;
|
||||
use sp_std::{boxed::Box, marker::PhantomData, str::FromStr, vec::Vec};
|
||||
|
||||
#[cfg(test)]
|
||||
mod mock;
|
||||
|
|
@ -39,7 +43,7 @@ mod tests;
|
|||
|
||||
pub const CALL_DATA_LIMIT: u32 = 2u32.pow(16);
|
||||
|
||||
type BlockNumberFor<T> = frame_system::pallet_prelude::BlockNumberFor<T>;
|
||||
type BlockNumberFor<T> = pallet_referenda::BlockNumberFor<T, ()>;
|
||||
type BalanceOf<Runtime> = <<Runtime as pallet_referenda::Config>::Currency as Currency<
|
||||
<Runtime as frame_system::Config>::AccountId,
|
||||
>>::Balance;
|
||||
|
|
@ -202,7 +206,7 @@ where
|
|||
fn track_ids(_handle: &mut impl PrecompileHandle) -> EvmResult<Vec<u16>> {
|
||||
let track_ids: Vec<u16> = Runtime::Tracks::tracks()
|
||||
.into_iter()
|
||||
.filter_map(|(track_id, _)| (*track_id).try_into().ok())
|
||||
.filter_map(|track| track.id.try_into().ok())
|
||||
.collect();
|
||||
|
||||
Ok(track_ids)
|
||||
|
|
@ -215,21 +219,18 @@ where
|
|||
.try_into()
|
||||
.map_err(|_| RevertReason::value_is_too_large("Track id type").into())
|
||||
.in_field("trackId")?;
|
||||
let (_, track_info) = Runtime::Tracks::tracks()
|
||||
.iter()
|
||||
.find(|(id, _)| *id == track_id)
|
||||
let track = Runtime::Tracks::tracks()
|
||||
.find(|track| track.id == track_id)
|
||||
.ok_or(RevertReason::custom("No such track").in_field("trackId"))?;
|
||||
let track_info = &track.info;
|
||||
|
||||
// trim the nulls bytes at the end of the name
|
||||
// caused by this https://github.com/paritytech/polkadot-sdk/pull/2072
|
||||
let track_name_trimmed: &[u8] = track_info
|
||||
.name
|
||||
.as_bytes()
|
||||
.iter()
|
||||
.rposition(|&b| b != 0)
|
||||
.map_or(track_info.name.as_bytes(), |pos| {
|
||||
&track_info.name.as_bytes()[..=pos]
|
||||
});
|
||||
.map_or(&[], |pos| &track_info.name[..=pos]);
|
||||
|
||||
Ok(TrackInfo {
|
||||
name: track_name_trimmed.into(),
|
||||
|
|
@ -246,19 +247,22 @@ where
|
|||
|
||||
/// Use Runtime::Tracks::tracks to get the origin for input trackId
|
||||
fn track_id_to_origin(track_id: TrackIdOf<Runtime>) -> EvmResult<Box<OriginOf<Runtime>>> {
|
||||
let (_, track_info) = Runtime::Tracks::tracks()
|
||||
.iter()
|
||||
.find(|(id, _)| *id == track_id)
|
||||
let track = Runtime::Tracks::tracks()
|
||||
.find(|track| track.id == track_id)
|
||||
.ok_or(RevertReason::custom("No such track").in_field("trackId"))?;
|
||||
let origin = if track_info.name == "root" {
|
||||
let track_info = &track.info;
|
||||
|
||||
let origin = if track_info.name == str_array("root") {
|
||||
frame_system::RawOrigin::Root.into()
|
||||
} else {
|
||||
GovOrigin::from_str(track_info.name)
|
||||
.map_err(|_| {
|
||||
RevertReason::custom("Custom origin does not exist for {track_info.name}")
|
||||
.in_field("trackId")
|
||||
})?
|
||||
.into()
|
||||
GovOrigin::from_str(str::from_utf8(&track_info.name).map_err(|_| {
|
||||
RevertReason::custom("Track name is not valid UTF-8").in_field("trackId")
|
||||
})?)
|
||||
.map_err(|_| {
|
||||
RevertReason::custom("Custom origin does not exist for {track_info.name}")
|
||||
.in_field("trackId")
|
||||
})?
|
||||
.into()
|
||||
};
|
||||
Ok(Box::new(origin))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ use sp_runtime::{
|
|||
traits::{BlakeTwo256, IdentityLookup},
|
||||
BuildStorage, Perbill,
|
||||
};
|
||||
use sp_std::{str::FromStr, vec::Vec};
|
||||
use std::{str::FromStr, vec::Vec};
|
||||
|
||||
pub type AccountId = MockAccount;
|
||||
pub type Balance = u128;
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ fn evm_call(input: Vec<u8>) -> EvmCall<Runtime> {
|
|||
max_priority_fee_per_gas: Some(U256::zero()),
|
||||
nonce: None,
|
||||
access_list: Vec::new(),
|
||||
authorization_list: Vec::new(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ parity-scale-codec = { workspace = true }
|
|||
snowbridge-core = { workspace = true }
|
||||
snowbridge-inbound-queue-primitives = { workspace = true }
|
||||
sp-core = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
hex = { workspace = true }
|
||||
|
||||
[features]
|
||||
|
|
@ -29,6 +28,5 @@ std = [
|
|||
"pallet-external-validators/std",
|
||||
"pallet-datahaven-native-transfer/std",
|
||||
"sp-core/std",
|
||||
"sp-std/std",
|
||||
"snowbridge-inbound-queue-primitives/std",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -15,14 +15,15 @@
|
|||
// along with DataHaven. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use frame_support::pallet_prelude::*;
|
||||
use parity_scale_codec::DecodeAll;
|
||||
use snowbridge_inbound_queue_primitives::v2::{
|
||||
EthereumAsset, Message as SnowbridgeMessage, MessageProcessor,
|
||||
};
|
||||
use sp_core::H160;
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
// Message ID. This is not expected to change and its arbitrary bytes defined here.
|
||||
// It should match the EL_MESSAGE_ID in DataHavenSnowbridgeMessages.sol
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ frame-support = { workspace = true }
|
|||
sp-core = { workspace = true }
|
||||
sp-io = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
byte-slice-cast = { workspace = true }
|
||||
ssz_rs = { workspace = true }
|
||||
|
|
@ -51,6 +50,5 @@ std = [
|
|||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
"ssz_rs/std",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
use sp_std::prelude::*;
|
||||
use alloc::vec::Vec;
|
||||
use ssz_rs::{Bitvector, Deserialize};
|
||||
|
||||
pub fn decompress_sync_committee_bits<
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
use crate::{PublicKey, Signature};
|
||||
use alloc::vec::Vec;
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode};
|
||||
use frame_support::{ensure, PalletError};
|
||||
pub use milagro_bls::{
|
||||
|
|
@ -10,7 +11,6 @@ pub use milagro_bls::{
|
|||
use scale_info::TypeInfo;
|
||||
use sp_core::H256;
|
||||
use sp_runtime::RuntimeDebug;
|
||||
use sp_std::prelude::*;
|
||||
|
||||
#[derive(
|
||||
Copy,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
pub mod bits;
|
||||
pub mod bls;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
use alloc::boxed::Box;
|
||||
use alloc::vec::Vec;
|
||||
use sp_core::H256;
|
||||
use sp_io::hashing::keccak_256;
|
||||
use sp_std::prelude::*;
|
||||
|
||||
use snowbridge_ethereum::{mpt, Receipt};
|
||||
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ pub struct HexVisitor<const LENGTH: usize>();
|
|||
impl<'de, const LENGTH: usize> serde::de::Visitor<'de> for HexVisitor<LENGTH> {
|
||||
type Value = [u8; LENGTH];
|
||||
|
||||
fn expecting(&self, formatter: &mut Formatter) -> sp_std::fmt::Result {
|
||||
fn expecting(&self, formatter: &mut Formatter) -> core::fmt::Result {
|
||||
formatter.write_str("a hex string with an '0x' prefix")
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ use crate::{
|
|||
BeaconHeader, ExecutionPayloadHeader, ForkData, SigningData, SyncAggregate, SyncCommittee,
|
||||
},
|
||||
};
|
||||
use alloc::{vec, vec::Vec};
|
||||
use byte_slice_cast::AsByteSlice;
|
||||
use sp_core::H256;
|
||||
use sp_std::{vec, vec::Vec};
|
||||
use ssz_rs::{
|
||||
prelude::{List, Vector},
|
||||
Bitvector, Deserialize, DeserializeError, SimpleSerialize, SimpleSerializeError, Sized, U256,
|
||||
|
|
@ -204,9 +204,9 @@ pub mod deneb {
|
|||
ssz::hash_tree_root,
|
||||
types::deneb::ExecutionPayloadHeader,
|
||||
};
|
||||
use alloc::{vec, vec::Vec};
|
||||
use byte_slice_cast::AsByteSlice;
|
||||
use sp_core::H256;
|
||||
use sp_std::{vec, vec::Vec};
|
||||
use ssz_rs::{
|
||||
prelude::{List, Vector},
|
||||
Deserialize, DeserializeError, SimpleSerializeError, Sized, U256,
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
use alloc::boxed::Box;
|
||||
use alloc::vec::Vec;
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use core::iter::repeat;
|
||||
use frame_support::{CloneNoBound, PartialEqNoBound, RuntimeDebugNoBound};
|
||||
use scale_info::TypeInfo;
|
||||
use sp_core::{H160, H256, U256};
|
||||
use sp_runtime::RuntimeDebug;
|
||||
use sp_std::{boxed::Box, iter::repeat, prelude::*};
|
||||
|
||||
use crate::config::{PUBKEY_SIZE, SIGNATURE_SIZE};
|
||||
|
||||
|
|
@ -89,7 +91,7 @@ impl Serialize for PublicKey {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Encode, Decode, PartialEq, RuntimeDebug, TypeInfo)]
|
||||
#[derive(Copy, Clone, Encode, Decode, PartialEq, RuntimeDebug, TypeInfo, DecodeWithMemTracking)]
|
||||
pub struct Signature(pub [u8; SIGNATURE_SIZE]);
|
||||
|
||||
impl Default for Signature {
|
||||
|
|
@ -238,7 +240,16 @@ impl<const COMMITTEE_SIZE: usize> TryFrom<&SyncCommittee<COMMITTEE_SIZE>>
|
|||
/// Beacon block header as it is stored in the runtime storage. The block root is the
|
||||
/// Merkleization of a BeaconHeader.
|
||||
#[derive(
|
||||
Copy, Clone, Default, Encode, Decode, PartialEq, RuntimeDebug, TypeInfo, MaxEncodedLen,
|
||||
Copy,
|
||||
Clone,
|
||||
Default,
|
||||
Encode,
|
||||
Decode,
|
||||
PartialEq,
|
||||
RuntimeDebug,
|
||||
TypeInfo,
|
||||
MaxEncodedLen,
|
||||
DecodeWithMemTracking,
|
||||
)]
|
||||
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
|
||||
pub struct BeaconHeader {
|
||||
|
|
@ -261,7 +272,15 @@ impl BeaconHeader {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Encode, Decode, CloneNoBound, PartialEqNoBound, RuntimeDebugNoBound, TypeInfo)]
|
||||
#[derive(
|
||||
Encode,
|
||||
Decode,
|
||||
CloneNoBound,
|
||||
PartialEqNoBound,
|
||||
RuntimeDebugNoBound,
|
||||
TypeInfo,
|
||||
DecodeWithMemTracking,
|
||||
)]
|
||||
#[cfg_attr(
|
||||
feature = "std",
|
||||
derive(Deserialize),
|
||||
|
|
@ -329,7 +348,14 @@ impl<const COMMITTEE_SIZE: usize, const COMMITTEE_BITS_SIZE: usize>
|
|||
/// ExecutionPayloadHeader
|
||||
/// <https://github.com/ethereum/annotated-spec/blob/master/capella/beacon-chain.md#executionpayloadheader>
|
||||
#[derive(
|
||||
Default, Encode, Decode, CloneNoBound, PartialEqNoBound, RuntimeDebugNoBound, TypeInfo,
|
||||
Default,
|
||||
Encode,
|
||||
Decode,
|
||||
CloneNoBound,
|
||||
PartialEqNoBound,
|
||||
RuntimeDebugNoBound,
|
||||
TypeInfo,
|
||||
DecodeWithMemTracking,
|
||||
)]
|
||||
#[cfg_attr(
|
||||
feature = "std",
|
||||
|
|
@ -391,7 +417,15 @@ pub struct CompactBeaconState {
|
|||
}
|
||||
|
||||
/// VersionedExecutionPayloadHeader
|
||||
#[derive(Encode, Decode, CloneNoBound, PartialEqNoBound, RuntimeDebugNoBound, TypeInfo)]
|
||||
#[derive(
|
||||
Encode,
|
||||
Decode,
|
||||
CloneNoBound,
|
||||
PartialEqNoBound,
|
||||
RuntimeDebugNoBound,
|
||||
TypeInfo,
|
||||
DecodeWithMemTracking,
|
||||
)]
|
||||
#[cfg_attr(
|
||||
feature = "std",
|
||||
derive(Serialize, Deserialize),
|
||||
|
|
@ -453,7 +487,15 @@ impl VersionedExecutionPayloadHeader {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Encode, Decode, CloneNoBound, PartialEqNoBound, RuntimeDebugNoBound, TypeInfo)]
|
||||
#[derive(
|
||||
Encode,
|
||||
Decode,
|
||||
CloneNoBound,
|
||||
PartialEqNoBound,
|
||||
RuntimeDebugNoBound,
|
||||
TypeInfo,
|
||||
DecodeWithMemTracking,
|
||||
)]
|
||||
#[cfg_attr(
|
||||
feature = "std",
|
||||
derive(serde::Deserialize),
|
||||
|
|
@ -470,7 +512,15 @@ pub struct ExecutionProof {
|
|||
pub execution_branch: Vec<H256>,
|
||||
}
|
||||
|
||||
#[derive(Encode, Decode, CloneNoBound, PartialEqNoBound, RuntimeDebugNoBound, TypeInfo)]
|
||||
#[derive(
|
||||
Encode,
|
||||
Decode,
|
||||
CloneNoBound,
|
||||
PartialEqNoBound,
|
||||
RuntimeDebugNoBound,
|
||||
TypeInfo,
|
||||
DecodeWithMemTracking,
|
||||
)]
|
||||
#[cfg_attr(
|
||||
feature = "std",
|
||||
derive(serde::Deserialize),
|
||||
|
|
@ -609,18 +659,25 @@ pub enum Mode {
|
|||
}
|
||||
|
||||
pub mod deneb {
|
||||
use codec::{Decode, Encode};
|
||||
use alloc::vec::Vec;
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode};
|
||||
use frame_support::{CloneNoBound, PartialEqNoBound, RuntimeDebugNoBound};
|
||||
use scale_info::TypeInfo;
|
||||
#[cfg(feature = "std")]
|
||||
use serde::{Deserialize, Serialize};
|
||||
use sp_core::{H160, H256, U256};
|
||||
use sp_std::prelude::*;
|
||||
|
||||
/// ExecutionPayloadHeader
|
||||
/// <https://github.com/ethereum/consensus-specs/blob/dev/specs/deneb/beacon-chain.md#executionpayloadheader>
|
||||
#[derive(
|
||||
Default, Encode, Decode, CloneNoBound, PartialEqNoBound, RuntimeDebugNoBound, TypeInfo,
|
||||
Default,
|
||||
Encode,
|
||||
Decode,
|
||||
CloneNoBound,
|
||||
PartialEqNoBound,
|
||||
RuntimeDebugNoBound,
|
||||
TypeInfo,
|
||||
DecodeWithMemTracking,
|
||||
)]
|
||||
#[cfg_attr(
|
||||
feature = "std",
|
||||
|
|
|
|||
|
|
@ -1,14 +1,22 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
use codec::{Decode, Encode};
|
||||
use alloc::vec::Vec;
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode};
|
||||
use frame_support::{CloneNoBound, PartialEqNoBound, RuntimeDebugNoBound};
|
||||
use scale_info::TypeInfo;
|
||||
use sp_core::H256;
|
||||
use sp_std::prelude::*;
|
||||
|
||||
use crate::types::{BeaconHeader, SyncAggregate, SyncCommittee};
|
||||
|
||||
#[derive(Encode, Decode, CloneNoBound, PartialEqNoBound, RuntimeDebugNoBound, TypeInfo)]
|
||||
#[derive(
|
||||
Encode,
|
||||
Decode,
|
||||
CloneNoBound,
|
||||
PartialEqNoBound,
|
||||
RuntimeDebugNoBound,
|
||||
TypeInfo,
|
||||
DecodeWithMemTracking,
|
||||
)]
|
||||
#[cfg_attr(
|
||||
feature = "std",
|
||||
derive(serde::Serialize, serde::Deserialize),
|
||||
|
|
@ -24,7 +32,14 @@ pub struct CheckpointUpdate<const COMMITTEE_SIZE: usize> {
|
|||
}
|
||||
|
||||
#[derive(
|
||||
Default, Encode, Decode, CloneNoBound, PartialEqNoBound, RuntimeDebugNoBound, TypeInfo,
|
||||
Default,
|
||||
Encode,
|
||||
Decode,
|
||||
CloneNoBound,
|
||||
PartialEqNoBound,
|
||||
RuntimeDebugNoBound,
|
||||
TypeInfo,
|
||||
DecodeWithMemTracking,
|
||||
)]
|
||||
#[cfg_attr(
|
||||
feature = "std",
|
||||
|
|
@ -54,7 +69,14 @@ pub struct Update<const COMMITTEE_SIZE: usize, const COMMITTEE_BITS_SIZE: usize>
|
|||
}
|
||||
|
||||
#[derive(
|
||||
Default, Encode, Decode, CloneNoBound, PartialEqNoBound, RuntimeDebugNoBound, TypeInfo,
|
||||
Default,
|
||||
Encode,
|
||||
Decode,
|
||||
CloneNoBound,
|
||||
PartialEqNoBound,
|
||||
RuntimeDebugNoBound,
|
||||
TypeInfo,
|
||||
DecodeWithMemTracking,
|
||||
)]
|
||||
#[cfg_attr(
|
||||
feature = "std",
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ scale-info = { features = ["derive"], workspace = true }
|
|||
snowbridge-core.workspace = true
|
||||
sp-core.workspace = true
|
||||
sp-runtime.workspace = true
|
||||
sp-std.workspace = true
|
||||
xcm.workspace = true
|
||||
xcm-builder.workspace = true
|
||||
xcm-executor.workspace = true
|
||||
|
|
@ -33,7 +32,6 @@ std = [
|
|||
"snowbridge-core/std",
|
||||
"sp-core/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
"xcm-builder/std",
|
||||
"xcm-executor/std",
|
||||
"xcm/std",
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use xcm::{
|
|||
/// configured XCM version between the destination `dest` and the bridge hub location provided as
|
||||
/// `Get<Location>`.
|
||||
pub struct XcmVersionOfDestAndRemoteBridge<Version, RemoteBridge>(
|
||||
sp_std::marker::PhantomData<(Version, RemoteBridge)>,
|
||||
core::marker::PhantomData<(Version, RemoteBridge)>,
|
||||
);
|
||||
impl<Version: GetVersion, RemoteBridge: Get<Location>> GetVersion
|
||||
for XcmVersionOfDestAndRemoteBridge<Version, RemoteBridge>
|
||||
|
|
@ -35,7 +35,7 @@ impl<Version: GetVersion, RemoteBridge: Get<Location>> GetVersion
|
|||
let bridge_hub_version = Version::get_version_for(&RemoteBridge::get());
|
||||
|
||||
match (dest_version, bridge_hub_version) {
|
||||
(Some(dv), Some(bhv)) => Some(sp_std::cmp::min(dv, bhv)),
|
||||
(Some(dv), Some(bhv)) => Some(core::cmp::min(dv, bhv)),
|
||||
(Some(dv), None) => Some(dv),
|
||||
(None, Some(bhv)) => Some(bhv),
|
||||
(None, None) => None,
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ sp-arithmetic = { workspace = true }
|
|||
sp-core = { workspace = true }
|
||||
sp-io = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
xcm-executor = { workspace = true }
|
||||
|
||||
bp-relayers = { workspace = true }
|
||||
|
|
@ -62,7 +61,6 @@ std = [
|
|||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
"xcm-builder/std",
|
||||
"xcm-executor/std",
|
||||
"xcm/std",
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
//!
|
||||
//! Common traits and types
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
|
@ -22,6 +23,7 @@ pub use polkadot_parachain_primitives::primitives::{
|
|||
pub use ringbuffer::{RingBufferMap, RingBufferMapImpl};
|
||||
pub use sp_core::U256;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use frame_support::{traits::Contains, BoundedVec};
|
||||
use hex_literal::hex;
|
||||
|
|
@ -29,7 +31,6 @@ use scale_info::TypeInfo;
|
|||
use sp_core::{ConstU32, H256};
|
||||
use sp_io::hashing::keccak_256;
|
||||
use sp_runtime::{traits::AccountIdConversion, RuntimeDebug};
|
||||
use sp_std::prelude::*;
|
||||
use xcm::latest::{Asset, Junction::Parachain, Location, Result as XcmResult, XcmContext};
|
||||
use xcm_executor::traits::TransactAsset;
|
||||
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ pub use polkadot_parachain_primitives::primitives::{
|
|||
};
|
||||
pub use sp_core::U256;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use codec::Encode;
|
||||
use sp_core::H256;
|
||||
use sp_std::prelude::*;
|
||||
use xcm::prelude::{
|
||||
AccountId32, AccountKey20, GeneralIndex, GeneralKey, GlobalConsensus, Location, PalletInstance,
|
||||
};
|
||||
|
|
@ -56,7 +56,7 @@ impl DescribeLocation for DescribeHere {
|
|||
}
|
||||
}
|
||||
}
|
||||
pub struct DescribeGlobalPrefix<DescribeInterior>(sp_std::marker::PhantomData<DescribeInterior>);
|
||||
pub struct DescribeGlobalPrefix<DescribeInterior>(core::marker::PhantomData<DescribeInterior>);
|
||||
impl<Suffix: DescribeLocation> DescribeLocation for DescribeGlobalPrefix<Suffix> {
|
||||
fn describe_location(l: &Location) -> Option<Vec<u8>> {
|
||||
match (l.parent_count(), l.first_interior()) {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ use scale_info::TypeInfo;
|
|||
use sp_arithmetic::traits::{BaseArithmetic, Unsigned, Zero};
|
||||
use sp_core::U256;
|
||||
use sp_runtime::{FixedU128, RuntimeDebug};
|
||||
use sp_std::prelude::*;
|
||||
|
||||
#[derive(Clone, Encode, Decode, PartialEq, RuntimeDebug, MaxEncodedLen, TypeInfo)]
|
||||
pub struct PricingParameters<Balance> {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
extern crate alloc;
|
||||
|
||||
use crate::reward::RewardPaymentError::{ChargeFeesFailure, XcmSendFailure};
|
||||
use core::{fmt::Debug, marker::PhantomData};
|
||||
use frame_support::dispatch::GetDispatchInfo;
|
||||
use scale_info::TypeInfo;
|
||||
use sp_runtime::{
|
||||
|
|
@ -11,7 +12,6 @@ use sp_runtime::{
|
|||
traits::Get,
|
||||
DispatchError,
|
||||
};
|
||||
use sp_std::{fmt::Debug, marker::PhantomData};
|
||||
use xcm::{
|
||||
opaque::latest::prelude::Xcm,
|
||||
prelude::{ExecuteXcm, Junction::*, Location, SendXcm, *},
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
use core::marker::PhantomData;
|
||||
use frame_support::storage::StorageMap;
|
||||
use sp_std::marker::PhantomData;
|
||||
|
||||
/// Sparse bitmap interface.
|
||||
pub trait SparseBitmap<BitMap>
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ serde-big-array = { optional = true, features = [
|
|||
|
||||
sp-io = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
ethabi = { workspace = true }
|
||||
|
||||
|
|
@ -51,5 +50,4 @@ std = [
|
|||
"serde-big-array",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
use alloc::boxed::Box;
|
||||
use alloc::vec::Vec;
|
||||
use codec::{Decode, Encode};
|
||||
use ethbloom::Bloom as EthBloom;
|
||||
use hex_literal::hex;
|
||||
|
|
@ -8,7 +10,6 @@ use rlp::RlpStream;
|
|||
use scale_info::TypeInfo;
|
||||
use sp_io::hashing::keccak_256;
|
||||
use sp_runtime::RuntimeDebug;
|
||||
use sp_std::prelude::*;
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
pub mod header;
|
||||
pub mod log;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
use alloc::vec::Vec;
|
||||
use codec::{Decode, Encode};
|
||||
use ethereum_types::{H160, H256};
|
||||
use sp_std::prelude::*;
|
||||
|
||||
#[derive(Clone, Debug, Encode, Decode, PartialEq, Eq)]
|
||||
pub struct Log {
|
||||
|
|
|
|||
|
|
@ -2,8 +2,9 @@
|
|||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
//! Helper types to work with Ethereum's Merkle Patricia Trie nodes
|
||||
|
||||
use alloc::boxed::Box;
|
||||
use alloc::vec::Vec;
|
||||
use ethereum_types::H256;
|
||||
use sp_std::prelude::*;
|
||||
|
||||
pub trait Node {
|
||||
fn contains_hash(&self, hash: H256) -> bool;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
use crate::{Bloom, Log};
|
||||
use alloc::vec::Vec;
|
||||
use codec::{Decode, Encode};
|
||||
use sp_runtime::RuntimeDebug;
|
||||
use sp_std::prelude::*;
|
||||
|
||||
#[derive(Clone, Default, Encode, Decode, PartialEq, RuntimeDebug)]
|
||||
pub struct Receipt {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ frame-system = { workspace = true }
|
|||
sp-core = { workspace = true }
|
||||
sp-io = { workspace = true }
|
||||
sp-runtime = { workspace = true }
|
||||
sp-std = { workspace = true }
|
||||
|
||||
xcm = { workspace = true }
|
||||
xcm-builder = { workspace = true }
|
||||
|
|
@ -61,7 +60,6 @@ std = [
|
|||
"sp-core/std",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
"xcm-builder/std",
|
||||
"xcm-executor/std",
|
||||
"xcm/std",
|
||||
|
|
|
|||
|
|
@ -2,12 +2,14 @@
|
|||
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
|
||||
// SPDX-FileCopyrightText: 2021-2022 Parity Technologies (UK) Ltd.
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
extern crate alloc;
|
||||
|
||||
pub mod v1;
|
||||
pub mod v2;
|
||||
use codec::Encode;
|
||||
use core::marker::PhantomData;
|
||||
use snowbridge_beacon_primitives::BeaconHeader;
|
||||
use sp_core::{blake2_256, RuntimeDebug, H256};
|
||||
use sp_std::marker::PhantomData;
|
||||
use xcm::prelude::{AccountKey20, Ethereum, GlobalConsensus, Location};
|
||||
use xcm_executor::traits::ConvertLocation;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
//! Converts messages from Ethereum to XCM messages
|
||||
|
||||
use crate::{CallIndex, EthereumLocationsConverterFor};
|
||||
use alloc::vec;
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode};
|
||||
use core::marker::PhantomData;
|
||||
use frame_support::{traits::tokens::Balance as BalanceT, PalletError};
|
||||
|
|
@ -10,7 +11,6 @@ use scale_info::TypeInfo;
|
|||
use snowbridge_core::TokenId;
|
||||
use sp_core::{Get, RuntimeDebug, H160, H256};
|
||||
use sp_runtime::{traits::MaybeEquivalence, MultiAddress};
|
||||
use sp_std::prelude::*;
|
||||
use xcm::prelude::{Junction::AccountKey20, *};
|
||||
|
||||
const MINIMUM_DEPOSIT: u128 = 1;
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue