@saberhq/solana
Advanced tools
Comparing version 0.4.0 to 0.4.5
@@ -16,2 +16,7 @@ import { ConfirmOptions, RpcResponseAndContext, Signer, SimulatedTransactionResponse, Transaction, TransactionInstruction, TransactionResponse, TransactionSignature } from "@solana/web3.js"; | ||
build(): Transaction; | ||
/** | ||
* Simulates the transaction. | ||
* @param opts | ||
* @returns | ||
*/ | ||
simulate(opts?: ConfirmOptions): Promise<RpcResponseAndContext<SimulatedTransactionResponse>>; | ||
@@ -29,2 +34,6 @@ /** | ||
confirm(opts?: ConfirmOptions): Promise<TransactionReceipt>; | ||
/** | ||
* Combines the instructions/signers of the other envelope to create one large transaction. | ||
*/ | ||
combine(other: TransactionEnvelope): TransactionEnvelope; | ||
} | ||
@@ -31,0 +40,0 @@ /** |
@@ -27,2 +27,7 @@ "use strict"; | ||
} | ||
/** | ||
* Simulates the transaction. | ||
* @param opts | ||
* @returns | ||
*/ | ||
simulate(opts) { | ||
@@ -51,2 +56,8 @@ return this.provider.simulate(this.build(), this.signers, opts); | ||
} | ||
/** | ||
* Combines the instructions/signers of the other envelope to create one large transaction. | ||
*/ | ||
combine(other) { | ||
return new TransactionEnvelope(this.provider, [...this.instructions, ...other.instructions], [...this.signers, ...other.signers]); | ||
} | ||
} | ||
@@ -53,0 +64,0 @@ exports.TransactionEnvelope = TransactionEnvelope; |
{ | ||
"name": "@saberhq/solana", | ||
"version": "0.4.0", | ||
"version": "0.4.5", | ||
"description": "Common types and libraries for Solana", | ||
@@ -33,3 +33,3 @@ "author": "Ian Macalinao <ian@saber.so>", | ||
}, | ||
"gitHead": "2a4c5d6e2ce365b4cdab38601f42e835968fb125", | ||
"gitHead": "b6768805b95ec2fdb6df0f428a5566655badd856", | ||
"publishConfig": { | ||
@@ -36,0 +36,0 @@ "access": "public" |
@@ -38,2 +38,7 @@ import { | ||
/** | ||
* Simulates the transaction. | ||
* @param opts | ||
* @returns | ||
*/ | ||
public simulate( | ||
@@ -62,2 +67,13 @@ opts?: ConfirmOptions | ||
} | ||
/** | ||
* Combines the instructions/signers of the other envelope to create one large transaction. | ||
*/ | ||
public combine(other: TransactionEnvelope): TransactionEnvelope { | ||
return new TransactionEnvelope( | ||
this.provider, | ||
[...this.instructions, ...other.instructions], | ||
[...this.signers, ...other.signers] | ||
); | ||
} | ||
} | ||
@@ -64,0 +80,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
58977
1055
1