Skip to content

Commit

Permalink
Improve Chopsticks Upgrade Test (#2662)
Browse files Browse the repository at this point in the history
* Updated pkgs

* added explicit specVersion check

* fix wait

* fix wait
  • Loading branch information
timbrinded authored Feb 21, 2024
1 parent de5f232 commit d1684cf
Show file tree
Hide file tree
Showing 9 changed files with 552 additions and 1,008 deletions.
2 changes: 1 addition & 1 deletion test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pnpm moonwall download polkadot latest
Running a chopsticks forked Moonbeam network:

```bash
pnpm moonwall run chopsticks_moonbeam
pnpm moonwall run upgrade_moonbeam
```

Running a particular smoke test:
Expand Down
28 changes: 3 additions & 25 deletions test/moonwall.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -342,28 +342,6 @@
}
]
},
{
"name": "chopsticks_moonbeam",
"testFileDir": ["suites/chopsticks/"],
"foundation": {
"type": "chopsticks",
"launchSpec": [
{
"name": "mb",
"type": "parachain",
"allowUnresolvedImports": true,
"configPath": "./configs/moonbeam.yml"
}
]
},
"connections": [
{
"name": "MB",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:8000"]
}
]
},
{
"name": "dev_moonbeam",
"testFileDir": ["suites/dev/moonbeam"],
Expand Down Expand Up @@ -540,7 +518,7 @@
},
{
"name": "upgrade_moonbeam",
"testFileDir": ["suites/rt-upgrade/"],
"testFileDir": ["suites/chopsticks/"],
"foundation": {
"type": "chopsticks",
"rtUpgradePath": "../target/release/wbuild/moonbeam-runtime/moonbeam_runtime.compact.compressed.wasm",
Expand All @@ -563,7 +541,7 @@
},
{
"name": "upgrade_moonriver",
"testFileDir": ["suites/rt-upgrade/"],
"testFileDir": ["suites/chopsticks/"],
"foundation": {
"type": "chopsticks",
"rtUpgradePath": "../target/release/wbuild/moonriver-runtime/moonriver_runtime.compact.compressed.wasm",
Expand All @@ -586,7 +564,7 @@
},
{
"name": "upgrade_moonbase",
"testFileDir": ["suites/rt-upgrade/"],
"testFileDir": ["suites/chopsticks/"],
"foundation": {
"type": "chopsticks",
"rtUpgradePath": "../target/release/wbuild/moonbase-runtime/moonbase_runtime.compact.compressed.wasm",
Expand Down
26 changes: 13 additions & 13 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"dependencies": {
"@acala-network/chopsticks": "0.9.8",
"@moonbeam-network/api-augment": "0.2700.0",
"@moonwall/cli": "4.7.8",
"@moonwall/util": "4.7.8",
"@moonwall/cli": "^5.0.0",
"@moonwall/util": "^5.0.0",
"@openzeppelin/contracts": "4.9.3",
"@polkadot/api": "10.11.2",
"@polkadot/api-augment": "10.11.2",
Expand All @@ -33,11 +33,11 @@
"@polkadot/util-crypto": "12.6.2",
"@substrate/txwrapper-core": "7.2.0",
"@substrate/txwrapper-substrate": "7.2.0",
"@vitest/ui": "1.2.2",
"@vitest/ui": "1.3.0",
"@zombienet/utils": "0.0.24",
"chalk": "5.3.0",
"eth-object": "github:aurora-is-near/eth-object#master",
"ethers": "6.10.0",
"ethers": "6.11.1",
"json-bigint": "1.0.0",
"json-stable-stringify": "1.1.1",
"merkle-patricia-tree": "4.2.4",
Expand All @@ -47,23 +47,23 @@
"rlp": "3.0.0",
"semver": "7.6.0",
"solc": "0.8.21",
"tsx": "4.7.0",
"viem": "2.7.6",
"vitest": "1.2.2",
"web3": "4.4.0"
"tsx": "4.7.1",
"viem": "2.7.11",
"vitest": "1.3.0",
"web3": "4.5.0"
},
"devDependencies": {
"@types/debug": "4.1.12",
"@types/json-bigint": "^1.0.4",
"@types/node": "20.11.16",
"@types/semver": "7.5.6",
"@types/node": "20.11.19",
"@types/semver": "7.5.7",
"@types/yargs": "17.0.32",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"@typescript-eslint/eslint-plugin": "7.0.2",
"@typescript-eslint/parser": "7.0.2",
"bottleneck": "2.19.5",
"debug": "4.3.4",
"eslint": "8.56.0",
"eslint-plugin-unused-imports": "3.0.0",
"eslint-plugin-unused-imports": "3.1.0",
"prettier": "2.8.8",
"typescript": "5.3.3",
"yargs": "17.7.2"
Expand Down
Loading

0 comments on commit d1684cf

Please sign in to comment.