import { Program, web3 } from "@project-serum/anchor"; import { Middleware, OpenOrders } from "@project-serum/serum"; import { EuroPrimitive } from "./euro_primitive"; export declare type MarketLoaderOpts = { enableLogger: boolean; }; export declare const marketLoader: (program: Program, dexProgramId: web3.PublicKey, marketKey: web3.PublicKey, euroMetaKey: web3.PublicKey, marketAuthorityBump: number, opts?: MarketLoaderOpts) => Promise; export declare class Validation implements Middleware { euroMetaKey: web3.PublicKey; marketAuthorityBump: number; constructor(euroMetaKey: web3.PublicKey, marketAuthorityBump: number); initOpenOrders(ix: web3.TransactionInstruction): void; newOrderV3(ix: web3.TransactionInstruction): void; cancelOrderV2(ix: web3.TransactionInstruction): void; cancelOrderByClientIdV2(ix: web3.TransactionInstruction): void; settleFunds(ix: web3.TransactionInstruction): void; closeOpenOrders(ix: web3.TransactionInstruction): void; prune(ix: web3.TransactionInstruction): void; consumeEvents(ix: web3.TransactionInstruction): void; consumeEventsPermissioned(ix: web3.TransactionInstruction): void; } /** * Load the open orders for a user based on the Serum DEX and Serum Market * address. * * @param program - Anchor Psy American program * @param dexProgramId - Serum DEX program id * @param serumMarketAddress - Serum market address * @returns */ export declare const findOpenOrdersAccountsForOwner: (program: Program, dexProgramId: web3.PublicKey, serumMarketAddress: web3.PublicKey) => Promise; //# sourceMappingURL=serumUtils.d.ts.map