mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 21:01:02 +00:00
2cb39f8dc9
Implements an XCM executor `WeightTrader`, facilitating fee payments in any asset that can be exchanged for a native asset. A few constraints need to be observed: - `buy_weight` and `refund` operations must be atomic, as another weight trader implementation might be attempted in case of failure. - swap credit must be utilized since there isn’t an account to which an asset of some class can be deposited with a guarantee to meet the existential deposit requirement. Also, operating with credits enhances the efficiency of the weight trader - https://github.com/paritytech/polkadot-sdk/pull/1677 related PRs: - (depends) https://github.com/paritytech/polkadot-sdk/pull/2031 - (depends) https://github.com/paritytech/polkadot-sdk/pull/1677 - (caused) https://github.com/paritytech/polkadot-sdk/pull/1847 - (caused) https://github.com/paritytech/polkadot-sdk/pull/1876 // DONE: impl `OnUnbalanced` for a `fungible/s` credit // DONE: make the trader free from a concept of a native currency and drop few fallible conversions. related issue - https://github.com/paritytech/polkadot-sdk/issues/1842 // DONE: tests --------- Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
55 lines
3.4 KiB
TOML
55 lines
3.4 KiB
TOML
[package]
|
|
name = "bridge-hub-rococo-integration-tests"
|
|
version = "1.0.0"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license = "Apache-2.0"
|
|
description = "Bridge Hub Rococo runtime integration tests with xcm-emulator"
|
|
publish = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
codec = { package = "parity-scale-codec", version = "3.4.0", default-features = false }
|
|
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
|
|
hex = "0.4.3"
|
|
hex-literal = "0.4.1"
|
|
|
|
# Substrate
|
|
sp-core = { path = "../../../../../../../substrate/primitives/core", default-features = false }
|
|
frame-support = { path = "../../../../../../../substrate/frame/support", default-features = false }
|
|
pallet-assets = { path = "../../../../../../../substrate/frame/assets", default-features = false }
|
|
pallet-asset-conversion = { path = "../../../../../../../substrate/frame/asset-conversion", default-features = false }
|
|
pallet-balances = { path = "../../../../../../../substrate/frame/balances", default-features = false }
|
|
pallet-message-queue = { path = "../../../../../../../substrate/frame/message-queue" }
|
|
sp-runtime = { path = "../../../../../../../substrate/primitives/runtime", default-features = false }
|
|
|
|
# Polkadot
|
|
xcm = { package = "staging-xcm", path = "../../../../../../../polkadot/xcm", default-features = false }
|
|
pallet-xcm = { path = "../../../../../../../polkadot/xcm/pallet-xcm", default-features = false }
|
|
xcm-executor = { package = "staging-xcm-executor", path = "../../../../../../../polkadot/xcm/xcm-executor", default-features = false }
|
|
|
|
# Bridges
|
|
pallet-bridge-messages = { path = "../../../../../../../bridges/modules/messages", default-features = false }
|
|
bp-messages = { path = "../../../../../../../bridges/primitives/messages", default-features = false }
|
|
|
|
# Cumulus
|
|
asset-test-utils = { path = "../../../../../../parachains/runtimes/assets/test-utils" }
|
|
parachains-common = { path = "../../../../../../parachains/common" }
|
|
cumulus-pallet-xcmp-queue = { path = "../../../../../../pallets/xcmp-queue", default-features = false }
|
|
cumulus-pallet-dmp-queue = { path = "../../../../../../pallets/dmp-queue", default-features = false }
|
|
bridge-hub-rococo-runtime = { path = "../../../../../../parachains/runtimes/bridge-hubs/bridge-hub-rococo", default-features = false }
|
|
emulated-integration-tests-common = { path = "../../../common", default-features = false }
|
|
rococo-westend-system-emulated-network = { path = "../../../networks/rococo-westend-system" }
|
|
penpal-runtime = { path = "../../../../../runtimes/testing/penpal", default-features = false }
|
|
rococo-system-emulated-network = { path = "../../../networks/rococo-system" }
|
|
asset-hub-rococo-runtime = { path = "../../../../../runtimes/assets/asset-hub-rococo", default-features = false }
|
|
|
|
# Snowbridge
|
|
snowbridge-core = { path = "../../../../../../../bridges/snowbridge/parachain/primitives/core", default-features = false }
|
|
snowbridge-router-primitives = { path = "../../../../../../../bridges/snowbridge/parachain/primitives/router", default-features = false }
|
|
snowbridge-pallet-system = { path = "../../../../../../../bridges/snowbridge/parachain/pallets/system", default-features = false }
|
|
snowbridge-pallet-inbound-queue = { path = "../../../../../../../bridges/snowbridge/parachain/pallets/inbound-queue", default-features = false }
|
|
snowbridge-pallet-outbound-queue = { path = "../../../../../../../bridges/snowbridge/parachain/pallets/outbound-queue", default-features = false }
|