New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@stabbleorg/anchor-contrib

Package Overview
Dependencies
Maintainers
2
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stabbleorg/anchor-contrib - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

2

dist/wallet.d.ts

@@ -28,3 +28,3 @@ import { Provider } from "@coral-xyz/anchor";

closeIntermediateTokenAccountInstruction(accountAddress: PublicKey): TransactionInstruction;
transferWSOLInstructions(accountAddress: PublicKey, mintAddress: PublicKey, amount: string | number): Promise<TransactionInstruction[]>;
transferWSOLInstructions(accountAddress: PublicKey, amount: string | number): Promise<TransactionInstruction[]>;
getTokenBalances(): Promise<TokenAccountBalancePair[]>;

@@ -31,0 +31,0 @@ getPriorityFeeEstimate(transaction: VersionedTransaction, priorityLevel?: PriorityLevel): Promise<number>;

@@ -67,5 +67,5 @@ "use strict";

}
transferWSOLInstructions(accountAddress, mintAddress, amount) {
transferWSOLInstructions(accountAddress, amount) {
return __awaiter(this, void 0, void 0, function* () {
const instructions = yield this.createIntermediateTokenAccountInstructions(accountAddress, mintAddress);
const instructions = yield this.createIntermediateTokenAccountInstructions(accountAddress, spl_token_1.NATIVE_MINT);
instructions.push(web3_js_1.SystemProgram.transfer({

@@ -72,0 +72,0 @@ fromPubkey: this.walletAddress,

{
"name": "@stabbleorg/anchor-contrib",
"version": "0.7.0",
"version": "0.7.1",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -114,6 +114,5 @@ import bs58 from "bs58";

accountAddress: PublicKey,
mintAddress: PublicKey,
amount: string | number,
): Promise<TransactionInstruction[]> {
const instructions = await this.createIntermediateTokenAccountInstructions(accountAddress, mintAddress);
const instructions = await this.createIntermediateTokenAccountInstructions(accountAddress, NATIVE_MINT);
instructions.push(

@@ -120,0 +119,0 @@ SystemProgram.transfer({

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