feat: validator info deserialization (#403)

This commit is contained in:
Justin Starry
2019-07-15 21:59:19 -04:00
committed by Michael Vines
parent 2072f20997
commit 6f05930076
4 changed files with 154 additions and 0 deletions

View File

@ -142,6 +142,22 @@ declare module '@solana/web3.js' {
static assign(from: PublicKey, programId: PublicKey): Transaction;
}
// === src/validator-info.js ===
declare export type Info = {|
name: string,
website?: string,
details?: string,
keybaseId?: string,
|};
declare export class ValidatorInfo {
key: PublicKey;
info: Info;
constructor(key: PublicKey, info: Info): ValidatorInfo;
static fromConfigData(buffer: Buffer): ?ValidatorInfo;
}
// === src/transaction.js ===
declare export type TransactionSignature = string;