diff --git a/test/packages/caver.rpc.js b/test/packages/caver.rpc.js index 007868fa..28e86ee2 100644 --- a/test/packages/caver.rpc.js +++ b/test/packages/caver.rpc.js @@ -849,6 +849,10 @@ describe('caver.rpc.governance', () => { expect(payload.params.length).to.equal(caver.rpc.governance.getChainConfig.method.params) const ret = { chainId: 1001, + istanbulCompatibleBlock: 0, + londonCompatibleBlock: 0, + ethTxTypeCompatibleBlock: 0, + kip71CompatibleBlock: 1, deriveShaImpl: 2, governance: { governanceMode: 'ballot', @@ -862,6 +866,13 @@ describe('caver.rpc.governance', () => { stakingUpdateInterval: 20, useGiniCoeff: false, }, + kip71: { + lowerboundbasefee: 25000000000, + upperboundbasefee: 750000000000, + gastarget: 30000000, + maxblockgasusedforbasefee: 60000000, + basefeedenominator: 20, + }, }, istanbul: { epoch: 20, policy: 2, sub: 1 }, unitPrice: 25000000000, diff --git a/types/packages/caver-rpc/src/governance.d.ts b/types/packages/caver-rpc/src/governance.d.ts index be82c9f8..70de1111 100644 --- a/types/packages/caver-rpc/src/governance.d.ts +++ b/types/packages/caver-rpc/src/governance.d.ts @@ -41,6 +41,10 @@ export interface Vote { export interface ChainConfig { chainId: number + istanbulCompatibleBlock?: number + londonCompatibleBlock?: number + ethTxTypeCompatibleBlock?: number + kip71CompatibleBlock?: number deriveShaImpl: number governance: { governanceMode: string @@ -54,6 +58,13 @@ export interface ChainConfig { stakingUpdateInterval: number useGiniCoeff: boolean } + kip71?: { + lowerboundbasefee: number + upperboundbasefee: number + gastarget: number + maxblockgasusedforbasefee: number + basefeedenominator: number + } } istanbul: { epoch: number @@ -77,6 +88,11 @@ export interface GovernanceItems { 'reward.ratio': string 'reward.stakingupdateinterval': number 'reward.useginicoeff': boolean + 'kip71.lowerboundbasefee'?: number + 'kip71.upperboundbasefee'?: number + 'kip71.gastarget'?: number + 'kip71.maxblockgasusedforbasefee'?: number + 'kip71.basefeedenominator'?: number } export interface VoteItems { @@ -95,6 +111,11 @@ export interface VoteItems { 'reward.minimumstake'?: string 'reward.proposerupdateinterval'?: number 'reward.stakingupdateinterval'?: number + 'kip71.lowerboundbasefee'?: number + 'kip71.upperboundbasefee'?: number + 'kip71.gastarget'?: number + 'kip71.maxblockgasusedforbasefee'?: number + 'kip71.basefeedenominator'?: number } export interface StakingInformation { @@ -105,7 +126,7 @@ export interface StakingInformation { CouncilStakingAmounts: number[] Gini: number KIRAddr: string - PoCAddr: string + PoCAddr: string // PoC is the previous name of KGF. UseGini: boolean }