feat: validator info deserialization (#403)
This commit is contained in:
committed by
Michael Vines
parent
2072f20997
commit
6f05930076
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user