UNPKG

kamino-sdk-beta

Version:

Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol

16 lines 755 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.togglePairStatus = togglePairStatus; const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars const programId_1 = require("../programId"); function togglePairStatus(accounts, programId = programId_1.PROGRAM_ID) { const keys = [ { pubkey: accounts.lbPair, isSigner: false, isWritable: true }, { pubkey: accounts.admin, isSigner: true, isWritable: false }, ]; const identifier = Buffer.from([61, 115, 52, 23, 46, 13, 31, 144]); const data = identifier; const ix = new web3_js_1.TransactionInstruction({ keys, programId, data }); return ix; } //# sourceMappingURL=togglePairStatus.js.map