UNPKG

@marinade.finance/kamino-sdk

Version:
18 lines 882 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setFeeAuthority = void 0; const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars const programId_1 = require("../programId"); function setFeeAuthority(accounts) { const keys = [ { pubkey: accounts.whirlpoolsConfig, isSigner: false, isWritable: true }, { pubkey: accounts.feeAuthority, isSigner: true, isWritable: false }, { pubkey: accounts.newFeeAuthority, isSigner: false, isWritable: false }, ]; const identifier = Buffer.from([31, 1, 50, 87, 237, 101, 97, 132]); const data = identifier; const ix = new web3_js_1.TransactionInstruction({ keys, programId: programId_1.WHIRLPOOL_PROGRAM_ID, data }); return ix; } exports.setFeeAuthority = setFeeAuthority; //# sourceMappingURL=setFeeAuthority.js.map