diff --git a/web3.js/src/connection.js b/web3.js/src/connection.js index 5d0b43b82e..cea9b8236f 100644 --- a/web3.js/src/connection.js +++ b/web3.js/src/connection.js @@ -95,6 +95,7 @@ type ContactInfo = { * @property {string} nodePubkey Identity public key of the node voting with this account * @property {number} activatedStake The stake, in lamports, delegated to this vote account and activated * @property {boolean} epochVoteAccount Whether the vote account is staked for this epoch + * @property {Array>} epochCredits Recent epoch voting credit history for this voter * @property {number} commission A percentage (0-100) of rewards payout owed to the voter * @property {number} lastVote Most recent slot voted on by this vote account */ @@ -103,6 +104,7 @@ type VoteAccountInfo = { nodePubkey: string, activatedStake: number, epochVoteAccount: boolean, + epochCredits: Array<[number, number, number]>, commission: number, lastVote: number, }; @@ -397,6 +399,9 @@ const GetVoteAccounts = jsonRpcResult( nodePubkey: 'string', activatedStake: 'number', epochVoteAccount: 'boolean', + epochCredits: struct.union(['null', struct.list([ + struct.tuple(['number', 'number', 'number']), + ])]), commission: 'number', lastVote: 'number', rootSlot: 'number?', @@ -408,6 +413,9 @@ const GetVoteAccounts = jsonRpcResult( nodePubkey: 'string', activatedStake: 'number', epochVoteAccount: 'boolean', + epochCredits: struct.union(['null', struct.list([ + struct.tuple(['number', 'number', 'number']), + ])]), commission: 'number', lastVote: 'number', rootSlot: 'number?',