diff --git a/Cargo.lock b/Cargo.lock index 9b95c4d705..0ae62985d3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -24,7 +24,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sha3 0.10.6", + "sha3", "sp-core", "sp-io", "sp-runtime", @@ -693,7 +693,6 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" dependencies = [ - "block-padding 0.2.1", "generic-array 0.14.6", ] @@ -2457,7 +2456,7 @@ dependencies = [ "rlp", "scale-info", "serde", - "sha3 0.10.6", + "sha3", "triehash", ] @@ -2500,7 +2499,7 @@ dependencies = [ "rlp", "scale-info", "serde", - "sha3 0.10.6", + "sha3", ] [[package]] @@ -2534,7 +2533,7 @@ dependencies = [ "environmental", "evm-core", "primitive-types", - "sha3 0.10.6", + "sha3", ] [[package]] @@ -5304,7 +5303,7 @@ dependencies = [ "scale-info", "serde", "session-keys-primitives", - "sha3 0.10.6", + "sha3", "smallvec", "sp-api", "sp-block-builder", @@ -5388,7 +5387,7 @@ dependencies = [ "clap", "libsecp256k1", "primitive-types", - "sha3 0.10.6", + "sha3", "sp-runtime", "tiny-bip39 0.8.2", "url", @@ -5574,7 +5573,6 @@ dependencies = [ "hex", "parity-scale-codec", "serde", - "serde_json", "sp-api", "sp-core", "sp-io", @@ -5614,7 +5612,7 @@ dependencies = [ "sc-network", "sc-utils", "serde", - "sha3 0.10.6", + "sha3", "sp-api", "sp-block-builder", "sp-blockchain", @@ -5640,7 +5638,7 @@ dependencies = [ "sc-transaction-pool", "sc-transaction-pool-api", "serde", - "sha3 0.10.6", + "sha3", "sp-api", "sp-blockchain", "sp-io", @@ -5755,7 +5753,7 @@ dependencies = [ "scale-info", "serde", "session-keys-primitives", - "sha3 0.10.6", + "sha3", "smallvec", "sp-api", "sp-block-builder", @@ -5911,7 +5909,7 @@ dependencies = [ "serde", "serde_json", "session-keys-primitives", - "sha3 0.10.6", + "sha3", "sp-api", "sp-block-builder", "sp-blockchain", @@ -6099,7 +6097,7 @@ dependencies = [ "scale-info", "serde", "session-keys-primitives", - "sha3 0.10.6", + "sha3", "smallvec", "sp-api", "sp-block-builder", @@ -6165,7 +6163,7 @@ dependencies = [ "digest 0.10.5", "multihash-derive", "sha2 0.10.6", - "sha3 0.10.6", + "sha3", "unsigned-varint", ] @@ -7295,7 +7293,7 @@ dependencies = [ "precompile-utils", "scale-info", "serde", - "sha3 0.10.6", + "sha3", "slices", "sp-core", "sp-io", @@ -7323,7 +7321,7 @@ dependencies = [ "precompile-utils", "scale-info", "serde", - "sha3 0.10.6", + "sha3", "slices", "sp-core", "sp-io", @@ -7370,7 +7368,7 @@ dependencies = [ "precompile-utils", "scale-info", "serde", - "sha3 0.10.6", + "sha3", "slices", "sp-core", "sp-io", @@ -7400,7 +7398,7 @@ dependencies = [ "precompile-utils", "scale-info", "serde", - "sha3 0.10.6", + "sha3", "similar-asserts", "slices", "sp-core", @@ -7429,7 +7427,7 @@ dependencies = [ "rustc-hex", "scale-info", "serde", - "sha3 0.9.1", + "sha3", "sp-core", "sp-io", "sp-runtime", @@ -7460,7 +7458,7 @@ dependencies = [ "rustc-hex", "scale-info", "serde", - "sha3 0.10.6", + "sha3", "sp-core", "sp-io", "sp-runtime", @@ -7532,7 +7530,7 @@ dependencies = [ "rustc-hex", "scale-info", "serde", - "sha3 0.10.6", + "sha3", "sp-core", "sp-io", "sp-runtime", @@ -7559,7 +7557,7 @@ dependencies = [ "rustc-hex", "scale-info", "serde", - "sha3 0.9.1", + "sha3", "sp-core", "sp-io", "sp-runtime", @@ -7587,7 +7585,7 @@ dependencies = [ "rustc-hex", "scale-info", "serde", - "sha3 0.10.6", + "sha3", "sp-core", "sp-io", "sp-runtime", @@ -7645,7 +7643,7 @@ dependencies = [ "rustc-hex", "scale-info", "serde", - "sha3 0.9.1", + "sha3", "sp-core", "sp-io", "sp-runtime", @@ -7674,7 +7672,7 @@ dependencies = [ "rustc-hex", "scale-info", "serde", - "sha3 0.10.6", + "sha3", "sp-core", "sp-io", "sp-runtime", @@ -7725,7 +7723,7 @@ dependencies = [ "rustc-hex", "scale-info", "serde", - "sha3 0.10.6", + "sha3", "sp-core", "sp-io", "sp-runtime", @@ -7756,7 +7754,7 @@ dependencies = [ "precompile-utils", "scale-info", "serde", - "sha3 0.10.6", + "sha3", "sp-core", "sp-io", "sp-runtime", @@ -7789,7 +7787,7 @@ dependencies = [ "rustc-hex", "scale-info", "serde", - "sha3 0.10.6", + "sha3", "sp-core", "sp-io", "sp-runtime", @@ -7821,8 +7819,7 @@ dependencies = [ "precompile-utils", "scale-info", "serde", - "sha3 0.10.6", - "slices", + "sha3", "sp-core", "sp-io", "sp-runtime", @@ -10171,7 +10168,7 @@ dependencies = [ "precompile-utils-macro", "scale-info", "serde", - "sha3 0.10.6", + "sha3", "similar-asserts", "sp-core", "sp-io", @@ -10192,7 +10189,7 @@ dependencies = [ "prettyplease", "proc-macro2", "quote", - "sha3 0.10.6", + "sha3", "sp-core", "sp-std", "syn", @@ -10216,7 +10213,7 @@ dependencies = [ "precompile-utils", "scale-info", "serde", - "sha3 0.10.6", + "sha3", "sp-core", "sp-io", "sp-runtime", @@ -12529,18 +12526,6 @@ dependencies = [ "digest 0.10.5", ] -[[package]] -name = "sha3" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809" -dependencies = [ - "block-buffer 0.9.0", - "digest 0.9.0", - "keccak", - "opaque-debug 0.3.0", -] - [[package]] name = "sha3" version = "0.10.6" @@ -12985,7 +12970,7 @@ dependencies = [ "byteorder", "digest 0.10.5", "sha2 0.10.6", - "sha3 0.10.6", + "sha3", "sp-std", "twox-hash", ] @@ -15778,7 +15763,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sha3 0.10.6", + "sha3", "sp-io", "sp-runtime", "sp-std", diff --git a/Cargo.toml b/Cargo.toml index 6f95edc88a..08df297f25 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,6 +38,309 @@ members = [ "runtime/summarize-precompile-checks", ] +[workspace.package] +authors = [ "PureStake" ] +repository = "https://github.com/PureStake/moonbeam" + +[workspace.dependencies] +# Dependencies are split into 2 groups: wasm and client. +# - "wasm" dependencies requires to be no_std compatible, which often requires +# `default-features = false`. When used in a client-side crate the "std" feature should be enabled +# there if it exists. +# - "client" dependencies are only used in the client, and thus don't need to be no_std compatible. + +# Moonbeam (wasm) +account = { path = "primitives/account", default-features = false } +evm-tracing-events = { path = "primitives/rpc/evm-tracing-events", default-features = false } +moonbeam-core-primitives = { path = "core-primitives", default-features = false } +moonbeam-primitives-ext = { path = "primitives/ext", default-features = false } +moonbeam-rpc-primitives-debug = { path = "primitives/rpc/debug", default-features = false } +moonbeam-rpc-primitives-txpool = { path = "primitives/rpc/txpool", default-features = false } + +moonbeam-evm-tracer = { path = "runtime/evm_tracer", default-features = false } +moonbeam-relay-encoder = { path = "runtime/relay-encoder", default-features = false } +moonbeam-runtime-common = { path = "runtime/common", default-features = false } + +moonbeam-xcm-benchmarks = { path = "pallets/moonbeam-xcm-benchmarks", default-features = false } +pallet-asset-manager = { path = "pallets/asset-manager", default-features = false } +pallet-author-mapping = { path = "pallets/author-mapping", default-features = false } +pallet-erc20-xcm-bridge = { path = "pallets/erc20-xcm-bridge", default-features = false } +pallet-ethereum-chain-id = { path = "pallets/ethereum-chain-id", default-features = false } +pallet-ethereum-xcm = { path = "pallets/ethereum-xcm", default-features = false } + +pallet-evm-precompile-author-mapping = { path = "precompiles/author-mapping", default-features = false } +pallet-evm-precompile-balances-erc20 = { path = "precompiles/balances-erc20", default-features = false } +pallet-evm-precompile-batch = { path = "precompiles/batch", default-features = false } +pallet-evm-precompile-call-permit = { path = "precompiles/call-permit", default-features = false } +pallet-evm-precompile-collective = { path = "precompiles/collective", default-features = false } +pallet-evm-precompile-conviction-voting = { path = "precompiles/conviction-voting", default-features = false } +pallet-evm-precompile-crowdloan-rewards = { path = "precompiles/crowdloan-rewards", default-features = false } +pallet-evm-precompile-democracy = { path = "precompiles/pallet-democracy", default-features = false } +pallet-evm-precompile-parachain-staking = { path = "precompiles/parachain-staking", default-features = false } +pallet-evm-precompile-preimage = { path = "precompiles/preimage", default-features = false } +pallet-evm-precompile-proxy = { path = "precompiles/proxy", default-features = false } +pallet-evm-precompile-randomness = { path = "precompiles/randomness", default-features = false } +pallet-evm-precompile-referenda = { path = "precompiles/referenda", default-features = false } +pallet-evm-precompile-relay-encoder = { path = "precompiles/relay-encoder", default-features = false } +pallet-evm-precompile-xcm-transactor = { path = "precompiles/xcm-transactor", default-features = false } +pallet-evm-precompile-xcm-utils = { path = "precompiles/xcm-utils", default-features = false } +pallet-evm-precompile-xtokens = { path = "precompiles/xtokens", default-features = false } +pallet-evm-precompileset-assets-erc20 = { path = "precompiles/assets-erc20", default-features = false } +pallet-maintenance-mode = { path = "pallets/maintenance-mode", default-features = false } +pallet-migrations = { path = "pallets/migrations", default-features = false } +pallet-moonbeam-orbiters = { path = "pallets/moonbeam-orbiters", default-features = false } +pallet-parachain-staking = { path = "pallets/parachain-staking", default-features = false } +pallet-proxy-genesis-companion = { path = "pallets/proxy-genesis-companion", default-features = false } +pallet-randomness = { path = "pallets/randomness", default-features = false } +pallet-xcm-transactor = { path = "pallets/xcm-transactor", default-features = false } +precompile-utils = { path = "precompiles/utils", default-features = false } +session-keys-primitives = { path = "primitives/session-keys", default-features = false } +xcm-primitives = { path = "primitives/xcm", default-features = false } + +pallet-crowdloan-rewards = { git = "https://github.com/purestake/crowdloan-rewards", branch = "moonbeam-polkadot-v0.9.37", default-features = false } + +# Moonbeam (client) +moonbeam-cli = { path = "node/cli", default-features = false } +moonbeam-cli-opt = { path = "node/cli-opt", default-features = false } +moonbeam-service = { path = "node/service", default-features = false } + +manual-xcm-rpc = { path = "client/rpc/manual-xcm" } +moonbeam-client-evm-tracing = { path = "client/evm-tracing" } +moonbeam-finality-rpc = { path = "client/rpc/finality" } +moonbeam-rpc-core-debug = { path = "client/rpc-core/debug" } +moonbeam-rpc-core-trace = { path = "client/rpc-core/trace" } +moonbeam-rpc-core-txpool = { path = "client/rpc-core/txpool" } +moonbeam-rpc-core-types = { path = "client/rpc-core/types" } +moonbeam-rpc-debug = { path = "client/rpc/debug" } +moonbeam-rpc-trace = { path = "client/rpc/trace" } +moonbeam-rpc-txpool = { path = "client/rpc/txpool" } +moonbeam-vrf = { path = "client/vrf" } + +moonbase-runtime = { path = "runtime/moonbase" } +moonbeam-runtime = { path = "runtime/moonbeam" } +moonriver-runtime = { path = "runtime/moonriver" } + +# Substrate (wasm) +frame-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-executive = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-system-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-system-rpc-runtime-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-try-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-assets = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-collective = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-conviction-voting = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-democracy = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-identity = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-preimage = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-proxy = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-randomness-collective-flip = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-referenda = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-root-testing = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-scheduler = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-society = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-staking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-sudo = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-transaction-payment = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-treasury = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-utility = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-whitelist = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } +scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } +sp-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-application-crypto = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-block-builder = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-consensus-babe = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-consensus-vrf = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-debug-derive = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-externalities = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-inherents = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-keystore = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-offchain = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-runtime-interface = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-session = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-transaction-pool = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +sp-version = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +substrate-fixed = { git = "https://github.com/encointer/substrate-fixed", default-features = false } + +# Substrate (client) +frame-benchmarking-cli = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-transaction-payment-rpc = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-basic-authorship = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-block-builder = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-chain-spec = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-cli = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-client-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-client-db = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-consensus = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-consensus-manual-seal = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-executor = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-finality-grandpa = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-informant = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-network = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-network-common = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-rpc = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-rpc-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-service = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-sysinfo = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-telemetry = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-tracing = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-transaction-pool = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-transaction-pool-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-utils = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sp-blockchain = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sp-consensus = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sp-storage = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sp-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sp-trie = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sp-wasm-interface = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +substrate-build-script-utils = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +substrate-frame-rpc-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +substrate-prometheus-endpoint = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +substrate-test-client = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +substrate-test-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +substrate-test-runtime-client = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +substrate-wasm-builder = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +try-runtime-cli = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } + +# Frontier (wasm) +ethereum = { version = "0.14.0", default-features = false, features = [ "with-codec" ] } +ethereum-types = { version = "0.14", default-features = false } +evm = { version = "0.37.0", default-features = false, features = [ "with-codec" ] } +evm-gasometer = { version = "0.37.0", default-features = false } +evm-runtime = { version = "0.37.0", default-features = false } +fp-ethereum = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +fp-rpc = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +fp-self-contained = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-base-fee = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-ethereum = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +pallet-evm-precompile-blake2 = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-evm-precompile-bn128 = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-evm-precompile-dispatch = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-evm-precompile-modexp = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-evm-precompile-sha3fips = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-evm-precompile-simple = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } + +# Frontier (client) +fc-consensus = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } +fc-db = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } +fc-mapping-sync = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } +fc-rpc = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", features = [ "rpc-binary-search-estimate" ] } +fc-rpc-core = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } +fp-consensus = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } +fp-storage = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } + +# Cumulus / Nimbus (wasm) +cumulus-pallet-dmp-queue = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-pallet-parachain-system = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-pallet-xcm = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-pallet-xcmp-queue = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-primitives-parachain-inherent = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-primitives-timestamp = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-primitives-utility = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-test-relay-sproof-builder = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +nimbus-primitives = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-author-inherent = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-author-slot-filter = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +parachain-info = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } + +# Cumulus / Nimbus (client) +cumulus-client-cli = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } +cumulus-client-collator = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } +cumulus-client-consensus-common = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } +cumulus-client-consensus-relay-chain = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } +cumulus-client-network = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } +cumulus-client-service = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } +cumulus-relay-chain-inprocess-interface = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } +cumulus-relay-chain-interface = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } +cumulus-relay-chain-minimal-node = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } +cumulus-relay-chain-rpc-interface = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } +nimbus-consensus = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37" } + +# Polkadot / XCM (wasm) +orml-traits = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +orml-xcm-support = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +orml-xtokens = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-xcm-benchmarks = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +polkadot-core-primitives = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +polkadot-parachain = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +xcm-builder = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +xcm-executor = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } + +# Polkadot / XCM (client) +kusama-runtime = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +polkadot-cli = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +polkadot-primitives = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +polkadot-runtime = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +polkadot-runtime-common = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +polkadot-runtime-parachains = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +polkadot-service = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +rococo-runtime = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +westend-runtime = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +xcm-simulator = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } + +# Other (wasm) +affix = "0.1.2" +async-trait = { version = "0.1.42" } +blake2-rfc = { version = "0.2.18", default-features = false } +derive_more = "0.99" +environmental = { version = "1.1.2", default-features = false } +hex = { version = "0.4.3", default-features = false } +hex-literal = { version = "0.3.4" } +impl-serde = { version = "0.3.1", default-features = false } +impl-trait-for-tuples = "0.2.1" +libsecp256k1 = { version = "0.7", default-features = false } +log = { version = "0.4", default-features = false } +num_enum = { version = "0.5.3", default-features = false } +paste = "1.0.6" +rlp = { version = "0.5", default-features = false } +rustc-hex = { version = "2.0.1", default-features = false } +serde = { version = "1.0.101", default-features = false } +sha3 = { version = "0.10", default-features = false } +slices = "0.2.0" +smallvec = "1.8.0" +strum = { version = "0.24", default-features = false, features = [ "derive" ] } +strum_macros = "0.24" + +# Other (client) +ansi_term = "0.12.1" +assert_cmd = "0.12" +async-io = "1.3" +bip32 = { git = "https://github.com/purestake/crates", branch = "bip32-v0.4.0-fix", default-features = false, features = [ "bip39" ] } +clap = { version = "4.0.9", features = [ "derive" ] } +exit-future = "0.2" +flume = "0.10.9" +futures = { version = "0.3.1" } +jsonrpsee = { version = "0.16.2", default-features = false } +maplit = "1.0.2" +nix = "0.23" +parking_lot = "0.12.0" +primitive-types = "0.12.0" +prometheus = { version = "0.13.0", default-features = false } +rand = "0.7.3" +serde_json = { version = "1.0" } +similar-asserts = "1.1.0" +tempfile = "3.2.0" +tiny-bip39 = { version = "0.8", default-features = false } +tokio = { version = "1.13" } +tracing = "0.1.34" +tracing-core = "0.1.29" +trie-root = "0.15.2" +url = "2.2.2" + [patch.crates-io] evm = { git = "https://github.com/rust-blockchain/evm", rev = "842e03d068ddb6a3195a2dedc4a9b63caadb3355" } evm-core = { git = "https://github.com/rust-blockchain/evm", rev = "842e03d068ddb6a3195a2dedc4a9b63caadb3355" } diff --git a/bin/utils/moonkey/Cargo.toml b/bin/utils/moonkey/Cargo.toml index 75c43cf3b8..e9a77cbe6f 100644 --- a/bin/utils/moonkey/Cargo.toml +++ b/bin/utils/moonkey/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "moonkey" -authors = [ "PureStake" ] +authors = { workspace = true } description = "Moonbeam Key Tool" edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" +repository = { workspace = true } version = "0.1.1" [[bin]] @@ -12,5 +13,5 @@ name = "moonkey" path = "src/main.rs" [dependencies] -clap = { version = "4.0.9", features = [ "derive" ] } -cli-opt = { package = "moonbeam-cli-opt", path = "../../../node/cli-opt", default-features = false } +clap = { workspace = true } +moonbeam-cli-opt = { workspace = true } diff --git a/bin/utils/moonkey/src/main.rs b/bin/utils/moonkey/src/main.rs index 62a9f5bc5d..6e864e5561 100644 --- a/bin/utils/moonkey/src/main.rs +++ b/bin/utils/moonkey/src/main.rs @@ -17,7 +17,7 @@ //! Generate an Ethereum account. use clap::Parser; -use cli_opt::account_key::GenerateAccountKey; +use moonbeam_cli_opt::account_key::GenerateAccountKey; #[derive(Debug, Parser)] #[clap(author = "PureStake")] diff --git a/client/evm-tracing/Cargo.toml b/client/evm-tracing/Cargo.toml index f6d0f1cd7d..3a65c76361 100644 --- a/client/evm-tracing/Cargo.toml +++ b/client/evm-tracing/Cargo.toml @@ -1,22 +1,22 @@ [package] name = "moonbeam-client-evm-tracing" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.1.0" [dependencies] -ethereum-types = { version = "0.14" } -hex = { version = "0.4", features = [ "serde" ] } -serde = { version = "1.0", features = [ "derive" ] } -serde_json = { version = "1.0" } +ethereum-types = { workspace = true, features = [ "std" ] } +hex = { workspace = true, features = [ "serde" ] } +serde = { workspace = true, features = [ "derive", "std" ] } +serde_json = { workspace = true } # Moonbeam -evm-tracing-events = { path = "../../primitives/rpc/evm-tracing-events" } -moonbeam-rpc-primitives-debug = { path = "../../primitives/rpc/debug" } +evm-tracing-events = { workspace = true, features = [ "std" ] } +moonbeam-rpc-primitives-debug = { workspace = true, features = [ "std" ] } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +parity-scale-codec = { workspace = true, features = [ "std" ] } +sp-std = { workspace = true, features = [ "std" ] } diff --git a/client/evm-tracing/src/formatters/blockscout.rs b/client/evm-tracing/src/formatters/blockscout.rs index 58cb91966a..c880c6c3d8 100644 --- a/client/evm-tracing/src/formatters/blockscout.rs +++ b/client/evm-tracing/src/formatters/blockscout.rs @@ -20,8 +20,8 @@ use crate::types::{ single::{Call, TransactionTrace}, CallResult, CallType, CreateResult, }; -use codec::{Decode, Encode}; use ethereum_types::{H160, U256}; +use parity_scale_codec::{Decode, Encode}; use serde::Serialize; pub struct Formatter; diff --git a/client/evm-tracing/src/formatters/call_tracer.rs b/client/evm-tracing/src/formatters/call_tracer.rs index 9c0167a007..dc91ee601b 100644 --- a/client/evm-tracing/src/formatters/call_tracer.rs +++ b/client/evm-tracing/src/formatters/call_tracer.rs @@ -25,8 +25,8 @@ use crate::listeners::call_list::Listener; use crate::types::serialization::*; use serde::Serialize; -use codec::{Decode, Encode}; use ethereum_types::{H160, U256}; +use parity_scale_codec::{Decode, Encode}; use sp_std::{cmp::Ordering, vec::Vec}; pub struct Formatter; diff --git a/client/evm-tracing/src/types/block.rs b/client/evm-tracing/src/types/block.rs index 37c678de4a..58052d0250 100644 --- a/client/evm-tracing/src/types/block.rs +++ b/client/evm-tracing/src/types/block.rs @@ -19,8 +19,8 @@ use super::serialization::*; use serde::Serialize; -use codec::{Decode, Encode}; use ethereum_types::{H160, H256, U256}; +use parity_scale_codec::{Decode, Encode}; use sp_std::vec::Vec; #[derive(Clone, Eq, PartialEq, Debug, Encode, Decode, Serialize)] diff --git a/client/evm-tracing/src/types/mod.rs b/client/evm-tracing/src/types/mod.rs index fe3feb17cf..477df07fdc 100644 --- a/client/evm-tracing/src/types/mod.rs +++ b/client/evm-tracing/src/types/mod.rs @@ -18,8 +18,8 @@ extern crate alloc; -use codec::{Decode, Encode}; use ethereum_types::{H160, H256}; +use parity_scale_codec::{Decode, Encode}; use sp_std::vec::Vec; pub mod block; diff --git a/client/evm-tracing/src/types/single.rs b/client/evm-tracing/src/types/single.rs index dbf5bf076c..57ebe471e0 100644 --- a/client/evm-tracing/src/types/single.rs +++ b/client/evm-tracing/src/types/single.rs @@ -22,8 +22,8 @@ use super::serialization::*; use serde::Serialize; -use codec::{Decode, Encode}; use ethereum_types::{H256, U256}; +use parity_scale_codec::{Decode, Encode}; use sp_std::{collections::btree_map::BTreeMap, vec::Vec}; #[derive(Clone, Eq, PartialEq, Debug, Encode, Decode, Serialize)] diff --git a/client/rpc-core/debug/Cargo.toml b/client/rpc-core/debug/Cargo.toml index 7b6fb7408e..6ecffd7309 100644 --- a/client/rpc-core/debug/Cargo.toml +++ b/client/rpc-core/debug/Cargo.toml @@ -1,19 +1,19 @@ [package] name = "moonbeam-rpc-core-debug" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.1.0" [dependencies] -ethereum-types = "0.14" -futures = { version = "0.3", features = [ "compat" ] } -jsonrpsee = { version = "0.16.2", default-features = false, features = [ "macros", "server" ] } -moonbeam-client-evm-tracing = { path = "../../evm-tracing" } -moonbeam-rpc-core-types = { path = "../types" } -serde = { version = "1.0", features = [ "derive" ] } -serde_json = "1.0" +ethereum-types = { workspace = true, features = [ "std" ] } +futures = { workspace = true, features = [ "compat" ] } +jsonrpsee = { workspace = true, features = [ "macros", "server" ] } +moonbeam-client-evm-tracing = { workspace = true } +moonbeam-rpc-core-types = { workspace = true } +serde = { workspace = true, features = [ "derive" ] } +serde_json = { workspace = true } sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } diff --git a/client/rpc-core/trace/Cargo.toml b/client/rpc-core/trace/Cargo.toml index d28eec1e43..048e15b5cb 100644 --- a/client/rpc-core/trace/Cargo.toml +++ b/client/rpc-core/trace/Cargo.toml @@ -1,17 +1,17 @@ [package] name = "moonbeam-rpc-core-trace" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.6.0" [dependencies] -ethereum-types = "0.14" -futures = { version = "0.3.1", features = [ "compat" ] } -jsonrpsee = { version = "0.16.2", default-features = false, features = [ "macros", "server" ] } -moonbeam-client-evm-tracing = { path = "../../evm-tracing" } -moonbeam-rpc-core-types = { path = "../types" } -serde = { version = "1.0", features = [ "derive" ] } -serde_json = "1.0" +ethereum-types = { workspace = true, features = [ "std" ] } +futures = { workspace = true, features = [ "compat" ] } +jsonrpsee = { workspace = true, features = [ "macros", "server" ] } +moonbeam-client-evm-tracing = { workspace = true } +moonbeam-rpc-core-types = { workspace = true } +serde = { workspace = true, features = [ "derive" ] } +serde_json = { workspace = true } diff --git a/client/rpc-core/txpool/Cargo.toml b/client/rpc-core/txpool/Cargo.toml index 90d041d9cc..9467c94070 100644 --- a/client/rpc-core/txpool/Cargo.toml +++ b/client/rpc-core/txpool/Cargo.toml @@ -1,17 +1,17 @@ [package] name = "moonbeam-rpc-core-txpool" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.6.0" [dependencies] -ethereum = { version = "0.14.0", default-features = false, features = [ "with-codec" ] } -ethereum-types = "0.14" -jsonrpsee = { version = "0.16.2", default-features = false, features = [ "macros", "server" ] } -serde = { version = "1.0", features = [ "derive" ] } -serde_json = "1.0" +ethereum = { workspace = true, features = [ "std", "with-codec" ] } +ethereum-types = { workspace = true, features = [ "std" ] } +jsonrpsee = { workspace = true, features = [ "macros", "server" ] } +serde = { workspace = true, features = [ "derive" ] } +serde_json = { workspace = true } -fc-rpc-core = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } +fc-rpc-core = { workspace = true } diff --git a/client/rpc-core/types/Cargo.toml b/client/rpc-core/types/Cargo.toml index 7da669438b..5ab9086522 100644 --- a/client/rpc-core/types/Cargo.toml +++ b/client/rpc-core/types/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "moonbeam-rpc-core-types" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.1.0" [dependencies] -ethereum-types = "0.14" -serde = { version = "1.0", features = [ "derive" ] } -serde_json = "1.0" +ethereum-types = { workspace = true, features = [ "std" ] } +serde = { workspace = true, features = [ "derive" ] } +serde_json = { workspace = true } diff --git a/client/rpc/debug/Cargo.toml b/client/rpc/debug/Cargo.toml index 963925a66c..7728d51296 100644 --- a/client/rpc/debug/Cargo.toml +++ b/client/rpc/debug/Cargo.toml @@ -1,38 +1,38 @@ [package] name = "moonbeam-rpc-debug" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.1.0" [dependencies] -futures = { version = "0.3", features = [ "compat" ] } -hex-literal = "0.3.4" -jsonrpsee = { version = "0.16.2", default-features = false, features = [ "macros", "server" ] } -tokio = { version = "1.10", features = [ "sync", "time" ] } +futures = { workspace = true, features = [ "compat" ] } +hex-literal = { workspace = true } +jsonrpsee = { workspace = true, features = [ "macros", "server" ] } +tokio = { workspace = true, features = [ "sync", "time" ] } # Moonbeam -moonbeam-client-evm-tracing = { path = "../../evm-tracing" } -moonbeam-rpc-core-debug = { path = "../../rpc-core/debug" } -moonbeam-rpc-core-types = { path = "../../rpc-core/types" } -moonbeam-rpc-primitives-debug = { path = "../../../primitives/rpc/debug" } +moonbeam-client-evm-tracing = { workspace = true } +moonbeam-rpc-core-debug = { workspace = true } +moonbeam-rpc-core-types = { workspace = true } +moonbeam-rpc-primitives-debug = { workspace = true, features = [ "std" ] } # Substrate -sc-client-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-utils = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-block-builder = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-blockchain = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-client-api = { workspace = true } +sc-utils = { workspace = true } +sp-api = { workspace = true, features = [ "std" ] } +sp-block-builder = { workspace = true, features = [ "std" ] } +sp-blockchain = { workspace = true } +sp-core = { workspace = true, features = [ "std" ] } +sp-io = { workspace = true, features = [ "std" ] } +sp-runtime = { workspace = true, features = [ "std" ] } # Frontier -ethereum = { version = "0.14.0", default-features = false, features = [ "with-codec" ] } -ethereum-types = "0.14" -fc-consensus = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } -fc-db = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } -fc-rpc = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", features = [ "rpc-binary-search-estimate" ] } -fp-rpc = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } +ethereum = { workspace = true, features = [ "std", "with-codec" ] } +ethereum-types = { workspace = true, features = [ "std" ] } +fc-consensus = { workspace = true } +fc-db = { workspace = true } +fc-rpc = { workspace = true, features = [ "rpc-binary-search-estimate" ] } +fp-rpc = { workspace = true, features = [ "std" ] } diff --git a/client/rpc/finality/Cargo.toml b/client/rpc/finality/Cargo.toml index 48d2d1a7dd..bb0b406126 100644 --- a/client/rpc/finality/Cargo.toml +++ b/client/rpc/finality/Cargo.toml @@ -1,22 +1,22 @@ [package] name = "moonbeam-finality-rpc" -authors = [ "PureStake" ] +authors = { workspace = true } description = "An experimental RPC to check for block and transaction finality in the moonbeam parachain" edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.1.0" [dependencies] -futures = { version = "0.3", features = [ "compat" ] } -jsonrpsee = { version = "0.16.2", default-features = false, features = [ "macros", "server" ] } -parity-scale-codec = "3.0.0" -tokio = { version = "1.12.0", features = [ "sync", "time" ] } +futures = { workspace = true, features = [ "compat" ] } +jsonrpsee = { workspace = true, features = [ "macros", "server" ] } +parity-scale-codec = { workspace = true, features = [ "std" ] } +tokio = { workspace = true, features = [ "sync", "time" ] } -fc-db = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } -fc-rpc = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } -sp-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-blockchain = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +fc-db = { workspace = true } +fc-rpc = { workspace = true } +sp-api = { workspace = true, features = [ "std" ] } +sp-blockchain = { workspace = true } +sp-core = { workspace = true, features = [ "std" ] } +sp-runtime = { workspace = true, features = [ "std" ] } diff --git a/client/rpc/manual-xcm/Cargo.toml b/client/rpc/manual-xcm/Cargo.toml index fdf8f95edc..b41c3b5937 100644 --- a/client/rpc/manual-xcm/Cargo.toml +++ b/client/rpc/manual-xcm/Cargo.toml @@ -1,19 +1,19 @@ [package] name = "manual-xcm-rpc" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.1.0" [dependencies] -flume = "0.10.9" -futures = { version = "0.3", features = [ "compat" ] } -hex-literal = "0.3.3" -jsonrpsee = { version = "0.16.2", default-features = false, features = [ "macros", "server" ] } -parity-scale-codec = "3.0.0" -tokio = { version = "1.12.0", features = [ "sync", "time" ] } -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +flume = { workspace = true } +futures = { workspace = true, features = [ "compat" ] } +hex-literal = { workspace = true } +jsonrpsee = { workspace = true, features = [ "macros", "server" ] } +parity-scale-codec = { workspace = true, features = [ "std" ] } +tokio = { workspace = true, features = [ "sync", "time" ] } +xcm = { workspace = true } -cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } +cumulus-primitives-core = { workspace = true, features = [ "std" ] } diff --git a/client/rpc/trace/Cargo.toml b/client/rpc/trace/Cargo.toml index 11f1fe0435..6d381b31b1 100644 --- a/client/rpc/trace/Cargo.toml +++ b/client/rpc/trace/Cargo.toml @@ -1,42 +1,42 @@ [package] name = "moonbeam-rpc-trace" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.6.0" [dependencies] -ethereum = { version = "0.14.0", features = [ "with-codec" ] } -ethereum-types = "0.14" -futures = { version = "0.3" } -jsonrpsee = { version = "0.16.2", default-features = false, features = [ "macros", "server" ] } -serde = { version = "1.0", features = [ "derive" ] } -sha3 = "0.10" -tokio = { version = "1.10", features = [ "sync", "time" ] } -tracing = "0.1.34" +ethereum = { workspace = true, features = [ "with-codec" ] } +ethereum-types = { workspace = true } +futures = { workspace = true } +jsonrpsee = { workspace = true, features = [ "macros", "server" ] } +serde = { workspace = true, features = [ "derive" ] } +sha3 = { workspace = true } +tokio = { workspace = true, features = [ "sync", "time" ] } +tracing = { workspace = true } # Moonbeam -moonbeam-client-evm-tracing = { path = "../../evm-tracing" } -moonbeam-rpc-core-trace = { path = "../../rpc-core/trace" } -moonbeam-rpc-core-types = { path = "../../rpc-core/types" } -moonbeam-rpc-primitives-debug = { path = "../../../primitives/rpc/debug" } +moonbeam-client-evm-tracing = { workspace = true } +moonbeam-rpc-core-trace = { workspace = true } +moonbeam-rpc-core-types = { workspace = true } +moonbeam-rpc-primitives-debug = { workspace = true } # Substrate -sc-client-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-network = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-utils = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-block-builder = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-blockchain = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-transaction-pool = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sc-client-api = { workspace = true } +sc-network = { workspace = true } +sc-utils = { workspace = true } +sp-api = { workspace = true } +sp-block-builder = { workspace = true } +sp-blockchain = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } +sp-transaction-pool = { workspace = true } # Frontier -fc-consensus = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } -fc-rpc = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", features = [ "rpc-binary-search-estimate" ] } -fc-rpc-core = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } -fp-rpc = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } +fc-consensus = { workspace = true } +fc-rpc = { workspace = true, features = [ "rpc-binary-search-estimate" ] } +fc-rpc-core = { workspace = true } +fp-rpc = { workspace = true } diff --git a/client/rpc/txpool/Cargo.toml b/client/rpc/txpool/Cargo.toml index a7103668de..da74994091 100644 --- a/client/rpc/txpool/Cargo.toml +++ b/client/rpc/txpool/Cargo.toml @@ -1,32 +1,32 @@ [package] name = "moonbeam-rpc-txpool" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.6.0" [dependencies] -jsonrpsee = { version = "0.16.2", default-features = false, features = [ "macros", "server" ] } -rlp = "0.5" -serde = { version = "1.0", features = [ "derive" ] } -sha3 = "0.10" +jsonrpsee = { workspace = true, features = [ "macros", "server" ] } +rlp = { workspace = true } +serde = { workspace = true, features = [ "derive" ] } +sha3 = { workspace = true } # Moonbeam -moonbeam-rpc-core-txpool = { path = "../../rpc-core/txpool" } -moonbeam-rpc-primitives-txpool = { path = "../../../primitives/rpc/txpool" } +moonbeam-rpc-core-txpool = { workspace = true } +moonbeam-rpc-primitives-txpool = { workspace = true, features = [ "std" ] } # Substrate -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-transaction-pool = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-transaction-pool-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-blockchain = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +frame-system = { workspace = true } +sc-transaction-pool = { workspace = true } +sc-transaction-pool-api = { workspace = true } +sp-api = { workspace = true } +sp-blockchain = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Frontier -ethereum-types = "0.14" -fc-rpc = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", features = [ "rpc-binary-search-estimate" ] } +ethereum-types = { workspace = true, features = [ "std" ] } +fc-rpc = { workspace = true } diff --git a/client/vrf/Cargo.toml b/client/vrf/Cargo.toml index f3d5a094fa..dac5d20cf5 100644 --- a/client/vrf/Cargo.toml +++ b/client/vrf/Cargo.toml @@ -1,27 +1,27 @@ [package] name = "moonbeam-vrf" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2018" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.1.0" [dependencies] # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", features = [ "derive" ] } -sp-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-application-crypto = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-consensus-vrf = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-keystore = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +parity-scale-codec = { workspace = true, features = [ "derive", "std" ] } +sp-api = { workspace = true, features = [ "std" ] } +sp-application-crypto = { workspace = true } +sp-consensus-vrf = { workspace = true } +sp-core = { workspace = true, features = [ "std" ] } +sp-keystore = { workspace = true } +sp-runtime = { workspace = true } # Moonbeam -session-keys-primitives = { path = "../../primitives/session-keys" } +session-keys-primitives = { workspace = true, features = [ "std" ] } # Nimbus -nimbus-primitives = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37" } +nimbus-primitives = { workspace = true, features = [ "std" ] } # Polkadot -polkadot-primitives = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +polkadot-primitives = { workspace = true } diff --git a/core-primitives/Cargo.toml b/core-primitives/Cargo.toml index a20145b705..eaa08e6ed9 100644 --- a/core-primitives/Cargo.toml +++ b/core-primitives/Cargo.toml @@ -1,18 +1,18 @@ [package] name = "moonbeam-core-primitives" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.1.1" [dependencies] -account = { path = "../primitives/account", default-features = false } +account = { workspace = true } -fp-self-contained = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +fp-self-contained = { workspace = true } +sp-core = { workspace = true } +sp-runtime = { workspace = true } [features] default = [ "std" ] diff --git a/node/Cargo.toml b/node/Cargo.toml index ce47df3eb3..5ee1532743 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "moonbeam" -authors = [ "PureStake" ] +authors = { workspace = true } description = "Moonbeam Collator" edition = "2021" homepage = "https://moonbeam.network" @@ -12,23 +12,23 @@ name = 'moonbeam' path = 'src/main.rs' [dependencies] -futures = { version = "0.3.1", features = [ "compat" ] } +futures = { workspace = true, features = [ "compat" ] } -moonbeam-cli = { path = "cli", default-features = false } -moonbeam-service = { path = "service", default-features = false } +moonbeam-cli = { workspace = true } +moonbeam-service = { workspace = true } [dev-dependencies] -assert_cmd = "0.12" -hex = "0.4.3" -nix = "0.23" -serde = { version = "1.0.101", features = [ "derive" ] } -serde_json = "1.0" -tempfile = "3.2.0" -tracing-core = "0.1.29" +assert_cmd = { workspace = true } +hex = { workspace = true, features = [ "std" ] } +nix = { workspace = true } +serde = { workspace = true, features = [ "derive" ] } +serde_json = { workspace = true } +tempfile = { workspace = true } +tracing-core = { workspace = true } # Benchmarking -pallet-xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -xcm-builder = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +pallet-xcm = { workspace = true, features = [ "std" ] } +xcm-builder = { workspace = true, features = [ "std" ] } [features] default = [ "moonbase-native", "moonbeam-native", "moonriver-native" ] diff --git a/node/cli-opt/Cargo.toml b/node/cli-opt/Cargo.toml index 775de4dac7..54772a8616 100644 --- a/node/cli-opt/Cargo.toml +++ b/node/cli-opt/Cargo.toml @@ -1,22 +1,22 @@ [package] name = "moonbeam-cli-opt" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" version = "0.30.0" [dependencies] -bip32 = { git = "https://github.com/purestake/crates", branch = "bip32-v0.4.0-fix", default-features = false, features = [ "bip39" ] } -clap = { version = "4.0.9", features = [ "derive" ] } -libsecp256k1 = "0.7" -primitive-types = "0.12.0" -sha3 = "0.10" -tiny-bip39 = "0.8" -url = "2.2.2" +bip32 = { workspace = true, features = [ "bip39" ] } +clap = { workspace = true, features = [ "derive" ] } +libsecp256k1 = { workspace = true, features = [ "std" ] } +primitive-types = { workspace = true } +sha3 = { workspace = true } +tiny-bip39 = { workspace = true } +url = { workspace = true } # Moonbeam -account = { path = "../../primitives/account" } +account = { workspace = true, features = [ "std" ] } # Substrate -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sp-runtime = { workspace = true, features = [ "std" ] } diff --git a/node/cli/Cargo.toml b/node/cli/Cargo.toml index 4b135e7ae9..c0aa236509 100644 --- a/node/cli/Cargo.toml +++ b/node/cli/Cargo.toml @@ -1,60 +1,61 @@ [package] name = "moonbeam-cli" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" version = "0.30.0" + [dependencies] -clap = { version = "4.0.9", features = [ "derive" ] } -log = "0.4.8" -parity-scale-codec = "3.0.0" +clap = { workspace = true, features = [ "derive" ] } +log = { workspace = true } +parity-scale-codec = { workspace = true } # Moonbeam -cli-opt = { package = "moonbeam-cli-opt", path = "../cli-opt", default-features = false } -service = { package = "moonbeam-service", path = "../service", default-features = false } +moonbeam-cli-opt = { workspace = true } +moonbeam-service = { workspace = true } # Substrate -frame-benchmarking-cli = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-cli = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-finality-grandpa = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-service = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-sysinfo = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-telemetry = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-tracing = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-wasm-interface = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -substrate-prometheus-endpoint = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -try-runtime-cli = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true } +frame-benchmarking-cli = { workspace = true } +sc-cli = { workspace = true } +sc-finality-grandpa = { workspace = true } +sc-service = { workspace = true } +sc-sysinfo = { workspace = true } +sc-telemetry = { workspace = true } +sc-tracing = { workspace = true } +sp-core = { workspace = true, features = [ "std" ] } +sp-io = { workspace = true } +sp-runtime = { workspace = true, features = [ "std" ] } +sp-wasm-interface = { workspace = true } +substrate-prometheus-endpoint = { workspace = true } +try-runtime-cli = { workspace = true, optional = true } # Cumulus / Nimbus -cumulus-client-cli = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } -cumulus-client-service = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } -cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } -nimbus-primitives = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37" } +cumulus-client-cli = { workspace = true } +cumulus-client-service = { workspace = true } +cumulus-primitives-core = { workspace = true, features = [ "std" ] } +nimbus-primitives = { workspace = true, features = [ "std" ] } # Polkadot -polkadot-cli = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -polkadot-parachain = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -polkadot-primitives = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -polkadot-service = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +polkadot-cli = { workspace = true } +polkadot-parachain = { workspace = true, features = [ "std" ] } +polkadot-primitives = { workspace = true } +polkadot-service = { workspace = true } [build-dependencies] -substrate-build-script-utils = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +substrate-build-script-utils = { workspace = true } [features] default = [ "moonbase-native", "moonbeam-native", "moonriver-native", "westend-native" ] westend-native = [ "polkadot-service/westend-native" ] -moonbase-native = [ "service/moonbase-native", "westend-native" ] -moonbeam-native = [ "service/moonbeam-native" ] -moonriver-native = [ "service/moonriver-native" ] +moonbase-native = [ "moonbeam-service/moonbase-native", "westend-native" ] +moonbeam-native = [ "moonbeam-service/moonbeam-native" ] +moonriver-native = [ "moonbeam-service/moonriver-native" ] -runtime-benchmarks = [ "polkadot-service/runtime-benchmarks", "service/runtime-benchmarks" ] +runtime-benchmarks = [ "moonbeam-service/runtime-benchmarks", "polkadot-service/runtime-benchmarks" ] try-runtime = [ - "service/try-runtime", + "moonbeam-service/try-runtime", "try-runtime-cli/try-runtime", ] -moonbase-runtime-benchmarks = [ "service/moonbase-runtime-benchmarks" ] +moonbase-runtime-benchmarks = [ "moonbeam-service/moonbase-runtime-benchmarks" ] diff --git a/node/cli/src/cli.rs b/node/cli/src/cli.rs index 3807eca8b3..77e1e3fd81 100644 --- a/node/cli/src/cli.rs +++ b/node/cli/src/cli.rs @@ -20,9 +20,9 @@ //! It is built using clap and inherits behavior from Substrate's sc_cli crate. use clap::Parser; -use cli_opt::{account_key::GenerateAccountKey, EthApi, Sealing}; +use moonbeam_cli_opt::{account_key::GenerateAccountKey, EthApi, Sealing}; +use moonbeam_service::chain_spec; use sc_cli::{Error as CliError, SubstrateCli}; -use service::chain_spec; use std::path::PathBuf; /// Sub-commands supported by the collator. diff --git a/node/cli/src/command.rs b/node/cli/src/command.rs index 9c80c15ec0..e8c73308ba 100644 --- a/node/cli/src/command.rs +++ b/node/cli/src/command.rs @@ -17,11 +17,12 @@ //! This module constructs and executes the appropriate service components for the given subcommand use crate::cli::{Cli, RelayChainCli, RunCmd, Subcommand}; -use cli_opt::{EthApi, RpcConfig}; use cumulus_client_cli::generate_genesis_block; use cumulus_primitives_core::ParaId; use frame_benchmarking_cli::BenchmarkCmd; use log::{info, warn}; +use moonbeam_cli_opt::{EthApi, RpcConfig}; +use moonbeam_service::{chain_spec, frontier_database_dir, IdentifyVariant}; use parity_scale_codec::Encode; #[cfg(feature = "westend-native")] use polkadot_service::WestendChainSpec; @@ -33,7 +34,6 @@ use sc_service::{ config::{BasePath, PrometheusConfig}, DatabaseSource, }; -use service::{chain_spec, frontier_database_dir, IdentifyVariant}; use sp_core::hexdisplay::HexDisplay; use sp_runtime::traits::{AccountIdConversion, Block as _}; use std::{io::Write, net::SocketAddr}; @@ -137,11 +137,11 @@ impl SubstrateCli for Cli { fn native_runtime_version(spec: &Box) -> &'static RuntimeVersion { match spec { #[cfg(feature = "moonriver-native")] - spec if spec.is_moonriver() => return &service::moonriver_runtime::VERSION, + spec if spec.is_moonriver() => return &moonbeam_service::moonriver_runtime::VERSION, #[cfg(feature = "moonbeam-native")] - spec if spec.is_moonbeam() => return &service::moonbeam_runtime::VERSION, + spec if spec.is_moonbeam() => return &moonbeam_service::moonbeam_runtime::VERSION, #[cfg(feature = "moonbase-native")] - _ => return &service::moonbase_runtime::VERSION, + _ => return &moonbeam_service::moonbase_runtime::VERSION, #[cfg(not(feature = "moonbase-native"))] _ => panic!("invalid chain spec"), } @@ -276,28 +276,30 @@ pub fn run() -> Result<()> { Some(Subcommand::CheckBlock(cmd)) => { let runner = cli.create_runner(cmd)?; runner.async_run(|mut config| { - let (client, _, import_queue, task_manager) = service::new_chain_ops(&mut config)?; + let (client, _, import_queue, task_manager) = + moonbeam_service::new_chain_ops(&mut config)?; Ok((cmd.run(client, import_queue), task_manager)) }) } Some(Subcommand::ExportBlocks(cmd)) => { let runner = cli.create_runner(cmd)?; runner.async_run(|mut config| { - let (client, _, _, task_manager) = service::new_chain_ops(&mut config)?; + let (client, _, _, task_manager) = moonbeam_service::new_chain_ops(&mut config)?; Ok((cmd.run(client, config.database), task_manager)) }) } Some(Subcommand::ExportState(cmd)) => { let runner = cli.create_runner(cmd)?; runner.async_run(|mut config| { - let (client, _, _, task_manager) = service::new_chain_ops(&mut config)?; + let (client, _, _, task_manager) = moonbeam_service::new_chain_ops(&mut config)?; Ok((cmd.run(client, config.chain_spec), task_manager)) }) } Some(Subcommand::ImportBlocks(cmd)) => { let runner = cli.create_runner(cmd)?; runner.async_run(|mut config| { - let (client, _, import_queue, task_manager) = service::new_chain_ops(&mut config)?; + let (client, _, import_queue, task_manager) = + moonbeam_service::new_chain_ops(&mut config)?; Ok((cmd.run(client, import_queue), task_manager)) }) } @@ -354,9 +356,9 @@ pub fn run() -> Result<()> { match chain_spec { #[cfg(feature = "moonriver-native")] spec if spec.is_moonriver() => runner.async_run(|mut config| { - let params = service::new_partial::< - service::moonriver_runtime::RuntimeApi, - service::MoonriverExecutor, + let params = moonbeam_service::new_partial::< + moonbeam_service::moonriver_runtime::RuntimeApi, + moonbeam_service::MoonriverExecutor, >(&mut config, false)?; Ok(( @@ -366,9 +368,9 @@ pub fn run() -> Result<()> { }), #[cfg(feature = "moonbeam-native")] spec if spec.is_moonbeam() => runner.async_run(|mut config| { - let params = service::new_partial::< - service::moonbeam_runtime::RuntimeApi, - service::MoonbeamExecutor, + let params = moonbeam_service::new_partial::< + moonbeam_service::moonbeam_runtime::RuntimeApi, + moonbeam_service::MoonbeamExecutor, >(&mut config, false)?; Ok(( @@ -378,9 +380,9 @@ pub fn run() -> Result<()> { }), #[cfg(feature = "moonbase-native")] _ => runner.async_run(|mut config| { - let params = service::new_partial::< - service::moonbase_runtime::RuntimeApi, - service::MoonbaseExecutor, + let params = moonbeam_service::new_partial::< + moonbeam_service::moonbase_runtime::RuntimeApi, + moonbeam_service::MoonbaseExecutor, >(&mut config, false)?; Ok(( @@ -408,7 +410,7 @@ pub fn run() -> Result<()> { let output_buf = match chain_spec { #[cfg(feature = "moonriver-native")] chain_spec if chain_spec.is_moonriver() => { - let block: service::moonriver_runtime::Block = + let block: moonbeam_service::moonriver_runtime::Block = generate_genesis_block(&*chain_spec, state_version)?; let raw_header = block.header().encode(); let output_buf = if params.raw { @@ -420,7 +422,7 @@ pub fn run() -> Result<()> { } #[cfg(feature = "moonbeam-native")] chain_spec if chain_spec.is_moonbeam() => { - let block: service::moonbeam_runtime::Block = + let block: moonbeam_service::moonbeam_runtime::Block = generate_genesis_block(&*chain_spec, state_version)?; let raw_header = block.header().encode(); let output_buf = if params.raw { @@ -432,7 +434,7 @@ pub fn run() -> Result<()> { } #[cfg(feature = "moonbase-native")] _ => { - let block: service::moonbase_runtime::Block = + let block: moonbeam_service::moonbase_runtime::Block = generate_genesis_block(&*chain_spec, state_version)?; let raw_header = block.header().encode(); let output_buf = if params.raw { @@ -487,7 +489,7 @@ pub fn run() -> Result<()> { #[cfg(feature = "moonriver-native")] spec if spec.is_moonriver() => { return runner.sync_run(|config| { - cmd.run::( + cmd.run::( config, ) }) @@ -495,7 +497,7 @@ pub fn run() -> Result<()> { #[cfg(feature = "moonbeam-native")] spec if spec.is_moonbeam() => { return runner.sync_run(|config| { - cmd.run::( + cmd.run::( config, ) }) @@ -503,7 +505,7 @@ pub fn run() -> Result<()> { #[cfg(feature = "moonbase-native")] _ => { return runner.sync_run(|config| { - cmd.run::( + cmd.run::( config, ) }) @@ -513,7 +515,7 @@ pub fn run() -> Result<()> { } } else if cfg!(feature = "moonbase-runtime-benchmarks") { return runner.sync_run(|config| { - cmd.run::( + cmd.run::( config, ) }); @@ -529,9 +531,9 @@ pub fn run() -> Result<()> { #[cfg(feature = "moonriver-native")] spec if spec.is_moonriver() => { return runner.sync_run(|mut config| { - let params = service::new_partial::< - service::moonriver_runtime::RuntimeApi, - service::MoonriverExecutor, + let params = moonbeam_service::new_partial::< + moonbeam_service::moonriver_runtime::RuntimeApi, + moonbeam_service::MoonriverExecutor, >(&mut config, false)?; cmd.run(params.client) @@ -540,9 +542,9 @@ pub fn run() -> Result<()> { #[cfg(feature = "moonbeam-native")] spec if spec.is_moonbeam() => { return runner.sync_run(|mut config| { - let params = service::new_partial::< - service::moonbeam_runtime::RuntimeApi, - service::MoonbeamExecutor, + let params = moonbeam_service::new_partial::< + moonbeam_service::moonbeam_runtime::RuntimeApi, + moonbeam_service::MoonbeamExecutor, >(&mut config, false)?; cmd.run(params.client) @@ -551,9 +553,9 @@ pub fn run() -> Result<()> { #[cfg(feature = "moonbase-native")] _ => { return runner.sync_run(|mut config| { - let params = service::new_partial::< - service::moonbase_runtime::RuntimeApi, - service::MoonbaseExecutor, + let params = moonbeam_service::new_partial::< + moonbeam_service::moonbase_runtime::RuntimeApi, + moonbeam_service::MoonbaseExecutor, >(&mut config, false)?; cmd.run(params.client) @@ -575,9 +577,9 @@ pub fn run() -> Result<()> { #[cfg(feature = "moonriver-native")] spec if spec.is_moonriver() => { return runner.sync_run(|mut config| { - let params = service::new_partial::< - service::moonriver_runtime::RuntimeApi, - service::MoonriverExecutor, + let params = moonbeam_service::new_partial::< + moonbeam_service::moonriver_runtime::RuntimeApi, + moonbeam_service::MoonriverExecutor, >(&mut config, false)?; let db = params.backend.expose_db(); @@ -589,9 +591,9 @@ pub fn run() -> Result<()> { #[cfg(feature = "moonbeam-native")] spec if spec.is_moonbeam() => { return runner.sync_run(|mut config| { - let params = service::new_partial::< - service::moonbeam_runtime::RuntimeApi, - service::MoonbeamExecutor, + let params = moonbeam_service::new_partial::< + moonbeam_service::moonbeam_runtime::RuntimeApi, + moonbeam_service::MoonbeamExecutor, >(&mut config, false)?; let db = params.backend.expose_db(); @@ -603,9 +605,9 @@ pub fn run() -> Result<()> { #[cfg(feature = "moonbase-native")] _ => { return runner.sync_run(|mut config| { - let params = service::new_partial::< - service::moonbase_runtime::RuntimeApi, - service::MoonbaseExecutor, + let params = moonbeam_service::new_partial::< + moonbeam_service::moonbase_runtime::RuntimeApi, + moonbeam_service::MoonbaseExecutor, >(&mut config, false)?; let db = params.backend.expose_db(); @@ -645,12 +647,15 @@ pub fn run() -> Result<()> { })?; Ok(( - cmd.run::::ExtendHostFunctions, + cmd.run::< + moonbeam_service::moonriver_runtime::Block, + sp_wasm_interface::ExtendedHostFunctions< + sp_io::SubstrateHostFunctions, + ::ExtendHostFunctions, >>(), - task_manager, - )) + task_manager, + )) }), #[cfg(feature = "moonbeam-native")] spec if spec.is_moonbeam() => runner.async_run(|config| { @@ -662,10 +667,13 @@ pub fn run() -> Result<()> { })?; Ok(( - cmd.run::::ExtendHostFunctions, - >>(), + cmd.run::< + moonbeam_service::moonbeam_runtime::Block, + sp_wasm_interface::ExtendedHostFunctions< + sp_io::SubstrateHostFunctions, + ::ExtendHostFunctions, + >>(), task_manager, )) }), @@ -682,10 +690,13 @@ pub fn run() -> Result<()> { })?; Ok(( - cmd.run::::ExtendHostFunctions, - >>(), + cmd.run::< + moonbeam_service::moonbase_runtime::Block, + sp_wasm_interface::ExtendedHostFunctions< + sp_io::SubstrateHostFunctions, + ::ExtendHostFunctions, + >>(), task_manager, )) }) @@ -749,21 +760,21 @@ pub fn run() -> Result<()> { return match &config.chain_spec { #[cfg(feature = "moonriver-native")] - spec if spec.is_moonriver() => service::new_dev::< - service::moonriver_runtime::RuntimeApi, - service::MoonriverExecutor, + spec if spec.is_moonriver() => moonbeam_service::new_dev::< + moonbeam_service::moonriver_runtime::RuntimeApi, + moonbeam_service::MoonriverExecutor, >(config, author_id, cli.run.sealing, rpc_config, hwbench) .map_err(Into::into), #[cfg(feature = "moonbeam-native")] - spec if spec.is_moonbeam() => service::new_dev::< - service::moonbeam_runtime::RuntimeApi, - service::MoonbeamExecutor, + spec if spec.is_moonbeam() => moonbeam_service::new_dev::< + moonbeam_service::moonbeam_runtime::RuntimeApi, + moonbeam_service::MoonbeamExecutor, >(config, author_id, cli.run.sealing, rpc_config, hwbench) .map_err(Into::into), #[cfg(feature = "moonbase-native")] - _ => service::new_dev::< - service::moonbase_runtime::RuntimeApi, - service::MoonbaseExecutor, + _ => moonbeam_service::new_dev::< + moonbeam_service::moonbase_runtime::RuntimeApi, + moonbeam_service::MoonbaseExecutor, >(config, author_id, cli.run.sealing, rpc_config, hwbench) .map_err(Into::into), #[cfg(not(feature = "moonbase-native"))] @@ -787,19 +798,19 @@ pub fn run() -> Result<()> { let genesis_state = match &config.chain_spec { #[cfg(feature = "moonriver-native")] spec if spec.is_moonriver() => { - let block: service::moonriver_runtime::Block = + let block: moonbeam_service::moonriver_runtime::Block = generate_genesis_block(&**spec, state_version)?; format!("0x{:?}", HexDisplay::from(&block.header().encode())) } #[cfg(feature = "moonbeam-native")] spec if spec.is_moonbeam() => { - let block: service::moonbeam_runtime::Block = + let block: moonbeam_service::moonbeam_runtime::Block = generate_genesis_block(&**spec, state_version)?; format!("0x{:?}", HexDisplay::from(&block.header().encode())) } #[cfg(feature = "moonbase-native")] _ => { - let block: service::moonbase_runtime::Block = + let block: moonbeam_service::moonbase_runtime::Block = generate_genesis_block(&*config.chain_spec, state_version)?; format!("0x{:?}", HexDisplay::from(&block.header().encode())) } @@ -834,25 +845,25 @@ pub fn run() -> Result<()> { match &config.chain_spec { #[cfg(feature = "moonriver-native")] - spec if spec.is_moonriver() => service::start_node::< - service::moonriver_runtime::RuntimeApi, - service::MoonriverExecutor, + spec if spec.is_moonriver() => moonbeam_service::start_node::< + moonbeam_service::moonriver_runtime::RuntimeApi, + moonbeam_service::MoonriverExecutor, >(config, polkadot_config, id, rpc_config, hwbench) .await .map(|r| r.0) .map_err(Into::into), #[cfg(feature = "moonbeam-native")] - spec if spec.is_moonbeam() => service::start_node::< - service::moonbeam_runtime::RuntimeApi, - service::MoonbeamExecutor, + spec if spec.is_moonbeam() => moonbeam_service::start_node::< + moonbeam_service::moonbeam_runtime::RuntimeApi, + moonbeam_service::MoonbeamExecutor, >(config, polkadot_config, id, rpc_config, hwbench) .await .map(|r| r.0) .map_err(Into::into), #[cfg(feature = "moonbase-native")] - _ => service::start_node::< - service::moonbase_runtime::RuntimeApi, - service::MoonbaseExecutor, + _ => moonbeam_service::start_node::< + moonbeam_service::moonbase_runtime::RuntimeApi, + moonbeam_service::MoonbaseExecutor, >(config, polkadot_config, id, rpc_config, hwbench) .await .map(|r| r.0) diff --git a/node/service/Cargo.toml b/node/service/Cargo.toml index 92365b2454..6f5e6d2a12 100644 --- a/node/service/Cargo.toml +++ b/node/service/Cargo.toml @@ -1,156 +1,156 @@ [package] name = "moonbeam-service" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" version = "0.30.0" [dependencies] -ansi_term = "0.12.1" -async-io = "1.3" -async-trait = "0.1.42" -bip32 = { git = "https://github.com/purestake/crates", branch = "bip32-v0.4.0-fix", default-features = false, features = [ "bip39" ] } -derive_more = "0.99" -exit-future = "0.2" -flume = "0.10.9" -futures = { version = "0.3.1", features = [ "compat" ] } -hex-literal = "0.3.4" -jsonrpsee = { version = "0.16.2", default-features = false, features = [ "macros", "server" ] } -libsecp256k1 = { version = "0.7", features = [ "hmac" ] } -log = "0.4" -maplit = "1.0.2" -parking_lot = "0.12.0" -serde = { version = "1.0.101", features = [ "derive" ] } -serde_json = "1.0" -sha3 = { version = "0.10", default-features = false } -tiny-bip39 = { version = "0.8", default-features = false } -tokio = { version = "1.13.0", features = [ "macros", "sync" ] } -trie-root = "0.15.2" +ansi_term = { workspace = true } +async-io = { workspace = true } +async-trait = { workspace = true } +bip32 = { workspace = true } +derive_more = { workspace = true } +exit-future = { workspace = true } +flume = { workspace = true } +futures = { workspace = true, features = [ "compat" ] } +hex-literal = { workspace = true } +jsonrpsee = { workspace = true, features = [ "macros", "server" ] } +libsecp256k1 = { workspace = true, features = [ "hmac" ] } +log = { workspace = true } +maplit = { workspace = true } +parking_lot = { workspace = true } +serde = { workspace = true, features = [ "derive" ] } +serde_json = { workspace = true } +sha3 = { workspace = true } +tiny-bip39 = { workspace = true } +tokio = { workspace = true, features = [ "macros", "sync" ] } +trie-root = { workspace = true } # Moonbeam -cli-opt = { package = "moonbeam-cli-opt", path = "../cli-opt" } -manual-xcm-rpc = { path = "../../client/rpc/manual-xcm" } -moonbeam-core-primitives = { path = "../../core-primitives" } -moonbeam-finality-rpc = { path = "../../client/rpc/finality" } -moonbeam-primitives-ext = { path = "../../primitives/ext" } -moonbeam-rpc-debug = { path = "../../client/rpc/debug" } -moonbeam-rpc-primitives-debug = { path = "../../primitives/rpc/debug" } -moonbeam-rpc-primitives-txpool = { path = "../../primitives/rpc/txpool" } -moonbeam-rpc-trace = { path = "../../client/rpc/trace" } -moonbeam-rpc-txpool = { path = "../../client/rpc/txpool" } -moonbeam-vrf = { path = "../../client/vrf" } -pallet-parachain-staking = { path = "../../pallets/parachain-staking" } -session-keys-primitives = { path = "../../primitives/session-keys" } +manual-xcm-rpc = { workspace = true } +moonbeam-cli-opt = { workspace = true } +moonbeam-core-primitives = { workspace = true } +moonbeam-finality-rpc = { workspace = true } +moonbeam-primitives-ext = { workspace = true } +moonbeam-rpc-debug = { workspace = true } +moonbeam-rpc-primitives-debug = { workspace = true } +moonbeam-rpc-primitives-txpool = { workspace = true } +moonbeam-rpc-trace = { workspace = true } +moonbeam-rpc-txpool = { workspace = true } +moonbeam-vrf = { workspace = true } +pallet-parachain-staking = { workspace = true } +session-keys-primitives = { workspace = true } # Moonbeam runtimes -moonbase-runtime = { path = "../../runtime/moonbase", optional = true } -moonbeam-runtime = { path = "../../runtime/moonbeam", optional = true } -moonriver-runtime = { path = "../../runtime/moonriver", optional = true } +moonbase-runtime = { workspace = true, optional = true } +moonbeam-runtime = { workspace = true, optional = true } +moonriver-runtime = { workspace = true, optional = true } # Substrate -frame-system-rpc-runtime-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-transaction-payment = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-transaction-payment-rpc = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -parity-scale-codec = "3.0.0" -sc-basic-authorship = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-chain-spec = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-cli = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-client-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-client-db = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-consensus = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-consensus-manual-seal = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-executor = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-finality-grandpa = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-informant = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-network = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-network-common = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-rpc = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-rpc-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-service = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-sysinfo = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-telemetry = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-tracing = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-transaction-pool = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sc-transaction-pool-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-block-builder = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-blockchain = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-consensus = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-inherents = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-keystore = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-offchain = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-session = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-storage = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-transaction-pool = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-trie = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -substrate-frame-rpc-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -substrate-prometheus-endpoint = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +frame-system-rpc-runtime-api = { workspace = true, features = [ "std" ] } +pallet-transaction-payment = { workspace = true, features = [ "std" ] } +pallet-transaction-payment-rpc = { workspace = true } +pallet-transaction-payment-rpc-runtime-api = { workspace = true, features = [ "std" ] } +parity-scale-codec = { workspace = true } +sc-basic-authorship = { workspace = true } +sc-chain-spec = { workspace = true } +sc-cli = { workspace = true } +sc-client-api = { workspace = true } +sc-client-db = { workspace = true } +sc-consensus = { workspace = true } +sc-consensus-manual-seal = { workspace = true } +sc-executor = { workspace = true } +sc-finality-grandpa = { workspace = true } +sc-informant = { workspace = true } +sc-network = { workspace = true } +sc-network-common = { workspace = true } +sc-rpc = { workspace = true } +sc-rpc-api = { workspace = true } +sc-service = { workspace = true } +sc-sysinfo = { workspace = true } +sc-telemetry = { workspace = true } +sc-tracing = { workspace = true } +sc-transaction-pool = { workspace = true } +sc-transaction-pool-api = { workspace = true } +sp-api = { workspace = true, features = [ "std" ] } +sp-block-builder = { workspace = true, features = [ "std" ] } +sp-blockchain = { workspace = true } +sp-consensus = { workspace = true } +sp-core = { workspace = true, features = [ "std" ] } +sp-inherents = { workspace = true, features = [ "std" ] } +sp-io = { workspace = true, features = [ "std" ] } +sp-keystore = { workspace = true, features = [ "std" ] } +sp-offchain = { workspace = true, features = [ "std" ] } +sp-runtime = { workspace = true, features = [ "std" ] } +sp-session = { workspace = true, features = [ "std" ] } +sp-storage = { workspace = true, features = [ "std" ] } +sp-timestamp = { workspace = true, features = [ "std" ] } +sp-transaction-pool = { workspace = true, features = [ "std" ] } +sp-trie = { workspace = true, features = [ "std" ] } +substrate-frame-rpc-system = { workspace = true } +substrate-prometheus-endpoint = { workspace = true } # Frontier -fc-consensus = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } -fc-db = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } -fc-mapping-sync = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } -fc-rpc = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", features = [ "rpc-binary-search-estimate" ] } -fc-rpc-core = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } -fp-consensus = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } -fp-rpc = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } -fp-storage = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } -pallet-ethereum = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", features = [ "forbid-evm-reentrancy" ] } +fc-consensus = { workspace = true } +fc-db = { workspace = true } +fc-mapping-sync = { workspace = true } +fc-rpc = { workspace = true, features = [ "rpc-binary-search-estimate" ] } +fc-rpc-core = { workspace = true } +fp-consensus = { workspace = true, features = [ "std" ] } +fp-rpc = { workspace = true, features = [ "std" ] } +fp-storage = { workspace = true, features = [ "std" ] } +pallet-ethereum = { workspace = true, features = [ "forbid-evm-reentrancy", "std" ] } # Cumulus / Nimbus -cumulus-client-cli = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } -cumulus-client-collator = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } -cumulus-client-consensus-common = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } -cumulus-client-consensus-relay-chain = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } -cumulus-client-network = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } -cumulus-client-service = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } -cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } -cumulus-primitives-parachain-inherent = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } -cumulus-relay-chain-inprocess-interface = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } -cumulus-relay-chain-interface = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } -cumulus-relay-chain-minimal-node = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } -cumulus-relay-chain-rpc-interface = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } -cumulus-test-relay-sproof-builder = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } -nimbus-consensus = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37" } +cumulus-client-cli = { workspace = true } +cumulus-client-collator = { workspace = true } +cumulus-client-consensus-common = { workspace = true } +cumulus-client-consensus-relay-chain = { workspace = true } +cumulus-client-network = { workspace = true } +cumulus-client-service = { workspace = true } +cumulus-primitives-core = { workspace = true } +cumulus-primitives-parachain-inherent = { workspace = true } +cumulus-relay-chain-inprocess-interface = { workspace = true } +cumulus-relay-chain-interface = { workspace = true } +cumulus-relay-chain-minimal-node = { workspace = true } +cumulus-relay-chain-rpc-interface = { workspace = true } +cumulus-test-relay-sproof-builder = { workspace = true } +nimbus-consensus = { workspace = true } # TODO we should be able to depend only on the primitives crate once we move the inherent data provider there. -nimbus-primitives = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37" } -pallet-author-inherent = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37" } +nimbus-primitives = { workspace = true } +pallet-author-inherent = { workspace = true } # Polkadot -polkadot-cli = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -polkadot-parachain = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -polkadot-primitives = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -polkadot-service = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +polkadot-cli = { workspace = true } +polkadot-parachain = { workspace = true } +polkadot-primitives = { workspace = true } +polkadot-service = { workspace = true } +xcm = { workspace = true } # Benchmarking -frame-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -frame-benchmarking-cli = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +frame-benchmarking = { workspace = true, features = [ "std" ] } +frame-benchmarking-cli = { workspace = true } [dev-dependencies] -assert_cmd = "0.12" -nix = "0.23" -prometheus = { version = "0.13.0", default-features = false } -rand = "0.7.3" -sc-block-builder = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +assert_cmd = { workspace = true } +nix = { workspace = true } +prometheus = { workspace = true } +rand = { workspace = true } +sc-block-builder = { workspace = true } # Polkadot dev-dependencies -polkadot-runtime-common = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +polkadot-runtime-common = { workspace = true } # Substrate dev-dependencies -pallet-sudo = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -substrate-test-client = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -substrate-test-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -substrate-test-runtime-client = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-sudo = { workspace = true, features = [ "std" ] } +substrate-test-client = { workspace = true } +substrate-test-runtime = { workspace = true } +substrate-test-runtime-client = { workspace = true } [build-dependencies] -substrate-build-script-utils = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +substrate-build-script-utils = { workspace = true } [features] default = [ diff --git a/node/service/src/chain_spec/mod.rs b/node/service/src/chain_spec/mod.rs index 4ed78bf409..73e0984022 100644 --- a/node/service/src/chain_spec/mod.rs +++ b/node/service/src/chain_spec/mod.rs @@ -15,9 +15,9 @@ // along with Moonbeam. If not, see . use bip32::ExtendedPrivateKey; use bip39::{Language, Mnemonic, Seed}; -use cli_opt::account_key::Secp256k1SecretKey; use libsecp256k1::{PublicKey, PublicKeyFormat}; use log::debug; +use moonbeam_cli_opt::account_key::Secp256k1SecretKey; pub use moonbeam_core_primitives::AccountId; use sc_chain_spec::{ChainSpecExtension, ChainSpecGroup}; use serde::{Deserialize, Serialize}; diff --git a/node/service/src/lib.rs b/node/service/src/lib.rs index 6831179ca2..96807fdad0 100644 --- a/node/service/src/lib.rs +++ b/node/service/src/lib.rs @@ -24,7 +24,6 @@ pub mod rpc; -use cli_opt::{EthApi as EthApiCmd, RpcConfig}; use cumulus_client_cli::CollatorOptions; use cumulus_client_consensus_common::ParachainConsensus; use cumulus_client_network::BlockAnnounceValidator; @@ -46,6 +45,7 @@ use futures::StreamExt; use maplit::hashmap; #[cfg(feature = "moonbase-native")] pub use moonbase_runtime; +use moonbeam_cli_opt::{EthApi as EthApiCmd, RpcConfig}; #[cfg(feature = "moonbeam-native")] pub use moonbeam_runtime; #[cfg(feature = "moonriver-native")] @@ -902,7 +902,7 @@ where pub fn new_dev( mut config: Configuration, _author_id: Option, - sealing: cli_opt::Sealing, + sealing: moonbeam_cli_opt::Sealing, rpc_config: RpcConfig, hwbench: Option, ) -> Result @@ -975,7 +975,7 @@ where env.set_soft_deadline(SOFT_DEADLINE_PERCENT); let commands_stream: Box> + Send + Sync + Unpin> = match sealing { - cli_opt::Sealing::Instant => { + moonbeam_cli_opt::Sealing::Instant => { Box::new( // This bit cribbed from the implementation of instant seal. transaction_pool @@ -990,13 +990,13 @@ where }), ) } - cli_opt::Sealing::Manual => { + moonbeam_cli_opt::Sealing::Manual => { let (sink, stream) = futures::channel::mpsc::channel(1000); // Keep a reference to the other end of the channel. It goes to the RPC. command_sink = Some(sink); Box::new(stream) } - cli_opt::Sealing::Interval(millis) => Box::new(StreamExt::map( + moonbeam_cli_opt::Sealing::Interval(millis) => Box::new(StreamExt::map( Timer::interval(Duration::from_millis(millis)), |_| EngineCommand::SealNewBlock { create_empty: true, diff --git a/node/service/src/rpc.rs b/node/service/src/rpc.rs index 3bee65fe5d..2eb0295a58 100644 --- a/node/service/src/rpc.rs +++ b/node/service/src/rpc.rs @@ -24,7 +24,6 @@ use fp_rpc::EthereumRuntimeRPCApi; use sp_block_builder::BlockBuilder; use crate::client::RuntimeApiCollection; -use cli_opt::EthApi as EthApiCmd; use cumulus_primitives_core::ParaId; use fc_mapping_sync::{MappingSyncWorker, SyncStrategy}; use fc_rpc::{ @@ -35,6 +34,7 @@ use fc_rpc_core::types::{CallRequest, FeeHistoryCache, FilterPool}; use fp_storage::EthereumStorageSchema; use futures::StreamExt; use jsonrpsee::RpcModule; +use moonbeam_cli_opt::EthApi as EthApiCmd; use moonbeam_core_primitives::{Block, Hash}; use sc_client_api::{ backend::{AuxStore, Backend, StateBackend, StorageProvider}, diff --git a/node/service/src/rpc/tracing.rs b/node/service/src/rpc/tracing.rs index 66da891985..67b8509292 100644 --- a/node/service/src/rpc/tracing.rs +++ b/node/service/src/rpc/tracing.rs @@ -28,7 +28,7 @@ pub struct RpcRequesters { // Spawn the tasks that are required to run a Moonbeam tracing node. pub fn spawn_tracing_tasks( - rpc_config: &cli_opt::RpcConfig, + rpc_config: &moonbeam_cli_opt::RpcConfig, params: SpawnTasksParams, ) -> RpcRequesters where diff --git a/pallets/asset-manager/Cargo.toml b/pallets/asset-manager/Cargo.toml index 3e02c78f06..29d73520f0 100644 --- a/pallets/asset-manager/Cargo.toml +++ b/pallets/asset-manager/Cargo.toml @@ -1,34 +1,34 @@ [package] name = "pallet-asset-manager" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" version = "0.1.0" [dependencies] -log = { version = "0.4", default-features = false } -serde = { version = "1.0.124", optional = true } +log = { workspace = true } +serde = { workspace = true, optional = true } # Moonbeam -xcm-primitives = { path = "../../primitives/xcm", default-features = false } +xcm-primitives = { workspace = true } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "derive" ] } +scale-info = { workspace = true, features = [ "derive" ] } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Polkadot -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +xcm = { workspace = true } # Benchmarks -frame-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } +frame-benchmarking = { workspace = true, optional = true } [dev-dependencies] -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true, features = [ "std" ] } +sp-core = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] diff --git a/pallets/author-mapping/Cargo.toml b/pallets/author-mapping/Cargo.toml index 5b6bc79cd4..2c0a456eaa 100644 --- a/pallets/author-mapping/Cargo.toml +++ b/pallets/author-mapping/Cargo.toml @@ -1,32 +1,32 @@ [package] name = "pallet-author-mapping" -authors = [ "PureStake" ] +authors = { workspace = true } description = "Maps AuthorIds to AccountIds Useful for associating consensus authors with in-runtime accounts" edition = "2021" version = "2.0.5" [dependencies] -log = { version = "0.4", default-features = false } -serde = { version = "1.0.124", optional = true } +log = { workspace = true } +serde = { workspace = true, optional = true } # Substrate -frame-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-benchmarking = { workspace = true, optional = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "derive" ] } +scale-info = { workspace = true, features = [ "derive" ] } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Nimbus -nimbus-primitives = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +nimbus-primitives = { workspace = true } -session-keys-primitives = { path = "../../primitives/session-keys", default-features = false } +session-keys-primitives = { workspace = true } [dev-dependencies] -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } [features] default = [ "std" ] diff --git a/pallets/erc20-xcm-bridge/Cargo.toml b/pallets/erc20-xcm-bridge/Cargo.toml index b10aeaee5d..6523406a2f 100644 --- a/pallets/erc20-xcm-bridge/Cargo.toml +++ b/pallets/erc20-xcm-bridge/Cargo.toml @@ -1,30 +1,30 @@ [package] name = "pallet-erc20-xcm-bridge" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" version = "1.0.0" [dependencies] -environmental = { version = "1.1.3", default-features = false } -ethereum-types = { version = "0.14", default-features = false } -serde = { version = "1.0.101", optional = true, features = [ "derive" ] } +environmental = { workspace = true } +ethereum-types = { workspace = true } +serde = { workspace = true, optional = true, features = [ "derive" ] } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "derive" ] } +scale-info = { workspace = true, features = [ "derive" ] } +sp-core = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Frontier -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } #Polkadot / XCM -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm-executor = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +xcm = { workspace = true } +xcm-executor = { workspace = true } [features] default = [ "std" ] diff --git a/pallets/ethereum-chain-id/Cargo.toml b/pallets/ethereum-chain-id/Cargo.toml index 2e4fc0f38d..080dfc263e 100644 --- a/pallets/ethereum-chain-id/Cargo.toml +++ b/pallets/ethereum-chain-id/Cargo.toml @@ -1,17 +1,17 @@ [package] name = "pallet-ethereum-chain-id" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" version = "1.0.0" [dependencies] -serde = { version = "1.0.101", optional = true, features = [ "derive" ] } +serde = { workspace = true, optional = true, features = [ "derive" ] } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "derive" ] } +scale-info = { workspace = true, features = [ "derive" ] } [features] default = [ "std" ] diff --git a/pallets/ethereum-xcm/Cargo.toml b/pallets/ethereum-xcm/Cargo.toml index ce8b4451e9..d31acd89ee 100644 --- a/pallets/ethereum-xcm/Cargo.toml +++ b/pallets/ethereum-xcm/Cargo.toml @@ -11,51 +11,49 @@ version = "1.0.0-dev" targets = [ "x86_64-unknown-linux-gnu" ] [dependencies] -ethereum = { version = "0.14.0", default-features = false, features = [ "with-codec" ] } -serde = { version = "1.0.137", optional = true } +ethereum = { workspace = true, features = [ "with-codec" ] } +serde = { workspace = true, optional = true } # Parity -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } -ethereum-types = { version = "0.14", default-features = false } -rlp = { version = "0.5", default-features = false } -scale-info = { version = "2.1.2", default-features = false, features = [ "derive" ] } +ethereum-types = { workspace = true } +parity-scale-codec = { workspace = true } +rlp = { workspace = true } +scale-info = { workspace = true, features = [ "derive" ] } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", version = "4.0.0-dev", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", version = "4.0.0-dev", default-features = false } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", version = "4.0.0-dev", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", version = "7.0.0", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", version = "7.0.0", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", version = "5.0.0", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-timestamp = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Frontier -fp-ethereum = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -fp-rpc = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -fp-self-contained = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } -xcm-primitives = { path = "../../primitives/xcm", default-features = false } +fp-ethereum = { workspace = true } +fp-evm = { workspace = true } +fp-rpc = { workspace = true } +fp-self-contained = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } +xcm-primitives = { workspace = true } [dev-dependencies] -pallet-evm-precompile-proxy = { path = "../../precompiles/proxy", default-features = false } +pallet-evm-precompile-proxy = { workspace = true } -pallet-ethereum = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", features = [ "forbid-evm-reentrancy" ] } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", features = [ "forbid-evm-reentrancy" ] } -pallet-proxy = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-ethereum = { workspace = true, features = [ "forbid-evm-reentrancy", "std" ] } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy", "std" ] } +pallet-proxy = { workspace = true, features = [ "std" ] } -hex = "0.4.3" +hex = { workspace = true } # Parity -libsecp256k1 = { version = "0.7", features = [ "hmac", "static-context" ] } +libsecp256k1 = { workspace = true, features = [ "hmac", "static-context" ] } # Substrate FRAME -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", version = "4.0.0-dev" } +pallet-balances = { workspace = true, features = [ "std" ] } # Substrate -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", version = "7.0.0" } +sp-core = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] std = [ - # Parity - "codec/std", "ethereum-types/std", "ethereum/std", # Frontier @@ -68,6 +66,8 @@ std = [ "frame-system/std", "pallet-evm/std", "pallet-timestamp/std", + # Parity + "parity-scale-codec/std", "rlp/std", "scale-info/std", "serde", diff --git a/pallets/maintenance-mode/Cargo.toml b/pallets/maintenance-mode/Cargo.toml index 35432d7fd1..3847bff63b 100644 --- a/pallets/maintenance-mode/Cargo.toml +++ b/pallets/maintenance-mode/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pallet-maintenance-mode" -authors = [ "PureStake" ] +authors = { workspace = true } description = "Puts a FRAME-based runtime into maintenance mode where restricted interactions are allowed." edition = "2021" version = "0.1.0" @@ -8,25 +8,25 @@ version = "0.1.0" [dependencies] # Local -xcm-primitives = { path = "../../primitives/xcm", optional = true, default-features = false } +xcm-primitives = { workspace = true, optional = true } # Crates.io -log = "0.4" +log = { workspace = true } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true, features = [ "derive" ] } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Cumulus -cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } +cumulus-primitives-core = { workspace = true, optional = true } [dev-dependencies] -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +sp-core = { workspace = true, features = [ "std" ] } +sp-io = { workspace = true, features = [ "std" ] } [features] default = [ "std", "xcm-support" ] diff --git a/pallets/migrations/Cargo.toml b/pallets/migrations/Cargo.toml index b118807806..7a0adf91de 100644 --- a/pallets/migrations/Cargo.toml +++ b/pallets/migrations/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pallet-migrations" -authors = [ "PureStake" ] +authors = { workspace = true } description = "migrations management pallet" edition = "2021" version = "0.1.0" @@ -8,34 +8,33 @@ version = "0.1.0" [dependencies] # Local -xcm-primitives = { path = "../../primitives/xcm", default-features = false } +xcm-primitives = { workspace = true } # Crates.io -impl-trait-for-tuples = "0.2.1" -log = "0.4" +impl-trait-for-tuples = { workspace = true } +log = { workspace = true } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-democracy = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-preimage = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-democracy = { workspace = true } +pallet-preimage = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true, features = [ "derive" ] } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Benchmarks -frame-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } - +frame-benchmarking = { workspace = true, optional = true } [dev-dependencies] -environmental = "1.1.2" -frame-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-scheduler = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +environmental = { workspace = true, features = [ "std" ] } +frame-benchmarking = { workspace = true, features = [ "std" ] } +pallet-balances = { workspace = true, features = [ "std" ] } +pallet-scheduler = { workspace = true, features = [ "std" ] } +sp-io = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] diff --git a/pallets/moonbeam-orbiters/Cargo.toml b/pallets/moonbeam-orbiters/Cargo.toml index eff331808d..9a4a2602c1 100644 --- a/pallets/moonbeam-orbiters/Cargo.toml +++ b/pallets/moonbeam-orbiters/Cargo.toml @@ -1,29 +1,29 @@ [package] name = "pallet-moonbeam-orbiters" -authors = [ "PureStake" ] +authors = { workspace = true } description = "FRAME-based pallet for Moonbeam orbiters program." edition = "2021" version = "0.1.0" [dependencies] -log = "0.4" +log = { workspace = true } # Substrate -frame-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-benchmarking = { workspace = true, optional = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true, features = [ "derive" ] } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Nimbus -nimbus-primitives = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +nimbus-primitives = { workspace = true } [dev-dependencies] -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true, features = [ "std" ] } +sp-core = { workspace = true, features = [ "std" ] } +sp-io = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] diff --git a/pallets/moonbeam-xcm-benchmarks/Cargo.toml b/pallets/moonbeam-xcm-benchmarks/Cargo.toml index 11629fef40..efc5178bc7 100644 --- a/pallets/moonbeam-xcm-benchmarks/Cargo.toml +++ b/pallets/moonbeam-xcm-benchmarks/Cargo.toml @@ -1,38 +1,38 @@ [package] name = "moonbeam-xcm-benchmarks" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" version = "0.2.0" [dependencies] -log = { version = "0.4", default-features = false } -serde = { version = "1.0.124", optional = true } +log = { workspace = true } +serde = { workspace = true, optional = true } # Moonbeam -pallet-erc20-xcm-bridge = { path = "../erc20-xcm-bridge/", default-features = false } -xcm-primitives = { path = "../../primitives/xcm", default-features = false } +pallet-erc20-xcm-bridge = { workspace = true } +xcm-primitives = { workspace = true } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", optional = true, default-features = false, features = [ "derive" ] } -scale-info = { version = "2.0", optional = true, default-features = false, features = [ "derive" ] } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true, optional = true, features = [ "derive" ] } +scale-info = { workspace = true, optional = true, features = [ "derive" ] } +sp-std = { workspace = true } # Polkadot / XCM -pallet-xcm-benchmarks = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm-executor = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-xcm-benchmarks = { workspace = true } +xcm = { workspace = true } +xcm-executor = { workspace = true } # Benchmarks -frame-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } +frame-benchmarking = { workspace = true, optional = true } [dev-dependencies] -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -xcm-builder = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true, features = [ "std" ] } +sp-core = { workspace = true, features = [ "std" ] } +sp-io = { workspace = true, features = [ "std" ] } +sp-runtime = { workspace = true, features = [ "std" ] } +xcm-builder = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] @@ -50,4 +50,12 @@ std = [ try-runtime = [ "frame-support/try-runtime" ] -runtime-benchmarks = [ "frame-benchmarking", "frame-system/runtime-benchmarks", "pallet-xcm-benchmarks/runtime-benchmarks", "parity-scale-codec", "scale-info", "xcm-executor/runtime-benchmarks", "xcm/runtime-benchmarks" ] +runtime-benchmarks = [ + "frame-benchmarking", + "frame-system/runtime-benchmarks", + "pallet-xcm-benchmarks/runtime-benchmarks", + "parity-scale-codec", + "scale-info", + "xcm-executor/runtime-benchmarks", + "xcm/runtime-benchmarks", +] diff --git a/pallets/parachain-staking/Cargo.toml b/pallets/parachain-staking/Cargo.toml index 464bdc83c4..28656f9c91 100644 --- a/pallets/parachain-staking/Cargo.toml +++ b/pallets/parachain-staking/Cargo.toml @@ -1,32 +1,32 @@ [package] name = "pallet-parachain-staking" -authors = [ "PureStake" ] +authors = { workspace = true } description = "parachain staking pallet for collator selection and reward distribution" edition = "2021" version = "3.0.0" [dependencies] -log = "0.4" -serde = { version = "1.0.101", optional = true } +log = { workspace = true } +serde = { workspace = true, optional = true } # Substrate -frame-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -substrate-fixed = { git = "https://github.com/encointer/substrate-fixed", default-features = false } +frame-benchmarking = { workspace = true, optional = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "derive" ] } +scale-info = { workspace = true, features = [ "derive" ] } +sp-runtime = { workspace = true } +sp-std = { workspace = true } +substrate-fixed = { workspace = true } # Nimbus -nimbus-primitives = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +nimbus-primitives = { workspace = true } [dev-dependencies] -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -similar-asserts = "1.1.0" -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true, features = [ "std" ] } +similar-asserts = { workspace = true } +sp-core = { workspace = true, features = [ "std" ] } +sp-io = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] diff --git a/pallets/proxy-genesis-companion/Cargo.toml b/pallets/proxy-genesis-companion/Cargo.toml index 9cc2e7241b..3712512d5c 100644 --- a/pallets/proxy-genesis-companion/Cargo.toml +++ b/pallets/proxy-genesis-companion/Cargo.toml @@ -1,26 +1,26 @@ [package] name = "pallet-proxy-genesis-companion" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A simple pallet that expands pallet-proxy with a genesis configuration" edition = "2021" version = "0.1.0" [dependencies] -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-proxy = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-proxy = { workspace = true } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true, features = [ "derive" ] } +sp-runtime = { workspace = true } [dev-dependencies] -serde = "1.0.124" +serde = { workspace = true } -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true, features = [ "std" ] } +sp-core = { workspace = true, features = [ "std" ] } +sp-io = { workspace = true, features = [ "std" ] } -pallet-evm-precompile-proxy = { path = "../../precompiles/proxy", default-features = false } +pallet-evm-precompile-proxy = { workspace = true } [features] default = [ "std" ] diff --git a/pallets/randomness/Cargo.toml b/pallets/randomness/Cargo.toml index 0edcc8c4da..8ba2d979a0 100644 --- a/pallets/randomness/Cargo.toml +++ b/pallets/randomness/Cargo.toml @@ -1,34 +1,34 @@ [package] name = "pallet-randomness" -authors = [ "PureStake" ] +authors = { workspace = true } description = "Provides randomness" edition = "2018" version = "0.1.0" [dependencies] -frame-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -hex = { version = "0.4.3", default-features = false } -log = "0.4" -nimbus-primitives = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -serde = { version = "1.0.101", optional = true } -session-keys-primitives = { path = "../../primitives/session-keys", default-features = false } -sp-consensus-vrf = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-benchmarking = { workspace = true, optional = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +hex = { workspace = true } +log = { workspace = true } +nimbus-primitives = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "derive" ] } +scale-info = { workspace = true, features = [ "derive" ] } +serde = { workspace = true, optional = true } +session-keys-primitives = { workspace = true } +sp-consensus-vrf = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Frontier -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } [dev-dependencies] -derive_more = "0.99" -pallet-author-mapping = { path = "../author-mapping" } -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +derive_more = { workspace = true } +pallet-author-mapping = { workspace = true, features = [ "std" ] } +pallet-balances = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] diff --git a/pallets/xcm-transactor/Cargo.toml b/pallets/xcm-transactor/Cargo.toml index e18a5a9002..9024e25a7c 100644 --- a/pallets/xcm-transactor/Cargo.toml +++ b/pallets/xcm-transactor/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pallet-xcm-transactor" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" version = "0.2.0" @@ -9,35 +9,35 @@ log = { version = "0.4", default-features = false } serde = { version = "1.0.124", optional = true } # Moonbeam -xcm-primitives = { path = "../../primitives/xcm", default-features = false } +xcm-primitives = { workspace = true } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "derive" ] } +scale-info = { workspace = true, features = [ "derive" ] } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Cumulus -cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-primitives-core = { workspace = true } # Polkadot / XCM -orml-traits = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm-builder = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm-executor = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +orml-traits = { workspace = true } +xcm = { workspace = true } +xcm-builder = { workspace = true } +xcm-executor = { workspace = true } # Benchmarks -frame-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } +frame-benchmarking = { workspace = true, optional = true } [dev-dependencies] -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -parity-scale-codec = { version = "3.0.0" } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true, features = [ "std" ] } +pallet-timestamp = { workspace = true, features = [ "std" ] } +pallet-xcm = { workspace = true, features = [ "std" ] } +parity-scale-codec = { workspace = true, features = [ "std" ] } +sp-core = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] diff --git a/precompiles/assets-erc20/Cargo.toml b/precompiles/assets-erc20/Cargo.toml index 2a33e2c914..a9c741753c 100644 --- a/precompiles/assets-erc20/Cargo.toml +++ b/precompiles/assets-erc20/Cargo.toml @@ -1,55 +1,53 @@ [package] name = "pallet-evm-precompileset-assets-erc20" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to expose Assets pallet through an ERC20-compliant interface." edition = "2021" version = "0.1.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -paste = "1.0.6" -slices = "0.2.0" +log = { workspace = true } +num_enum = { workspace = true } +paste = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", default-features = false } +precompile-utils = { workspace = true } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ "max-encoded-len" ] } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-assets = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-assets = { workspace = true } +pallet-balances = { workspace = true } +pallet-timestamp = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "max-encoded-len" ] } +scale-info = { workspace = true, features = [ "derive" ] } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Frontier -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } [dev-dependencies] -derive_more = { version = "0.99" } -hex-literal = "0.3.4" -libsecp256k1 = "0.7" -serde = { version = "1.0.100" } -sha3 = "0.10" +derive_more = { workspace = true } +hex-literal = { workspace = true } +libsecp256k1 = { workspace = true } +serde = { workspace = true } +sha3 = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", features = [ "testing" ] } +precompile-utils = { workspace = true, features = [ "std", "testing" ] } -codec = { package = "parity-scale-codec", version = "3.0.0", features = [ "max-encoded-len" ] } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-timestamp = { workspace = true, features = [ "std" ] } +parity-scale-codec = { workspace = true, features = [ "max-encoded-len", "std" ] } +scale-info = { workspace = true, features = [ "derive" ] } +sp-runtime = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] std = [ - "codec/std", "fp-evm/std", "frame-support/std", "frame-system/std", @@ -57,6 +55,7 @@ std = [ "pallet-balances/std", "pallet-evm/std", "pallet-timestamp/std", + "parity-scale-codec/std", "precompile-utils/std", "sp-core/std", "sp-io/std", diff --git a/precompiles/author-mapping/Cargo.toml b/precompiles/author-mapping/Cargo.toml index 77e9b3f075..291827f90e 100644 --- a/precompiles/author-mapping/Cargo.toml +++ b/precompiles/author-mapping/Cargo.toml @@ -1,59 +1,59 @@ [package] name = "pallet-evm-precompile-author-mapping" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to make pallet-author-mapping accessible to pallet-evm" edition = "2021" version = "0.2.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } +log = { workspace = true } +num_enum = { workspace = true } # Moonbeam -pallet-author-mapping = { path = "../../pallets/author-mapping", default-features = false } -precompile-utils = { path = "../utils", default-features = false } +pallet-author-mapping = { workspace = true } +precompile-utils = { workspace = true } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-std = { workspace = true } # Frontier -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } # Nimbus -nimbus-primitives = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +nimbus-primitives = { workspace = true } [dev-dependencies] -derive_more = "0.99" -hex-literal = "0.3.4" -serde = "1.0.100" +derive_more = { workspace = true } +hex-literal = { workspace = true } +serde = { workspace = true } # Moonbeam -pallet-author-mapping = { path = "../../pallets/author-mapping" } -precompile-utils = { path = "../utils", features = [ "testing" ] } +pallet-author-mapping = { workspace = true, features = [ "std" ] } +precompile-utils = { workspace = true, features = [ "std", "testing" ] } # Substrate -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-scheduler = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true } +pallet-scheduler = { workspace = true } +pallet-timestamp = { workspace = true } +scale-info = { workspace = true, features = [ "derive" ] } +sp-runtime = { workspace = true } [features] default = [ "std" ] std = [ - "codec/std", "fp-evm/std", "frame-support/std", "frame-system/std", "nimbus-primitives/std", "pallet-author-mapping/std", "pallet-evm/std", + "parity-scale-codec/std", "precompile-utils/std", "sp-core/std", "sp-io/std", diff --git a/precompiles/balances-erc20/Cargo.toml b/precompiles/balances-erc20/Cargo.toml index 14ef4a9fca..5c60ed98cb 100644 --- a/precompiles/balances-erc20/Cargo.toml +++ b/precompiles/balances-erc20/Cargo.toml @@ -1,56 +1,56 @@ [package] name = "pallet-evm-precompile-balances-erc20" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to expose a Balances pallet through an ERC20-compliant interface." edition = "2021" version = "0.1.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -paste = "1.0.6" -slices = "0.2.0" +log = { workspace = true } +num_enum = { workspace = true } +paste = { workspace = true } +slices = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", default-features = false } +precompile-utils = { workspace = true } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ "max-encoded-len" ] } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-balances = { workspace = true } +pallet-timestamp = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "max-encoded-len" ] } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-std = { workspace = true } # Frontier -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } [dev-dependencies] -derive_more = { version = "0.99" } -hex-literal = "0.3.4" -libsecp256k1 = "0.7" -serde = { version = "1.0.100" } -sha3 = "0.10" +derive_more = { workspace = true } +hex-literal = { workspace = true } +libsecp256k1 = { workspace = true } +serde = { workspace = true } +sha3 = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", features = [ "testing" ] } +precompile-utils = { workspace = true, features = [ "std", "testing" ] } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-timestamp = { workspace = true, features = [ "std" ] } +scale-info = { workspace = true, features = [ "derive" ] } +sp-runtime = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] std = [ - "codec/std", "fp-evm/std", "frame-support/std", "frame-system/std", "pallet-balances/std", "pallet-evm/std", + "parity-scale-codec/std", "precompile-utils/std", "sp-core/std", "sp-io/std", diff --git a/precompiles/batch/Cargo.toml b/precompiles/batch/Cargo.toml index 559ee9930e..8bb8352c80 100644 --- a/precompiles/batch/Cargo.toml +++ b/precompiles/batch/Cargo.toml @@ -1,53 +1,53 @@ [package] name = "pallet-evm-precompile-batch" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to batch multiple calls." edition = "2021" version = "0.1.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -paste = "1.0.6" -slices = "0.2.0" +log = { workspace = true } +num_enum = { workspace = true } +paste = { workspace = true } +slices = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", default-features = false } +precompile-utils = { workspace = true } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ "max-encoded-len" ] } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +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 = { version = "0.37.0", default-features = false, features = [ "with-codec" ] } -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +evm = { workspace = true, features = [ "with-codec" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } [dev-dependencies] -derive_more = { version = "0.99" } -hex-literal = "0.3.4" -serde = { version = "1.0.100" } -sha3 = "0.10" +derive_more = { workspace = true } +hex-literal = { workspace = true } +serde = { workspace = true } +sha3 = { workspace = true } -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ "max-encoded-len" ] } -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -precompile-utils = { path = "../utils", features = [ "testing" ] } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true, features = [ "std" ] } +pallet-timestamp = { workspace = true, features = [ "std" ] } +parity-scale-codec = { workspace = true, features = [ "max-encoded-len", "std" ] } +precompile-utils = { workspace = true, features = [ "std", "testing" ] } +scale-info = { workspace = true, features = [ "derive", "std" ] } +sp-runtime = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] std = [ - "codec/std", "fp-evm/std", "frame-support/std", "frame-system/std", "pallet-evm/std", + "parity-scale-codec/std", "precompile-utils/std", "sp-core/std", "sp-io/std", diff --git a/precompiles/call-permit/Cargo.toml b/precompiles/call-permit/Cargo.toml index fbb3289b01..639eaf3976 100644 --- a/precompiles/call-permit/Cargo.toml +++ b/precompiles/call-permit/Cargo.toml @@ -1,55 +1,54 @@ [package] name = "pallet-evm-precompile-call-permit" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to dispatch a call with a ERC712 permit." edition = "2021" version = "0.1.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -paste = "1.0.6" -slices = "0.2.0" +log = { workspace = true } +num_enum = { workspace = true } +paste = { workspace = true } +slices = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", default-features = false } +precompile-utils = { workspace = true } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ "max-encoded-len" ] } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-timestamp = { 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 = { version = "0.37.0", default-features = false, features = [ "with-codec" ] } -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +evm = { workspace = true, features = [ "with-codec" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } [dev-dependencies] -derive_more = { version = "0.99" } -hex-literal = "0.3.4" -libsecp256k1 = "0.7" -serde = { version = "1.0.100" } -sha3 = "0.10" +derive_more = { workspace = true } +hex-literal = { workspace = true } +libsecp256k1 = { workspace = true } +serde = { workspace = true } +sha3 = { workspace = true } -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ "max-encoded-len" ] } -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -precompile-utils = { path = "../utils", features = [ "testing" ] } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true, features = [ "std" ] } +pallet-timestamp = { workspace = true, features = [ "std" ] } +precompile-utils = { workspace = true, features = [ "std", "testing" ] } +scale-info = { workspace = true, features = [ "derive", "std" ] } +sp-runtime = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] std = [ - "codec/std", "fp-evm/std", "frame-support/std", "frame-system/std", "pallet-evm/std", + "parity-scale-codec/std", "precompile-utils/std", "sp-core/std", "sp-io/std", diff --git a/precompiles/collective/Cargo.toml b/precompiles/collective/Cargo.toml index 81382991f4..65963f5049 100644 --- a/precompiles/collective/Cargo.toml +++ b/precompiles/collective/Cargo.toml @@ -1,57 +1,57 @@ [package] name = "pallet-evm-precompile-collective" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile wrapping the collective pallet." edition = "2021" version = "0.1.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -paste = "1.0.6" -slices = "0.2.0" +log = { workspace = true } +num_enum = { workspace = true } +paste = { workspace = true } +slices = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", default-features = false } +precompile-utils = { workspace = true } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ "max-encoded-len" ] } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-collective = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-collective = { 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 = { version = "0.37.0", default-features = false, features = [ "with-codec" ] } -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +evm = { workspace = true, features = [ "with-codec" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } [dev-dependencies] -derive_more = { version = "0.99" } -hex-literal = "0.3.4" -serde = { version = "1.0.100" } -sha3 = "0.10" -similar-asserts = "1.1.0" +derive_more = { workspace = true } +hex-literal = { workspace = true } +serde = { workspace = true } +sha3 = { workspace = true } +similar-asserts = { workspace = true } -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ "max-encoded-len" ] } -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-treasury = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -precompile-utils = { path = "../utils", features = [ "testing" ] } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true, features = [ "std" ] } +pallet-timestamp = { workspace = true, features = [ "std" ] } +pallet-treasury = { workspace = true, features = [ "std" ] } +parity-scale-codec = { workspace = true, features = [ "max-encoded-len" ] } +precompile-utils = { workspace = true, features = [ "std", "testing" ] } +scale-info = { workspace = true, features = [ "derive", "std" ] } +sp-runtime = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] std = [ - "codec/std", "fp-evm/std", "frame-support/std", "frame-system/std", "pallet-collective/std", "pallet-evm/std", + "parity-scale-codec/std", "precompile-utils/std", "sp-core/std", "sp-io/std", diff --git a/precompiles/collective/src/lib.rs b/precompiles/collective/src/lib.rs index d1f1b316c6..7438f53503 100644 --- a/precompiles/collective/src/lib.rs +++ b/precompiles/collective/src/lib.rs @@ -18,7 +18,6 @@ #![cfg_attr(not(feature = "std"), no_std)] -use codec::DecodeLimit as _; use core::marker::PhantomData; use fp_evm::Log; use frame_support::{ @@ -29,6 +28,7 @@ use frame_support::{ weights::Weight, }; use pallet_evm::AddressMapping; +use parity_scale_codec::DecodeLimit as _; use precompile_utils::prelude::*; use sp_core::{Decode, Get, H160, H256}; use sp_std::{boxed::Box, vec::Vec}; diff --git a/precompiles/conviction-voting/Cargo.toml b/precompiles/conviction-voting/Cargo.toml index d7323c3665..fb7152d81d 100644 --- a/precompiles/conviction-voting/Cargo.toml +++ b/precompiles/conviction-voting/Cargo.toml @@ -1,45 +1,45 @@ [package] name = "pallet-evm-precompile-conviction-voting" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to make pallet-conviction-voting calls encoding accessible to pallet-evm" edition = "2021" version = "0.1.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -rustc-hex = { version = "2.0.1", default-features = false } +log = { workspace = true } +num_enum = { workspace = true } +rustc-hex = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", default-features = false } +precompile-utils = { workspace = true } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-conviction-voting = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +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 = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } [dev-dependencies] -derive_more = "0.99" -hex-literal = "0.3.3" -serde = "1.0.100" -sha3 = "0.9" +derive_more = { workspace = true } +hex-literal = { workspace = true } +serde = { workspace = true } +sha3 = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", features = [ "testing" ] } +precompile-utils = { workspace = true, features = [ "testing" ] } # Substrate -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-balances = { workspace = true, features = [ "std" ] } +pallet-timestamp = { workspace = true, features = [ "std" ] } +scale-info = { workspace = true, features = [ "derive", "std" ] } +sp-io = { workspace = true } [features] default = [ "std" ] @@ -50,7 +50,6 @@ std = [ "pallet-conviction-voting/std", "pallet-evm/std", "parity-scale-codec/std", - "parity-scale-codec/std", "precompile-utils/std", "sp-runtime/std", "sp-std/std", diff --git a/precompiles/crowdloan-rewards/Cargo.toml b/precompiles/crowdloan-rewards/Cargo.toml index d1b4982f94..1f3de6ddf0 100644 --- a/precompiles/crowdloan-rewards/Cargo.toml +++ b/precompiles/crowdloan-rewards/Cargo.toml @@ -1,56 +1,55 @@ [package] name = "pallet-evm-precompile-crowdloan-rewards" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to make crowdloan rewards accessible to pallet-evm" edition = "2021" version = "0.6.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -rustc-hex = { version = "2.0.1", default-features = false } +log = { workspace = true } +num_enum = { workspace = true } +rustc-hex = { workspace = true } # Moonbeam -pallet-crowdloan-rewards = { git = "https://github.com/purestake/crowdloan-rewards", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -precompile-utils = { path = "../utils", default-features = false } +pallet-crowdloan-rewards = { workspace = true } +precompile-utils = { workspace = true } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +sp-core = { workspace = true } +sp-std = { workspace = true } # Frontier -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } [dev-dependencies] -derive_more = "0.99" -serde = "1.0.100" -sha3 = "0.10" +derive_more = { workspace = true } +serde = { workspace = true } +sha3 = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", features = [ "testing" ] } +precompile-utils = { workspace = true, features = [ "std", "testing" ] } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ "max-encoded-len" ] } -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-scheduler = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true, features = [ "std" ] } +pallet-scheduler = { workspace = true, features = [ "std" ] } +pallet-timestamp = { workspace = true, features = [ "std" ] } +parity-scale-codec = { workspace = true, features = [ "max-encoded-len", "std" ] } +scale-info = { workspace = true, features = [ "derive", "std" ] } +sp-io = { workspace = true } +sp-runtime = { workspace = true, features = [ "std" ] } # Cumulus -cumulus-pallet-parachain-system = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-primitives-parachain-inherent = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-test-relay-sproof-builder = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-pallet-parachain-system = { workspace = true, features = [ "std" ] } +cumulus-primitives-core = { workspace = true, features = [ "std" ] } +cumulus-primitives-parachain-inherent = { workspace = true, features = [ "std" ] } +cumulus-test-relay-sproof-builder = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] std = [ - "codec/std", "cumulus-pallet-parachain-system/std", "cumulus-primitives-core/std", "cumulus-primitives-parachain-inherent/std", @@ -60,6 +59,7 @@ std = [ "frame-system/std", "pallet-crowdloan-rewards/std", "pallet-evm/std", + "parity-scale-codec/std", "precompile-utils/std", "sp-core/std", "sp-std/std", diff --git a/precompiles/pallet-democracy/Cargo.toml b/precompiles/pallet-democracy/Cargo.toml index b6fa60bb28..175e732269 100644 --- a/precompiles/pallet-democracy/Cargo.toml +++ b/precompiles/pallet-democracy/Cargo.toml @@ -1,58 +1,56 @@ [package] name = "pallet-evm-precompile-democracy" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to make Substrate's pallet-democracy accessible to pallet-evm" edition = "2021" version = "0.2.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } +log = { workspace = true } +num_enum = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", default-features = false } +precompile-utils = { workspace = true } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-democracy = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-preimage = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +fp-evm = { workspace = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-democracy = { workspace = true } +pallet-preimage = { workspace = true } +parity-scale-codec = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Frontier -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } [dev-dependencies] -derive_more = "0.99" -hex-literal = "0.3.4" -serde = "1.0.100" +derive_more = { workspace = true } +hex-literal = { workspace = true } +serde = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", features = [ "testing" ] } +precompile-utils = { workspace = true, features = [ "std", "testing" ] } # Substrate -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-scheduler = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -scale-info = { version = "2.0", default-features = false, features = [ - "derive", -] } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true, features = [ "std" ] } +pallet-scheduler = { workspace = true, features = [ "std" ] } +pallet-timestamp = { workspace = true, features = [ "std" ] } +scale-info = { workspace = true, features = [ "derive", "std" ] } +sp-runtime = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] std = [ - "codec/std", "fp-evm/std", "frame-support/std", "frame-system/std", "pallet-democracy/std", "pallet-evm/std", + "parity-scale-codec/std", "precompile-utils/std", "sp-core/std", "sp-io/std", diff --git a/precompiles/parachain-staking/Cargo.toml b/precompiles/parachain-staking/Cargo.toml index 8bacdb3e1b..6f4beebac4 100644 --- a/precompiles/parachain-staking/Cargo.toml +++ b/precompiles/parachain-staking/Cargo.toml @@ -1,54 +1,53 @@ [package] name = "pallet-evm-precompile-parachain-staking" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to make parachain staking accessible to pallet-evm" edition = "2021" version = "1.0.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -rustc-hex = { version = "2.0.1", default-features = false } +log = { workspace = true } +num_enum = { workspace = true } +rustc-hex = { workspace = true } # Moonbeam -pallet-parachain-staking = { path = "../../pallets/parachain-staking", default-features = false } -precompile-utils = { path = "../utils", default-features = false } +pallet-parachain-staking = { workspace = true } +precompile-utils = { workspace = true } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ "max-encoded-len" ] } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } - +frame-support = { workspace = true } +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 -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } [dev-dependencies] -derive_more = "0.99" -serde = "1.0.100" -sha3 = "0.10" +derive_more = { workspace = true } +serde = { workspace = true } +sha3 = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", features = [ "testing" ] } +precompile-utils = { workspace = true, features = [ "std", "testing" ] } # Substrate -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true, features = [ "std" ] } +pallet-timestamp = { workspace = true, features = [ "std" ] } +scale-info = { workspace = true, features = [ "derive", "std" ] } +sp-runtime = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] std = [ - "codec/std", "fp-evm/std", "frame-support/std", "frame-system/std", "pallet-parachain-staking/std", + "parity-scale-codec/std", "precompile-utils/std", "sp-core/std", "sp-std/std", diff --git a/precompiles/preimage/Cargo.toml b/precompiles/preimage/Cargo.toml index 78124dcea9..1315d152a2 100644 --- a/precompiles/preimage/Cargo.toml +++ b/precompiles/preimage/Cargo.toml @@ -1,45 +1,45 @@ [package] name = "pallet-evm-precompile-preimage" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to make pallet-preimage calls encoding accessible to pallet-evm" edition = "2021" version = "0.1.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -rustc-hex = { version = "2.0.1", default-features = false } +log = { workspace = true } +num_enum = { workspace = true } +rustc-hex = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", default-features = false } +precompile-utils = { workspace = true } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-preimage = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +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 = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } [dev-dependencies] -derive_more = "0.99" -hex-literal = "0.3.3" -serde = "1.0.100" -sha3 = "0.9" +derive_more = { workspace = true } +hex-literal = { workspace = true } +serde = { workspace = true } +sha3 = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", features = [ "testing" ] } +precompile-utils = { workspace = true, features = [ "std", "testing" ] } # Substrate -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-balances = { workspace = true, features = [ "std" ] } +pallet-timestamp = { workspace = true, features = [ "std" ] } +scale-info = { workspace = true, features = [ "derive", "std" ] } +sp-io = { workspace = true } [features] default = [ "std" ] diff --git a/precompiles/proxy/Cargo.toml b/precompiles/proxy/Cargo.toml index 34e6705aaa..860eb8f30c 100644 --- a/precompiles/proxy/Cargo.toml +++ b/precompiles/proxy/Cargo.toml @@ -1,46 +1,46 @@ [package] name = "pallet-evm-precompile-proxy" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to make proxy calls encoding accessible to pallet-evm" edition = "2021" version = "0.1.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -rustc-hex = { version = "2.0.1", default-features = false } +log = { workspace = true } +num_enum = { workspace = true } +rustc-hex = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", default-features = false } +precompile-utils = { workspace = true } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-proxy = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +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 = { version = "0.37.0", default-features = false, features = [ "with-codec" ] } -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +evm = { workspace = true, features = [ "with-codec" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } [dev-dependencies] -derive_more = "0.99" -hex-literal = "0.3.3" -serde = "1.0.100" -sha3 = "0.10" +derive_more = { workspace = true } +hex-literal = { workspace = true } +serde = { workspace = true } +sha3 = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", features = [ "testing" ] } +precompile-utils = { workspace = true, features = [ "std", "testing" ] } # Substrate -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-balances = { workspace = true, features = [ "std" ] } +pallet-timestamp = { workspace = true, features = [ "std" ] } +scale-info = { workspace = true, features = [ "derive", "std" ] } +sp-io = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] @@ -51,7 +51,6 @@ std = [ "pallet-evm/std", "pallet-proxy/std", "parity-scale-codec/std", - "parity-scale-codec/std", "precompile-utils/std", "sp-runtime/std", "sp-std/std", diff --git a/precompiles/randomness/Cargo.toml b/precompiles/randomness/Cargo.toml index 1a55ff06d2..27d5b60a96 100644 --- a/precompiles/randomness/Cargo.toml +++ b/precompiles/randomness/Cargo.toml @@ -1,54 +1,53 @@ [package] name = "pallet-evm-precompile-randomness" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to make randomness accessible to pallet-evm" edition = "2021" version = "0.1.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } +log = { workspace = true } +num_enum = { workspace = true } # Moonbeam -pallet-randomness = { path = "../../pallets/randomness", default-features = false } -precompile-utils = { path = "../utils", default-features = false } +pallet-randomness = { workspace = true } +precompile-utils = { workspace = true } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +fp-evm = { workspace = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-std = { workspace = true } # Frontier -pallet-base-fee = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +pallet-base-fee = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } # Nimbus -nimbus-primitives = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +nimbus-primitives = { workspace = true } [dev-dependencies] -derive_more = "0.99" -hex-literal = "0.3.4" +derive_more = { workspace = true } +hex-literal = { workspace = true } # Moonbeam -pallet-author-mapping = { path = "../../pallets/author-mapping" } -precompile-utils = { path = "../utils", features = [ "testing" ] } -session-keys-primitives = { path = "../../primitives/session-keys" } +pallet-author-mapping = { workspace = true, features = [ "std" ] } +precompile-utils = { workspace = true, features = [ "std", "testing" ] } +session-keys-primitives = { workspace = true, features = [ "std" ] } # Substrate -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-scheduler = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true, features = [ "std" ] } +pallet-scheduler = { workspace = true, features = [ "std" ] } +pallet-timestamp = { workspace = true, features = [ "std" ] } +scale-info = { workspace = true, features = [ "derive", "std" ] } +sp-runtime = { workspace = true, features = [ "std" ] } [features] default = [ "std" ] std = [ - "codec/std", "fp-evm/std", "frame-support/std", "frame-system/std", @@ -56,6 +55,7 @@ std = [ "pallet-base-fee/std", "pallet-evm/std", "pallet-randomness/std", + "parity-scale-codec/std", "precompile-utils/std", "sp-core/std", "sp-io/std", diff --git a/precompiles/referenda/Cargo.toml b/precompiles/referenda/Cargo.toml index 90f429f716..691f40c819 100644 --- a/precompiles/referenda/Cargo.toml +++ b/precompiles/referenda/Cargo.toml @@ -1,47 +1,47 @@ [package] name = "pallet-evm-precompile-referenda" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to make pallet-referenda calls encoding accessible to pallet-evm" edition = "2021" version = "0.1.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -rustc-hex = { version = "2.0.1", default-features = false } +log = { workspace = true } +num_enum = { workspace = true } +rustc-hex = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", default-features = false } +precompile-utils = { workspace = true } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-referenda = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +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 = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } [dev-dependencies] -derive_more = "0.99" -hex-literal = "0.3.3" -pallet-preimage = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-scheduler = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -serde = "1.0.100" -sha3 = "0.9" +derive_more = { workspace = true } +hex-literal = { workspace = true } +pallet-preimage = { workspace = true } +pallet-scheduler = { workspace = true } +serde = { workspace = true } +sha3 = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", features = [ "testing" ] } +precompile-utils = { workspace = true, features = [ "std", "testing" ] } # Substrate -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-balances = { workspace = true } +pallet-timestamp = { workspace = true } +scale-info = { workspace = true, features = [ "derive" ] } +sp-io = { workspace = true } [features] default = [ "std" ] @@ -52,7 +52,6 @@ std = [ "pallet-evm/std", "pallet-referenda/std", "parity-scale-codec/std", - "parity-scale-codec/std", "precompile-utils/std", "sp-runtime/std", "sp-std/std", diff --git a/precompiles/relay-encoder/Cargo.toml b/precompiles/relay-encoder/Cargo.toml index 6aa2680dc1..6f1ba104a9 100644 --- a/precompiles/relay-encoder/Cargo.toml +++ b/precompiles/relay-encoder/Cargo.toml @@ -1,55 +1,55 @@ [package] name = "pallet-evm-precompile-relay-encoder" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to make relay staking calls encoding accessible to pallet-evm" edition = "2021" version = "0.1.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -rustc-hex = { version = "2.0.1", default-features = false } +log = { workspace = true } +num_enum = { workspace = true } +rustc-hex = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", default-features = false } -xcm-primitives = { path = "../../primitives/xcm", default-features = false } +precompile-utils = { workspace = true } +xcm-primitives = { workspace = true } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-staking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-staking = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "derive" ] } +sp-core = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Frontier -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } # Cumulus -cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-primitives-core = { workspace = true } [dev-dependencies] -derive_more = "0.99" -hex-literal = "0.3.3" -serde = "1.0.100" -sha3 = "0.10" +derive_more = { workspace = true } +hex-literal = { workspace = true } +serde = { workspace = true } +sha3 = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", features = [ "testing" ] } +precompile-utils = { workspace = true, features = [ "testing" ] } # Substrate -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-balances = { workspace = true } +pallet-timestamp = { workspace = true } +scale-info = { workspace = true, features = [ "derive" ] } +sp-io = { workspace = true } # Cumulus -cumulus-pallet-parachain-system = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } +cumulus-pallet-parachain-system = { workspace = true } # Polkadot -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +xcm = { workspace = true } [features] default = [ "std" ] @@ -61,7 +61,6 @@ std = [ "pallet-evm/std", "pallet-staking/std", "parity-scale-codec/std", - "parity-scale-codec/std", "precompile-utils/std", "sp-runtime/std", "sp-std/std", diff --git a/precompiles/utils/Cargo.toml b/precompiles/utils/Cargo.toml index d72427c02e..8503d2c9b4 100644 --- a/precompiles/utils/Cargo.toml +++ b/precompiles/utils/Cargo.toml @@ -1,56 +1,56 @@ [package] name = "precompile-utils" -authors = [ "PureStake" ] +authors = { workspace = true } description = "Utils to write EVM precompiles." edition = "2021" version = "0.1.0" [dependencies] -affix = "0.1.2" -derive_more = { version = "0.99", optional = true } -environmental = { version = "1.1.3", default-features = false } -hex = { version = "0.4.3", default-features = false } -hex-literal = { version = "0.3.1", optional = true } -impl-trait-for-tuples = "0.2.2" -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -paste = "1.0.8" -scale-info = { version = "2.0", optional = true, default-features = false, features = [ "derive" ] } -serde = { version = "1.0.100", optional = true } -sha3 = { version = "0.10", default-features = false } -similar-asserts = { version = "1.1.0", optional = true } +affix = { workspace = true } +derive_more = { workspace = true, optional = true } +environmental = { workspace = true } +hex = { workspace = true } +hex-literal = { workspace = true, optional = true } +impl-trait-for-tuples = { workspace = true } +log = { workspace = true } +num_enum = { workspace = true } +paste = { workspace = true } +scale-info = { workspace = true, optional = true, features = [ "derive" ] } +serde = { workspace = true, optional = true } +sha3 = { workspace = true } +similar-asserts = { workspace = true, optional = true } # Moonbeam precompile-utils-macro = { path = "macro" } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-std = { workspace = true } # Frontier -evm = { version = "0.37.0", default-features = false, features = [ "with-codec" ] } -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +evm = { workspace = true, features = [ "with-codec" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } # Polkadot / XCM -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +xcm = { workspace = true } [dev-dependencies] -hex-literal = "0.3.1" +hex-literal = { workspace = true } [features] default = [ "std" ] std = [ - "codec/std", "environmental/std", "fp-evm/std", "frame-support/std", "frame-system/std", "pallet-evm/std", + "parity-scale-codec/std", "sp-core/std", "sp-io/std", "sp-std/std", diff --git a/precompiles/utils/macro/Cargo.toml b/precompiles/utils/macro/Cargo.toml index 5a2411e700..06e2988e5b 100644 --- a/precompiles/utils/macro/Cargo.toml +++ b/precompiles/utils/macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "precompile-utils-macro" -authors = [ "PureStake" ] +authors = { workspace = true } description = "" edition = "2021" version = "0.1.0" @@ -28,6 +28,6 @@ trybuild = "1.0" precompile-utils = { path = "../", features = [ "testing" ] } fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37" } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } diff --git a/precompiles/utils/tests-external/Cargo.toml b/precompiles/utils/tests-external/Cargo.toml index 2f692c9985..c02f04d5aa 100644 --- a/precompiles/utils/tests-external/Cargo.toml +++ b/precompiles/utils/tests-external/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "precompile-utils-tests-external" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" version = "0.1.0" @@ -8,23 +8,23 @@ version = "0.1.0" path = "./lib.rs" [dependencies] -derive_more = { version = "0.99" } -hex-literal = "0.3.4" -precompile-utils = { path = "../", features = [ "testing" ] } -serde = { version = "1.0.100" } -sha3 = "0.10" +derive_more = { workspace = true } +hex-literal = { workspace = true } +precompile-utils = { workspace = true, features = [ "testing" ] } +serde = { workspace = true } +sha3 = { workspace = true } -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ "max-encoded-len" ] } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-balances = { workspace = true } +pallet-timestamp = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "max-encoded-len" ] } +scale-info = { workspace = true, features = [ "derive" ] } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } -evm = { version = "0.37.0", default-features = false, features = [ "with-codec" ] } -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +evm = { workspace = true, features = [ "with-codec" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } diff --git a/precompiles/xcm-transactor/Cargo.toml b/precompiles/xcm-transactor/Cargo.toml index ca7a1c32c2..9bdd33546a 100644 --- a/precompiles/xcm-transactor/Cargo.toml +++ b/precompiles/xcm-transactor/Cargo.toml @@ -1,61 +1,61 @@ [package] name = "pallet-evm-precompile-xcm-transactor" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to make xcm-transactor accessible to pallet-evm" edition = "2021" version = "0.2.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -rustc-hex = { version = "2.0.1", default-features = false } +log = { workspace = true } +num_enum = { workspace = true } +rustc-hex = { workspace = true } # Moonbeam -pallet-xcm-transactor = { path = "../../pallets/xcm-transactor", default-features = false } -precompile-utils = { path = "../utils", default-features = false } -xcm-primitives = { path = "../../primitives/xcm", default-features = false } +pallet-xcm-transactor = { workspace = true } +precompile-utils = { workspace = true } +xcm-primitives = { workspace = true } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +sp-core = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Frontier -evm = { version = "0.37.0", default-features = false, features = [ "with-codec" ] } -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +evm = { workspace = true, features = [ "with-codec" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } # Polkadot -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +xcm = { workspace = true } # Cumulus -cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-primitives-core = { workspace = true } [dev-dependencies] -derive_more = "0.99" -serde = "1.0.100" -sha3 = "0.10" +derive_more = { workspace = true } +serde = { workspace = true } +sha3 = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", features = [ "testing" ] } -xcm-primitives = { path = "../../primitives/xcm" } +precompile-utils = { workspace = true, features = [ "testing" ] } +xcm-primitives = { workspace = true } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ "max-encoded-len" ] } -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true } +pallet-timestamp = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "max-encoded-len" ] } +scale-info = { workspace = true, features = [ "derive" ] } +sp-io = { workspace = true } # Polkadot -pallet-xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -xcm-builder = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -xcm-executor = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +pallet-xcm = { workspace = true } +xcm-builder = { workspace = true } +xcm-executor = { workspace = true } # ORML -orml-traits = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37" } +orml-traits = { workspace = true } [features] default = [ "std" ] diff --git a/precompiles/xcm-transactor/src/mock.rs b/precompiles/xcm-transactor/src/mock.rs index aa703ad912..4c6c676328 100644 --- a/precompiles/xcm-transactor/src/mock.rs +++ b/precompiles/xcm-transactor/src/mock.rs @@ -17,13 +17,13 @@ //! Test utilities use crate::v1::{XcmTransactorPrecompileV1, XcmTransactorPrecompileV1Call}; use crate::v2::{XcmTransactorPrecompileV2, XcmTransactorPrecompileV2Call}; -use codec::{Decode, Encode}; use frame_support::{ construct_runtime, parameter_types, traits::{EnsureOrigin, Everything, OriginTrait, PalletInfo as PalletInfoTrait}, weights::{RuntimeDbWeight, Weight}, }; use pallet_evm::{EnsureAddressNever, EnsureAddressRoot, GasWeightMapping}; +use parity_scale_codec::{Decode, Encode}; use precompile_utils::{ mock_account, precompile_set::*, diff --git a/precompiles/xcm-utils/Cargo.toml b/precompiles/xcm-utils/Cargo.toml index d5092533d3..9ae682a3eb 100644 --- a/precompiles/xcm-utils/Cargo.toml +++ b/precompiles/xcm-utils/Cargo.toml @@ -1,69 +1,69 @@ [package] name = "pallet-evm-precompile-xcm-utils" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to make xcm utilities accessible to pallet-evm" edition = "2021" version = "0.1.0" [dependencies] -num_enum = { version = "0.5.3", default-features = false } +num_enum = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", default-features = false } -xcm-primitives = { path = "../../primitives/xcm", default-features = false } +precompile-utils = { workspace = true } +xcm-primitives = { workspace = true } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true } +sp-core = { workspace = true } +sp-std = { workspace = true } # Frontier -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } # Polkadot -pallet-xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm-executor = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-xcm = { workspace = true } +xcm = { workspace = true } +xcm-executor = { workspace = true } [dev-dependencies] -derive_more = "0.99" -serde = "1.0.100" -sha3 = "0.10" +derive_more = { workspace = true } +serde = { workspace = true } +sha3 = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", features = [ "testing" ] } +precompile-utils = { workspace = true, features = [ "testing" ] } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ "max-encoded-len" ] } -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true } +pallet-timestamp = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "max-encoded-len" ] } +scale-info = { workspace = true, features = [ "derive" ] } +sp-io = { workspace = true } +sp-runtime = { workspace = true } # Cumulus -cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } +cumulus-primitives-core = { workspace = true } # Polkadot -polkadot-parachain = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -xcm-builder = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +polkadot-parachain = { workspace = true } +xcm-builder = { workspace = true } # ORML -orml-traits = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37" } +orml-traits = { workspace = true } [features] default = [ "std" ] std = [ - "codec/std", "frame-support/std", "frame-system/std", "orml-traits/std", "pallet-balances/std", "pallet-evm/std", "pallet-timestamp/std", + "parity-scale-codec/std", "polkadot-parachain/std", "precompile-utils/std", "sp-core/std", diff --git a/precompiles/xcm-utils/src/lib.rs b/precompiles/xcm-utils/src/lib.rs index 13dfe543f7..9c918255be 100644 --- a/precompiles/xcm-utils/src/lib.rs +++ b/precompiles/xcm-utils/src/lib.rs @@ -19,7 +19,6 @@ #![cfg_attr(not(feature = "std"), no_std)] #![feature(assert_matches)] -use codec::DecodeLimit; use fp_evm::PrecompileHandle; use frame_support::codec::Decode; use frame_support::traits::ConstU32; @@ -28,6 +27,7 @@ use frame_support::{ traits::OriginTrait, }; use pallet_evm::AddressMapping; +use parity_scale_codec::DecodeLimit; use precompile_utils::precompile_set::SelectorFilter; use precompile_utils::{data::String, prelude::*}; use sp_core::{H160, U256}; diff --git a/precompiles/xcm-utils/src/tests.rs b/precompiles/xcm-utils/src/tests.rs index db8a5ad7ff..b7be8e7463 100644 --- a/precompiles/xcm-utils/src/tests.rs +++ b/precompiles/xcm-utils/src/tests.rs @@ -18,8 +18,8 @@ use crate::mock::{ sent_xcm, AccountId, Balances, ExtBuilder, PCall, ParentAccount, Precompiles, PrecompilesValue, Runtime, SiblingParachainAccount, System, }; -use codec::Encode; use frame_support::traits::PalletInfo; +use parity_scale_codec::Encode; use precompile_utils::{prelude::*, testing::*}; use sp_core::{H160, U256}; use xcm::prelude::*; diff --git a/precompiles/xtokens/Cargo.toml b/precompiles/xtokens/Cargo.toml index d55344e4e4..b56f65b003 100644 --- a/precompiles/xtokens/Cargo.toml +++ b/precompiles/xtokens/Cargo.toml @@ -1,57 +1,57 @@ [package] name = "pallet-evm-precompile-xtokens" -authors = [ "PureStake" ] +authors = { workspace = true } description = "A Precompile to make xtokens accessible to pallet-evm" edition = "2021" version = "0.1.0" [dependencies] -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -rustc-hex = { version = "2.0.1", default-features = false } +log = { workspace = true } +num_enum = { workspace = true } +rustc-hex = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", default-features = false } -xcm-primitives = { path = "../../primitives/xcm", default-features = false } +precompile-utils = { workspace = true } +xcm-primitives = { workspace = true } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +sp-core = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Frontier -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +fp-evm = { workspace = true } +frame-system = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } # Polkadot / XCM -orml-xtokens = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +orml-xtokens = { workspace = true } +xcm = { workspace = true } [dev-dependencies] -derive_more = "0.99" -serde = "1.0.100" -sha3 = "0.10" +derive_more = { workspace = true } +serde = { workspace = true } +sha3 = { workspace = true } # Moonbeam -precompile-utils = { path = "../utils", features = [ "testing" ] } +precompile-utils = { workspace = true, features = [ "testing" ] } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ "max-encoded-len" ] } -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -scale-info = { version = "2.0", features = [ "derive" ] } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +pallet-balances = { workspace = true } +pallet-timestamp = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "max-encoded-len" ] } +scale-info = { features = [ "derive" ], vworkspace = true } +sp-io = { workspace = true } # Cumulus -cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37" } +cumulus-primitives-core = { workspace = true } # Polkadot -orml-traits = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37" } -pallet-xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -xcm-builder = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -xcm-executor = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +orml-traits = { workspace = true } +pallet-xcm = { workspace = true } +xcm-builder = { workspace = true } +xcm-executor = { workspace = true } [features] default = [ "std" ] diff --git a/precompiles/xtokens/src/mock.rs b/precompiles/xtokens/src/mock.rs index 75d664d3f2..8674549b6f 100644 --- a/precompiles/xtokens/src/mock.rs +++ b/precompiles/xtokens/src/mock.rs @@ -16,11 +16,11 @@ //! Test utilities use super::*; -use codec::{Decode, Encode}; use frame_support::traits::{EnsureOrigin, Everything, OriginTrait, PalletInfo as PalletInfoTrait}; use frame_support::{construct_runtime, parameter_types, weights::Weight}; use orml_traits::{location::AbsoluteReserveProvider, parameter_type_with_key}; use pallet_evm::{EnsureAddressNever, EnsureAddressRoot}; +use parity_scale_codec::{Decode, Encode}; use precompile_utils::{ mock_account, precompile_set::*, diff --git a/primitives/account/Cargo.toml b/primitives/account/Cargo.toml index e9f09f6625..1ae6935628 100644 --- a/primitives/account/Cargo.toml +++ b/primitives/account/Cargo.toml @@ -1,35 +1,35 @@ [package] name = "account" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.1.1" [package.metadata.docs.rs] targets = [ "x86_64-unknown-linux-gnu" ] [dependencies] -blake2-rfc = { version = "0.2.18", optional = true, default-features = false } -hex = { version = "0.4", default-features = false } -impl-serde = { version = "0.3.1", default-features = false } -libsecp256k1 = { version = "0.7", default-features = false, features = [ "hmac" ] } -log = "0.4" -serde = { version = "1.0.101", optional = true, default-features = false, features = [ "derive" ] } -sha3 = { version = "0.10", default-features = false } +blake2-rfc = { workspace = true, optional = true } +hex = { workspace = true } +impl-serde = { workspace = true } +libsecp256k1 = { workspace = true, features = [ "hmac" ] } +log = { workspace = true } +serde = { workspace = true, optional = true, features = [ "derive" ] } +sha3 = { workspace = true } # Substrate -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime-interface = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +parity-scale-codec = { workspace = true } +scale-info = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-runtime-interface = { workspace = true } +sp-std = { workspace = true } [dev-dependencies] -hex = "0.4.3" +hex = { workspace = true } [features] default = [ "std" ] diff --git a/primitives/ext/Cargo.toml b/primitives/ext/Cargo.toml index 3b3959433d..8361b5b2a9 100644 --- a/primitives/ext/Cargo.toml +++ b/primitives/ext/Cargo.toml @@ -1,30 +1,30 @@ [package] name = "moonbeam-primitives-ext" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.1.0" [dependencies] -ethereum-types = { version = "0.14", default-features = false } +ethereum-types = { workspace = true } # Moonbeam -evm-tracing-events = { path = "../rpc/evm-tracing-events", default-features = false } +evm-tracing-events = { workspace = true } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } -sp-externalities = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime-interface = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +parity-scale-codec = { workspace = true } +sp-externalities = { workspace = true } +sp-runtime-interface = { workspace = true } +sp-std = { workspace = true } [features] default = [ "std" ] std = [ - "codec/std", "ethereum-types/std", "evm-tracing-events/std", + "parity-scale-codec/std", "sp-externalities/std", "sp-runtime-interface/std", "sp-std/std", diff --git a/primitives/ext/src/lib.rs b/primitives/ext/src/lib.rs index c61c607af3..2e0fe897c3 100644 --- a/primitives/ext/src/lib.rs +++ b/primitives/ext/src/lib.rs @@ -25,7 +25,7 @@ #![cfg_attr(not(feature = "std"), no_std)] use sp_runtime_interface::runtime_interface; -use codec::Decode; +use parity_scale_codec::Decode; use sp_std::vec::Vec; use evm_tracing_events::{Event, EvmEvent, GasometerEvent, RuntimeEvent, StepEventFilter}; diff --git a/primitives/rpc/debug/Cargo.toml b/primitives/rpc/debug/Cargo.toml index b34417151c..a7f36de138 100644 --- a/primitives/rpc/debug/Cargo.toml +++ b/primitives/rpc/debug/Cargo.toml @@ -1,38 +1,36 @@ [package] name = "moonbeam-rpc-primitives-debug" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.1.0" [dependencies] -environmental = { version = "1.1.2", default-features = false } -ethereum = { version = "0.14.0", default-features = false, features = [ "with-codec" ] } -ethereum-types = { version = "0.14", default-features = false } -hex = { version = "0.4", optional = true, features = [ "serde" ] } -serde = { version = "1.0", optional = true, features = [ "derive" ] } -serde_json = { version = "1.0", optional = true } +environmental = { workspace = true } +ethereum = { workspace = true } +ethereum-types = { workspace = true } +hex = { workspace = true, optional = true, features = [ "serde" ] } +serde = { workspace = true, optional = true, features = [ "derive" ] } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } -sp-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +parity-scale-codec = { workspace = true } +sp-api = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } [features] default = [ "std" ] std = [ - "codec/std", "environmental/std", "ethereum-types/std", "ethereum/std", "hex", + "parity-scale-codec/std", "serde", - "serde_json", "sp-api/std", "sp-core/std", "sp-io/std", diff --git a/primitives/rpc/debug/src/lib.rs b/primitives/rpc/debug/src/lib.rs index 6a6f409672..5e019ea431 100644 --- a/primitives/rpc/debug/src/lib.rs +++ b/primitives/rpc/debug/src/lib.rs @@ -16,9 +16,9 @@ #![cfg_attr(not(feature = "std"), no_std)] -use codec::{Decode, Encode}; use ethereum::{TransactionV0 as LegacyTransaction, TransactionV2 as Transaction}; use ethereum_types::H256; +use parity_scale_codec::{Decode, Encode}; use sp_std::vec::Vec; sp_api::decl_runtime_apis! { diff --git a/primitives/rpc/evm-tracing-events/Cargo.toml b/primitives/rpc/evm-tracing-events/Cargo.toml index d32cfd3dae..e10f9dc121 100644 --- a/primitives/rpc/evm-tracing-events/Cargo.toml +++ b/primitives/rpc/evm-tracing-events/Cargo.toml @@ -1,36 +1,36 @@ [package] name = "evm-tracing-events" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.1.0" [dependencies] -environmental = { version = "1.1.2", default-features = false } +environmental = { workspace = true } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } -sp-runtime-interface = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +parity-scale-codec = { workspace = true } +sp-runtime-interface = { workspace = true } # Ethereum -ethereum = { version = "0.14.0", default-features = false, features = [ "with-codec" ] } -ethereum-types = { version = "0.14", default-features = false } -evm = { version = "0.37.0", default-features = false, features = [ "with-codec" ] } -evm-gasometer = { version = "0.37.0", default-features = false } -evm-runtime = { version = "0.37.0", default-features = false } +ethereum = { workspace = true, features = [ "with-codec" ] } +ethereum-types = { workspace = true } +evm = { workspace = true, features = [ "with-codec" ] } +evm-gasometer = { workspace = true } +evm-runtime = { workspace = true } [features] default = [ "std" ] std = [ - "codec/std", "environmental/std", "ethereum-types/std", "ethereum/std", "evm-gasometer/std", "evm-runtime/std", "evm/std", + "parity-scale-codec/std", "sp-runtime-interface/std", ] evm-tracing = [ "evm-gasometer/tracing", "evm-runtime/tracing", "evm/tracing" ] diff --git a/primitives/rpc/evm-tracing-events/src/evm.rs b/primitives/rpc/evm-tracing-events/src/evm.rs index 9a33209b66..b13a63c17e 100644 --- a/primitives/rpc/evm-tracing-events/src/evm.rs +++ b/primitives/rpc/evm-tracing-events/src/evm.rs @@ -17,9 +17,9 @@ extern crate alloc; use alloc::vec::Vec; -use codec::{Decode, Encode}; use ethereum_types::{H160, H256, U256}; use evm::ExitReason; +use parity_scale_codec::{Decode, Encode}; #[derive(Clone, Debug, Encode, Decode, PartialEq, Eq)] pub struct Transfer { diff --git a/primitives/rpc/evm-tracing-events/src/gasometer.rs b/primitives/rpc/evm-tracing-events/src/gasometer.rs index f2db2c53b4..355f18cadb 100644 --- a/primitives/rpc/evm-tracing-events/src/gasometer.rs +++ b/primitives/rpc/evm-tracing-events/src/gasometer.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Moonbeam. If not, see . -use codec::{Decode, Encode}; +use parity_scale_codec::{Decode, Encode}; #[derive(Debug, Default, Copy, Clone, Encode, Decode, PartialEq, Eq)] pub struct Snapshot { diff --git a/primitives/rpc/evm-tracing-events/src/lib.rs b/primitives/rpc/evm-tracing-events/src/lib.rs index f886b13b7c..54fbcd28ac 100644 --- a/primitives/rpc/evm-tracing-events/src/lib.rs +++ b/primitives/rpc/evm-tracing-events/src/lib.rs @@ -39,8 +39,8 @@ pub use self::evm::EvmEvent; pub use gasometer::GasometerEvent; pub use runtime::RuntimeEvent; -use codec::{Decode, Encode}; use ethereum_types::{H160, U256}; +use parity_scale_codec::{Decode, Encode}; use sp_runtime_interface::pass_by::PassByCodec; environmental::environmental!(listener: dyn Listener + 'static); diff --git a/primitives/rpc/evm-tracing-events/src/runtime.rs b/primitives/rpc/evm-tracing-events/src/runtime.rs index 121e20b59a..0fec676f22 100644 --- a/primitives/rpc/evm-tracing-events/src/runtime.rs +++ b/primitives/rpc/evm-tracing-events/src/runtime.rs @@ -18,9 +18,9 @@ extern crate alloc; use super::Context; use alloc::vec::Vec; -use codec::{Decode, Encode}; use ethereum_types::{H160, H256, U256}; pub use evm::{ExitError, ExitReason, ExitSucceed, Opcode}; +use parity_scale_codec::{Decode, Encode}; #[derive(Clone, Debug, Encode, Decode, PartialEq, Eq)] pub struct Stack { diff --git a/primitives/rpc/txpool/Cargo.toml b/primitives/rpc/txpool/Cargo.toml index d2a75ff029..a8846ac5bd 100644 --- a/primitives/rpc/txpool/Cargo.toml +++ b/primitives/rpc/txpool/Cargo.toml @@ -1,21 +1,21 @@ [package] name = "moonbeam-rpc-primitives-txpool" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.6.0" [dependencies] -ethereum = { version = "0.14.0", default-features = false, features = [ "with-codec" ] } +ethereum = { workspace = true, features = [ "with-codec" ] } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } -sp-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +parity-scale-codec = { workspace = true } +sp-api = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } [features] default = [ "std" ] diff --git a/primitives/rpc/txpool/src/lib.rs b/primitives/rpc/txpool/src/lib.rs index af781756a6..88546c149c 100644 --- a/primitives/rpc/txpool/src/lib.rs +++ b/primitives/rpc/txpool/src/lib.rs @@ -19,8 +19,8 @@ #![allow(clippy::unnecessary_mut_passed)] #![allow(clippy::too_many_arguments)] -use codec::{Decode, Encode}; pub use ethereum::{TransactionV0 as LegacyTransaction, TransactionV2 as Transaction}; +use parity_scale_codec::{Decode, Encode}; use sp_runtime::traits::Block as BlockT; use sp_std::vec::Vec; diff --git a/primitives/session-keys/Cargo.toml b/primitives/session-keys/Cargo.toml index 59f2e37a93..e1ef89e0ed 100644 --- a/primitives/session-keys/Cargo.toml +++ b/primitives/session-keys/Cargo.toml @@ -1,25 +1,25 @@ [package] name = "session-keys-primitives" -authors = [ "PureStake" ] +authors = { workspace = true } description = "Primitives for session keys" edition = "2021" version = "0.1.0" [dependencies] -async-trait = { version = "0.1", optional = true } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -nimbus-primitives = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-application-crypto = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-consensus-babe = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-consensus-vrf = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-inherents = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-keystore = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +async-trait = { workspace = true, optional = true } +frame-support = { workspace = true } +nimbus-primitives = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "derive" ] } +scale-info = { workspace = true, features = [ "derive" ] } +sp-api = { workspace = true } +sp-application-crypto = { workspace = true } +sp-consensus-babe = { workspace = true } +sp-consensus-vrf = { workspace = true } +sp-core = { workspace = true } +sp-inherents = { workspace = true } +sp-keystore = { workspace = true, optional = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } [features] default = [ "std" ] diff --git a/primitives/xcm/Cargo.toml b/primitives/xcm/Cargo.toml index b0b94ecc94..035108a38f 100644 --- a/primitives/xcm/Cargo.toml +++ b/primitives/xcm/Cargo.toml @@ -1,41 +1,41 @@ [package] name = "xcm-primitives" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.1.0" [package.metadata.docs.rs] targets = [ "x86_64-unknown-linux-gnu" ] [dependencies] -ethereum = { version = "0.14.0", default-features = false, features = [ "with-codec" ] } -ethereum-types = { version = "0.14", default-features = false } -hex = { version = "0.4", default-features = false } -impl-trait-for-tuples = "0.2.0" -log = "0.4" -serde = { version = "1.0.101", optional = true, default-features = false, features = [ "derive" ] } -sha3 = { version = "0.10", default-features = false } +ethereum = { workspace = true, features = [ "with-codec" ] } +ethereum-types = { workspace = true } +hex = { workspace = true } +impl-trait-for-tuples = { workspace = true } +log = { workspace = true } +serde = { workspace = true, optional = true, features = [ "derive" ] } +sha3 = { workspace = true } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "derive" ] } +scale-info = { workspace = true, features = [ "derive" ] } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Cumulus -cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-primitives-core = { workspace = true } # Polkadot / XCM -orml-traits = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm-builder = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm-executor = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +orml-traits = { workspace = true } +xcm = { workspace = true } +xcm-builder = { workspace = true } +xcm-executor = { workspace = true } [features] default = [ "std" ] diff --git a/runtime/common/Cargo.toml b/runtime/common/Cargo.toml index 998f5944e5..dbd3c7d2b9 100644 --- a/runtime/common/Cargo.toml +++ b/runtime/common/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "moonbeam-runtime-common" -authors = [ "PureStake" ] +authors = { workspace = true } description = "Common code shared between runtimes" edition = "2021" homepage = "https://moonbeam.network" @@ -13,41 +13,41 @@ impl-trait-for-tuples = "0.2.1" log = "0.4" # Moonbeam -moonbeam-xcm-benchmarks = { path = "../../pallets/moonbeam-xcm-benchmarks", optional = true, default-features = false } -pallet-asset-manager = { path = "../../pallets/asset-manager", default-features = false } -pallet-author-mapping = { path = "../../pallets/author-mapping", default-features = false } -pallet-ethereum-xcm = { path = "../../pallets/ethereum-xcm", default-features = false } -pallet-migrations = { path = "../../pallets/migrations", default-features = false } -pallet-parachain-staking = { path = "../../pallets/parachain-staking", default-features = false } -pallet-randomness = { path = "../../pallets/randomness", default-features = false } -pallet-xcm-transactor = { path = "../../pallets/xcm-transactor", default-features = false } -precompile-utils = { path = "../../precompiles/utils", default-features = false } -xcm-primitives = { path = "../../primitives/xcm", default-features = false } +moonbeam-xcm-benchmarks = { workspace = true, optional = true } +pallet-asset-manager = { workspace = true } +pallet-author-mapping = { workspace = true } +pallet-ethereum-xcm = { workspace = true } +pallet-migrations = { workspace = true } +pallet-parachain-staking = { workspace = true } +pallet-randomness = { workspace = true } +pallet-xcm-transactor = { workspace = true } +precompile-utils = { workspace = true } +xcm-primitives = { workspace = true } # Substrate -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-collective = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-democracy = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-preimage = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-scheduler = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-support = { workspace = true } +frame-system = { workspace = true } +pallet-collective = { workspace = true } +pallet-democracy = { workspace = true } +pallet-preimage = { workspace = true } +pallet-scheduler = { workspace = true } +sp-core = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Frontier -fp-ethereum = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-base-fee = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +fp-ethereum = { workspace = true } +fp-evm = { workspace = true } +pallet-base-fee = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } # Nimbus -pallet-author-inherent = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-author-slot-filter = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +pallet-author-inherent = { workspace = true } +pallet-author-slot-filter = { workspace = true } # Polkadot -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm-executor = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +xcm = { workspace = true } +xcm-executor = { workspace = true } [features] std = [ diff --git a/runtime/evm_tracer/Cargo.toml b/runtime/evm_tracer/Cargo.toml index 3d2430dadd..6972c7021d 100644 --- a/runtime/evm_tracer/Cargo.toml +++ b/runtime/evm_tracer/Cargo.toml @@ -1,37 +1,36 @@ [package] name = "moonbeam-evm-tracer" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.1.0" [dependencies] # Moonbeam -evm-tracing-events = { path = "../../primitives/rpc/evm-tracing-events", default-features = false, features = [ "evm-tracing" ] } -moonbeam-primitives-ext = { path = "../../primitives/ext", default-features = false } +evm-tracing-events = { workspace = true, features = [ "evm-tracing" ] } +moonbeam-primitives-ext = { workspace = true } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +parity-scale-codec = { workspace = true } +sp-core = { workspace = true } +sp-io = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Frontier -ethereum-types = { version = "0.14", default-features = false } -evm = { version = "0.37.0", default-features = false, features = [ "with-codec" ] } -evm-gasometer = { version = "0.37.0", default-features = false } -evm-runtime = { version = "0.37.0", default-features = false } -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } +ethereum-types = { workspace = true } +evm = { workspace = true } +evm-gasometer = { workspace = true } +evm-runtime = { workspace = true } +fp-evm = { workspace = true } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } [features] default = [ "std" ] std = [ - "codec/std", "ethereum-types/std", "evm-gasometer/std", "evm-runtime/std", @@ -41,6 +40,7 @@ std = [ "fp-evm/std", "moonbeam-primitives-ext/std", "pallet-evm/std", + "parity-scale-codec/std", "sp-core/std", "sp-runtime/std", "sp-std/std", diff --git a/runtime/evm_tracer/src/lib.rs b/runtime/evm_tracer/src/lib.rs index 7f6d5e139e..5d9987751f 100644 --- a/runtime/evm_tracer/src/lib.rs +++ b/runtime/evm_tracer/src/lib.rs @@ -25,8 +25,8 @@ #![cfg_attr(not(feature = "std"), no_std)] pub mod tracer { - use codec::Encode; use evm_tracing_events::{EvmEvent, GasometerEvent, RuntimeEvent, StepEventFilter}; + use parity_scale_codec::Encode; use evm::tracing::{using as evm_using, EventListener as EvmListener}; use evm_gasometer::tracing::{using as gasometer_using, EventListener as GasometerListener}; diff --git a/runtime/moonbase/Cargo.toml b/runtime/moonbase/Cargo.toml index cc1bde1130..b811395132 100644 --- a/runtime/moonbase/Cargo.toml +++ b/runtime/moonbase/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "moonbase-runtime" -authors = [ "PureStake" ] +authors = { workspace = true } build = "build.rs" description = "Moonbase Runtime" edition = "2021" @@ -9,166 +9,166 @@ license = "GPL-3.0-only" version = "0.8.4" [dependencies] -hex-literal = { version = "0.3.4", optional = true } -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -rlp = { version = "0.5", optional = true, default-features = false } -serde = { version = "1.0.101", optional = true, default-features = false, features = [ "derive" ] } -sha3 = { version = "0.10", optional = true, default-features = false } -smallvec = "1.8.0" -strum = { version = "0.24", default-features = false, features = [ "derive" ] } -strum_macros = "0.24" +hex-literal = { workspace = true, optional = true } +log = { workspace = true } +num_enum = { workspace = true } +rlp = { workspace = true, optional = true } +serde = { workspace = true, optional = true, features = [ "derive" ] } +sha3 = { workspace = true, optional = true } +smallvec = { workspace = true } +strum = { workspace = true } +strum_macros = { workspace = true } # Moonbeam -account = { path = "../../primitives/account", default-features = false } -moonbeam-core-primitives = { path = "../../core-primitives", default-features = false } -moonbeam-relay-encoder = { path = "../relay-encoder", default-features = false } -moonbeam-runtime-common = { path = "../common", default-features = false } -precompile-utils = { path = "../../precompiles/utils", default-features = false } -session-keys-primitives = { path = "../../primitives/session-keys", default-features = false } -xcm-primitives = { path = "../../primitives/xcm", default-features = false } +account = { workspace = true } +moonbeam-core-primitives = { workspace = true } +moonbeam-relay-encoder = { workspace = true } +moonbeam-runtime-common = { workspace = true } +precompile-utils = { workspace = true } +session-keys-primitives = { workspace = true } +xcm-primitives = { workspace = true } # Moonbeam pallets -moonbeam-xcm-benchmarks = { path = "../../pallets/moonbeam-xcm-benchmarks", default-features = false } -pallet-asset-manager = { path = "../../pallets/asset-manager", default-features = false } -pallet-author-mapping = { path = "../../pallets/author-mapping", default-features = false } -pallet-crowdloan-rewards = { git = "https://github.com/purestake/crowdloan-rewards", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-erc20-xcm-bridge = { path = "../../pallets/erc20-xcm-bridge", default-features = false } -pallet-ethereum-chain-id = { path = "../../pallets/ethereum-chain-id", default-features = false } -pallet-ethereum-xcm = { path = "../../pallets/ethereum-xcm", default-features = false } -pallet-maintenance-mode = { path = "../../pallets/maintenance-mode", default-features = false, features = [ "xcm-support" ] } -pallet-migrations = { path = "../../pallets/migrations", default-features = false } -pallet-moonbeam-orbiters = { path = "../../pallets/moonbeam-orbiters", default-features = false } -pallet-parachain-staking = { path = "../../pallets/parachain-staking", default-features = false } -pallet-proxy-genesis-companion = { path = "../../pallets/proxy-genesis-companion", default-features = false } -pallet-randomness = { path = "../../pallets/randomness", default-features = false } -pallet-xcm-transactor = { path = "../../pallets/xcm-transactor", default-features = false } +moonbeam-xcm-benchmarks = { workspace = true } +pallet-asset-manager = { workspace = true } +pallet-author-mapping = { workspace = true } +pallet-crowdloan-rewards = { workspace = true } +pallet-erc20-xcm-bridge = { workspace = true } +pallet-ethereum-chain-id = { workspace = true } +pallet-ethereum-xcm = { workspace = true } +pallet-maintenance-mode = { workspace = true, features = [ "xcm-support" ] } +pallet-migrations = { workspace = true } +pallet-moonbeam-orbiters = { workspace = true } +pallet-parachain-staking = { workspace = true } +pallet-proxy-genesis-companion = { workspace = true } +pallet-randomness = { workspace = true } +pallet-xcm-transactor = { workspace = true } # Moonbeam precompiles -pallet-evm-precompile-author-mapping = { path = "../../precompiles/author-mapping", default-features = false } -pallet-evm-precompile-balances-erc20 = { path = "../../precompiles/balances-erc20", default-features = false } -pallet-evm-precompile-batch = { path = "../../precompiles/batch", default-features = false } -pallet-evm-precompile-call-permit = { path = "../../precompiles/call-permit", default-features = false } -pallet-evm-precompile-collective = { path = "../../precompiles/collective", default-features = false } -pallet-evm-precompile-conviction-voting = { path = "../../precompiles/conviction-voting", default-features = false } -pallet-evm-precompile-crowdloan-rewards = { path = "../../precompiles/crowdloan-rewards", default-features = false } -pallet-evm-precompile-democracy = { path = "../../precompiles/pallet-democracy", default-features = false } -pallet-evm-precompile-parachain-staking = { path = "../../precompiles/parachain-staking", default-features = false } -pallet-evm-precompile-preimage = { path = "../../precompiles/preimage", default-features = false } -pallet-evm-precompile-proxy = { path = "../../precompiles/proxy", default-features = false } -pallet-evm-precompile-randomness = { path = "../../precompiles/randomness", default-features = false } -pallet-evm-precompile-referenda = { path = "../../precompiles/referenda", default-features = false } -pallet-evm-precompile-relay-encoder = { path = "../../precompiles/relay-encoder", default-features = false } -pallet-evm-precompile-xcm-transactor = { path = "../../precompiles/xcm-transactor", default-features = false } -pallet-evm-precompile-xcm-utils = { path = "../../precompiles/xcm-utils", default-features = false } -pallet-evm-precompile-xtokens = { path = "../../precompiles/xtokens", default-features = false } -pallet-evm-precompileset-assets-erc20 = { path = "../../precompiles/assets-erc20", default-features = false } +pallet-evm-precompile-author-mapping = { workspace = true } +pallet-evm-precompile-balances-erc20 = { workspace = true } +pallet-evm-precompile-batch = { workspace = true } +pallet-evm-precompile-call-permit = { workspace = true } +pallet-evm-precompile-collective = { workspace = true } +pallet-evm-precompile-conviction-voting = { workspace = true } +pallet-evm-precompile-crowdloan-rewards = { workspace = true } +pallet-evm-precompile-democracy = { workspace = true } +pallet-evm-precompile-parachain-staking = { workspace = true } +pallet-evm-precompile-preimage = { workspace = true } +pallet-evm-precompile-proxy = { workspace = true } +pallet-evm-precompile-randomness = { workspace = true } +pallet-evm-precompile-referenda = { workspace = true } +pallet-evm-precompile-relay-encoder = { workspace = true } +pallet-evm-precompile-xcm-transactor = { workspace = true } +pallet-evm-precompile-xcm-utils = { workspace = true } +pallet-evm-precompile-xtokens = { workspace = true } +pallet-evm-precompileset-assets-erc20 = { workspace = true } # Moonbeam tracing -evm-tracing-events = { path = "../../primitives/rpc/evm-tracing-events", optional = true, default-features = false } -moonbeam-evm-tracer = { path = "../evm_tracer", optional = true, default-features = false } -moonbeam-rpc-primitives-debug = { path = "../../primitives/rpc/debug", default-features = false } -moonbeam-rpc-primitives-txpool = { path = "../../primitives/rpc/txpool", default-features = false } +evm-tracing-events = { workspace = true, optional = true } +moonbeam-evm-tracer = { workspace = true, optional = true } +moonbeam-rpc-primitives-debug = { workspace = true } +moonbeam-rpc-primitives-txpool = { workspace = true } # Substrate -frame-executive = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system-rpc-runtime-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-assets = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-collective = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-conviction-voting = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-democracy = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-identity = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-preimage = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-proxy = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-randomness-collective-flip = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-referenda = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-root-testing = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-scheduler = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-society = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-sudo = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-transaction-payment = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-treasury = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-utility = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-whitelist = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive", "max-encoded-len" ] } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-block-builder = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-debug-derive = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-inherents = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-offchain = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-session = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-transaction-pool = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-version = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-executive = { workspace = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +frame-system-rpc-runtime-api = { workspace = true } +pallet-assets = { workspace = true } +pallet-balances = { workspace = true } +pallet-collective = { workspace = true } +pallet-conviction-voting = { workspace = true } +pallet-democracy = { workspace = true } +pallet-identity = { workspace = true } +pallet-preimage = { workspace = true } +pallet-proxy = { workspace = true } +pallet-randomness-collective-flip = { workspace = true } +pallet-referenda = { workspace = true } +pallet-root-testing = { workspace = true } +pallet-scheduler = { workspace = true } +pallet-society = { workspace = true } +pallet-sudo = { workspace = true } +pallet-timestamp = { workspace = true } +pallet-transaction-payment = { workspace = true } +pallet-transaction-payment-rpc-runtime-api = { workspace = true } +pallet-treasury = { workspace = true } +pallet-utility = { workspace = true } +pallet-whitelist = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "derive", "max-encoded-len" ] } +scale-info = { workspace = true, features = [ "derive" ] } +sp-api = { workspace = true } +sp-block-builder = { workspace = true } +sp-core = { workspace = true } +sp-debug-derive = { workspace = true } +sp-inherents = { workspace = true } +sp-io = { workspace = true } +sp-offchain = { workspace = true } +sp-runtime = { workspace = true } +sp-session = { workspace = true } +sp-std = { workspace = true } +sp-transaction-pool = { workspace = true } +sp-version = { workspace = true } # Frontier -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -fp-rpc = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -fp-self-contained = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-base-fee = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-ethereum = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } -pallet-evm-precompile-blake2 = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm-precompile-bn128 = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm-precompile-dispatch = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm-precompile-modexp = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm-precompile-sha3fips = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm-precompile-simple = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +fp-evm = { workspace = true } +fp-rpc = { workspace = true } +fp-self-contained = { workspace = true } +pallet-base-fee = { workspace = true } +pallet-ethereum = { workspace = true, features = [ "forbid-evm-reentrancy" ] } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } +pallet-evm-precompile-blake2 = { workspace = true } +pallet-evm-precompile-bn128 = { workspace = true } +pallet-evm-precompile-dispatch = { workspace = true } +pallet-evm-precompile-modexp = { workspace = true } +pallet-evm-precompile-sha3fips = { workspace = true } +pallet-evm-precompile-simple = { workspace = true } # Cumulus / Nimbus -cumulus-pallet-dmp-queue = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-pallet-parachain-system = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-pallet-xcm = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-pallet-xcmp-queue = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-primitives-timestamp = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-primitives-utility = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -nimbus-primitives = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-author-inherent = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-author-slot-filter = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parachain-info = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-pallet-dmp-queue = { workspace = true } +cumulus-pallet-parachain-system = { workspace = true } +cumulus-pallet-xcm = { workspace = true } +cumulus-pallet-xcmp-queue = { workspace = true } +cumulus-primitives-core = { workspace = true } +cumulus-primitives-timestamp = { workspace = true } +cumulus-primitives-utility = { workspace = true } +nimbus-primitives = { workspace = true } +pallet-author-inherent = { workspace = true } +pallet-author-slot-filter = { workspace = true } +parachain-info = { workspace = true } # Polkadot / XCM -orml-traits = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -orml-xcm-support = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -orml-xtokens = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-xcm-benchmarks = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } -polkadot-core-primitives = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -polkadot-parachain = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm-builder = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm-executor = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +orml-traits = { workspace = true } +orml-xcm-support = { workspace = true } +orml-xtokens = { workspace = true } +pallet-xcm = { workspace = true } +pallet-xcm-benchmarks = { workspace = true, optional = true } +polkadot-core-primitives = { workspace = true } +polkadot-parachain = { workspace = true } +xcm = { workspace = true } +xcm-builder = { workspace = true } +xcm-executor = { workspace = true } # Benchmarking -frame-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } -frame-system-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } -frame-try-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } +frame-benchmarking = { workspace = true, optional = true } +frame-system-benchmarking = { workspace = true, optional = true } +frame-try-runtime = { workspace = true, optional = true } [dev-dependencies] -ethereum = { version = "0.14.0" } -hex = "0.4" -sha3 = "0.10" +ethereum = { workspace = true } +hex = { workspace = true, features = [ "std" ] } +sha3 = { workspace = true, features = [ "std" ] } -cumulus-primitives-parachain-inherent = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-test-relay-sproof-builder = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-primitives-parachain-inherent = { workspace = true } +cumulus-test-relay-sproof-builder = { workspace = true } -polkadot-runtime-parachains = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -xcm-simulator = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +polkadot-runtime-parachains = { workspace = true } +xcm-simulator = { workspace = true } -precompile-utils = { path = "../../precompiles/utils", default-features = false, features = [ "testing" ] } +precompile-utils = { workspace = true, features = [ "std", "testing" ] } [build-dependencies] -substrate-wasm-builder = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +substrate-wasm-builder = { workspace = true } [features] default = [ "std" ] @@ -321,6 +321,7 @@ runtime-benchmarks = [ "sp-runtime/runtime-benchmarks", "xcm-builder/runtime-benchmarks", ] + try-runtime = [ "fp-self-contained/try-runtime", "frame-executive/try-runtime", diff --git a/runtime/moonbeam/Cargo.toml b/runtime/moonbeam/Cargo.toml index 2f8734e021..507df384ea 100644 --- a/runtime/moonbeam/Cargo.toml +++ b/runtime/moonbeam/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "moonbeam-runtime" -authors = [ "PureStake" ] +authors = { workspace = true } build = "build.rs" description = "Moonbeam Runtime" edition = "2021" @@ -9,155 +9,155 @@ license = "GPL-3.0-only" version = "0.8.4" [dependencies] -hex-literal = { version = "0.3.4", optional = true } -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -rlp = { version = "0.5", optional = true, default-features = false } -serde = { version = "1.0.101", optional = true, default-features = false, features = [ "derive" ] } -sha3 = { version = "0.10", optional = true, default-features = false } -smallvec = "1.8.0" +hex-literal = { workspace = true, optional = true } +log = { workspace = true } +num_enum = { workspace = true } +rlp = { workspace = true, optional = true } +serde = { workspace = true, optional = true, features = [ "derive" ] } +sha3 = { workspace = true, optional = true } +smallvec = { workspace = true } # Moonbeam -account = { path = "../../primitives/account", default-features = false } -moonbeam-core-primitives = { path = "../../core-primitives", default-features = false } -moonbeam-relay-encoder = { path = "../relay-encoder", default-features = false } -moonbeam-runtime-common = { path = "../common", default-features = false } -precompile-utils = { path = "../../precompiles/utils", default-features = false } -session-keys-primitives = { path = "../../primitives/session-keys", default-features = false } -xcm-primitives = { path = "../../primitives/xcm", default-features = false } +account = { workspace = true } +moonbeam-core-primitives = { workspace = true } +moonbeam-relay-encoder = { workspace = true } +moonbeam-runtime-common = { workspace = true } +precompile-utils = { workspace = true } +session-keys-primitives = { workspace = true } +xcm-primitives = { workspace = true } # Moonbeam pallets -moonbeam-xcm-benchmarks = { path = "../../pallets/moonbeam-xcm-benchmarks", default-features = false } -pallet-asset-manager = { path = "../../pallets/asset-manager", default-features = false } -pallet-author-mapping = { path = "../../pallets/author-mapping", default-features = false } -pallet-crowdloan-rewards = { git = "https://github.com/purestake/crowdloan-rewards", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-ethereum-chain-id = { path = "../../pallets/ethereum-chain-id", default-features = false } -pallet-maintenance-mode = { path = "../../pallets/maintenance-mode", default-features = false, features = [ "xcm-support" ] } -pallet-migrations = { path = "../../pallets/migrations", default-features = false } -pallet-moonbeam-orbiters = { path = "../../pallets/moonbeam-orbiters", default-features = false } -pallet-parachain-staking = { path = "../../pallets/parachain-staking", default-features = false } -pallet-proxy-genesis-companion = { path = "../../pallets/proxy-genesis-companion", default-features = false } -pallet-randomness = { path = "../../pallets/randomness", default-features = false } -pallet-xcm-transactor = { path = "../../pallets/xcm-transactor", default-features = false } +moonbeam-xcm-benchmarks = { workspace = true } +pallet-asset-manager = { workspace = true } +pallet-author-mapping = { workspace = true } +pallet-crowdloan-rewards = { workspace = true } +pallet-ethereum-chain-id = { workspace = true } +pallet-maintenance-mode = { workspace = true, features = [ "xcm-support" ] } +pallet-migrations = { workspace = true } +pallet-moonbeam-orbiters = { workspace = true } +pallet-parachain-staking = { workspace = true } +pallet-proxy-genesis-companion = { workspace = true } +pallet-randomness = { workspace = true } +pallet-xcm-transactor = { workspace = true } # Moonbeam precompiles -pallet-evm-precompile-author-mapping = { path = "../../precompiles/author-mapping", default-features = false } -pallet-evm-precompile-balances-erc20 = { path = "../../precompiles/balances-erc20", default-features = false } -pallet-evm-precompile-batch = { path = "../../precompiles/batch", default-features = false } -pallet-evm-precompile-call-permit = { path = "../../precompiles/call-permit", default-features = false } -pallet-evm-precompile-collective = { path = "../../precompiles/collective", default-features = false } -pallet-evm-precompile-crowdloan-rewards = { path = "../../precompiles/crowdloan-rewards", default-features = false } -pallet-evm-precompile-democracy = { path = "../../precompiles/pallet-democracy", default-features = false } -pallet-evm-precompile-parachain-staking = { path = "../../precompiles/parachain-staking", default-features = false } -pallet-evm-precompile-preimage = { path = "../../precompiles/preimage", default-features = false } -pallet-evm-precompile-proxy = { path = "../../precompiles/proxy", default-features = false } -pallet-evm-precompile-randomness = { path = "../../precompiles/randomness", default-features = false } -pallet-evm-precompile-relay-encoder = { path = "../../precompiles/relay-encoder", default-features = false } -pallet-evm-precompile-xcm-transactor = { path = "../../precompiles/xcm-transactor", default-features = false } -pallet-evm-precompile-xcm-utils = { path = "../../precompiles/xcm-utils", default-features = false } -pallet-evm-precompile-xtokens = { path = "../../precompiles/xtokens", default-features = false } -pallet-evm-precompileset-assets-erc20 = { path = "../../precompiles/assets-erc20", default-features = false } +pallet-evm-precompile-author-mapping = { workspace = true } +pallet-evm-precompile-balances-erc20 = { workspace = true } +pallet-evm-precompile-batch = { workspace = true } +pallet-evm-precompile-call-permit = { workspace = true } +pallet-evm-precompile-collective = { workspace = true } +pallet-evm-precompile-crowdloan-rewards = { workspace = true } +pallet-evm-precompile-democracy = { workspace = true } +pallet-evm-precompile-parachain-staking = { workspace = true } +pallet-evm-precompile-preimage = { workspace = true } +pallet-evm-precompile-proxy = { workspace = true } +pallet-evm-precompile-randomness = { workspace = true } +pallet-evm-precompile-relay-encoder = { workspace = true } +pallet-evm-precompile-xcm-transactor = { workspace = true } +pallet-evm-precompile-xcm-utils = { workspace = true } +pallet-evm-precompile-xtokens = { workspace = true } +pallet-evm-precompileset-assets-erc20 = { workspace = true } # Moonbeam tracing -evm-tracing-events = { path = "../../primitives/rpc/evm-tracing-events", optional = true, default-features = false } -moonbeam-evm-tracer = { path = "../evm_tracer", optional = true, default-features = false } -moonbeam-rpc-primitives-debug = { path = "../../primitives/rpc/debug", default-features = false } -moonbeam-rpc-primitives-txpool = { path = "../../primitives/rpc/txpool", default-features = false } +evm-tracing-events = { workspace = true, optional = true } +moonbeam-evm-tracer = { workspace = true, optional = true } +moonbeam-rpc-primitives-debug = { workspace = true } +moonbeam-rpc-primitives-txpool = { workspace = true } # Substrate -frame-executive = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system-rpc-runtime-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-assets = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-collective = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-democracy = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-identity = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-preimage = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-proxy = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-randomness-collective-flip = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-root-testing = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-scheduler = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-society = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-transaction-payment = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-treasury = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-utility = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive", "max-encoded-len" ] } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-block-builder = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-inherents = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-offchain = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-session = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-transaction-pool = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-version = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-executive = { workspace = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +frame-system-rpc-runtime-api = { workspace = true } +pallet-assets = { workspace = true } +pallet-balances = { workspace = true } +pallet-collective = { workspace = true } +pallet-democracy = { workspace = true } +pallet-identity = { workspace = true } +pallet-preimage = { workspace = true } +pallet-proxy = { workspace = true } +pallet-randomness-collective-flip = { workspace = true } +pallet-root-testing = { workspace = true } +pallet-scheduler = { workspace = true } +pallet-society = { workspace = true } +pallet-timestamp = { workspace = true } +pallet-transaction-payment = { workspace = true } +pallet-transaction-payment-rpc-runtime-api = { workspace = true } +pallet-treasury = { workspace = true } +pallet-utility = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "derive", "max-encoded-len" ] } +scale-info = { workspace = true, features = [ "derive" ] } +sp-api = { workspace = true } +sp-block-builder = { workspace = true } +sp-core = { workspace = true } +sp-inherents = { workspace = true } +sp-io = { workspace = true } +sp-offchain = { workspace = true } +sp-runtime = { workspace = true } +sp-session = { workspace = true } +sp-std = { workspace = true } +sp-transaction-pool = { workspace = true } +sp-version = { workspace = true } # Frontier -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -fp-rpc = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -fp-self-contained = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-base-fee = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-ethereum = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } -pallet-evm-precompile-blake2 = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm-precompile-bn128 = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm-precompile-dispatch = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm-precompile-modexp = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm-precompile-sha3fips = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm-precompile-simple = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +fp-evm = { workspace = true } +fp-rpc = { workspace = true } +fp-self-contained = { workspace = true } +pallet-base-fee = { workspace = true } +pallet-ethereum = { workspace = true, features = [ "forbid-evm-reentrancy" ] } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } +pallet-evm-precompile-blake2 = { workspace = true } +pallet-evm-precompile-bn128 = { workspace = true } +pallet-evm-precompile-dispatch = { workspace = true } +pallet-evm-precompile-modexp = { workspace = true } +pallet-evm-precompile-sha3fips = { workspace = true } +pallet-evm-precompile-simple = { workspace = true } # Cumulus / Nimbus -cumulus-pallet-dmp-queue = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-pallet-parachain-system = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-pallet-xcm = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-pallet-xcmp-queue = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-primitives-timestamp = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-primitives-utility = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -nimbus-primitives = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-author-inherent = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-author-slot-filter = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parachain-info = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-pallet-dmp-queue = { workspace = true } +cumulus-pallet-parachain-system = { workspace = true } +cumulus-pallet-xcm = { workspace = true } +cumulus-pallet-xcmp-queue = { workspace = true } +cumulus-primitives-core = { workspace = true } +cumulus-primitives-timestamp = { workspace = true } +cumulus-primitives-utility = { workspace = true } +nimbus-primitives = { workspace = true } +pallet-author-inherent = { workspace = true } +pallet-author-slot-filter = { workspace = true } +parachain-info = { workspace = true } # Polkadot / XCM -orml-traits = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -orml-xcm-support = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -orml-xtokens = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-xcm-benchmarks = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } -polkadot-core-primitives = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -polkadot-parachain = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm-builder = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm-executor = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +orml-traits = { workspace = true } +orml-xcm-support = { workspace = true } +orml-xtokens = { workspace = true } +pallet-xcm = { workspace = true } +pallet-xcm-benchmarks = { workspace = true, optional = true } +polkadot-core-primitives = { workspace = true } +polkadot-parachain = { workspace = true } +xcm = { workspace = true } +xcm-builder = { workspace = true } +xcm-executor = { workspace = true } # Benchmarking -frame-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } -frame-system-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } -frame-try-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } +frame-benchmarking = { workspace = true, optional = true } +frame-system-benchmarking = { workspace = true, optional = true } +frame-try-runtime = { workspace = true, optional = true } [dev-dependencies] -ethereum = { version = "0.14.0" } -hex = "0.4" -sha3 = "0.10" +ethereum = { workspace = true } +hex = { workspace = true, features = [ "std" ] } +sha3 = { workspace = true, features = [ "std" ] } -cumulus-primitives-parachain-inherent = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-test-relay-sproof-builder = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-primitives-parachain-inherent = { workspace = true } +cumulus-test-relay-sproof-builder = { workspace = true } -polkadot-runtime-parachains = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -xcm-simulator = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +polkadot-runtime-parachains = { workspace = true } +xcm-simulator = { workspace = true } -precompile-utils = { path = "../../precompiles/utils", default-features = false, features = [ "testing" ] } +precompile-utils = { workspace = true, features = [ "std", "testing" ] } [build-dependencies] -substrate-wasm-builder = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +substrate-wasm-builder = { workspace = true } [features] default = [ "std" ] diff --git a/runtime/moonriver/Cargo.toml b/runtime/moonriver/Cargo.toml index e6d67cb12b..e03c9d388a 100644 --- a/runtime/moonriver/Cargo.toml +++ b/runtime/moonriver/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "moonriver-runtime" -authors = [ "PureStake" ] +authors = { workspace = true } build = "build.rs" description = "Moonriver Runtime" edition = "2021" @@ -9,163 +9,163 @@ license = "GPL-3.0-only" version = "0.8.4" [dependencies] -hex-literal = { version = "0.3.4", optional = true } -log = "0.4" -num_enum = { version = "0.5.3", default-features = false } -rlp = { version = "0.5", optional = true, default-features = false } -serde = { version = "1.0.101", optional = true, default-features = false, features = [ "derive" ] } -sha3 = { version = "0.10", optional = true, default-features = false } -smallvec = "1.8.0" -strum = { version = "0.24", default-features = false, features = [ "derive" ] } -strum_macros = "0.24" +hex-literal = { workspace = true, optional = true } +log = { workspace = true } +num_enum = { workspace = true } +rlp = { workspace = true, optional = true } +serde = { workspace = true, optional = true, features = [ "derive" ] } +sha3 = { workspace = true, optional = true } +smallvec = { workspace = true } +strum = { workspace = true } +strum_macros = { workspace = true } # Moonbeam -account = { path = "../../primitives/account", default-features = false } -moonbeam-core-primitives = { path = "../../core-primitives", default-features = false } -moonbeam-relay-encoder = { path = "../relay-encoder", default-features = false } -moonbeam-runtime-common = { path = "../common", default-features = false } -precompile-utils = { path = "../../precompiles/utils", default-features = false } -session-keys-primitives = { path = "../../primitives/session-keys", default-features = false } -xcm-primitives = { path = "../../primitives/xcm", default-features = false } +account = { workspace = true } +moonbeam-core-primitives = { workspace = true } +moonbeam-relay-encoder = { workspace = true } +moonbeam-runtime-common = { workspace = true } +precompile-utils = { workspace = true } +session-keys-primitives = { workspace = true } +xcm-primitives = { workspace = true } # Moonbeam pallets -moonbeam-xcm-benchmarks = { path = "../../pallets/moonbeam-xcm-benchmarks", default-features = false } -pallet-asset-manager = { path = "../../pallets/asset-manager", default-features = false } -pallet-author-mapping = { path = "../../pallets/author-mapping", default-features = false } -pallet-crowdloan-rewards = { git = "https://github.com/purestake/crowdloan-rewards", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-ethereum-chain-id = { path = "../../pallets/ethereum-chain-id", default-features = false } -pallet-maintenance-mode = { path = "../../pallets/maintenance-mode", default-features = false, features = [ "xcm-support" ] } -pallet-migrations = { path = "../../pallets/migrations", default-features = false } -pallet-moonbeam-orbiters = { path = "../../pallets/moonbeam-orbiters", default-features = false } -pallet-parachain-staking = { path = "../../pallets/parachain-staking", default-features = false } -pallet-proxy-genesis-companion = { path = "../../pallets/proxy-genesis-companion", default-features = false } -pallet-randomness = { path = "../../pallets/randomness", default-features = false } -pallet-xcm-transactor = { path = "../../pallets/xcm-transactor", default-features = false } +moonbeam-xcm-benchmarks = { workspace = true } +pallet-asset-manager = { workspace = true } +pallet-author-mapping = { workspace = true } +pallet-crowdloan-rewards = { workspace = true } +pallet-ethereum-chain-id = { workspace = true } +pallet-maintenance-mode = { workspace = true, features = [ "xcm-support" ] } +pallet-migrations = { workspace = true } +pallet-moonbeam-orbiters = { workspace = true } +pallet-parachain-staking = { workspace = true } +pallet-proxy-genesis-companion = { workspace = true } +pallet-randomness = { workspace = true } +pallet-xcm-transactor = { workspace = true } # Moonbeam precompiles -pallet-evm-precompile-author-mapping = { path = "../../precompiles/author-mapping", default-features = false } -pallet-evm-precompile-balances-erc20 = { path = "../../precompiles/balances-erc20", default-features = false } -pallet-evm-precompile-batch = { path = "../../precompiles/batch", default-features = false } -pallet-evm-precompile-call-permit = { path = "../../precompiles/call-permit", default-features = false } -pallet-evm-precompile-collective = { path = "../../precompiles/collective", default-features = false } -pallet-evm-precompile-conviction-voting = { path = "../../precompiles/conviction-voting", default-features = false } -pallet-evm-precompile-crowdloan-rewards = { path = "../../precompiles/crowdloan-rewards", default-features = false } -pallet-evm-precompile-democracy = { path = "../../precompiles/pallet-democracy", default-features = false } -pallet-evm-precompile-parachain-staking = { path = "../../precompiles/parachain-staking", default-features = false } -pallet-evm-precompile-preimage = { path = "../../precompiles/preimage", default-features = false } -pallet-evm-precompile-proxy = { path = "../../precompiles/proxy", default-features = false } -pallet-evm-precompile-randomness = { path = "../../precompiles/randomness", default-features = false } -pallet-evm-precompile-referenda = { path = "../../precompiles/referenda", default-features = false } -pallet-evm-precompile-relay-encoder = { path = "../../precompiles/relay-encoder", default-features = false } -pallet-evm-precompile-xcm-transactor = { path = "../../precompiles/xcm-transactor", default-features = false } -pallet-evm-precompile-xcm-utils = { path = "../../precompiles/xcm-utils", default-features = false } -pallet-evm-precompile-xtokens = { path = "../../precompiles/xtokens", default-features = false } -pallet-evm-precompileset-assets-erc20 = { path = "../../precompiles/assets-erc20", default-features = false } +pallet-evm-precompile-author-mapping = { workspace = true } +pallet-evm-precompile-balances-erc20 = { workspace = true } +pallet-evm-precompile-batch = { workspace = true } +pallet-evm-precompile-call-permit = { workspace = true } +pallet-evm-precompile-collective = { workspace = true } +pallet-evm-precompile-conviction-voting = { workspace = true } +pallet-evm-precompile-crowdloan-rewards = { workspace = true } +pallet-evm-precompile-democracy = { workspace = true } +pallet-evm-precompile-parachain-staking = { workspace = true } +pallet-evm-precompile-preimage = { workspace = true } +pallet-evm-precompile-proxy = { workspace = true } +pallet-evm-precompile-randomness = { workspace = true } +pallet-evm-precompile-referenda = { workspace = true } +pallet-evm-precompile-relay-encoder = { workspace = true } +pallet-evm-precompile-xcm-transactor = { workspace = true } +pallet-evm-precompile-xcm-utils = { workspace = true } +pallet-evm-precompile-xtokens = { workspace = true } +pallet-evm-precompileset-assets-erc20 = { workspace = true } # Moonbeam tracing -evm-tracing-events = { path = "../../primitives/rpc/evm-tracing-events", optional = true, default-features = false } -moonbeam-evm-tracer = { path = "../evm_tracer", optional = true, default-features = false } -moonbeam-rpc-primitives-debug = { path = "../../primitives/rpc/debug", default-features = false } -moonbeam-rpc-primitives-txpool = { path = "../../primitives/rpc/txpool", default-features = false } +evm-tracing-events = { workspace = true, optional = true } +moonbeam-evm-tracer = { workspace = true, optional = true } +moonbeam-rpc-primitives-debug = { workspace = true } +moonbeam-rpc-primitives-txpool = { workspace = true } # Substrate -frame-executive = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -frame-system-rpc-runtime-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-assets = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-balances = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-collective = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-conviction-voting = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-democracy = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-identity = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-preimage = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-proxy = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-randomness-collective-flip = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-referenda = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-root-testing = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-scheduler = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-society = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-timestamp = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-transaction-payment = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-treasury = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-utility = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-whitelist = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive", "max-encoded-len" ] } -scale-info = { version = "2.0", default-features = false, features = [ "derive" ] } -sp-api = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-block-builder = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-core = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-debug-derive = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-inherents = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-io = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-offchain = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-session = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-transaction-pool = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-version = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-executive = { workspace = true } +frame-support = { workspace = true } +frame-system = { workspace = true } +frame-system-rpc-runtime-api = { workspace = true } +pallet-assets = { workspace = true } +pallet-balances = { workspace = true } +pallet-collective = { workspace = true } +pallet-conviction-voting = { workspace = true } +pallet-democracy = { workspace = true } +pallet-identity = { workspace = true } +pallet-preimage = { workspace = true } +pallet-proxy = { workspace = true } +pallet-randomness-collective-flip = { workspace = true } +pallet-referenda = { workspace = true } +pallet-root-testing = { workspace = true } +pallet-scheduler = { workspace = true } +pallet-society = { workspace = true } +pallet-timestamp = { workspace = true } +pallet-transaction-payment = { workspace = true } +pallet-transaction-payment-rpc-runtime-api = { workspace = true } +pallet-treasury = { workspace = true } +pallet-utility = { workspace = true } +pallet-whitelist = { workspace = true } +parity-scale-codec = { workspace = true, features = [ "derive", "max-encoded-len" ] } +scale-info = { workspace = true, features = [ "derive" ] } +sp-api = { workspace = true } +sp-block-builder = { workspace = true } +sp-core = { workspace = true } +sp-debug-derive = { workspace = true } +sp-inherents = { workspace = true } +sp-io = { workspace = true } +sp-offchain = { workspace = true } +sp-runtime = { workspace = true } +sp-session = { workspace = true } +sp-std = { workspace = true } +sp-transaction-pool = { workspace = true } +sp-version = { workspace = true } # Frontier -fp-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -fp-rpc = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -fp-self-contained = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-base-fee = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-ethereum = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } -pallet-evm = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false, features = [ "forbid-evm-reentrancy" ] } -pallet-evm-precompile-blake2 = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm-precompile-bn128 = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm-precompile-dispatch = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm-precompile-modexp = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm-precompile-sha3fips = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-evm-precompile-simple = { git = "https://github.com/purestake/frontier", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +fp-evm = { workspace = true } +fp-rpc = { workspace = true } +fp-self-contained = { workspace = true } +pallet-base-fee = { workspace = true } +pallet-ethereum = { workspace = true, features = [ "forbid-evm-reentrancy" ] } +pallet-evm = { workspace = true, features = [ "forbid-evm-reentrancy" ] } +pallet-evm-precompile-blake2 = { workspace = true } +pallet-evm-precompile-bn128 = { workspace = true } +pallet-evm-precompile-dispatch = { workspace = true } +pallet-evm-precompile-modexp = { workspace = true } +pallet-evm-precompile-sha3fips = { workspace = true } +pallet-evm-precompile-simple = { workspace = true } # Cumulus / Nimbus -cumulus-pallet-dmp-queue = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-pallet-parachain-system = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-pallet-xcm = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-pallet-xcmp-queue = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-primitives-timestamp = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-primitives-utility = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -nimbus-primitives = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-author-inherent = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-author-slot-filter = { git = "https://github.com/purestake/nimbus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parachain-info = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-pallet-dmp-queue = { workspace = true } +cumulus-pallet-parachain-system = { workspace = true } +cumulus-pallet-xcm = { workspace = true } +cumulus-pallet-xcmp-queue = { workspace = true } +cumulus-primitives-core = { workspace = true } +cumulus-primitives-timestamp = { workspace = true } +cumulus-primitives-utility = { workspace = true } +nimbus-primitives = { workspace = true } +pallet-author-inherent = { workspace = true } +pallet-author-slot-filter = { workspace = true } +parachain-info = { workspace = true } # Polkadot / XCM -orml-traits = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -orml-xcm-support = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -orml-xtokens = { git = "https://github.com/purestake/open-runtime-module-library", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-xcm-benchmarks = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } -polkadot-core-primitives = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -polkadot-parachain = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm-builder = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -xcm-executor = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +orml-traits = { workspace = true } +orml-xcm-support = { workspace = true } +orml-xtokens = { workspace = true } +pallet-xcm = { workspace = true } +pallet-xcm-benchmarks = { workspace = true, optional = true } +polkadot-core-primitives = { workspace = true } +polkadot-parachain = { workspace = true } +xcm = { workspace = true } +xcm-builder = { workspace = true } +xcm-executor = { workspace = true } # Benchmarking -frame-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } -frame-system-benchmarking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } -frame-try-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", optional = true, default-features = false } +frame-benchmarking = { workspace = true, optional = true } +frame-system-benchmarking = { workspace = true, optional = true } +frame-try-runtime = { workspace = true, optional = true } [dev-dependencies] -ethereum = { version = "0.14.0" } -hex = "0.4" -sha3 = "0.10" +ethereum = { workspace = true } +hex = { workspace = true, features = [ "std" ] } +sha3 = { workspace = true, features = [ "std" ] } -cumulus-primitives-parachain-inherent = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -cumulus-test-relay-sproof-builder = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-primitives-parachain-inherent = { workspace = true } +cumulus-test-relay-sproof-builder = { workspace = true } -polkadot-runtime-parachains = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -xcm-simulator = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +polkadot-runtime-parachains = { workspace = true } +xcm-simulator = { workspace = true } -precompile-utils = { path = "../../precompiles/utils", default-features = false, features = [ "testing" ] } +precompile-utils = { workspace = true, features = [ "std", "testing" ] } [build-dependencies] -substrate-wasm-builder = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } +substrate-wasm-builder = { workspace = true } [features] default = [ "std" ] diff --git a/runtime/relay-encoder/Cargo.toml b/runtime/relay-encoder/Cargo.toml index 57867f9a95..3d9aa6816d 100644 --- a/runtime/relay-encoder/Cargo.toml +++ b/runtime/relay-encoder/Cargo.toml @@ -1,41 +1,41 @@ [package] name = "moonbeam-relay-encoder" -authors = [ "PureStake" ] +authors = { workspace = true } edition = "2021" homepage = "https://moonbeam.network" license = "GPL-3.0-only" -repository = "https://github.com/PureStake/moonbeam/" +repository = { workspace = true } version = "0.1.0" [dependencies] # Moonbeam -pallet-evm-precompile-relay-encoder = { path = "../../precompiles/relay-encoder/", default-features = false } -xcm-primitives = { path = "../../primitives/xcm", default-features = false } +pallet-evm-precompile-relay-encoder = { workspace = true } +xcm-primitives = { workspace = true } # Substrate -frame-system = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -pallet-staking = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -parity-scale-codec = { version = "3.0.0", default-features = false, features = [ "derive" ] } -sp-runtime = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } -sp-std = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +frame-system = { workspace = true } +pallet-staking = { workspace = true } +parity-scale-codec = { workspace = true } +sp-runtime = { workspace = true } +sp-std = { workspace = true } # Cumulus -cumulus-primitives-core = { git = "https://github.com/purestake/cumulus", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +cumulus-primitives-core = { workspace = true } # Polkadot -xcm = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37", default-features = false } +xcm = { workspace = true } [dev-dependencies] -frame-support = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-proxy = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } -pallet-utility = { git = "https://github.com/purestake/substrate", branch = "moonbeam-polkadot-v0.9.37" } - -kusama-runtime = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -polkadot-runtime = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -polkadot-runtime-parachains = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -rococo-runtime = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } -westend-runtime = { git = "https://github.com/purestake/polkadot", branch = "moonbeam-polkadot-v0.9.37" } +frame-support = { workspace = true, features = [ "std" ] } +pallet-proxy = { workspace = true, features = [ "std" ] } +pallet-utility = { workspace = true, features = [ "std" ] } + +kusama-runtime = { workspace = true } +polkadot-runtime = { workspace = true } +polkadot-runtime-parachains = { workspace = true } +rococo-runtime = { workspace = true } +westend-runtime = { workspace = true } [features] default = [ "std" ] diff --git a/runtime/summarize-precompile-checks/Cargo.toml b/runtime/summarize-precompile-checks/Cargo.toml index bc1f6260fe..f7d96d9c8f 100644 --- a/runtime/summarize-precompile-checks/Cargo.toml +++ b/runtime/summarize-precompile-checks/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "summarize-precompile-checks" -authors = [ "PureStake" ] +authors = { workspace = true } description = "Summarize precompile checks in all runtimes" edition = "2021" homepage = "https://moonbeam.network" diff --git a/toml-sort.toml b/toml-sort.toml index 7b4de4f3f8..d54798fa24 100644 --- a/toml-sort.toml +++ b/toml-sort.toml @@ -15,13 +15,14 @@ keys = [ inline_keys = [ "package", + "workspace", "path", "git", "branch", "rev", "version", - "optional", "default-features", + "optional", "features", ]