@rainfi/sdk
Version:
This package is used to interact with Rain.fi protocol on Solana
25 lines (24 loc) • 806 B
TypeScript
import { Connection, PublicKey, TransactionInstruction } from '@solana/web3.js';
import { NftSwapPair } from './generatedHades';
export type HadesArgs = {
connection: Connection;
maxAmountToPay: number;
skipFailed: boolean;
payRoyalty: boolean;
nftPairBox: PublicKey;
nftMint: PublicKey;
vaultNftTokenAccount: PublicKey;
assetReceiver: PublicKey;
protocolFeeReceiver: PublicKey;
pair: PublicKey;
signer: PublicKey;
editionInfo: PublicKey;
metadataInfo: PublicKey;
ownerTokenRecord: PublicKey;
destTokenRecord: PublicKey;
instructions: PublicKey;
authorizationRulesProgram: PublicKey;
metadataProgram: PublicKey;
hadesPoolData: NftSwapPair;
};
export declare function buyHadeswap(args: HadesArgs): Promise<TransactionInstruction>;