From e135307a82124dbcc5fdba4827d24853ad88664d Mon Sep 17 00:00:00 2001 From: Aaron DeRuvo Date: Tue, 26 Nov 2024 12:30:48 +0100 Subject: [PATCH 1/4] upgrade abis to include governance --- packages/sdk/contractkit/package.json | 2 +- packages/sdk/contractkit/src/base.ts | 1 + packages/sdk/contractkit/src/web3-contract-cache.ts | 2 ++ packages/sdk/governance/package.json | 2 +- yarn.lock | 12 ++++++------ 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/packages/sdk/contractkit/package.json b/packages/sdk/contractkit/package.json index d67a16be5..3928a76be 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.66", + "@celo/abis-12": "npm:@celo/abis@12.0.0-canary.76", "@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/contractkit/src/base.ts b/packages/sdk/contractkit/src/base.ts index e8785ae40..f69bd7ca2 100644 --- a/packages/sdk/contractkit/src/base.ts +++ b/packages/sdk/contractkit/src/base.ts @@ -19,6 +19,7 @@ export enum CeloContract { GasPriceMinimum = 'GasPriceMinimum', GoldToken = 'GoldToken', Governance = 'Governance', + GovernanceSlasher = 'GovernanceSlasher', LockedGold = 'LockedGold', MentoFeeHandlerSeller = 'MentoFeeHandlerSeller', UniswapFeeHandlerSeller = 'UniswapFeeHandlerSeller', diff --git a/packages/sdk/contractkit/src/web3-contract-cache.ts b/packages/sdk/contractkit/src/web3-contract-cache.ts index d15e8a048..760434bfa 100644 --- a/packages/sdk/contractkit/src/web3-contract-cache.ts +++ b/packages/sdk/contractkit/src/web3-contract-cache.ts @@ -5,6 +5,7 @@ import { newEpochManagerEnabler } from '@celo/abis-12/web3/EpochManagerEnabler' import { newFeeCurrencyDirectory } from '@celo/abis-12/web3/FeeCurrencyDirectory' import { newGoldToken } from '@celo/abis-12/web3/GoldToken' import { newGovernance } from '@celo/abis-12/web3/Governance' +import { newGovernanceSlasher } from '@celo/abis-12/web3/GovernanceSlasher' import { newLockedGold } from '@celo/abis-12/web3/LockedGold' import { newScoreManager } from '@celo/abis-12/web3/ScoreManager' import { newValidators } from '@celo/abis-12/web3/Validators' @@ -61,6 +62,7 @@ export const ContractFactories = { [CeloContract.GasPriceMinimum]: newGasPriceMinimum, [CeloContract.GoldToken]: newGoldToken, [CeloContract.Governance]: newGovernance, + [CeloContract.GovernanceSlasher]: newGovernanceSlasher, [CeloContract.LockedGold]: newLockedGold, [CeloContract.MultiSig]: newMultiSig, [CeloContract.OdisPayments]: newOdisPayments, diff --git a/packages/sdk/governance/package.json b/packages/sdk/governance/package.json index ac1fd3237..a22dd8d5c 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.66", + "@celo/abis-12": "npm:@celo/abis@12.0.0-canary.76", "@celo/base": "^7.0.0-beta.0", "@celo/connect": "^6.1.0-beta.1", "@celo/contractkit": "^9.0.0-beta.3", diff --git a/yarn.lock b/yarn.lock index 98614d41e..0eecb2451 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.66": - version: 12.0.0-canary.66 - resolution: "@celo/abis@npm:12.0.0-canary.66" - checksum: 71f85edda338c651e214e77d983a9fb644cdc2f5bb0fe6bc471d73e3a8f87256dc4dc6e966e79d7b239fd5729d4862606c384a8f601e030829111e32b0824279 +"@celo/abis-12@npm:@celo/abis@12.0.0-canary.76": + version: 12.0.0-canary.76 + resolution: "@celo/abis@npm:12.0.0-canary.76" + checksum: af199e39218c048653cf4ddb304e5bc238c71fb21398af36c821ff1165a69cdb6ab9c29e2a10f3c98bc92cc57985c3649217ca343944013d801e421074349fc3 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.66" + "@celo/abis-12": "npm:@celo/abis@12.0.0-canary.76" "@celo/base": "npm:^7.0.0-beta.0" "@celo/celo-devchain": "npm:^7.0.0" "@celo/connect": "npm:^6.1.0-beta.1" @@ -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.66" + "@celo/abis-12": "npm:@celo/abis@12.0.0-canary.76" "@celo/base": "npm:^7.0.0-beta.0" "@celo/connect": "npm:^6.1.0-beta.1" "@celo/contractkit": "npm:^9.0.0-beta.3" From 4044ca4522438ad607245ad33805ec176375e973 Mon Sep 17 00:00:00 2001 From: Aaron DeRuvo Date: Tue, 26 Nov 2024 12:43:33 +0100 Subject: [PATCH 2/4] changeset --- .changeset/breezy-panthers-sort.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/breezy-panthers-sort.md diff --git a/.changeset/breezy-panthers-sort.md b/.changeset/breezy-panthers-sort.md new file mode 100644 index 000000000..8bed45fef --- /dev/null +++ b/.changeset/breezy-panthers-sort.md @@ -0,0 +1,7 @@ +--- +'@celo/contractkit': patch +'@celo/governance': patch +'@celo/celocli': patch +--- + +Add GovernanceSlasher to RegisteredContractsEnum From 966963e8f34337c0618da53731fe568b5c0fba11 Mon Sep 17 00:00:00 2001 From: Aaron DeRuvo Date: Tue, 26 Nov 2024 12:48:14 +0100 Subject: [PATCH 3/4] docs --- .../web3_contract_cache.Web3ContractCache.md | 70 +++++++++---------- .../contractkit/enums/base.CeloContract.md | 39 +++++++---- docs/sdk/contractkit/modules/base.md | 16 ++--- .../modules/web3_contract_cache.md | 5 +- 4 files changed, 71 insertions(+), 59 deletions(-) diff --git a/docs/sdk/contractkit/classes/web3_contract_cache.Web3ContractCache.md b/docs/sdk/contractkit/classes/web3_contract_cache.Web3ContractCache.md index 3079c6617..4ae80236a 100644 --- a/docs/sdk/contractkit/classes/web3_contract_cache.Web3ContractCache.md +++ b/docs/sdk/contractkit/classes/web3_contract_cache.Web3ContractCache.md @@ -75,7 +75,7 @@ core contract's address registry #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:98](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L98) +[packages/sdk/contractkit/src/web3-contract-cache.ts:100](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L100) ## Properties @@ -85,7 +85,7 @@ core contract's address registry #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:98](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L98) +[packages/sdk/contractkit/src/web3-contract-cache.ts:100](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L100) ## Methods @@ -99,7 +99,7 @@ core contract's address registry #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:99](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L99) +[packages/sdk/contractkit/src/web3-contract-cache.ts:101](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L101) ___ @@ -113,7 +113,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:102](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L102) +[packages/sdk/contractkit/src/web3-contract-cache.ts:104](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L104) ___ @@ -127,7 +127,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:105](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L105) +[packages/sdk/contractkit/src/web3-contract-cache.ts:107](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L107) ___ @@ -141,7 +141,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:108](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L108) +[packages/sdk/contractkit/src/web3-contract-cache.ts:110](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L110) ___ @@ -170,7 +170,7 @@ Get native web3 contract wrapper #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:192](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L192) +[packages/sdk/contractkit/src/web3-contract-cache.ts:194](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L194) ___ @@ -184,7 +184,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:111](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L111) +[packages/sdk/contractkit/src/web3-contract-cache.ts:113](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L113) ___ @@ -198,7 +198,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:114](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L114) +[packages/sdk/contractkit/src/web3-contract-cache.ts:116](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L116) ___ @@ -212,7 +212,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:117](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L117) +[packages/sdk/contractkit/src/web3-contract-cache.ts:119](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L119) ___ @@ -226,7 +226,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:120](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L120) +[packages/sdk/contractkit/src/web3-contract-cache.ts:122](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L122) ___ @@ -240,7 +240,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:123](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L123) +[packages/sdk/contractkit/src/web3-contract-cache.ts:125](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L125) ___ @@ -254,7 +254,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:126](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L126) +[packages/sdk/contractkit/src/web3-contract-cache.ts:128](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L128) ___ @@ -274,7 +274,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:129](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L129) +[packages/sdk/contractkit/src/web3-contract-cache.ts:131](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L131) ___ @@ -288,7 +288,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:132](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L132) +[packages/sdk/contractkit/src/web3-contract-cache.ts:134](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L134) ___ @@ -302,7 +302,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:136](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L136) +[packages/sdk/contractkit/src/web3-contract-cache.ts:138](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L138) ___ @@ -316,7 +316,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:139](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L139) +[packages/sdk/contractkit/src/web3-contract-cache.ts:141](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L141) ___ @@ -330,7 +330,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:145](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L145) +[packages/sdk/contractkit/src/web3-contract-cache.ts:147](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L147) ___ @@ -344,7 +344,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:142](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L142) +[packages/sdk/contractkit/src/web3-contract-cache.ts:144](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L144) ___ @@ -358,7 +358,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:148](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L148) +[packages/sdk/contractkit/src/web3-contract-cache.ts:150](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L150) ___ @@ -372,7 +372,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:151](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L151) +[packages/sdk/contractkit/src/web3-contract-cache.ts:153](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L153) ___ @@ -386,7 +386,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:154](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L154) +[packages/sdk/contractkit/src/web3-contract-cache.ts:156](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L156) ___ @@ -400,7 +400,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:158](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L158) +[packages/sdk/contractkit/src/web3-contract-cache.ts:160](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L160) ___ @@ -420,7 +420,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:161](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L161) +[packages/sdk/contractkit/src/web3-contract-cache.ts:163](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L163) ___ @@ -434,7 +434,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:164](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L164) +[packages/sdk/contractkit/src/web3-contract-cache.ts:166](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L166) ___ @@ -448,7 +448,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:167](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L167) +[packages/sdk/contractkit/src/web3-contract-cache.ts:169](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L169) ___ @@ -462,7 +462,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:170](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L170) +[packages/sdk/contractkit/src/web3-contract-cache.ts:172](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L172) ___ @@ -476,7 +476,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:173](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L173) +[packages/sdk/contractkit/src/web3-contract-cache.ts:175](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L175) ___ @@ -490,7 +490,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:176](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L176) +[packages/sdk/contractkit/src/web3-contract-cache.ts:178](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L178) ___ @@ -504,13 +504,13 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:179](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L179) +[packages/sdk/contractkit/src/web3-contract-cache.ts:181](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L181) ___ ### getStableToken -▸ **getStableToken**(`stableToken?`): `Promise`\<`NonNullable`\<`undefined` \| `Registry` \| `Accounts` \| `IERC20` \| `GoldToken` \| `StableToken` \| `Attestations` \| `BlockchainParameters` \| `CeloUnreleasedTreasury` \| `DoubleSigningSlasher` \| `DowntimeSlasher` \| `Election` \| `EpochManager` \| `EpochManagerEnabler` \| `EpochRewards` \| `Escrow` \| `FederatedAttestations` \| `FeeCurrencyDirectory` \| `FeeCurrencyWhitelist` \| `Freezer` \| `FeeHandler` \| `MentoFeeHandlerSeller` \| `UniswapFeeHandlerSeller` \| `GasPriceMinimum` \| `Governance` \| `LockedGold` \| `MultiSig` \| `OdisPayments` \| `Random` \| `Reserve` \| `ScoreManager` \| `SortedOracles` \| `Validators`\>\> +▸ **getStableToken**(`stableToken?`): `Promise`\<`NonNullable`\<`undefined` \| `Registry` \| `Accounts` \| `IERC20` \| `GoldToken` \| `StableToken` \| `Attestations` \| `BlockchainParameters` \| `CeloUnreleasedTreasury` \| `DoubleSigningSlasher` \| `DowntimeSlasher` \| `Election` \| `EpochManager` \| `EpochManagerEnabler` \| `EpochRewards` \| `Escrow` \| `FederatedAttestations` \| `FeeCurrencyDirectory` \| `FeeCurrencyWhitelist` \| `Freezer` \| `FeeHandler` \| `MentoFeeHandlerSeller` \| `UniswapFeeHandlerSeller` \| `GasPriceMinimum` \| `Governance` \| `GovernanceSlasher` \| `LockedGold` \| `MultiSig` \| `OdisPayments` \| `Random` \| `Reserve` \| `ScoreManager` \| `SortedOracles` \| `Validators`\>\> #### Parameters @@ -520,11 +520,11 @@ ___ #### Returns -`Promise`\<`NonNullable`\<`undefined` \| `Registry` \| `Accounts` \| `IERC20` \| `GoldToken` \| `StableToken` \| `Attestations` \| `BlockchainParameters` \| `CeloUnreleasedTreasury` \| `DoubleSigningSlasher` \| `DowntimeSlasher` \| `Election` \| `EpochManager` \| `EpochManagerEnabler` \| `EpochRewards` \| `Escrow` \| `FederatedAttestations` \| `FeeCurrencyDirectory` \| `FeeCurrencyWhitelist` \| `Freezer` \| `FeeHandler` \| `MentoFeeHandlerSeller` \| `UniswapFeeHandlerSeller` \| `GasPriceMinimum` \| `Governance` \| `LockedGold` \| `MultiSig` \| `OdisPayments` \| `Random` \| `Reserve` \| `ScoreManager` \| `SortedOracles` \| `Validators`\>\> +`Promise`\<`NonNullable`\<`undefined` \| `Registry` \| `Accounts` \| `IERC20` \| `GoldToken` \| `StableToken` \| `Attestations` \| `BlockchainParameters` \| `CeloUnreleasedTreasury` \| `DoubleSigningSlasher` \| `DowntimeSlasher` \| `Election` \| `EpochManager` \| `EpochManagerEnabler` \| `EpochRewards` \| `Escrow` \| `FederatedAttestations` \| `FeeCurrencyDirectory` \| `FeeCurrencyWhitelist` \| `Freezer` \| `FeeHandler` \| `MentoFeeHandlerSeller` \| `UniswapFeeHandlerSeller` \| `GasPriceMinimum` \| `Governance` \| `GovernanceSlasher` \| `LockedGold` \| `MultiSig` \| `OdisPayments` \| `Random` \| `Reserve` \| `ScoreManager` \| `SortedOracles` \| `Validators`\>\> #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:182](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L182) +[packages/sdk/contractkit/src/web3-contract-cache.ts:184](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L184) ___ @@ -538,7 +538,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:185](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L185) +[packages/sdk/contractkit/src/web3-contract-cache.ts:187](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L187) ___ @@ -564,4 +564,4 @@ ___ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:211](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L211) +[packages/sdk/contractkit/src/web3-contract-cache.ts:213](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L213) diff --git a/docs/sdk/contractkit/enums/base.CeloContract.md b/docs/sdk/contractkit/enums/base.CeloContract.md index d78be6b13..7cde3d4c5 100644 --- a/docs/sdk/contractkit/enums/base.CeloContract.md +++ b/docs/sdk/contractkit/enums/base.CeloContract.md @@ -28,6 +28,7 @@ - [GasPriceMinimum](base.CeloContract.md#gaspriceminimum) - [GoldToken](base.CeloContract.md#goldtoken) - [Governance](base.CeloContract.md#governance) +- [GovernanceSlasher](base.CeloContract.md#governanceslasher) - [LockedGold](base.CeloContract.md#lockedgold) - [MentoFeeHandlerSeller](base.CeloContract.md#mentofeehandlerseller) - [MultiSig](base.CeloContract.md#multisig) @@ -245,13 +246,23 @@ ___ ___ +### GovernanceSlasher + +• **GovernanceSlasher** = ``"GovernanceSlasher"`` + +#### Defined in + +[packages/sdk/contractkit/src/base.ts:22](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L22) + +___ + ### LockedGold • **LockedGold** = ``"LockedGold"`` #### Defined in -[packages/sdk/contractkit/src/base.ts:22](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L22) +[packages/sdk/contractkit/src/base.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L23) ___ @@ -261,7 +272,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L23) +[packages/sdk/contractkit/src/base.ts:24](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L24) ___ @@ -271,7 +282,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:25](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L25) +[packages/sdk/contractkit/src/base.ts:26](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L26) ___ @@ -281,7 +292,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:26](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L26) +[packages/sdk/contractkit/src/base.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L27) ___ @@ -291,7 +302,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L27) +[packages/sdk/contractkit/src/base.ts:28](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L28) ___ @@ -301,7 +312,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:28](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L28) +[packages/sdk/contractkit/src/base.ts:29](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L29) ___ @@ -311,7 +322,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:29](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L29) +[packages/sdk/contractkit/src/base.ts:30](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L30) ___ @@ -321,7 +332,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:30](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L30) +[packages/sdk/contractkit/src/base.ts:31](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L31) ___ @@ -331,7 +342,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:31](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L31) +[packages/sdk/contractkit/src/base.ts:32](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L32) ___ @@ -341,7 +352,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:32](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L32) +[packages/sdk/contractkit/src/base.ts:33](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L33) ___ @@ -351,7 +362,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:34](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L34) +[packages/sdk/contractkit/src/base.ts:35](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L35) ___ @@ -361,7 +372,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:33](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L33) +[packages/sdk/contractkit/src/base.ts:34](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L34) ___ @@ -371,7 +382,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:24](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L24) +[packages/sdk/contractkit/src/base.ts:25](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L25) ___ @@ -381,4 +392,4 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:35](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L35) +[packages/sdk/contractkit/src/base.ts:36](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L36) diff --git a/docs/sdk/contractkit/modules/base.md b/docs/sdk/contractkit/modules/base.md index 1b6f912e5..962211121 100644 --- a/docs/sdk/contractkit/modules/base.md +++ b/docs/sdk/contractkit/modules/base.md @@ -39,7 +39,7 @@ Use CeloTokenContract instead #### Defined in -[packages/sdk/contractkit/src/base.ts:48](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L48) +[packages/sdk/contractkit/src/base.ts:49](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L49) ___ @@ -49,7 +49,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:43](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L43) +[packages/sdk/contractkit/src/base.ts:44](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L44) ___ @@ -59,7 +59,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L38) +[packages/sdk/contractkit/src/base.ts:39](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L39) ## Variables @@ -69,7 +69,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:50](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L50) +[packages/sdk/contractkit/src/base.ts:51](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L51) ___ @@ -79,7 +79,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:61](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L61) +[packages/sdk/contractkit/src/base.ts:62](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L62) ___ @@ -89,7 +89,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:52](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L52) +[packages/sdk/contractkit/src/base.ts:53](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L53) ## Functions @@ -109,7 +109,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:55](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L55) +[packages/sdk/contractkit/src/base.ts:56](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L56) ___ @@ -129,4 +129,4 @@ ___ #### Defined in -[packages/sdk/contractkit/src/base.ts:58](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L58) +[packages/sdk/contractkit/src/base.ts:59](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L59) diff --git a/docs/sdk/contractkit/modules/web3_contract_cache.md b/docs/sdk/contractkit/modules/web3_contract_cache.md index 4a2b26164..d2e795d3e 100644 --- a/docs/sdk/contractkit/modules/web3_contract_cache.md +++ b/docs/sdk/contractkit/modules/web3_contract_cache.md @@ -24,7 +24,7 @@ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:84](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L84) +[packages/sdk/contractkit/src/web3-contract-cache.ts:86](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L86) ## Variables @@ -56,6 +56,7 @@ | `GasPriceMinimum` | (`web3`: `default`, `address`: `string`) => `GasPriceMinimum` | | `GoldToken` | (`web3`: `default`, `address`: `string`) => `GoldToken` | | `Governance` | (`web3`: `default`, `address`: `string`) => `Governance` | +| `GovernanceSlasher` | (`web3`: `default`, `address`: `string`) => `GovernanceSlasher` | | `LockedGold` | (`web3`: `default`, `address`: `string`) => `LockedGold` | | `MentoFeeHandlerSeller` | (`web3`: `default`, `address`: `string`) => `MentoFeeHandlerSeller` | | `MultiSig` | (`web3`: `default`, `address`: `string`) => `MultiSig` | @@ -73,4 +74,4 @@ #### Defined in -[packages/sdk/contractkit/src/web3-contract-cache.ts:41](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L41) +[packages/sdk/contractkit/src/web3-contract-cache.ts:42](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L42) From ce4da041f547ba2a545afe34f2f98725cf0f95e9 Mon Sep 17 00:00:00 2001 From: Aaron DeRuvo Date: Tue, 26 Nov 2024 13:05:34 +0100 Subject: [PATCH 4/4] slasher is now shown in contracts list --- .../network/__snapshots__/contracts-l2.test.ts.snap | 6 ++++++ .../commands/network/__snapshots__/contracts.test.ts.snap | 6 ++++++ 2 files changed, 12 insertions(+) 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 87effe3ee..d1365a97f 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 @@ -112,6 +112,12 @@ exports[`network:contracts runs 1`] = ` "implementation": "0x063BDb2e9A86e8aD2ad9fc488e9E45Dc2a845c3a", "version": "1.4.2.0" }, + { + "contract": "GovernanceSlasher", + "proxy": "0xDDA88a8ebeaaB19d2a58374D8c72200AFAF94bB4", + "implementation": "0x76C05a43234EB2804aa83Cd40BA10080a43d07AE", + "version": "1.1.1.0" + }, { "contract": "LockedGold", "proxy": "0x619b4767f6A955E63ED7d334DF3384bc4eacFdB8", 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 87effe3ee..d1365a97f 100644 --- a/packages/cli/src/commands/network/__snapshots__/contracts.test.ts.snap +++ b/packages/cli/src/commands/network/__snapshots__/contracts.test.ts.snap @@ -112,6 +112,12 @@ exports[`network:contracts runs 1`] = ` "implementation": "0x063BDb2e9A86e8aD2ad9fc488e9E45Dc2a845c3a", "version": "1.4.2.0" }, + { + "contract": "GovernanceSlasher", + "proxy": "0xDDA88a8ebeaaB19d2a58374D8c72200AFAF94bB4", + "implementation": "0x76C05a43234EB2804aa83Cd40BA10080a43d07AE", + "version": "1.1.1.0" + }, { "contract": "LockedGold", "proxy": "0x619b4767f6A955E63ED7d334DF3384bc4eacFdB8",