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