UNPKG

@kamino-finance/klend-sdk

Version:

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

20 lines 861 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateLendingMarketOwner = updateLendingMarketOwner; const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars const programId_1 = require("../programId"); function updateLendingMarketOwner(accounts, programId = programId_1.PROGRAM_ID) { const keys = [ { pubkey: accounts.lendingMarketOwnerCached, isSigner: true, isWritable: false, }, { pubkey: accounts.lendingMarket, isSigner: false, isWritable: true }, ]; const identifier = Buffer.from([118, 224, 10, 62, 196, 230, 184, 89]); const data = identifier; const ix = new web3_js_1.TransactionInstruction({ keys, programId, data }); return ix; } //# sourceMappingURL=updateLendingMarketOwner.js.map