Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade abis to include governance #463

Merged
merged 4 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
7 changes: 7 additions & 0 deletions .changeset/breezy-panthers-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@celo/contractkit': patch
'@celo/governance': patch
'@celo/celocli': patch
---

Add GovernanceSlasher to RegisteredContractsEnum
2 changes: 1 addition & 1 deletion packages/sdk/contractkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"dependencies": {
"@celo/abis": "11.0.0",
"@celo/abis-12": "npm:@celo/[email protected].66",
"@celo/abis-12": "npm:@celo/[email protected].76",
"@celo/base": "^7.0.0-beta.0",
"@celo/connect": "^6.1.0-beta.1",
"@celo/utils": "^8.0.0-beta.0",
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/contractkit/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export enum CeloContract {
GasPriceMinimum = 'GasPriceMinimum',
GoldToken = 'GoldToken',
Governance = 'Governance',
GovernanceSlasher = 'GovernanceSlasher',
LockedGold = 'LockedGold',
MentoFeeHandlerSeller = 'MentoFeeHandlerSeller',
UniswapFeeHandlerSeller = 'UniswapFeeHandlerSeller',
Expand Down
2 changes: 2 additions & 0 deletions packages/sdk/contractkit/src/web3-contract-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/governance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"dependencies": {
"@celo/abis": "11.0.0",
"@celo/abis-12": "npm:@celo/[email protected].66",
"@celo/abis-12": "npm:@celo/[email protected].76",
"@celo/base": "^7.0.0-beta.0",
"@celo/connect": "^6.1.0-beta.1",
"@celo/contractkit": "^9.0.0-beta.3",
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1631,10 +1631,10 @@ __metadata:
languageName: node
linkType: hard

"@celo/abis-12@npm:@celo/[email protected].66":
version: 12.0.0-canary.66
resolution: "@celo/abis@npm:12.0.0-canary.66"
checksum: 71f85edda338c651e214e77d983a9fb644cdc2f5bb0fe6bc471d73e3a8f87256dc4dc6e966e79d7b239fd5729d4862606c384a8f601e030829111e32b0824279
"@celo/abis-12@npm:@celo/[email protected].76":
version: 12.0.0-canary.76
resolution: "@celo/abis@npm:12.0.0-canary.76"
checksum: af199e39218c048653cf4ddb304e5bc238c71fb21398af36c821ff1165a69cdb6ab9c29e2a10f3c98bc92cc57985c3649217ca343944013d801e421074349fc3
languageName: node
linkType: hard

Expand Down Expand Up @@ -1835,7 +1835,7 @@ __metadata:
resolution: "@celo/contractkit@workspace:packages/sdk/contractkit"
dependencies:
"@celo/abis": "npm:11.0.0"
"@celo/abis-12": "npm:@celo/[email protected].66"
"@celo/abis-12": "npm:@celo/[email protected].76"
"@celo/base": "npm:^7.0.0-beta.0"
"@celo/celo-devchain": "npm:^7.0.0"
"@celo/connect": "npm:^6.1.0-beta.1"
Expand Down Expand Up @@ -1935,7 +1935,7 @@ __metadata:
resolution: "@celo/governance@workspace:packages/sdk/governance"
dependencies:
"@celo/abis": "npm:11.0.0"
"@celo/abis-12": "npm:@celo/[email protected].66"
"@celo/abis-12": "npm:@celo/[email protected].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"
Expand Down
Loading