fbonds-core
Version:
Banx protocol sdk
34 lines (33 loc) • 1.04 kB
JavaScript
;
//? Saved just for reference
// import { returnAnchorProgram } from '../../helpers';
// import { web3 } from '@coral-xyz/anchor';
// type MigrateRedeemResultProps = {
// connection: web3.Connection;
// accounts: {
// admin: web3.PublicKey;
// bondTradeTransaction: web3.PublicKey;
// };
// };
// type CreateInstructionResult = {
// instructions: web3.TransactionInstruction[];
// signers: web3.Signer[];
// };
// export const migrateRedeemResult = async ({
// connection,
// accounts,
// }: MigrateRedeemResultProps): Promise<CreateInstructionResult> => {
// const { admin, bondTradeTransaction } = accounts;
// const program = returnAnchorProgram(connection);
// const instructions: web3.TransactionInstruction[] = [];
// instructions.push(
// await program.methods
// .migrateRedeemResult()
// .accountsStrict({
// bondTradeTransactionV3: bondTradeTransaction,
// admin,
// })
// .instruction(),
// );
// return { instructions, signers: [] };
// };