mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 07:01:03 +00:00
af46f4b41e
* add foreign assets to westmint * add foreign assets to statemine * use updated api for ensure origin trait * Assets/ForeignAssets tests and fixes (#2167) * Test for create and transfer `TrustBackedAssets` with AssetTransactor * Test for transfer `local Currency` with AssetTransactor * Test for create foreign assets (covers foreign relaychain currency) * Added `ForeignFungiblesTransactor` and test for transfer `ForeignAssets` with AssetTransactor * Removed unused `pub const Local: MultiLocation` * Changed `ParaId -> Sibling` for `SiblingParachainConvertsVia` * Test for create foreign assets (covers local sibling parachain assets) * Reverted stuff for ForeignCreators from different global consensus (moved to transfer asset branch) * Refactor `weight_limit` for `execute_xcm` * Added test for `set_metadata` by ForeignCreator with `xcm::Transact(set_metadata)` * Renamed `receive_teleported_asset_works` -> `receive_teleported_asset_for_native_asset_works` * Allow `ForeignCreators` only for sibling parachains * Unify ReservedDmpWeight/ReservedXcmpWeight usage * Removed hack - replaced with `MatchedConvertedConcreteId` * Refactor `ForeignCreators` to assets-common * Add `ReceiveTeleportedAsset` test * Change test - `Utility::batch` -> Multiple `xcm::Transact` * Reusing the same deposits as for TrustBackedAssets * missing `try_successful_origin` ? * Finished `ForeignAssets` for westmint (converter, FungiblesApi, tests) * Refactoring tests - receive_teleported_asset_for_native_asset_works * ForeignAssets for statemine + refactored `receive_teleported_asset_from_foreign_creator_works` * Add `ForeignAssets` to statemine `FungiblesApi` * Add `asset_transactor_transfer_with_local_consensus_currency_works` to all runtimes * Added `asset_transactor_transfer_with_trust_backed_assets_works` test * Added `asset_transactor_transfer_with_foreign_assets_works` * Fix `missing `try_successful_origin` in implementation` * Added `create_and_manage_foreign_assets_for_local_consensus_parachain_assets_works` * Added `ExpectTransactStatus` check * Small rename * Extended `test_assets_balances_api_works` with ForeignAssets for `statemine` * PR fixes * Update parachains/runtimes/assets/test-utils/src/test_cases.rs --------- Co-authored-by: parity-processbot <> Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> * Added `StartsWithExplicitGlobalConsensus` to ignores (#2338) * Update parachains/runtimes/assets/common/src/lib.rs Co-authored-by: Gavin Wood <gavin@parity.io> * include mint and burn in SafeCallFilter * include mint and burn in SafeCallFilter (statemine) * clarify doc * Fix compilation (moved trait `InspectMetadata`) * Fix test * Extended test for `teleport` from/to relaychain + `CheckingAccount` (Part I) * Extended test for `teleport` from/to foreign parachain + `CheckingAccount` (Part II) * Fixed TODO - `NonLocal` for `ForeignAssets` * Changed `NonLocal` to `NoChecking` * Fix weight in test --------- Co-authored-by: parity-processbot <> Co-authored-by: muharem <ismailov.m.h@gmail.com> Co-authored-by: Branislav Kontur <bkontur@gmail.com> Co-authored-by: Gavin Wood <gavin@parity.io>
201 lines
11 KiB
TOML
201 lines
11 KiB
TOML
[package]
|
|
name = "statemine-runtime"
|
|
version = "2.0.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2021"
|
|
description = "Kusama variant of Statemint parachain runtime"
|
|
|
|
[dependencies]
|
|
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] }
|
|
hex-literal = { version = "0.3.4" }
|
|
log = { version = "0.4.17", default-features = false }
|
|
scale-info = { version = "2.3.1", default-features = false, features = ["derive"] }
|
|
smallvec = "1.10.0"
|
|
|
|
# Substrate
|
|
frame-benchmarking = { git = "https://github.com/paritytech/substrate", optional = true, default-features = false, branch = "master" }
|
|
frame-executive = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
frame-system-benchmarking = { git = "https://github.com/paritytech/substrate", optional = true, default-features = false, branch = "master" }
|
|
frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
frame-try-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "master" }
|
|
pallet-asset-tx-payment = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-assets = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
pallet-aura = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
pallet-authorship = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
pallet-multisig = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
pallet-nfts = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
pallet-nfts-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
pallet-proxy = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
pallet-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
pallet-state-trie-migration = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master", optional = true }
|
|
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
pallet-uniques = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
pallet-utility = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
sp-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
sp-block-builder = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
sp-consensus-aura = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
sp-inherents = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
sp-offchain = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
sp-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
sp-transaction-pool = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
sp-version = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
sp-weights = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
|
|
|
# Polkadot
|
|
kusama-runtime-constants = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "master" }
|
|
pallet-xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "master" }
|
|
pallet-xcm-benchmarks = { git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false, optional = true }
|
|
polkadot-core-primitives = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "master" }
|
|
polkadot-parachain = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "master" }
|
|
polkadot-runtime-common = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "master" }
|
|
xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "master" }
|
|
xcm-builder = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "master" }
|
|
xcm-executor = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "master" }
|
|
|
|
# Cumulus
|
|
cumulus-pallet-aura-ext = { path = "../../../../pallets/aura-ext", default-features = false }
|
|
cumulus-pallet-dmp-queue = { path = "../../../../pallets/dmp-queue", default-features = false }
|
|
cumulus-pallet-parachain-system = { path = "../../../../pallets/parachain-system", default-features = false }
|
|
cumulus-pallet-session-benchmarking = {path = "../../../../pallets/session-benchmarking", default-features = false, version = "3.0.0"}
|
|
cumulus-pallet-xcm = { path = "../../../../pallets/xcm", default-features = false }
|
|
cumulus-pallet-xcmp-queue = { path = "../../../../pallets/xcmp-queue", default-features = false }
|
|
cumulus-primitives-core = { path = "../../../../primitives/core", default-features = false }
|
|
cumulus-primitives-timestamp = { path = "../../../../primitives/timestamp", default-features = false }
|
|
cumulus-primitives-utility = { path = "../../../../primitives/utility", default-features = false }
|
|
pallet-collator-selection = { path = "../../../../pallets/collator-selection", default-features = false }
|
|
parachain-info = { path = "../../../pallets/parachain-info", default-features = false }
|
|
parachains-common = { path = "../../../common", default-features = false }
|
|
assets-common = { path = "../common", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
asset-test-utils = { path = "../test-utils"}
|
|
|
|
[build-dependencies]
|
|
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
|
|
|
|
[features]
|
|
default = [ "std" ]
|
|
# When enabled the `state_version` is set to `1`.
|
|
# This means that the chain will start using the new state format. The migration is lazy, so
|
|
# it requires to write a storage value to use the new state format. To migrate all the other
|
|
# storage values that aren't touched the state migration pallet is added as well.
|
|
# This pallet will migrate the entire state, controlled through some account.
|
|
#
|
|
# This feature should be removed when the main-net will be migrated.
|
|
state-trie-version-1 = ["pallet-state-trie-migration"]
|
|
runtime-benchmarks = [
|
|
"frame-benchmarking/runtime-benchmarks",
|
|
"frame-support/runtime-benchmarks",
|
|
"frame-system-benchmarking/runtime-benchmarks",
|
|
"frame-system/runtime-benchmarks",
|
|
"pallet-assets/runtime-benchmarks",
|
|
"pallet-balances/runtime-benchmarks",
|
|
"pallet-multisig/runtime-benchmarks",
|
|
"pallet-nfts/runtime-benchmarks",
|
|
"pallet-proxy/runtime-benchmarks",
|
|
"pallet-timestamp/runtime-benchmarks",
|
|
"pallet-uniques/runtime-benchmarks",
|
|
"pallet-utility/runtime-benchmarks",
|
|
"pallet-xcm/runtime-benchmarks",
|
|
"sp-runtime/runtime-benchmarks",
|
|
"xcm-builder/runtime-benchmarks",
|
|
"cumulus-pallet-session-benchmarking/runtime-benchmarks",
|
|
"pallet-collator-selection/runtime-benchmarks",
|
|
"cumulus-pallet-xcmp-queue/runtime-benchmarks",
|
|
"pallet-xcm-benchmarks/runtime-benchmarks",
|
|
"pallet-state-trie-migration/runtime-benchmarks",
|
|
"assets-common/runtime-benchmarks",
|
|
]
|
|
try-runtime = [
|
|
"cumulus-pallet-aura-ext/try-runtime",
|
|
"cumulus-pallet-dmp-queue/try-runtime",
|
|
"cumulus-pallet-parachain-system/try-runtime",
|
|
"cumulus-pallet-xcm/try-runtime",
|
|
"cumulus-pallet-xcmp-queue/try-runtime",
|
|
"frame-executive/try-runtime",
|
|
"frame-system/try-runtime",
|
|
"frame-try-runtime/try-runtime",
|
|
"pallet-asset-tx-payment/try-runtime",
|
|
"pallet-assets/try-runtime",
|
|
"pallet-aura/try-runtime",
|
|
"pallet-authorship/try-runtime",
|
|
"pallet-balances/try-runtime",
|
|
"pallet-collator-selection/try-runtime",
|
|
"pallet-multisig/try-runtime",
|
|
"pallet-nfts/try-runtime",
|
|
"pallet-proxy/try-runtime",
|
|
"pallet-session/try-runtime",
|
|
"pallet-timestamp/try-runtime",
|
|
"pallet-transaction-payment/try-runtime",
|
|
"pallet-uniques/try-runtime",
|
|
"pallet-utility/try-runtime",
|
|
"pallet-xcm/try-runtime",
|
|
"parachain-info/try-runtime",
|
|
"pallet-state-trie-migration/try-runtime",
|
|
]
|
|
std = [
|
|
"codec/std",
|
|
"log/std",
|
|
"scale-info/std",
|
|
"frame-executive/std",
|
|
"frame-support/std",
|
|
"frame-system-rpc-runtime-api/std",
|
|
"frame-system/std",
|
|
"kusama-runtime-constants/std",
|
|
"pallet-asset-tx-payment/std",
|
|
"pallet-assets/std",
|
|
"pallet-aura/std",
|
|
"pallet-authorship/std",
|
|
"pallet-balances/std",
|
|
"pallet-multisig/std",
|
|
"pallet-nfts/std",
|
|
"pallet-nfts-runtime-api/std",
|
|
"pallet-proxy/std",
|
|
"pallet-session/std",
|
|
"pallet-state-trie-migration/std",
|
|
"pallet-timestamp/std",
|
|
"pallet-transaction-payment-rpc-runtime-api/std",
|
|
"pallet-transaction-payment/std",
|
|
"pallet-uniques/std",
|
|
"pallet-utility/std",
|
|
"pallet-xcm/std",
|
|
"polkadot-core-primitives/std",
|
|
"polkadot-parachain/std",
|
|
"polkadot-runtime-common/std",
|
|
"sp-api/std",
|
|
"sp-block-builder/std",
|
|
"sp-consensus-aura/std",
|
|
"sp-core/std",
|
|
"sp-inherents/std",
|
|
"sp-offchain/std",
|
|
"sp-runtime/std",
|
|
"sp-session/std",
|
|
"sp-std/std",
|
|
"sp-transaction-pool/std",
|
|
"sp-version/std",
|
|
"xcm-builder/std",
|
|
"xcm-executor/std",
|
|
"xcm/std",
|
|
"cumulus-pallet-aura-ext/std",
|
|
"cumulus-pallet-dmp-queue/std",
|
|
"cumulus-pallet-parachain-system/std",
|
|
"cumulus-pallet-xcm/std",
|
|
"cumulus-pallet-xcmp-queue/std",
|
|
"cumulus-primitives-core/std",
|
|
"cumulus-primitives-timestamp/std",
|
|
"cumulus-primitives-utility/std",
|
|
"pallet-collator-selection/std",
|
|
"parachain-info/std",
|
|
"parachains-common/std",
|
|
"assets-common/std",
|
|
"substrate-wasm-builder",
|
|
]
|