UNPKG

@hubbleprotocol/farms-sdk

Version:
16 lines 806 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateGlobalConfigAdmin = updateGlobalConfigAdmin; const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars const programId_1 = require("../programId"); function updateGlobalConfigAdmin(accounts, programId = programId_1.PROGRAM_ID) { const keys = [ { pubkey: accounts.pendingGlobalAdmin, isSigner: true, isWritable: false }, { pubkey: accounts.globalConfig, isSigner: false, isWritable: true }, ]; const identifier = Buffer.from([184, 87, 23, 193, 156, 238, 175, 119]); const data = identifier; const ix = new web3_js_1.TransactionInstruction({ keys, programId, data }); return ix; } //# sourceMappingURL=updateGlobalConfigAdmin.js.map