UNPKG

@hubbleprotocol/farms-sdk

Version:
16 lines 750 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.refreshFarm = refreshFarm; const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars const programId_1 = require("../programId"); function refreshFarm(accounts, programId = programId_1.PROGRAM_ID) { const keys = [ { pubkey: accounts.farmState, isSigner: false, isWritable: true }, { pubkey: accounts.scopePrices, isSigner: false, isWritable: false }, ]; const identifier = Buffer.from([214, 131, 138, 183, 144, 194, 172, 42]); const data = identifier; const ix = new web3_js_1.TransactionInstruction({ keys, programId, data }); return ix; } //# sourceMappingURL=refreshFarm.js.map