fbonds-core
Version:
Banx protocol sdk
40 lines (39 loc) • 1.46 kB
TypeScript
import { web3 } from '@coral-xyz/anchor';
type ClaimPerpetualLoanV2 = (params: {
programId: web3.PublicKey;
connection: web3.Connection;
accounts: {
fbond: web3.PublicKey;
bondOffer: web3.PublicKey;
collateralTokenMint: web3.PublicKey;
collateralOwner: web3.PublicKey;
bondTradeTransaction: web3.PublicKey;
banxStake: web3.PublicKey;
ruleSet?: web3.PublicKey;
userPubkey: web3.PublicKey;
subscriptionsAndAdventures: {
adventure: web3.PublicKey;
adventureSubscription: web3.PublicKey;
}[];
};
sendTxn: (transaction: web3.Transaction, signers: web3.Signer[]) => Promise<void>;
}) => Promise<{
accounts: {
fraktBond: web3.PublicKey;
bondOffer: web3.PublicKey;
bondTradeTransaction: web3.PublicKey;
firstWeekBanxAdventureSubscription: web3.PublicKey;
secondWeekBanxAdventureSubscription: web3.PublicKey;
currentWeekBanxAdventureSubscription: web3.PublicKey;
firstWeekBanxAdventure: web3.PublicKey;
secondWeekBanxAdventure: web3.PublicKey;
currentWeekBanxAdventure: web3.PublicKey;
banxStakingSettings: web3.PublicKey;
banxTokenStake: web3.PublicKey;
banxStake: web3.PublicKey;
};
instructions: web3.TransactionInstruction[];
signers: web3.Signer[];
}>;
export declare const claimPerpetualLoanv2: ClaimPerpetualLoanV2;
export {};