UNPKG

@kamino-finance/klend-sdk

Version:

Typescript SDK for interacting with the Kamino Lending (klend) protocol

17 lines 849 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.removeAllocation = removeAllocation; const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars const programId_1 = require("../programId"); function removeAllocation(accounts, programId = programId_1.PROGRAM_ID) { const keys = [ { pubkey: accounts.vaultAdminAuthority, isSigner: true, isWritable: true }, { pubkey: accounts.vaultState, isSigner: false, isWritable: true }, { pubkey: accounts.reserve, isSigner: false, isWritable: false }, ]; const identifier = Buffer.from([32, 220, 211, 141, 209, 231, 73, 76]); const data = identifier; const ix = new web3_js_1.TransactionInstruction({ keys, programId, data }); return ix; } //# sourceMappingURL=removeAllocation.js.map