UNPKG

@kamino-finance/klend-sdk

Version:

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

22 lines 979 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.initializePool = initializePool; const programId_1 = require("../programId"); function initializePool(accounts, programAddress = programId_1.PROGRAM_ID) { const keys = [ { address: accounts.admin.address, role: 3, signer: accounts.admin }, { address: accounts.poolState, role: 1 }, { address: accounts.unstakingSolMint, role: 1 }, { address: accounts.wsolMint, role: 0 }, { address: accounts.basePoolAuthority, role: 0 }, { address: accounts.wsolVault, role: 1 }, { address: accounts.systemProgram, role: 0 }, { address: accounts.rent, role: 0 }, { address: accounts.tokenProgram, role: 0 }, ]; const identifier = Buffer.from([95, 180, 10, 172, 84, 174, 232, 40]); const data = identifier; const ix = { accounts: keys, programAddress, data }; return ix; } //# sourceMappingURL=initializePool.js.map