import { PublicKey } from "@solana/web3.js"; /** * SPL Token Program ID */ export declare const TOKEN_PROGRAM_ID: PublicKey; /** * Associated Token Account Program ID */ export declare const ASSOCIATED_TOKEN_PROGRAM_ID: PublicKey; /** * Metaplex Token Metadata Program ID */ export declare const MPL_TOKEN_METADATA_PROGRAM_ID: PublicKey; /** * Pubkey allowed by the on-chain program to initialize the exchange. */ export declare const INITIALIZE_AUTHORITY: PublicKey; /** * System Program ID */ export declare const SYSTEM_PROGRAM_ID: PublicKey; /** * Rent Sysvar ID */ export declare const RENT_SYSVAR_ID: PublicKey; /** * Instruction discriminators (single byte indices) */ export declare const INSTRUCTION: { readonly INITIALIZE: 0; readonly CREATE_MARKET: 1; readonly ADD_DEPOSIT_MINT: 2; readonly MINT_COMPLETE_SET: 3; readonly MERGE_COMPLETE_SET: 4; readonly CANCEL_ORDER: 5; readonly INCREMENT_NONCE: 6; readonly SETTLE_MARKET: 7; readonly REDEEM_WINNINGS: 8; readonly SET_PAUSED: 9; readonly SET_OPERATOR: 10; readonly WITHDRAW_CONDITIONAL_FROM_POSITION: 11; readonly WITHDRAW_FROM_POSITION: 11; readonly ACTIVATE_MARKET: 12; readonly MATCH_ORDERS_MULTI: 13; readonly SET_AUTHORITY: 14; readonly CREATE_ORDERBOOK: 15; readonly WHITELIST_DEPOSIT_TOKEN: 16; readonly DEPOSIT_TO_GLOBAL: 17; readonly GLOBAL_TO_MARKET_DEPOSIT: 18; readonly INIT_POSITION_TOKENS: 19; readonly DEPOSIT_AND_SWAP: 20; readonly WITHDRAW_FROM_GLOBAL: 22; readonly CLOSE_ORDER_STATUS: 24; readonly CLOSE_POSITION_TOKEN_ACCOUNTS: 25; readonly CLOSE_ORDERBOOK: 27; readonly SET_MANAGER: 28; readonly SET_MARKET_FEES: 29; readonly SET_FEE_RECEIVER: 30; readonly CREATE_CONDITIONAL_METADATA: 31; readonly UPDATE_CONDITIONAL_METADATA: 32; readonly SET_ORACLE: 33; readonly ACCEPT_AUTHORITY: 35; readonly ACCEPT_MANAGER: 36; readonly ACCEPT_OPERATOR: 37; readonly SET_DEPOSIT_TOKEN_STATUS: 38; /** * Reserved: the program's private event-batch self-CPI. The SDK never builds * it; it is listed so no public instruction reuses the value. */ readonly EVENT_BATCH: 255; }; /** * Account discriminators (8 bytes each) * SHA-256 hash bytes matching the on-chain program */ export declare const DISCRIMINATOR: { readonly EXCHANGE: Buffer; readonly MARKET: Buffer; readonly ORDER_STATUS: Buffer; readonly USER_NONCE: Buffer; readonly POSITION: Buffer; readonly ORDERBOOK: Buffer; readonly GLOBAL_DEPOSIT_TOKEN: Buffer; }; /** * Account sizes in bytes */ export declare const ACCOUNT_SIZE: { readonly EXCHANGE: 216; readonly MARKET: 216; readonly ORDER_STATUS: 32; readonly USER_NONCE: 16; readonly POSITION: 80; readonly ORDERBOOK: 176; readonly GLOBAL_DEPOSIT_TOKEN: 47; }; /** * Order sizes in bytes */ export declare const ORDER_SIZE: { readonly SIGNED_ORDER: 233; readonly ORDER: 37; readonly SIGNATURE: 64; }; /** * Maximum number of outcomes per market (2-6) */ export declare const MAX_OUTCOMES = 6; /** * Minimum number of outcomes per market */ export declare const MIN_OUTCOMES = 2; /** * Maximum makers in one MatchOrdersMulti or DepositAndSwap instruction. */ export declare const MAX_MAKERS = 11; /** Taker participant bit in each unsigned 16-bit matching mask. */ export declare const TAKER_MASK = 32768; /** Encoded byte length of a matching participant mask. */ export declare const PARTICIPANT_MASK_LEN = 2; /** * Maximum deposit mints the program registers per market. addDepositMint fails * with on-chain error 75 (TooManyDepositMints) beyond it. */ export declare const MAX_DEPOSIT_MINTS_PER_MARKET = 8; /** * Maximum deposit-mint groups accepted by one initPositionTokens instruction. * Equal to the per-market cap. Execution limits can require smaller batches. */ export declare const MAX_DEPOSIT_MINTS_PER_IX = 8; /** * PDA Seeds */ export declare const SEEDS: { readonly CENTRAL_STATE: "central_state"; readonly MARKET: "market"; readonly MARKET_DEPOSIT_TOKEN_ACCOUNT: "market_deposit_token_account"; readonly MARKET_MINT_AUTHORITY: "market_mint_authority"; readonly CONDITIONAL_MINT: "conditional_mint"; readonly CONDITION: "condition"; readonly ORDER_STATUS: "order_status"; readonly USER_NONCE: "user_nonce"; readonly POSITION: "position"; readonly ORDERBOOK: "orderbook"; readonly GLOBAL_DEPOSIT: "global_deposit"; readonly FEE_RECEIVER: "fee_receiver"; readonly MPL_METADATA: "metadata"; /** * Event-authority PDA seed. The program signs its event-batch self-CPI with * this PDA and requires every public instruction to pass it as a readonly, * non-signer trailer account immediately before the program account. */ readonly EVENT_AUTHORITY: "__event_authority"; }; //# sourceMappingURL=constants.d.ts.map