UNPKG

@heliofi/solana-adapter-v1

Version:

API to interact with Helio Finances program on Solana.

22 lines 824 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getWithdrawSolTx = void 0; const web3_js_1 = require("@solana/web3.js"); const config_1 = require("./config"); const getWithdrawSolTx = async (program, req, fee = 0, otherSigner) => { console.log('Lib sol other signer: ', otherSigner); const transaction = await program.methods .withdrawSol() .accounts({ signer: otherSigner, recipient: req.recipient, solPaymentAccount: req.payment, helioFeeAccount: config_1.helioFeeWalletKey, daoFeeAccount: config_1.daoFeeWalletKey, systemProgram: web3_js_1.SystemProgram.programId, }) .transaction(); return transaction; }; exports.getWithdrawSolTx = getWithdrawSolTx; //# sourceMappingURL=getWithdrawSolTx.js.map