difftreelog
refactor(zombienet) superuser const + transfer dump ownership to UniqueNetwork
in: master
3 files changed
tests/package.jsondiffbeforeafterboth--- a/tests/package.json
+++ b/tests/package.json
@@ -13,8 +13,8 @@
"@types/node": "^20.2.3",
"@typescript-eslint/eslint-plugin": "^5.47.0",
"@typescript-eslint/parser": "^5.47.0",
- "@zombienet/orchestrator": "https://gitpkg.now.sh/Fahrrader/zombienet/javascript/packages/orchestrator?767fa6226b7f6a43d674063d63c5bc505db1253c",
- "@zombienet/utils": "https://gitpkg.now.sh/Fahrrader/zombienet/javascript/packages/utils?767fa6226b7f6a43d674063d63c5bc505db1253c",
+ "@zombienet/orchestrator": "https://gitpkg.now.sh/UniqueNetwork/zombienet/javascript/packages/orchestrator?767fa6226b7f6a43d674063d63c5bc505db1253c",
+ "@zombienet/utils": "https://gitpkg.now.sh/UniqueNetwork/zombienet/javascript/packages/utils?767fa6226b7f6a43d674063d63c5bc505db1253c",
"chai": "^4.3.6",
"chai-subset": "^1.6.0",
"eslint": "^8.25.0",
tests/src/util/frankenstein.tsdiffbeforeafterboth32const NEW_PARA_BIN = process.env.NEW_PARA_BIN;32const NEW_PARA_BIN = process.env.NEW_PARA_BIN;33const NEW_PARA_WASM = process.env.NEW_PARA_WASM;33const NEW_PARA_WASM = process.env.NEW_PARA_WASM;34const PARACHAIN_BLOCK_TIME = 12_000;34const PARACHAIN_BLOCK_TIME = 12_000;35const SUPERUSER_KEY = '//Alice';353636let network: zombie.Network | undefined;37let network: zombie.Network | undefined;373884// Enable or disable maintenance mode if present on the chain85// Enable or disable maintenance mode if present on the chain85async function toggleMaintenanceMode(value: boolean, wsUri: string) {86async function toggleMaintenanceMode(value: boolean, wsUri: string) {86 await usingPlaygrounds(async (helper, privateKey) => {87 await usingPlaygrounds(async (helper, privateKey) => {87 const superuser = await privateKey('//Alice');88 const superuser = await privateKey(SUPERUSER_KEY);88 try {89 try {89 const toggle = value ? 'enable' : 'disable';90 const toggle = value ? 'enable' : 'disable';90 await helper.getSudo().executeExtrinsic(superuser, `api.tx.maintenance.${toggle}`, []);91 await helper.getSudo().executeExtrinsic(superuser, `api.tx.maintenance.${toggle}`, []);198 // Read the new WASM code and set it as the relay's new code199 // Read the new WASM code and set it as the relay's new code199 const code = fs.readFileSync(NEW_RELAY_WASM).toString('hex');200 const code = fs.readFileSync(NEW_RELAY_WASM).toString('hex');200 await usingPlaygrounds(async (helper, privateKey) => {201 await usingPlaygrounds(async (helper, privateKey) => {201 const superuser = await privateKey('//Alice');202 const superuser = await privateKey(SUPERUSER_KEY);202203203 const result = await helper.executeExtrinsic(204 const result = await helper.executeExtrinsic(204 superuser,205 superuser,255 const code = fs.readFileSync(NEW_PARA_WASM);256 const code = fs.readFileSync(NEW_PARA_WASM);256 const codeHash = blake2AsHex(code);257 const codeHash = blake2AsHex(code);257 await usingPlaygrounds(async (helper, privateKey) => {258 await usingPlaygrounds(async (helper, privateKey) => {258 const superuser = await privateKey('//Alice');259 const superuser = await privateKey(SUPERUSER_KEY);259260260 upgradingParas[paraId] = {version: getSpecVersion(helper.getApi()), upgraded: false};261 upgradingParas[paraId] = {version: getSpecVersion(helper.getApi()), upgraded: false};261262tests/yarn.lockdiffbeforeafterboth--- a/tests/yarn.lock
+++ b/tests/yarn.lock
@@ -1162,9 +1162,9 @@
"@typescript-eslint/types" "5.59.6"
eslint-visitor-keys "^3.3.0"
-"@zombienet/orchestrator@https://gitpkg.now.sh/Fahrrader/zombienet/javascript/packages/orchestrator?767fa6226b7f6a43d674063d63c5bc505db1253c":
+"@zombienet/orchestrator@https://gitpkg.now.sh/UniqueNetwork/zombienet/javascript/packages/orchestrator?767fa6226b7f6a43d674063d63c5bc505db1253c":
version "0.0.41"
- resolved "https://gitpkg.now.sh/Fahrrader/zombienet/javascript/packages/orchestrator?767fa6226b7f6a43d674063d63c5bc505db1253c#41f589f64638aad0ea9ec6519b4a0be1214d3e91"
+ resolved "https://gitpkg.now.sh/UniqueNetwork/zombienet/javascript/packages/orchestrator?767fa6226b7f6a43d674063d63c5bc505db1253c#41f589f64638aad0ea9ec6519b4a0be1214d3e91"
dependencies:
"@polkadot/api" "^10.7.1"
"@polkadot/keyring" "^12.1.2"
@@ -1198,9 +1198,9 @@
toml "^3.0.0"
ts-node "^10.9.1"
-"@zombienet/utils@https://gitpkg.now.sh/Fahrrader/zombienet/javascript/packages/utils?767fa6226b7f6a43d674063d63c5bc505db1253c":
+"@zombienet/utils@https://gitpkg.now.sh/UniqueNetwork/zombienet/javascript/packages/utils?767fa6226b7f6a43d674063d63c5bc505db1253c":
version "0.0.20"
- resolved "https://gitpkg.now.sh/Fahrrader/zombienet/javascript/packages/utils?767fa6226b7f6a43d674063d63c5bc505db1253c#e0ae62f61a115cc036c1168ae175622726d0fdbf"
+ resolved "https://gitpkg.now.sh/UniqueNetwork/zombienet/javascript/packages/utils?767fa6226b7f6a43d674063d63c5bc505db1253c#e0ae62f61a115cc036c1168ae175622726d0fdbf"
dependencies:
cli-table3 "^0.6.2"
debug "^4.3.4"