@@ -78,8 +78,8 @@ type Client interface {
78
78
GetCurrentValidators (ctx context.Context , subnetID ids.ID , nodeIDs []ids.NodeID , options ... rpc.Option ) ([]ClientPermissionlessValidator , error )
79
79
// GetPendingValidators returns the list of pending validators for subnet with ID [subnetID]
80
80
GetPendingValidators (ctx context.Context , subnetID ids.ID , nodeIDs []ids.NodeID , options ... rpc.Option ) ([]interface {}, []interface {}, error )
81
- // GetCurrentSupply returns an upper bound on the supply of AVAX in the system
82
- GetCurrentSupply (ctx context.Context , subnetID ids.ID , options ... rpc.Option ) (uint64 , error )
81
+ // GetCurrentSupply returns an upper bound on the supply of AVAX in the system along with the P-chain height
82
+ GetCurrentSupply (ctx context.Context , subnetID ids.ID , options ... rpc.Option ) (uint64 , uint64 , error )
83
83
// SampleValidators returns the nodeIDs of a sample of [sampleSize] validators from the current validator set for subnet with ID [subnetID]
84
84
SampleValidators (ctx context.Context , subnetID ids.ID , sampleSize uint16 , options ... rpc.Option ) ([]ids.NodeID , error )
85
85
// AddValidator issues a transaction to add a validator to the primary network
@@ -455,12 +455,12 @@ func (c *client) GetPendingValidators(
455
455
return res .Validators , res .Delegators , err
456
456
}
457
457
458
- func (c * client ) GetCurrentSupply (ctx context.Context , subnetID ids.ID , options ... rpc.Option ) (uint64 , error ) {
458
+ func (c * client ) GetCurrentSupply (ctx context.Context , subnetID ids.ID , options ... rpc.Option ) (uint64 , uint64 , error ) {
459
459
res := & GetCurrentSupplyReply {}
460
460
err := c .requester .SendRequest (ctx , "platform.getCurrentSupply" , & GetCurrentSupplyArgs {
461
461
SubnetID : subnetID ,
462
462
}, res , options ... )
463
- return uint64 (res .Supply ), err
463
+ return uint64 (res .Supply ), uint64 ( res . Height ), err
464
464
}
465
465
466
466
func (c * client ) SampleValidators (ctx context.Context , subnetID ids.ID , sampleSize uint16 , options ... rpc.Option ) ([]ids.NodeID , error ) {
0 commit comments