UNPKG

@kamino-finance/klend-sdk

Version:

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

21 lines 1.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.initReferrerTokenState = initReferrerTokenState; const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars const programId_1 = require("../programId"); function initReferrerTokenState(accounts, programId = programId_1.PROGRAM_ID) { const keys = [ { pubkey: accounts.payer, isSigner: true, isWritable: true }, { pubkey: accounts.lendingMarket, isSigner: false, isWritable: false }, { pubkey: accounts.reserve, isSigner: false, isWritable: false }, { pubkey: accounts.referrer, isSigner: false, isWritable: false }, { pubkey: accounts.referrerTokenState, isSigner: false, isWritable: true }, { pubkey: accounts.rent, isSigner: false, isWritable: false }, { pubkey: accounts.systemProgram, isSigner: false, isWritable: false }, ]; const identifier = Buffer.from([116, 45, 66, 148, 58, 13, 218, 115]); const data = identifier; const ix = new web3_js_1.TransactionInstruction({ keys, programId, data }); return ix; } //# sourceMappingURL=initReferrerTokenState.js.map