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

@hawksightco/hawk-sdk

Package Overview
Dependencies
Maintainers
0
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hawksightco/hawk-sdk - npm Package Compare versions

Comparing version 1.1.4-8.4.test2 to 1.1.4-8.6

7

dist/src/hawksight.d.ts

@@ -25,2 +25,9 @@ /// <reference types="@meteora-ag/dlmm/node_modules/@solana/web3.js" />

export declare function verifyTransactionSlot({ userWallet }: AtomicityContextParams): Promise<web3.TransactionInstruction>;
export type StoreTokenContextParams = {
userWallet: web3.PublicKey;
mint: web3.PublicKey;
passthroughTokenAccount: web3.PublicKey;
storageTokenAccount: web3.PublicKey;
};
export declare function storeToken(params: StoreTokenContextParams): Promise<web3.TransactionInstruction>;
//# sourceMappingURL=hawksight.d.ts.map

23

dist/src/hawksight.js

@@ -35,3 +35,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.verifyTransactionSlot = exports.setTransactionSlot = exports.withdrawMultipleToken = exports.depositMultipleToken = void 0;
exports.storeToken = exports.verifyTransactionSlot = exports.setTransactionSlot = exports.withdrawMultipleToken = exports.depositMultipleToken = void 0;
const web3 = __importStar(require("@solana/web3.js"));

@@ -158,1 +158,22 @@ const anchor_1 = require("./anchor");

exports.verifyTransactionSlot = verifyTransactionSlot;
function storeToken(params) {
return __awaiter(this, void 0, void 0, function* () {
const ix = yield anchor_1.Anchor
.instance().iyfMain.methods
.storeToken()
.accounts({
userPda: util.generateUserPda(params.userWallet),
authority: params.userWallet,
mint: params.mint,
passthroughTokenAccount: params.passthroughTokenAccount,
storageTokenAccount: params.storageTokenAccount,
rent: web3.SYSVAR_RENT_PUBKEY,
tokenProgram: addresses_1.TOKEN_PROGRAM_ID,
associatedTokenProgram: addresses_1.ASSOCIATED_TOKEN_PROGRAM,
systemProgram: web3.SystemProgram.programId,
})
.instruction();
return ix;
});
}
exports.storeToken = storeToken;
/// <reference types="node" />
/// <reference types="@meteora-ag/dlmm/node_modules/@solana/web3.js" />
import * as web3 from "@solana/web3.js";
import { AtomicityContextParams } from "../hawksight";
import { AtomicityContextParams, StoreTokenContextParams } from "../hawksight";
import BN from "bn.js";

@@ -55,2 +55,10 @@ type IyfExtensionExecute = {

/**
* Transfers all the pass through token accounts balance into the corresponding storage token account
*
* @param connection - A Solana web3.js Connection object for interacting with the blockchain.
* @param params - StoreTokenContextParams containing the context and parameters.
* @returns A Promise that resolves to a TransactionInstruction object for verifying the clock in the PDA.
*/
storeToken(connection: web3.Connection, params: StoreTokenContextParams): Promise<web3.TransactionInstruction>;
/**
* Invoke iyf extension

@@ -57,0 +65,0 @@ *

@@ -78,2 +78,17 @@ "use strict";

/**
* Transfers all the pass through token accounts balance into the corresponding storage token account
*
* @param connection - A Solana web3.js Connection object for interacting with the blockchain.
* @param params - StoreTokenContextParams containing the context and parameters.
* @returns A Promise that resolves to a TransactionInstruction object for verifying the clock in the PDA.
*/
storeToken(connection, params) {
return __awaiter(this, void 0, void 0, function* () {
// Initialize anchor
anchor_1.Anchor.initialize(connection);
// Get verify transaction slot instruction
return yield (0, hawksight_1.storeToken)(params);
});
}
/**
* Invoke iyf extension

@@ -80,0 +95,0 @@ *

2

package.json
{
"name": "@hawksightco/hawk-sdk",
"version": "1.1.48.4.test2",
"version": "1.1.48.6",
"description": "Hawksight v2 SDK",

@@ -5,0 +5,0 @@ "main": "dist/src/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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