Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@saberhq/solana

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saberhq/solana - npm Package Compare versions

Comparing version 0.4.0 to 0.4.5

9

dist/transaction.d.ts

@@ -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;

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc