fix: add tx nonce information types to definitions
This commit is contained in:
committed by
Michael Vines
parent
6a7115b8bd
commit
38213694bd
@ -443,8 +443,14 @@ declare module '@solana/web3.js' {
|
||||
publicKey: PublicKey,
|
||||
|};
|
||||
|
||||
declare type NonceInformation = {|
|
||||
nonce: Blockhash,
|
||||
nonceInstruction: TransactionInstruction,
|
||||
|};
|
||||
|
||||
declare type TransactionCtorFields = {|
|
||||
recentBlockhash?: Blockhash,
|
||||
nonceInfo?: NonceInformation,
|
||||
signatures?: Array<SignaturePubkeyPair>,
|
||||
|};
|
||||
|
||||
@ -453,6 +459,7 @@ declare module '@solana/web3.js' {
|
||||
signature: ?Buffer;
|
||||
instructions: Array<TransactionInstruction>;
|
||||
recentBlockhash: ?Blockhash;
|
||||
nonceInfo: ?NonceInformation;
|
||||
|
||||
constructor(opts?: TransactionCtorFields): Transaction;
|
||||
static from(buffer: Buffer | Uint8Array | Array<number>): Transaction;
|
||||
|
Reference in New Issue
Block a user