@marinade.finance/kamino-sdk
Version:
22 lines • 1.16 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.changePool = void 0;
const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars
const programId_1 = require("../programId");
function changePool(accounts) {
const keys = [
{ pubkey: accounts.adminAuthority, isSigner: true, isWritable: true },
{ pubkey: accounts.strategy, isSigner: false, isWritable: true },
{ pubkey: accounts.oldPosition, isSigner: false, isWritable: false },
{ pubkey: accounts.baseVaultAuthority, isSigner: false, isWritable: false },
{ pubkey: accounts.globalConfig, isSigner: false, isWritable: false },
{ pubkey: accounts.newPool, isSigner: false, isWritable: false },
{ pubkey: accounts.poolProgram, isSigner: false, isWritable: false },
];
const identifier = Buffer.from([141, 221, 123, 235, 35, 9, 145, 201]);
const data = identifier;
const ix = new web3_js_1.TransactionInstruction({ keys, programId: programId_1.PROGRAM_ID, data });
return ix;
}
exports.changePool = changePool;
//# sourceMappingURL=changePool.js.map