import BN from "bn.js"; import { Schema } from "borsh"; import { PublicKey, TransactionInstruction } from "@solana/web3.js"; export interface AccountKey { pubkey: PublicKey; isSigner: boolean; isWritable: boolean; } export declare class closeMarketInstruction { tag: BN; static schema: Schema; constructor(); serialize(): Uint8Array; getInstruction(programId: PublicKey, market: PublicKey, baseVault: PublicKey, quoteVault: PublicKey, orderbook: PublicKey, eventQueue: PublicKey, bids: PublicKey, asks: PublicKey, marketAdmin: PublicKey, targetLamportsAccount: PublicKey, marketSigner: PublicKey, splTokenProgram: PublicKey): TransactionInstruction; } export declare class cancelOrderInstruction { tag: BN; orderId: BN; orderIndex: BN; isClientId: number; padding: Uint8Array; static schema: Schema; constructor(obj: { orderId: BN; orderIndex: BN; isClientId: number; }); serialize(): Uint8Array; getInstruction(programId: PublicKey, market: PublicKey, orderbook: PublicKey, eventQueue: PublicKey, bids: PublicKey, asks: PublicKey, user: PublicKey, userOwner: PublicKey): TransactionInstruction; } export declare class closeAccountInstruction { tag: BN; static schema: Schema; constructor(); serialize(): Uint8Array; getInstruction(programId: PublicKey, user: PublicKey, userOwner: PublicKey, targetLamportsAccount: PublicKey): TransactionInstruction; } export declare class consumeEventsInstruction { tag: BN; maxIterations: BN; noOpErr: BN; static schema: Schema; constructor(obj: { maxIterations: BN; noOpErr: BN; }); serialize(): Uint8Array; getInstruction(programId: PublicKey, market: PublicKey, orderbook: PublicKey, eventQueue: PublicKey, rewardTarget: PublicKey, userAccounts: PublicKey[]): TransactionInstruction; } export declare class createMarketInstruction { tag: BN; signerNonce: BN; minBaseOrderSize: BN; tickSize: BN; crankerReward: BN; baseCurrencyMultiplier: BN; quoteCurrencyMultiplier: BN; static schema: Schema; constructor(obj: { signerNonce: BN; minBaseOrderSize: BN; tickSize: BN; crankerReward: BN; baseCurrencyMultiplier: BN; quoteCurrencyMultiplier: BN; }); serialize(): Uint8Array; getInstruction(programId: PublicKey, market: PublicKey, orderbook: PublicKey, baseVault: PublicKey, quoteVault: PublicKey, marketAdmin: PublicKey, eventQueue: PublicKey, asks: PublicKey, bids: PublicKey, tokenMetadata: PublicKey): TransactionInstruction; } export declare class initializeAccountInstruction { tag: BN; market: Uint8Array; maxOrders: BN; static schema: Schema; constructor(obj: { market: Uint8Array; maxOrders: BN; }); serialize(): Uint8Array; getInstruction(programId: PublicKey, systemProgram: PublicKey, user: PublicKey, userOwner: PublicKey, feePayer: PublicKey): TransactionInstruction; } export declare class newOrderInstruction { tag: BN; clientOrderId: BN; limitPrice: BN; maxBaseQty: BN; maxQuoteQty: BN; matchLimit: BN; side: number; orderType: number; selfTradeBehavior: number; hasDiscountTokenAccount: number; padding: Uint8Array; static schema: Schema; constructor(obj: { clientOrderId: BN; limitPrice: BN; maxBaseQty: BN; maxQuoteQty: BN; matchLimit: BN; side: number; orderType: number; selfTradeBehavior: number; hasDiscountTokenAccount: number; }); serialize(): Uint8Array; getInstruction(programId: PublicKey, splTokenProgram: PublicKey, systemProgram: PublicKey, market: PublicKey, orderbook: PublicKey, eventQueue: PublicKey, bids: PublicKey, asks: PublicKey, baseVault: PublicKey, quoteVault: PublicKey, user: PublicKey, userTokenAccount: PublicKey, userOwner: PublicKey, discountTokenAccount?: PublicKey, feeReferralAccount?: PublicKey): TransactionInstruction; } export declare class settleInstruction { tag: BN; static schema: Schema; constructor(); serialize(): Uint8Array; getInstruction(programId: PublicKey, splTokenProgram: PublicKey, market: PublicKey, baseVault: PublicKey, quoteVault: PublicKey, marketSigner: PublicKey, user: PublicKey, userOwner: PublicKey, destinationBaseAccount: PublicKey, destinationQuoteAccount: PublicKey): TransactionInstruction; } export declare class swapInstruction { tag: BN; baseQty: BN; quoteQty: BN; matchLimit: BN; side: number; hasDiscountTokenAccount: number; padding: Uint8Array; static schema: Schema; constructor(obj: { baseQty: BN; quoteQty: BN; matchLimit: BN; side: number; hasDiscountTokenAccount: number; }); serialize(): Uint8Array; getInstruction(programId: PublicKey, splTokenProgram: PublicKey, systemProgram: PublicKey, market: PublicKey, orderbook: PublicKey, eventQueue: PublicKey, bids: PublicKey, asks: PublicKey, baseVault: PublicKey, quoteVault: PublicKey, marketSigner: PublicKey, userBaseAccount: PublicKey, userQuoteAccount: PublicKey, userOwner: PublicKey, discountTokenAccount?: PublicKey, feeReferralAccount?: PublicKey): TransactionInstruction; } export declare class sweepFeesInstruction { tag: BN; static schema: Schema; constructor(); serialize(): Uint8Array; getInstruction(programId: PublicKey, market: PublicKey, marketSigner: PublicKey, quoteVault: PublicKey, destinationTokenAccount: PublicKey, splTokenProgram: PublicKey, tokenMetadata: PublicKey, creatorsTokenAccounts: PublicKey[]): TransactionInstruction; } export declare class updateRoyaltiesInstruction { tag: BN; static schema: Schema; constructor(); serialize(): Uint8Array; getInstruction(programId: PublicKey, market: PublicKey, eventQueue: PublicKey, orderbook: PublicKey, tokenMetadata: PublicKey): TransactionInstruction; }