From 77cc824aad0ba31ecd792bb42b9d6ae82c5f182e Mon Sep 17 00:00:00 2001 From: Michael Steuer Date: Tue, 16 Feb 2021 10:55:28 -0800 Subject: [PATCH] exposing the delegators object inside the bid interface of get_auction_info --- .../sdk/src/services/CasperServiceByJsonRPC.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/sdk/src/services/CasperServiceByJsonRPC.ts b/packages/sdk/src/services/CasperServiceByJsonRPC.ts index c0b0928d..4f3aaf28 100644 --- a/packages/sdk/src/services/CasperServiceByJsonRPC.ts +++ b/packages/sdk/src/services/CasperServiceByJsonRPC.ts @@ -131,7 +131,19 @@ export interface Bid { staked_amount: string; delegation_rate: number; reward: string; - // delegators: [], + delegators: Delegators[]; +} + +export interface Delegators { + delegator: DelegatorInfo; + public_key: string; +} + +export interface DelegatorInfo { + bonding_purse: string; + delegatee: string; + reward: string; + staked_amount: string; } export interface ValidatorBid {