feat: add room in the API for Transactions with multiple Instructions

This commit is contained in:
Michael Vines
2018-10-23 15:17:43 -07:00
parent 90c9df15ef
commit b8d586c67e
7 changed files with 120 additions and 65 deletions

View File

@ -80,22 +80,25 @@ declare module '@solana/web3.js' {
declare export type TransactionSignature = string;
declare export type TransactionId = string;
declare type TransactionCtorFields = {|
signature?: Buffer;
declare type TransactionInstructionCtorFields = {|
keys?: Array<PublicKey>;
programId?: PublicKey;
fee?: number;
userdata?: Buffer;
|};
declare export class TransactionInstruction {
fee: number;
constructor(opts?: TransactionInstructionCtorFields): TransactionInstruction;
}
declare type TransactionCtorFields = {|
fee?: number;
|};
declare export class Transaction {
signature: ?Buffer;
keys: Array<PublicKey>;
programId: ?PublicKey;
lastId: ?TransactionId;
fee: number;
userdata: Buffer;
constructor(opts?: TransactionCtorFields): Transaction;
sign(from: Account): void;