diff --git a/Cargo.toml b/Cargo.toml index 112f3970..c3adf398 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -89,7 +89,7 @@ cumulus-pallet-xcmp-queue = { version = "0.7.0", default-features = false } cumulus-primitives-core = { version = "0.7.0", default-features = false } cumulus-primitives-timestamp = { version = "0.7.0", default-features = false } cumulus-primitives-utility = { version = "0.7.3", default-features = false } -pallet-collator-selection = { version = "9.0.0", default-features = false } +pallet-collator-selection = { version = "9.0.2", default-features = false } parachain-info = { version = "0.7.0", package = "staging-parachain-info", default-features = false } parachains-common = { version = "7.0.0", default-features = false } sp-timestamp = { version = "26.0.0", default-features = false } diff --git a/README.md b/README.md index 19a4f421..42604cb2 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,23 @@ export PATH=/home//RegionX-Node/:$PATH ``` -4. Run the test: +4. Run the tests: + + - block production - ``` - zombienet-linux -p native test ./zombienet_tests/0001-smoke-test.zndsl - ``` + + ``` + zombienet-linux -p native test ./zombienet_tests/0001-block-production.zndsl + ``` + + - native fee payment + + ``` + zombienet-linux -p native test ./zombienet_tests/0002-native-fee-payment.zndsl + ``` + + - custom fee payment + + ``` + zombienet-linux -p native test ./zombienet_tests/0003-custom-fee-payment.zndsl + ``` \ No newline at end of file diff --git a/e2e_tests/custom-fee-payment.js b/e2e_tests/custom-fee-payment.js index 896050cb..9e1c058b 100644 --- a/e2e_tests/custom-fee-payment.js +++ b/e2e_tests/custom-fee-payment.js @@ -4,7 +4,6 @@ const { submitExtrinsic } = require("./common"); const RELAY_ASSET_ID = 1; async function run(nodeName, networkInfo, _jsArgs) { - console.log(nodeName); const { wsUri: regionXUri } = networkInfo.nodesByName[nodeName]; const { wsUri: rococoUri } = networkInfo.nodesByName["rococo-validator01"]; @@ -42,7 +41,7 @@ async function run(nodeName, networkInfo, _jsArgs) { const assetSetupCalls = [ regionXApi.tx.assetRegistry.registerAsset(assetMetadata, RELAY_ASSET_ID), - regionXApi.tx.assetRate.create(RELAY_ASSET_ID, 1000000000000000000n), // 1 on 1 + regionXApi.tx.assetRate.create(RELAY_ASSET_ID, 1_000_000_000_000_000_000n), // 1 on 1 regionXApi.tx.tokens.setBalance( alice.address, RELAY_ASSET_ID, @@ -51,9 +50,9 @@ async function run(nodeName, networkInfo, _jsArgs) { ), ]; const batchCall = regionXApi.tx.utility.batch(assetSetupCalls); - const sudo = regionXApi.tx.sudo.sudo(batchCall); + const sudoCall = regionXApi.tx.sudo.sudo(batchCall); - await submitExtrinsic(alice, sudo, {}); + await submitExtrinsic(alice, sudoCall, {}); const receiverKeypair = new Keyring(); receiverKeypair.addFromAddress(alice.address); @@ -92,7 +91,7 @@ async function run(nodeName, networkInfo, _jsArgs) { ); await submitExtrinsic(alice, reserveTransfer, {}); - // Try to pay for fees with relay asset. + // Try to pay for fees with relay chain asset. const remarkCall = regionXApi.tx.system.remark("0x44"); await submitExtrinsic(alice, remarkCall, { assetId: RELAY_ASSET_ID }); } diff --git a/zombienet_tests/0001-block-production.zndsl b/zombienet_tests/0001-block-production.zndsl index 2153b9d7..30f2bec5 100644 --- a/zombienet_tests/0001-block-production.zndsl +++ b/zombienet_tests/0001-block-production.zndsl @@ -1,5 +1,5 @@ Description: Block production smoke test -Network: ./0001-smoke-test.toml +Network: ./0001-block-production.toml Creds: config alice: is up