Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions integration-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,9 @@ pnpm exec moonwall test chopsticks_zeitgeist_upgrade
```bash
pnpm exec moonwall test chopsticks_battery_station_upgrade
```

#### Test XCM functionality on the live main-net fork using chopsticks:

```bash
pnpm exec moonwall test chopsticks_zeitgeist_xcm
```
20 changes: 20 additions & 0 deletions integration-tests/configs/polkadot-asset-hub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
endpoint: wss://polkadot-asset-hub-rpc.polkadot.io
mock-signature-host: true
block: ${env.POLKADOT_ASSET_HUB_BLOCK_NUMBER}
db: ./db.sqlite

import-storage:
System:
Account:
-
-
- 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
- providers: 1
data:
free: 1000000000000000
Assets:
Account:
- [[1984, 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY], { balance: 1000000000 }]
- [[21, 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY], { balance: 1000000000 }]
- [[1337, 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY], { balance: 1000000000 }]
Asset: [[[21], { supply: 1000000000 }]]
20 changes: 20 additions & 0 deletions integration-tests/configs/polkadot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
endpoint:
- wss://rpc.ibp.network/polkadot
- wss://polkadot-rpc.dwellir.com
mock-signature-host: true
block: ${env.POLKADOT_BLOCK_NUMBER}
db: ./db.sqlite
# runtime-log-level: 5
# wasm-override: polkadot_runtime.compact.compressed.wasm

import-storage:
System:
Account:
-
-
- 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
- providers: 1
data:
free: '10000000000000000000'
ParasDisputes:
$removePrefix: ['disputes'] # those can makes block building super slow
29 changes: 27 additions & 2 deletions integration-tests/configs/zeitgeist.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
endpoint: wss://main.rpc.zeitgeist.pm/ws
# endpoint: wss://main.rpc.zeitgeist.pm/ws
endpoint: wss://zeitgeist.api.onfinality.io/public-ws
mock-signature-host: true
db: ./tmp/ztg_db_mba.sqlite
# wasm-override: zeitgeist-runtime.compact.compressed.wasm
wasm-override: zeitgeist_runtime.compact.compressed.wasm
runtime-log-level: 5

import-storage:
System:
Expand All @@ -25,3 +27,26 @@ import-storage:
AuthorFilter:
EligibleRatio: 100
EligibleCount: 100
# Complex working example of storage import
# AssetRegistry:
# Metadata:
# -
# -
# - ForeignAsset: 10
# - decimals: 6
# name: USD Coin
# symbol: USDC
# existentialDeposit: "10000"
# location:
# V3:
# parents: 1
# interior:
# X3: [
# Parachain: 1000,
# PalletInstance: 50,
# GeneralIndex: 1337,
# ]
# additional:
# xcm:
# feeFactor: null
# allowAsBaseAsset: false
44 changes: 44 additions & 0 deletions integration-tests/moonwall.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,50 @@
}
]
},
{
"name": "chopsticks_zeitgeist_xcm",
"testFileDir": ["tests/xcm-zeitgeist-chopsticks"],
"runScripts": ["build-node.sh"],
"foundation": {
"type": "chopsticks",
"launchSpec": [
{
"name": "ZeitgeistDB",
"type": "parachain",
"configPath": "./configs/zeitgeist.yml"
},
{
"name": "AssetHubDB",
"type": "parachain",
"configPath": "./configs/polkadot-asset-hub.yml"
},
{
"name": "PolkadotDB",
"type": "relaychain",
"configPath": "polkadot"
}
]
},
"envVars": ["LOG_LEVEL=debug", "VERBOSE_LOG=true"],
"buildBlockMode": "manual",
"connections": [
{
"name": "ZeitgeistPara",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:8000"]
},
{
"name": "AssetHubPara",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:8001"]
},
{
"name": "PolkadotRelay",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:8002"]
}
]
},
{
"name": "chopsticks_zeitgeist_upgrade",
"testFileDir": ["tests/rt-upgrade-zeitgeist-chopsticks"],
Expand Down
8 changes: 4 additions & 4 deletions integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"ws": "^8.16.0"
},
"devDependencies": {
"@acala-network/chopsticks": "0.9.10",
"@moonwall/cli": "^5.1.5",
"@moonwall/util": "^5.1.5",
"@acala-network/chopsticks": "0.13.1",
"@moonwall/cli": "5.3.3",
"@moonwall/util": "5.3.3",
"@polkadot/api": "^10.13.1",
"@polkadot/types": "^10.13.1",
"@types/node": "^20.12.7",
"@types/node": "^20.14.11",
"debug": "4.3.4",
"ts-node": "^10.9.2"
},
Expand Down
Loading