Skip to content

Commit f6518ea

Browse files
Merge pull request #936 from ava-labs/cp-9100
update getCurrentValidators and getPendingValidators response
2 parents fb31092 + 0d337c5 commit f6518ea

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/vms/pvm/models.ts

+16-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export type GetAssetDescriptionResponse = {
1010
denomination: number;
1111
};
1212

13+
// https://docs.avax.network/api-reference/p-chain/api#platformgetcurrentvalidators
1314
export type GetCurrentValidatorsResponse = {
1415
validators: {
1516
accruedDelegateeReward: string;
@@ -24,6 +25,15 @@ export type GetCurrentValidatorsResponse = {
2425
threshold: string;
2526
addresses: string[];
2627
};
28+
delegationRewardOwner: {
29+
locktime: string;
30+
threshold: string;
31+
addresses: string[];
32+
};
33+
signer: {
34+
publicKey: string;
35+
proofOfPosession: string;
36+
};
2737
delegatorCount: string;
2838
delegatorWeight: string;
2939
potentialReward: string;
@@ -36,7 +46,7 @@ export type GetCurrentValidatorsResponse = {
3646
endTime: string;
3747
stakeAmount: string;
3848
nodeID: string;
39-
delegationRewardOwner: {
49+
rewardOwner: {
4050
locktime: string;
4151
threshold: string;
4252
addresses: string[];
@@ -51,6 +61,7 @@ export type GetPendingValidatorsParams = {
5161
nodeIDs?: string[];
5262
};
5363

64+
// https://docs.avax.network/api-reference/p-chain/api#platformgetpendingvalidators
5465
export type GetPendingValidatorsResponse = {
5566
validators: {
5667
txID: string;
@@ -61,6 +72,10 @@ export type GetPendingValidatorsResponse = {
6172
delegationFee: string;
6273
connected: boolean;
6374
weight: string;
75+
signer: {
76+
publicKey: string;
77+
proofOfPosession: string;
78+
};
6479
}[];
6580
delegators: {
6681
txID: string;

0 commit comments

Comments
 (0)