UNPKG

@heliofi/solana-adapter-v1

Version:

API to interact with Helio Finances program on Solana.

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