From 42d091fbc2ab71ce4ec2fb5c57ca266a20a96b6e Mon Sep 17 00:00:00 2001 From: Aaron DeRuvo Date: Mon, 18 Nov 2024 13:25:28 +0100 Subject: [PATCH] Bump ABIS /devchain (#446) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Description bump abis and devchain and therefore update snapshots due to changes in generated addresses. There is no official pre-audit release so basing on the last published release #### Other changes n/a ### Tested n/a ### Related issues - Fixes #445 --- ## PR-Codex overview This PR focuses on updating dependencies and making adjustments to various test files and snapshots related to the `@celo` packages, specifically addressing version bumps and changes in member updates. ### Detailed summary - Bumped `@celo/abis-12` from `12.0.0-canary.60` to `12.0.0-canary.66`. - Updated `@celo/devchain-anvil` from `12.0.0-canary.33` to `12.0.0-canary.39`. - Changed `membersUpdated` value from `1729165064` to `1731689623` in test files. - Adjusted `frozenReserveGoldStartDay` from `20013` to `20042` in multiple test files. - Updated implementation addresses in snapshots for `FeeHandler` in `contracts.test.ts.snap` and `contracts-l2.test.ts.snap`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- .changeset/loud-kids-dress.md | 7 ++++++ .../__snapshots__/contracts-l2.test.ts.snap | 2 +- .../__snapshots__/contracts.test.ts.snap | 2 +- .../commands/network/parameters-l2.test.ts | 2 +- .../src/commands/network/parameters.test.ts | 2 +- .../commands/validatorgroup/member.test.ts | 2 +- .../src/commands/validatorgroup/show.test.ts | 2 +- packages/dev-utils/package.json | 2 +- packages/sdk/contractkit/package.json | 2 +- packages/sdk/governance/package.json | 2 +- yarn.lock | 22 +++++++++---------- 11 files changed, 27 insertions(+), 20 deletions(-) create mode 100644 .changeset/loud-kids-dress.md diff --git a/.changeset/loud-kids-dress.md b/.changeset/loud-kids-dress.md new file mode 100644 index 000000000..eee835e1d --- /dev/null +++ b/.changeset/loud-kids-dress.md @@ -0,0 +1,7 @@ +--- +'@celo/contractkit': patch +'@celo/governance': patch +'@celo/dev-utils': patch +--- + +Bump @celo/abis-12 diff --git a/packages/cli/src/commands/network/__snapshots__/contracts-l2.test.ts.snap b/packages/cli/src/commands/network/__snapshots__/contracts-l2.test.ts.snap index 70eb072f5..87effe3ee 100644 --- a/packages/cli/src/commands/network/__snapshots__/contracts-l2.test.ts.snap +++ b/packages/cli/src/commands/network/__snapshots__/contracts-l2.test.ts.snap @@ -85,7 +85,7 @@ exports[`network:contracts runs 1`] = ` { "contract": "FeeHandler", "proxy": "0xeaEEC408eCbCdF9CDF21d0B1880419dF7290E2c9", - "implementation": "0x82106CcC8feAE0bEc797281ae4dDf5F77E3E6156", + "implementation": "0x2e647D9D128c89D7239fdF47ca290453ad5869df", "version": "1.2.0.0" }, { diff --git a/packages/cli/src/commands/network/__snapshots__/contracts.test.ts.snap b/packages/cli/src/commands/network/__snapshots__/contracts.test.ts.snap index 70eb072f5..87effe3ee 100644 --- a/packages/cli/src/commands/network/__snapshots__/contracts.test.ts.snap +++ b/packages/cli/src/commands/network/__snapshots__/contracts.test.ts.snap @@ -85,7 +85,7 @@ exports[`network:contracts runs 1`] = ` { "contract": "FeeHandler", "proxy": "0xeaEEC408eCbCdF9CDF21d0B1880419dF7290E2c9", - "implementation": "0x82106CcC8feAE0bEc797281ae4dDf5F77E3E6156", + "implementation": "0x2e647D9D128c89D7239fdF47ca290453ad5869df", "version": "1.2.0.0" }, { diff --git a/packages/cli/src/commands/network/parameters-l2.test.ts b/packages/cli/src/commands/network/parameters-l2.test.ts index 7421ade84..3c63f9b6a 100644 --- a/packages/cli/src/commands/network/parameters-l2.test.ts +++ b/packages/cli/src/commands/network/parameters-l2.test.ts @@ -52,7 +52,7 @@ testWithAnvilL2('network:parameters', (web3) => { Reserve: frozenReserveGoldDays: 0 frozenReserveGoldStartBalance: 0 - frozenReserveGoldStartDay: 20013 (~2.001e+4) + frozenReserveGoldStartDay: 20042 (~2.004e+4) otherReserveAddresses: tobinTaxStalenessThreshold: 3153600000 (~3.154e+9) diff --git a/packages/cli/src/commands/network/parameters.test.ts b/packages/cli/src/commands/network/parameters.test.ts index a6447058f..75c8df1c9 100644 --- a/packages/cli/src/commands/network/parameters.test.ts +++ b/packages/cli/src/commands/network/parameters.test.ts @@ -67,7 +67,7 @@ testWithAnvilL1('network:parameters', (web3: Web3) => { Reserve: frozenReserveGoldDays: 0 frozenReserveGoldStartBalance: 0 - frozenReserveGoldStartDay: 20013 (~2.001e+4) + frozenReserveGoldStartDay: 20042 (~2.004e+4) otherReserveAddresses: tobinTaxStalenessThreshold: 3153600000 (~3.154e+9) diff --git a/packages/cli/src/commands/validatorgroup/member.test.ts b/packages/cli/src/commands/validatorgroup/member.test.ts index faca1734b..27bf82951 100644 --- a/packages/cli/src/commands/validatorgroup/member.test.ts +++ b/packages/cli/src/commands/validatorgroup/member.test.ts @@ -30,7 +30,7 @@ testWithAnvilL2('validatorgroup:member cmd', (web3: Web3) => { "0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65", "0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc", ], - "membersUpdated": 1729165064, + "membersUpdated": 1731689623, "name": "cLabs", "nextCommission": "0", "nextCommissionBlock": "0", diff --git a/packages/cli/src/commands/validatorgroup/show.test.ts b/packages/cli/src/commands/validatorgroup/show.test.ts index 4d2d00096..750c2687b 100644 --- a/packages/cli/src/commands/validatorgroup/show.test.ts +++ b/packages/cli/src/commands/validatorgroup/show.test.ts @@ -35,7 +35,7 @@ testWithAnvilL2('validatorgroup:show cmd', (web3: Web3) => { commission: 0.1 nextCommission: 0 nextCommissionBlock: 0 - membersUpdated: 1729165064 + membersUpdated: 1731689623 affiliates: slashingMultiplier: 1 lastSlashed: 0", diff --git a/packages/dev-utils/package.json b/packages/dev-utils/package.json index 326418ffd..3022a6c72 100644 --- a/packages/dev-utils/package.json +++ b/packages/dev-utils/package.json @@ -32,7 +32,7 @@ "web3-core-helpers": "1.10.4" }, "devDependencies": { - "@celo/devchain-anvil": "12.0.0-canary.33", + "@celo/devchain-anvil": "12.0.0-canary.39", "@celo/typescript": "workspace:^", "@tsconfig/recommended": "^1.0.3", "@types/fs-extra": "^8.1.0", diff --git a/packages/sdk/contractkit/package.json b/packages/sdk/contractkit/package.json index 2a8f0b214..92d2a578f 100644 --- a/packages/sdk/contractkit/package.json +++ b/packages/sdk/contractkit/package.json @@ -27,7 +27,7 @@ }, "dependencies": { "@celo/abis": "11.0.0", - "@celo/abis-12": "npm:@celo/abis@12.0.0-canary.60", + "@celo/abis-12": "npm:@celo/abis@12.0.0-canary.66", "@celo/base": "^7.0.0-beta.0", "@celo/connect": "^6.1.0-beta.1", "@celo/utils": "^8.0.0-beta.0", diff --git a/packages/sdk/governance/package.json b/packages/sdk/governance/package.json index 75b11fabd..5ea77c35a 100644 --- a/packages/sdk/governance/package.json +++ b/packages/sdk/governance/package.json @@ -22,7 +22,7 @@ }, "dependencies": { "@celo/abis": "11.0.0", - "@celo/abis-12": "npm:@celo/abis@12.0.0-canary.60", + "@celo/abis-12": "npm:@celo/abis@12.0.0-canary.66", "@celo/base": "^7.0.0-beta.0", "@celo/connect": "^6.1.0-beta.1", "@celo/contractkit": "^9.0.0-beta.2", diff --git a/yarn.lock b/yarn.lock index a8b0b00e8..7fddeac8e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1631,10 +1631,10 @@ __metadata: languageName: node linkType: hard -"@celo/abis-12@npm:@celo/abis@12.0.0-canary.60": - version: 12.0.0-canary.60 - resolution: "@celo/abis@npm:12.0.0-canary.60" - checksum: 605aa68b6d7e2cd43b6a0d8115a44e3ace8416c49401c6559f173461c873ce2a8a1867c0a5dab5be05549f6a7e1d2249c57506a4633643a90694c0a011cf638d +"@celo/abis-12@npm:@celo/abis@12.0.0-canary.66": + version: 12.0.0-canary.66 + resolution: "@celo/abis@npm:12.0.0-canary.66" + checksum: 71f85edda338c651e214e77d983a9fb644cdc2f5bb0fe6bc471d73e3a8f87256dc4dc6e966e79d7b239fd5729d4862606c384a8f601e030829111e32b0824279 languageName: node linkType: hard @@ -1835,7 +1835,7 @@ __metadata: resolution: "@celo/contractkit@workspace:packages/sdk/contractkit" dependencies: "@celo/abis": "npm:11.0.0" - "@celo/abis-12": "npm:@celo/abis@12.0.0-canary.60" + "@celo/abis-12": "npm:@celo/abis@12.0.0-canary.66" "@celo/base": "npm:^7.0.0-beta.0" "@celo/celo-devchain": "npm:^7.0.0" "@celo/connect": "npm:^6.1.0-beta.1" @@ -1888,7 +1888,7 @@ __metadata: dependencies: "@celo/abis": "npm:^11.0.0" "@celo/connect": "npm:^6.1.0-beta.1" - "@celo/devchain-anvil": "npm:12.0.0-canary.33" + "@celo/devchain-anvil": "npm:12.0.0-canary.39" "@celo/typescript": "workspace:^" "@tsconfig/recommended": "npm:^1.0.3" "@types/fs-extra": "npm:^8.1.0" @@ -1904,10 +1904,10 @@ __metadata: languageName: unknown linkType: soft -"@celo/devchain-anvil@npm:12.0.0-canary.33": - version: 12.0.0-canary.33 - resolution: "@celo/devchain-anvil@npm:12.0.0-canary.33" - checksum: 010b061f3c43b959f201b7aaf56e0d8c1d7558d341e4b5f905a1d445cefc8f8acc1f667d536aa2de40f7f1d850d5af611184e9740c31ff32a8c76266946834f3 +"@celo/devchain-anvil@npm:12.0.0-canary.39": + version: 12.0.0-canary.39 + resolution: "@celo/devchain-anvil@npm:12.0.0-canary.39" + checksum: 12e04bd2bb81acf43987b390e9ffe329445d72299651509a02f4a20dda86041910f167f59e2203c11e0633b02b668d50ef78c0866904193662f95127616e55be languageName: node linkType: hard @@ -1935,7 +1935,7 @@ __metadata: resolution: "@celo/governance@workspace:packages/sdk/governance" dependencies: "@celo/abis": "npm:11.0.0" - "@celo/abis-12": "npm:@celo/abis@12.0.0-canary.60" + "@celo/abis-12": "npm:@celo/abis@12.0.0-canary.66" "@celo/base": "npm:^7.0.0-beta.0" "@celo/connect": "npm:^6.1.0-beta.1" "@celo/contractkit": "npm:^9.0.0-beta.2"