Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
Merge #114
Browse files Browse the repository at this point in the history
114: exposing the delegators object inside the bid interface of get_auctio… r=zie1ony a=mssteuer

…n_info

#

Co-authored-by: Michael Steuer <[email protected]>
  • Loading branch information
bors[bot] and Michael Steuer authored Feb 17, 2021
2 parents 14d9161 + 77cc824 commit b0004cc
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/sdk/src/services/CasperServiceByJsonRPC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b0004cc

Please sign in to comment.