UNPKG

@kamino-finance/klend-sdk

Version:

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

28 lines 1.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.refreshReserve = refreshReserve; const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars const programId_1 = require("../programId"); function refreshReserve(accounts, programId = programId_1.PROGRAM_ID) { const keys = [ { pubkey: accounts.reserve, isSigner: false, isWritable: true }, { pubkey: accounts.lendingMarket, isSigner: false, isWritable: false }, { pubkey: accounts.pythOracle, isSigner: false, isWritable: false }, { pubkey: accounts.switchboardPriceOracle, isSigner: false, isWritable: false, }, { pubkey: accounts.switchboardTwapOracle, isSigner: false, isWritable: false, }, { pubkey: accounts.scopePrices, isSigner: false, isWritable: false }, ]; const identifier = Buffer.from([2, 218, 138, 235, 79, 201, 25, 102]); const data = identifier; const ix = new web3_js_1.TransactionInstruction({ keys, programId, data }); return ix; } //# sourceMappingURL=refreshReserve.js.map