@metaplex-foundation/mpl-auction-house
Version:
MPL Auction House JavaScript API.
31 lines (30 loc) • 1.23 kB
TypeScript
import * as beet from '@metaplex-foundation/beet';
import * as web3 from '@solana/web3.js';
export declare type PublicBuyInstructionArgs = {
tradeStateBump: number;
escrowPaymentBump: number;
buyerPrice: beet.bignum;
tokenSize: beet.bignum;
};
export declare const publicBuyStruct: beet.BeetArgsStruct<PublicBuyInstructionArgs & {
instructionDiscriminator: number[];
}>;
export declare type PublicBuyInstructionAccounts = {
wallet: web3.PublicKey;
paymentAccount: web3.PublicKey;
transferAuthority: web3.PublicKey;
treasuryMint: web3.PublicKey;
tokenAccount: web3.PublicKey;
metadata: web3.PublicKey;
escrowPaymentAccount: web3.PublicKey;
authority: web3.PublicKey;
auctionHouse: web3.PublicKey;
auctionHouseFeeAccount: web3.PublicKey;
buyerTradeState: web3.PublicKey;
tokenProgram?: web3.PublicKey;
systemProgram?: web3.PublicKey;
rent?: web3.PublicKey;
anchorRemainingAccounts?: web3.AccountMeta[];
};
export declare const publicBuyInstructionDiscriminator: number[];
export declare function createPublicBuyInstruction(accounts: PublicBuyInstructionAccounts, args: PublicBuyInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;