fix: flowtype catchup
This commit is contained in:
@ -98,13 +98,12 @@ declare module '@solana/web3.js' {
|
|||||||
declare export type TransactionId = string;
|
declare export type TransactionId = string;
|
||||||
|
|
||||||
declare type TransactionInstructionCtorFields = {|
|
declare type TransactionInstructionCtorFields = {|
|
||||||
keys?: Array<PublicKey>,
|
keys: ?Array<PublicKey>,
|
||||||
programId?: PublicKey,
|
programId?: PublicKey,
|
||||||
userdata?: Buffer,
|
userdata?: Buffer,
|
||||||
|};
|
|};
|
||||||
|
|
||||||
declare export class TransactionInstruction {
|
declare export class TransactionInstruction {
|
||||||
fee: number;
|
|
||||||
keys: Array<PublicKey>;
|
keys: Array<PublicKey>;
|
||||||
programId: PublicKey;
|
programId: PublicKey;
|
||||||
userdata: Buffer;
|
userdata: Buffer;
|
||||||
@ -122,13 +121,15 @@ declare module '@solana/web3.js' {
|
|||||||
|};
|
|};
|
||||||
|
|
||||||
declare export class Transaction {
|
declare export class Transaction {
|
||||||
|
signatures: Array<SignaturePubkeyPair>;
|
||||||
signature: ?Buffer;
|
signature: ?Buffer;
|
||||||
fee: number;
|
|
||||||
instructions: Array<TransactionInstruction>;
|
instructions: Array<TransactionInstruction>;
|
||||||
|
lastId: ?TransactionId;
|
||||||
|
fee: number;
|
||||||
|
|
||||||
constructor(opts?: TransactionCtorFields): Transaction;
|
constructor(opts?: TransactionCtorFields): Transaction;
|
||||||
add(
|
add(
|
||||||
...items: Array<TransactionInstruction | TransactionInstructionCtorFields>
|
...items: Array<Transaction | TransactionInstructionCtorFields>
|
||||||
): Transaction;
|
): Transaction;
|
||||||
sign(...signers: Array<Account>): void;
|
sign(...signers: Array<Account>): void;
|
||||||
signPartial(...partialSigners: Array<PublicKey | Account>): void;
|
signPartial(...partialSigners: Array<PublicKey | Account>): void;
|
||||||
|
Reference in New Issue
Block a user