@thru/programs 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/abi-manager/index.cjs +39 -2
  2. package/dist/abi-manager/index.cjs.map +1 -1
  3. package/dist/abi-manager/index.js +2 -2
  4. package/dist/amm/index.cjs +39 -2
  5. package/dist/amm/index.cjs.map +1 -1
  6. package/dist/amm/index.js +1 -1
  7. package/dist/bootstrap-addresses/index.cjs +41 -2
  8. package/dist/bootstrap-addresses/index.cjs.map +1 -1
  9. package/dist/bootstrap-addresses/index.d.cts +8 -1
  10. package/dist/bootstrap-addresses/index.d.ts +8 -1
  11. package/dist/bootstrap-addresses/index.js +1 -1
  12. package/dist/{chunk-TRPUGPZJ.js → chunk-2FFCNXCE.js} +58 -5
  13. package/dist/chunk-2FFCNXCE.js.map +1 -0
  14. package/dist/{chunk-QCJFKBAS.js → chunk-I3DLOUB4.js} +3 -3
  15. package/dist/{chunk-QCJFKBAS.js.map → chunk-I3DLOUB4.js.map} +1 -1
  16. package/dist/clob/index.cjs +41 -2
  17. package/dist/clob/index.cjs.map +1 -1
  18. package/dist/clob/index.d.cts +7 -1
  19. package/dist/clob/index.d.ts +7 -1
  20. package/dist/clob/index.js +3 -2
  21. package/dist/clob/index.js.map +1 -1
  22. package/dist/deploy/index.cjs +39 -2
  23. package/dist/deploy/index.cjs.map +1 -1
  24. package/dist/deploy/index.js +3 -3
  25. package/dist/oracle/index.cjs +39 -2
  26. package/dist/oracle/index.cjs.map +1 -1
  27. package/dist/oracle/index.js +1 -1
  28. package/dist/passkey-manager/index.cjs +42 -5
  29. package/dist/passkey-manager/index.cjs.map +1 -1
  30. package/dist/passkey-manager/index.js +1 -1
  31. package/dist/perp/index.cjs +1785 -162
  32. package/dist/perp/index.cjs.map +1 -1
  33. package/dist/perp/index.d.cts +558 -13
  34. package/dist/perp/index.d.ts +558 -13
  35. package/dist/perp/index.js +1749 -163
  36. package/dist/perp/index.js.map +1 -1
  37. package/dist/ratelimit/index.cjs +4757 -0
  38. package/dist/ratelimit/index.cjs.map +1 -0
  39. package/dist/ratelimit/index.d.cts +171 -0
  40. package/dist/ratelimit/index.d.ts +171 -0
  41. package/dist/ratelimit/index.js +4527 -0
  42. package/dist/ratelimit/index.js.map +1 -0
  43. package/package.json +7 -2
  44. package/src/bootstrap-addresses/index.test.ts +17 -0
  45. package/src/bootstrap-addresses/index.ts +12 -0
  46. package/src/clob/index.ts +7 -0
  47. package/src/perp/abi/thru/program/perp/types.ts +1949 -149
  48. package/src/perp/index.test.ts +189 -3
  49. package/src/perp/index.ts +316 -3
  50. package/src/ratelimit/abi/thru/program/ratelimit/types.ts +5448 -0
  51. package/src/ratelimit/accounts.ts +105 -0
  52. package/src/ratelimit/constants.ts +49 -0
  53. package/src/ratelimit/derivation.ts +93 -0
  54. package/src/ratelimit/index.test.ts +185 -0
  55. package/src/ratelimit/index.ts +30 -0
  56. package/src/ratelimit/instructions.ts +244 -0
  57. package/tsup.config.ts +1 -0
  58. package/dist/chunk-TRPUGPZJ.js.map +0 -1
@@ -4238,6 +4238,12 @@ declare function createExchangeSetStatusInstruction(args: ExchangeSetStatusArgs)
4238
4238
  declare function createExchangeSetAdminInstruction(args: ExchangeSetAdminArgs): InstructionData;
4239
4239
  declare function createExchangeRecoverAdminInstruction(args: ExchangeRecoverAdminArgs): InstructionData;
4240
4240
  declare function createMarketRecordInstruction(args: MarketRecordArgs): InstructionData;
4241
+ /** State units a market_create transaction must request. The runtime charges
4242
+ ceil((64 + data_sz) / 4096) per new account, and market_create creates six:
4243
+ the seat arena (64320 bytes: 16), the order arena (64072 bytes: 16), the
4244
+ bids and asks cbooks (96 bytes: 1 each) and the base and quote vault token
4245
+ accounts (73 bytes: 1 each). Requesting fewer fails with SU_EXHAUSTED. */
4246
+ declare const CLOB_MARKET_CREATE_STATE_UNITS = 36;
4241
4247
  declare function createMarketCreateInstruction(args: MarketCreateArgs): InstructionData;
4242
4248
  declare function createSeatCreateInstruction(args: SeatCreateArgs): InstructionData;
4243
4249
  declare function createTokenDepositInstruction(args: TokenTransferArgs): InstructionData;
@@ -4282,4 +4288,4 @@ declare function encodeOrderFlags(args: {
4282
4288
  declare function effectiveClobStatusFlags(exchangeStatusFlags: number, market: Pick<ClobMarket, 'statusFlags' | 'exchangeStatusFlags'>): number;
4283
4289
  declare function assertClobActiveSeatIndex(value: number, label?: string): number;
4284
4290
 
4285
- export { type AccountLookupContext, ArenaHeader, ArenaHeaderBuilder, type BuildClobExchangeDepositArgs, type BuildClobExchangeWithdrawalArgs, type BuildClobFundedOrderArgs, CLOB_ARENA_HEADER_SIZE, CLOB_CBOOK_EMPTY_PRICE_IN_TICKS, CLOB_CBOOK_HEADER_SIZE, CLOB_CBOOK_LEVEL_SIZE, CLOB_CBOOK_MAX_PRICE_IN_TICKS, CLOB_CBOOK_MAX_SIZE, CLOB_CLIENT_ID_SIZE, CLOB_EVENT_EXCHANGE_ADMIN, CLOB_EVENT_EXCHANGE_INITIALIZED, CLOB_EVENT_EXCHANGE_STATUS, CLOB_EVENT_MARKET_CREATED, CLOB_EVENT_MARKET_EXCHANGE_STATUS, CLOB_EVENT_MARKET_STATUS, CLOB_EVENT_ORDER_CANCELLED, CLOB_EVENT_ORDER_ENTRY_REMOVED, CLOB_EVENT_ORDER_FILLED, CLOB_EVENT_ORDER_MODIFIED, CLOB_EVENT_ORDER_POSTED, CLOB_EVENT_REMOVE_REASON_EVICTED, CLOB_EVENT_REMOVE_REASON_EXPIRED, CLOB_EVENT_REMOVE_REASON_FILLED, CLOB_EVENT_REMOVE_REASON_USER, CLOB_EVENT_SEAT_ASSIGNED, CLOB_EVENT_SIDE_BUY, CLOB_EVENT_SIDE_SELL, CLOB_EVENT_TOKEN_DEPOSIT, CLOB_EVENT_TOKEN_SIDE_BASE, CLOB_EVENT_TOKEN_SIDE_QUOTE, CLOB_EVENT_TOKEN_WITHDRAW, CLOB_EXCHANGE_META_ACCOUNT_SIZE, CLOB_EXCHANGE_META_MAGIC, CLOB_EXCHANGE_META_SEED, CLOB_EXCHANGE_META_VERSION, CLOB_INSTRUCTION_CREATE_ORDER_ENTRY, CLOB_INSTRUCTION_CREATE_SEATLESS_ORDER_ENTRY, CLOB_INSTRUCTION_EXCHANGE_INITIALIZE, CLOB_INSTRUCTION_EXCHANGE_RECOVER_ADMIN, CLOB_INSTRUCTION_EXCHANGE_SET_ADMIN, CLOB_INSTRUCTION_EXCHANGE_SET_STATUS, CLOB_INSTRUCTION_MARKET_CREATE, CLOB_INSTRUCTION_MARKET_RECORD, CLOB_INSTRUCTION_MARKET_SET_EXCHANGE_STATUS, CLOB_INSTRUCTION_MARKET_SET_STATUS, CLOB_INSTRUCTION_MODIFY_ORDER_ENTRY, CLOB_INSTRUCTION_SEAT_CREATE, CLOB_INSTRUCTION_TOKEN_DEPOSIT, CLOB_INSTRUCTION_TOKEN_WITHDRAW, CLOB_MARKET_ACCOUNT_SIZE, CLOB_MARKET_MAGIC, CLOB_MAX_ATOMIC_FUNDING_SOURCES, CLOB_MODIFY_FLAG_FAIL_IF_OUT_OF_RANGE, CLOB_MODIFY_FLAG_HAS_CLIENT_ID, CLOB_MODIFY_FLAG_HAS_ORDER_ID, CLOB_NULL_INDEX, CLOB_ORDER_ENTRY_SIZE, CLOB_ORDER_FLAG_BUY, CLOB_ORDER_FLAG_HAS_CLIENT_ID, CLOB_ORDER_TYPE_ALO, CLOB_ORDER_TYPE_FOK, CLOB_ORDER_TYPE_GTC, CLOB_ORDER_TYPE_IOC, CLOB_ORDER_TYPE_MTL, CLOB_PROGRAM_ADDRESS, CLOB_SEATLESS_SEAT_IDX, CLOB_SEAT_ARENA_ENTRIES_OFFSET, CLOB_SEAT_ENTRY_SIZE, CLOB_SEAT_MANAGER_RESERVED_SIZE, CLOB_STATUS_FLAG_DEPOSITS_FROZEN, CLOB_STATUS_FLAG_MASK, CLOB_STATUS_FLAG_PAUSED, CLOB_STATUS_FLAG_POST_ONLY, CLOB_STATUS_FLAG_WITHDRAWALS_FROZEN, CbookAccount, CbookHeader, CbookHeaderBuilder, CbookLevel, CbookLevelBuilder, ClientId, type ClobArenaHeader, type ClobArenaSlot, type ClobAssetBalanceAllocation, type ClobBalanceEffect, type ClobCbook, type ClobCbookLevel, ClobError, ClobErrorBuilder, ClobEvent, ClobEventBuilder, type ClobExchangeAccountSnapshot, type ClobExchangeAssetBalance, type ClobExchangeAssetSnapshot, type ClobExchangeClient, ClobExchangeClientError, type ClobExchangeClientErrorCode, type ClobExchangeDataSource, ClobExchangeError, type ClobExchangeErrorCode, type ClobExchangeMeta, type ClobFundingSource, ClobInstruction, ClobInstructionBuilder, type ClobInstructionPlan, type ClobInstructionPlanReview, type ClobMarket, type ClobMarketDiscovery, type ClobMarketPriceUnits, type ClobOrderBookLevel, type ClobOrderBookOrder, type ClobOrderBookSnapshot, type ClobOrderEntry, type ClobOrderFundingPlan, type ClobOrderRemovalReason, type ClobOrderSide, type ClobOrderType, type ClobPreparedDeposit, type ClobPreparedOperation, type ClobPreparedOrder, type ClobPreparedWithdrawal, ClobProgramAccount, ClobProgramAccountBuilder, type ClobSeatEntry, type ClobTokenAccountInitialization, type ClobTokenSide, type ClobTradingMarket, type ClobTransactionPlan, type ClobUnavailableMarket, type ClobWalletTokenAccountSnapshot, type ClobWithdrawalCapacity, type CreateClobExchangeClientArgs, type CreateOrderArgs, CreateOrderEntryInstruction, CreateOrderEntryInstructionBuilder, type CreateSeatlessOrderArgs, CreateSeatlessOrderEntryInstruction, CreateSeatlessOrderEntryInstructionBuilder, ExchangeAdminEvent, ExchangeAdminEventBuilder, type ExchangeInitializeArgs, ExchangeInitializeInstruction, ExchangeInitializeInstructionBuilder, ExchangeInitializedEvent, ExchangeInitializedEventBuilder, ExchangeMetaAccount, ExchangeMetaAccountBuilder, type ExchangeRecoverAdminArgs, ExchangeRecoverAdminInstruction, ExchangeRecoverAdminInstructionBuilder, type ExchangeSetAdminArgs, ExchangeSetAdminInstruction, ExchangeSetAdminInstructionBuilder, type ExchangeSetStatusArgs, ExchangeSetStatusInstruction, ExchangeSetStatusInstructionBuilder, ExchangeStatusEvent, ExchangeStatusEventBuilder, type InstructionData, MarketAccountBuilder, MarketAccount as MarketAccountView, type MarketCreateArgs, MarketCreateInstruction, MarketCreateInstructionBuilder, MarketCreatedEvent, MarketCreatedEventBuilder, MarketExchangeStatusEvent, MarketExchangeStatusEventBuilder, type MarketRecordArgs, MarketRecordInstruction, MarketRecordInstructionBuilder, type MarketSetExchangeStatusArgs, MarketSetExchangeStatusInstruction, MarketSetExchangeStatusInstructionBuilder, type MarketSetStatusArgs, MarketSetStatusInstruction, MarketSetStatusInstructionBuilder, type ModifyOrderArgs, ModifyOrderEntryInstruction, ModifyOrderEntryInstructionBuilder, OrderArenaAccount, OrderCancelledEvent, OrderCancelledEventBuilder, OrderEntryBuilder, OrderEntryRemovedEvent, OrderEntryRemovedEventBuilder, OrderEntry as OrderEntryView, OrderFilledEvent, OrderFilledEventBuilder, OrderModifiedEvent, OrderModifiedEventBuilder, OrderPostedEvent, OrderPostedEventBuilder, type ParsedClobEvent, type ParsedClobEventBase, type PlanClobOrderFundingArgs, type PrepareClobDepositArgs, type PrepareClobOrderArgs, type PrepareClobWithdrawalArgs, SeatArenaAccount, SeatAssignedEvent, SeatAssignedEventBuilder, type SeatCreateArgs, SeatCreateInstruction, SeatCreateInstructionBuilder, SeatEntryBuilder, SeatEntry as SeatEntryView, TokenBalanceEvent, TokenBalanceEventBuilder, type TokenTransferArgs, TokenTransferInstruction, TokenTransferInstructionBuilder, type WrapClobPlanWithTokenAccountInitializationArgs, aggregateClobExchangeBalances, assertClobActiveSeatIndex, buildClobExchangeDepositInstructionPlan, buildClobExchangeWithdrawalInstructionPlan, buildClobFundedOrderInstructionPlan, buildOrderBookSnapshot, calculateClobOrderFundingAmount, clobMarketPriceNumber, concatClobInstructions, createClobExchangeClient, createExchangeInitializeInstruction, createExchangeRecoverAdminInstruction, createExchangeSetAdminInstruction, createExchangeSetStatusInstruction, createMarketCreateInstruction, createMarketRecordInstruction, createMarketSetExchangeStatusInstruction, createMarketSetStatusInstruction, createModifyOrderEntryInstruction, createOrderEntryInstruction, createSeatCreateInstruction, createSeatlessOrderEntryInstruction, createTokenDepositInstruction, createTokenWithdrawInstruction, deriveClobExchangeMetaAddress, effectiveClobStatusFlags, encodeOrderFlags, formatClobMarketPrice, parseCbookAccount, parseClobEvent, parseClobMarketPrice, parseClobProgramAccount, parseExchangeMetaAccount, parseMarketAccount, parseOrderArenaAccount, parseSeatArenaAccount, planClobOrderFunding, validateClobOrderFundingPlanSeats, wrapClobPlanWithTokenAccountInitialization };
4291
+ export { type AccountLookupContext, ArenaHeader, ArenaHeaderBuilder, type BuildClobExchangeDepositArgs, type BuildClobExchangeWithdrawalArgs, type BuildClobFundedOrderArgs, CLOB_ARENA_HEADER_SIZE, CLOB_CBOOK_EMPTY_PRICE_IN_TICKS, CLOB_CBOOK_HEADER_SIZE, CLOB_CBOOK_LEVEL_SIZE, CLOB_CBOOK_MAX_PRICE_IN_TICKS, CLOB_CBOOK_MAX_SIZE, CLOB_CLIENT_ID_SIZE, CLOB_EVENT_EXCHANGE_ADMIN, CLOB_EVENT_EXCHANGE_INITIALIZED, CLOB_EVENT_EXCHANGE_STATUS, CLOB_EVENT_MARKET_CREATED, CLOB_EVENT_MARKET_EXCHANGE_STATUS, CLOB_EVENT_MARKET_STATUS, CLOB_EVENT_ORDER_CANCELLED, CLOB_EVENT_ORDER_ENTRY_REMOVED, CLOB_EVENT_ORDER_FILLED, CLOB_EVENT_ORDER_MODIFIED, CLOB_EVENT_ORDER_POSTED, CLOB_EVENT_REMOVE_REASON_EVICTED, CLOB_EVENT_REMOVE_REASON_EXPIRED, CLOB_EVENT_REMOVE_REASON_FILLED, CLOB_EVENT_REMOVE_REASON_USER, CLOB_EVENT_SEAT_ASSIGNED, CLOB_EVENT_SIDE_BUY, CLOB_EVENT_SIDE_SELL, CLOB_EVENT_TOKEN_DEPOSIT, CLOB_EVENT_TOKEN_SIDE_BASE, CLOB_EVENT_TOKEN_SIDE_QUOTE, CLOB_EVENT_TOKEN_WITHDRAW, CLOB_EXCHANGE_META_ACCOUNT_SIZE, CLOB_EXCHANGE_META_MAGIC, CLOB_EXCHANGE_META_SEED, CLOB_EXCHANGE_META_VERSION, CLOB_INSTRUCTION_CREATE_ORDER_ENTRY, CLOB_INSTRUCTION_CREATE_SEATLESS_ORDER_ENTRY, CLOB_INSTRUCTION_EXCHANGE_INITIALIZE, CLOB_INSTRUCTION_EXCHANGE_RECOVER_ADMIN, CLOB_INSTRUCTION_EXCHANGE_SET_ADMIN, CLOB_INSTRUCTION_EXCHANGE_SET_STATUS, CLOB_INSTRUCTION_MARKET_CREATE, CLOB_INSTRUCTION_MARKET_RECORD, CLOB_INSTRUCTION_MARKET_SET_EXCHANGE_STATUS, CLOB_INSTRUCTION_MARKET_SET_STATUS, CLOB_INSTRUCTION_MODIFY_ORDER_ENTRY, CLOB_INSTRUCTION_SEAT_CREATE, CLOB_INSTRUCTION_TOKEN_DEPOSIT, CLOB_INSTRUCTION_TOKEN_WITHDRAW, CLOB_MARKET_ACCOUNT_SIZE, CLOB_MARKET_CREATE_STATE_UNITS, CLOB_MARKET_MAGIC, CLOB_MAX_ATOMIC_FUNDING_SOURCES, CLOB_MODIFY_FLAG_FAIL_IF_OUT_OF_RANGE, CLOB_MODIFY_FLAG_HAS_CLIENT_ID, CLOB_MODIFY_FLAG_HAS_ORDER_ID, CLOB_NULL_INDEX, CLOB_ORDER_ENTRY_SIZE, CLOB_ORDER_FLAG_BUY, CLOB_ORDER_FLAG_HAS_CLIENT_ID, CLOB_ORDER_TYPE_ALO, CLOB_ORDER_TYPE_FOK, CLOB_ORDER_TYPE_GTC, CLOB_ORDER_TYPE_IOC, CLOB_ORDER_TYPE_MTL, CLOB_PROGRAM_ADDRESS, CLOB_SEATLESS_SEAT_IDX, CLOB_SEAT_ARENA_ENTRIES_OFFSET, CLOB_SEAT_ENTRY_SIZE, CLOB_SEAT_MANAGER_RESERVED_SIZE, CLOB_STATUS_FLAG_DEPOSITS_FROZEN, CLOB_STATUS_FLAG_MASK, CLOB_STATUS_FLAG_PAUSED, CLOB_STATUS_FLAG_POST_ONLY, CLOB_STATUS_FLAG_WITHDRAWALS_FROZEN, CbookAccount, CbookHeader, CbookHeaderBuilder, CbookLevel, CbookLevelBuilder, ClientId, type ClobArenaHeader, type ClobArenaSlot, type ClobAssetBalanceAllocation, type ClobBalanceEffect, type ClobCbook, type ClobCbookLevel, ClobError, ClobErrorBuilder, ClobEvent, ClobEventBuilder, type ClobExchangeAccountSnapshot, type ClobExchangeAssetBalance, type ClobExchangeAssetSnapshot, type ClobExchangeClient, ClobExchangeClientError, type ClobExchangeClientErrorCode, type ClobExchangeDataSource, ClobExchangeError, type ClobExchangeErrorCode, type ClobExchangeMeta, type ClobFundingSource, ClobInstruction, ClobInstructionBuilder, type ClobInstructionPlan, type ClobInstructionPlanReview, type ClobMarket, type ClobMarketDiscovery, type ClobMarketPriceUnits, type ClobOrderBookLevel, type ClobOrderBookOrder, type ClobOrderBookSnapshot, type ClobOrderEntry, type ClobOrderFundingPlan, type ClobOrderRemovalReason, type ClobOrderSide, type ClobOrderType, type ClobPreparedDeposit, type ClobPreparedOperation, type ClobPreparedOrder, type ClobPreparedWithdrawal, ClobProgramAccount, ClobProgramAccountBuilder, type ClobSeatEntry, type ClobTokenAccountInitialization, type ClobTokenSide, type ClobTradingMarket, type ClobTransactionPlan, type ClobUnavailableMarket, type ClobWalletTokenAccountSnapshot, type ClobWithdrawalCapacity, type CreateClobExchangeClientArgs, type CreateOrderArgs, CreateOrderEntryInstruction, CreateOrderEntryInstructionBuilder, type CreateSeatlessOrderArgs, CreateSeatlessOrderEntryInstruction, CreateSeatlessOrderEntryInstructionBuilder, ExchangeAdminEvent, ExchangeAdminEventBuilder, type ExchangeInitializeArgs, ExchangeInitializeInstruction, ExchangeInitializeInstructionBuilder, ExchangeInitializedEvent, ExchangeInitializedEventBuilder, ExchangeMetaAccount, ExchangeMetaAccountBuilder, type ExchangeRecoverAdminArgs, ExchangeRecoverAdminInstruction, ExchangeRecoverAdminInstructionBuilder, type ExchangeSetAdminArgs, ExchangeSetAdminInstruction, ExchangeSetAdminInstructionBuilder, type ExchangeSetStatusArgs, ExchangeSetStatusInstruction, ExchangeSetStatusInstructionBuilder, ExchangeStatusEvent, ExchangeStatusEventBuilder, type InstructionData, MarketAccountBuilder, MarketAccount as MarketAccountView, type MarketCreateArgs, MarketCreateInstruction, MarketCreateInstructionBuilder, MarketCreatedEvent, MarketCreatedEventBuilder, MarketExchangeStatusEvent, MarketExchangeStatusEventBuilder, type MarketRecordArgs, MarketRecordInstruction, MarketRecordInstructionBuilder, type MarketSetExchangeStatusArgs, MarketSetExchangeStatusInstruction, MarketSetExchangeStatusInstructionBuilder, type MarketSetStatusArgs, MarketSetStatusInstruction, MarketSetStatusInstructionBuilder, type ModifyOrderArgs, ModifyOrderEntryInstruction, ModifyOrderEntryInstructionBuilder, OrderArenaAccount, OrderCancelledEvent, OrderCancelledEventBuilder, OrderEntryBuilder, OrderEntryRemovedEvent, OrderEntryRemovedEventBuilder, OrderEntry as OrderEntryView, OrderFilledEvent, OrderFilledEventBuilder, OrderModifiedEvent, OrderModifiedEventBuilder, OrderPostedEvent, OrderPostedEventBuilder, type ParsedClobEvent, type ParsedClobEventBase, type PlanClobOrderFundingArgs, type PrepareClobDepositArgs, type PrepareClobOrderArgs, type PrepareClobWithdrawalArgs, SeatArenaAccount, SeatAssignedEvent, SeatAssignedEventBuilder, type SeatCreateArgs, SeatCreateInstruction, SeatCreateInstructionBuilder, SeatEntryBuilder, SeatEntry as SeatEntryView, TokenBalanceEvent, TokenBalanceEventBuilder, type TokenTransferArgs, TokenTransferInstruction, TokenTransferInstructionBuilder, type WrapClobPlanWithTokenAccountInitializationArgs, aggregateClobExchangeBalances, assertClobActiveSeatIndex, buildClobExchangeDepositInstructionPlan, buildClobExchangeWithdrawalInstructionPlan, buildClobFundedOrderInstructionPlan, buildOrderBookSnapshot, calculateClobOrderFundingAmount, clobMarketPriceNumber, concatClobInstructions, createClobExchangeClient, createExchangeInitializeInstruction, createExchangeRecoverAdminInstruction, createExchangeSetAdminInstruction, createExchangeSetStatusInstruction, createMarketCreateInstruction, createMarketRecordInstruction, createMarketSetExchangeStatusInstruction, createMarketSetStatusInstruction, createModifyOrderEntryInstruction, createOrderEntryInstruction, createSeatCreateInstruction, createSeatlessOrderEntryInstruction, createTokenDepositInstruction, createTokenWithdrawInstruction, deriveClobExchangeMetaAddress, effectiveClobStatusFlags, encodeOrderFlags, formatClobMarketPrice, parseCbookAccount, parseClobEvent, parseClobMarketPrice, parseClobProgramAccount, parseExchangeMetaAccount, parseMarketAccount, parseOrderArenaAccount, parseSeatArenaAccount, planClobOrderFunding, validateClobOrderFundingPlanSeats, wrapClobPlanWithTokenAccountInitialization };
@@ -4238,6 +4238,12 @@ declare function createExchangeSetStatusInstruction(args: ExchangeSetStatusArgs)
4238
4238
  declare function createExchangeSetAdminInstruction(args: ExchangeSetAdminArgs): InstructionData;
4239
4239
  declare function createExchangeRecoverAdminInstruction(args: ExchangeRecoverAdminArgs): InstructionData;
4240
4240
  declare function createMarketRecordInstruction(args: MarketRecordArgs): InstructionData;
4241
+ /** State units a market_create transaction must request. The runtime charges
4242
+ ceil((64 + data_sz) / 4096) per new account, and market_create creates six:
4243
+ the seat arena (64320 bytes: 16), the order arena (64072 bytes: 16), the
4244
+ bids and asks cbooks (96 bytes: 1 each) and the base and quote vault token
4245
+ accounts (73 bytes: 1 each). Requesting fewer fails with SU_EXHAUSTED. */
4246
+ declare const CLOB_MARKET_CREATE_STATE_UNITS = 36;
4241
4247
  declare function createMarketCreateInstruction(args: MarketCreateArgs): InstructionData;
4242
4248
  declare function createSeatCreateInstruction(args: SeatCreateArgs): InstructionData;
4243
4249
  declare function createTokenDepositInstruction(args: TokenTransferArgs): InstructionData;
@@ -4282,4 +4288,4 @@ declare function encodeOrderFlags(args: {
4282
4288
  declare function effectiveClobStatusFlags(exchangeStatusFlags: number, market: Pick<ClobMarket, 'statusFlags' | 'exchangeStatusFlags'>): number;
4283
4289
  declare function assertClobActiveSeatIndex(value: number, label?: string): number;
4284
4290
 
4285
- export { type AccountLookupContext, ArenaHeader, ArenaHeaderBuilder, type BuildClobExchangeDepositArgs, type BuildClobExchangeWithdrawalArgs, type BuildClobFundedOrderArgs, CLOB_ARENA_HEADER_SIZE, CLOB_CBOOK_EMPTY_PRICE_IN_TICKS, CLOB_CBOOK_HEADER_SIZE, CLOB_CBOOK_LEVEL_SIZE, CLOB_CBOOK_MAX_PRICE_IN_TICKS, CLOB_CBOOK_MAX_SIZE, CLOB_CLIENT_ID_SIZE, CLOB_EVENT_EXCHANGE_ADMIN, CLOB_EVENT_EXCHANGE_INITIALIZED, CLOB_EVENT_EXCHANGE_STATUS, CLOB_EVENT_MARKET_CREATED, CLOB_EVENT_MARKET_EXCHANGE_STATUS, CLOB_EVENT_MARKET_STATUS, CLOB_EVENT_ORDER_CANCELLED, CLOB_EVENT_ORDER_ENTRY_REMOVED, CLOB_EVENT_ORDER_FILLED, CLOB_EVENT_ORDER_MODIFIED, CLOB_EVENT_ORDER_POSTED, CLOB_EVENT_REMOVE_REASON_EVICTED, CLOB_EVENT_REMOVE_REASON_EXPIRED, CLOB_EVENT_REMOVE_REASON_FILLED, CLOB_EVENT_REMOVE_REASON_USER, CLOB_EVENT_SEAT_ASSIGNED, CLOB_EVENT_SIDE_BUY, CLOB_EVENT_SIDE_SELL, CLOB_EVENT_TOKEN_DEPOSIT, CLOB_EVENT_TOKEN_SIDE_BASE, CLOB_EVENT_TOKEN_SIDE_QUOTE, CLOB_EVENT_TOKEN_WITHDRAW, CLOB_EXCHANGE_META_ACCOUNT_SIZE, CLOB_EXCHANGE_META_MAGIC, CLOB_EXCHANGE_META_SEED, CLOB_EXCHANGE_META_VERSION, CLOB_INSTRUCTION_CREATE_ORDER_ENTRY, CLOB_INSTRUCTION_CREATE_SEATLESS_ORDER_ENTRY, CLOB_INSTRUCTION_EXCHANGE_INITIALIZE, CLOB_INSTRUCTION_EXCHANGE_RECOVER_ADMIN, CLOB_INSTRUCTION_EXCHANGE_SET_ADMIN, CLOB_INSTRUCTION_EXCHANGE_SET_STATUS, CLOB_INSTRUCTION_MARKET_CREATE, CLOB_INSTRUCTION_MARKET_RECORD, CLOB_INSTRUCTION_MARKET_SET_EXCHANGE_STATUS, CLOB_INSTRUCTION_MARKET_SET_STATUS, CLOB_INSTRUCTION_MODIFY_ORDER_ENTRY, CLOB_INSTRUCTION_SEAT_CREATE, CLOB_INSTRUCTION_TOKEN_DEPOSIT, CLOB_INSTRUCTION_TOKEN_WITHDRAW, CLOB_MARKET_ACCOUNT_SIZE, CLOB_MARKET_MAGIC, CLOB_MAX_ATOMIC_FUNDING_SOURCES, CLOB_MODIFY_FLAG_FAIL_IF_OUT_OF_RANGE, CLOB_MODIFY_FLAG_HAS_CLIENT_ID, CLOB_MODIFY_FLAG_HAS_ORDER_ID, CLOB_NULL_INDEX, CLOB_ORDER_ENTRY_SIZE, CLOB_ORDER_FLAG_BUY, CLOB_ORDER_FLAG_HAS_CLIENT_ID, CLOB_ORDER_TYPE_ALO, CLOB_ORDER_TYPE_FOK, CLOB_ORDER_TYPE_GTC, CLOB_ORDER_TYPE_IOC, CLOB_ORDER_TYPE_MTL, CLOB_PROGRAM_ADDRESS, CLOB_SEATLESS_SEAT_IDX, CLOB_SEAT_ARENA_ENTRIES_OFFSET, CLOB_SEAT_ENTRY_SIZE, CLOB_SEAT_MANAGER_RESERVED_SIZE, CLOB_STATUS_FLAG_DEPOSITS_FROZEN, CLOB_STATUS_FLAG_MASK, CLOB_STATUS_FLAG_PAUSED, CLOB_STATUS_FLAG_POST_ONLY, CLOB_STATUS_FLAG_WITHDRAWALS_FROZEN, CbookAccount, CbookHeader, CbookHeaderBuilder, CbookLevel, CbookLevelBuilder, ClientId, type ClobArenaHeader, type ClobArenaSlot, type ClobAssetBalanceAllocation, type ClobBalanceEffect, type ClobCbook, type ClobCbookLevel, ClobError, ClobErrorBuilder, ClobEvent, ClobEventBuilder, type ClobExchangeAccountSnapshot, type ClobExchangeAssetBalance, type ClobExchangeAssetSnapshot, type ClobExchangeClient, ClobExchangeClientError, type ClobExchangeClientErrorCode, type ClobExchangeDataSource, ClobExchangeError, type ClobExchangeErrorCode, type ClobExchangeMeta, type ClobFundingSource, ClobInstruction, ClobInstructionBuilder, type ClobInstructionPlan, type ClobInstructionPlanReview, type ClobMarket, type ClobMarketDiscovery, type ClobMarketPriceUnits, type ClobOrderBookLevel, type ClobOrderBookOrder, type ClobOrderBookSnapshot, type ClobOrderEntry, type ClobOrderFundingPlan, type ClobOrderRemovalReason, type ClobOrderSide, type ClobOrderType, type ClobPreparedDeposit, type ClobPreparedOperation, type ClobPreparedOrder, type ClobPreparedWithdrawal, ClobProgramAccount, ClobProgramAccountBuilder, type ClobSeatEntry, type ClobTokenAccountInitialization, type ClobTokenSide, type ClobTradingMarket, type ClobTransactionPlan, type ClobUnavailableMarket, type ClobWalletTokenAccountSnapshot, type ClobWithdrawalCapacity, type CreateClobExchangeClientArgs, type CreateOrderArgs, CreateOrderEntryInstruction, CreateOrderEntryInstructionBuilder, type CreateSeatlessOrderArgs, CreateSeatlessOrderEntryInstruction, CreateSeatlessOrderEntryInstructionBuilder, ExchangeAdminEvent, ExchangeAdminEventBuilder, type ExchangeInitializeArgs, ExchangeInitializeInstruction, ExchangeInitializeInstructionBuilder, ExchangeInitializedEvent, ExchangeInitializedEventBuilder, ExchangeMetaAccount, ExchangeMetaAccountBuilder, type ExchangeRecoverAdminArgs, ExchangeRecoverAdminInstruction, ExchangeRecoverAdminInstructionBuilder, type ExchangeSetAdminArgs, ExchangeSetAdminInstruction, ExchangeSetAdminInstructionBuilder, type ExchangeSetStatusArgs, ExchangeSetStatusInstruction, ExchangeSetStatusInstructionBuilder, ExchangeStatusEvent, ExchangeStatusEventBuilder, type InstructionData, MarketAccountBuilder, MarketAccount as MarketAccountView, type MarketCreateArgs, MarketCreateInstruction, MarketCreateInstructionBuilder, MarketCreatedEvent, MarketCreatedEventBuilder, MarketExchangeStatusEvent, MarketExchangeStatusEventBuilder, type MarketRecordArgs, MarketRecordInstruction, MarketRecordInstructionBuilder, type MarketSetExchangeStatusArgs, MarketSetExchangeStatusInstruction, MarketSetExchangeStatusInstructionBuilder, type MarketSetStatusArgs, MarketSetStatusInstruction, MarketSetStatusInstructionBuilder, type ModifyOrderArgs, ModifyOrderEntryInstruction, ModifyOrderEntryInstructionBuilder, OrderArenaAccount, OrderCancelledEvent, OrderCancelledEventBuilder, OrderEntryBuilder, OrderEntryRemovedEvent, OrderEntryRemovedEventBuilder, OrderEntry as OrderEntryView, OrderFilledEvent, OrderFilledEventBuilder, OrderModifiedEvent, OrderModifiedEventBuilder, OrderPostedEvent, OrderPostedEventBuilder, type ParsedClobEvent, type ParsedClobEventBase, type PlanClobOrderFundingArgs, type PrepareClobDepositArgs, type PrepareClobOrderArgs, type PrepareClobWithdrawalArgs, SeatArenaAccount, SeatAssignedEvent, SeatAssignedEventBuilder, type SeatCreateArgs, SeatCreateInstruction, SeatCreateInstructionBuilder, SeatEntryBuilder, SeatEntry as SeatEntryView, TokenBalanceEvent, TokenBalanceEventBuilder, type TokenTransferArgs, TokenTransferInstruction, TokenTransferInstructionBuilder, type WrapClobPlanWithTokenAccountInitializationArgs, aggregateClobExchangeBalances, assertClobActiveSeatIndex, buildClobExchangeDepositInstructionPlan, buildClobExchangeWithdrawalInstructionPlan, buildClobFundedOrderInstructionPlan, buildOrderBookSnapshot, calculateClobOrderFundingAmount, clobMarketPriceNumber, concatClobInstructions, createClobExchangeClient, createExchangeInitializeInstruction, createExchangeRecoverAdminInstruction, createExchangeSetAdminInstruction, createExchangeSetStatusInstruction, createMarketCreateInstruction, createMarketRecordInstruction, createMarketSetExchangeStatusInstruction, createMarketSetStatusInstruction, createModifyOrderEntryInstruction, createOrderEntryInstruction, createSeatCreateInstruction, createSeatlessOrderEntryInstruction, createTokenDepositInstruction, createTokenWithdrawInstruction, deriveClobExchangeMetaAddress, effectiveClobStatusFlags, encodeOrderFlags, formatClobMarketPrice, parseCbookAccount, parseClobEvent, parseClobMarketPrice, parseClobProgramAccount, parseExchangeMetaAccount, parseMarketAccount, parseOrderArenaAccount, parseSeatArenaAccount, planClobOrderFunding, validateClobOrderFundingPlanSeats, wrapClobPlanWithTokenAccountInitialization };
4291
+ export { type AccountLookupContext, ArenaHeader, ArenaHeaderBuilder, type BuildClobExchangeDepositArgs, type BuildClobExchangeWithdrawalArgs, type BuildClobFundedOrderArgs, CLOB_ARENA_HEADER_SIZE, CLOB_CBOOK_EMPTY_PRICE_IN_TICKS, CLOB_CBOOK_HEADER_SIZE, CLOB_CBOOK_LEVEL_SIZE, CLOB_CBOOK_MAX_PRICE_IN_TICKS, CLOB_CBOOK_MAX_SIZE, CLOB_CLIENT_ID_SIZE, CLOB_EVENT_EXCHANGE_ADMIN, CLOB_EVENT_EXCHANGE_INITIALIZED, CLOB_EVENT_EXCHANGE_STATUS, CLOB_EVENT_MARKET_CREATED, CLOB_EVENT_MARKET_EXCHANGE_STATUS, CLOB_EVENT_MARKET_STATUS, CLOB_EVENT_ORDER_CANCELLED, CLOB_EVENT_ORDER_ENTRY_REMOVED, CLOB_EVENT_ORDER_FILLED, CLOB_EVENT_ORDER_MODIFIED, CLOB_EVENT_ORDER_POSTED, CLOB_EVENT_REMOVE_REASON_EVICTED, CLOB_EVENT_REMOVE_REASON_EXPIRED, CLOB_EVENT_REMOVE_REASON_FILLED, CLOB_EVENT_REMOVE_REASON_USER, CLOB_EVENT_SEAT_ASSIGNED, CLOB_EVENT_SIDE_BUY, CLOB_EVENT_SIDE_SELL, CLOB_EVENT_TOKEN_DEPOSIT, CLOB_EVENT_TOKEN_SIDE_BASE, CLOB_EVENT_TOKEN_SIDE_QUOTE, CLOB_EVENT_TOKEN_WITHDRAW, CLOB_EXCHANGE_META_ACCOUNT_SIZE, CLOB_EXCHANGE_META_MAGIC, CLOB_EXCHANGE_META_SEED, CLOB_EXCHANGE_META_VERSION, CLOB_INSTRUCTION_CREATE_ORDER_ENTRY, CLOB_INSTRUCTION_CREATE_SEATLESS_ORDER_ENTRY, CLOB_INSTRUCTION_EXCHANGE_INITIALIZE, CLOB_INSTRUCTION_EXCHANGE_RECOVER_ADMIN, CLOB_INSTRUCTION_EXCHANGE_SET_ADMIN, CLOB_INSTRUCTION_EXCHANGE_SET_STATUS, CLOB_INSTRUCTION_MARKET_CREATE, CLOB_INSTRUCTION_MARKET_RECORD, CLOB_INSTRUCTION_MARKET_SET_EXCHANGE_STATUS, CLOB_INSTRUCTION_MARKET_SET_STATUS, CLOB_INSTRUCTION_MODIFY_ORDER_ENTRY, CLOB_INSTRUCTION_SEAT_CREATE, CLOB_INSTRUCTION_TOKEN_DEPOSIT, CLOB_INSTRUCTION_TOKEN_WITHDRAW, CLOB_MARKET_ACCOUNT_SIZE, CLOB_MARKET_CREATE_STATE_UNITS, CLOB_MARKET_MAGIC, CLOB_MAX_ATOMIC_FUNDING_SOURCES, CLOB_MODIFY_FLAG_FAIL_IF_OUT_OF_RANGE, CLOB_MODIFY_FLAG_HAS_CLIENT_ID, CLOB_MODIFY_FLAG_HAS_ORDER_ID, CLOB_NULL_INDEX, CLOB_ORDER_ENTRY_SIZE, CLOB_ORDER_FLAG_BUY, CLOB_ORDER_FLAG_HAS_CLIENT_ID, CLOB_ORDER_TYPE_ALO, CLOB_ORDER_TYPE_FOK, CLOB_ORDER_TYPE_GTC, CLOB_ORDER_TYPE_IOC, CLOB_ORDER_TYPE_MTL, CLOB_PROGRAM_ADDRESS, CLOB_SEATLESS_SEAT_IDX, CLOB_SEAT_ARENA_ENTRIES_OFFSET, CLOB_SEAT_ENTRY_SIZE, CLOB_SEAT_MANAGER_RESERVED_SIZE, CLOB_STATUS_FLAG_DEPOSITS_FROZEN, CLOB_STATUS_FLAG_MASK, CLOB_STATUS_FLAG_PAUSED, CLOB_STATUS_FLAG_POST_ONLY, CLOB_STATUS_FLAG_WITHDRAWALS_FROZEN, CbookAccount, CbookHeader, CbookHeaderBuilder, CbookLevel, CbookLevelBuilder, ClientId, type ClobArenaHeader, type ClobArenaSlot, type ClobAssetBalanceAllocation, type ClobBalanceEffect, type ClobCbook, type ClobCbookLevel, ClobError, ClobErrorBuilder, ClobEvent, ClobEventBuilder, type ClobExchangeAccountSnapshot, type ClobExchangeAssetBalance, type ClobExchangeAssetSnapshot, type ClobExchangeClient, ClobExchangeClientError, type ClobExchangeClientErrorCode, type ClobExchangeDataSource, ClobExchangeError, type ClobExchangeErrorCode, type ClobExchangeMeta, type ClobFundingSource, ClobInstruction, ClobInstructionBuilder, type ClobInstructionPlan, type ClobInstructionPlanReview, type ClobMarket, type ClobMarketDiscovery, type ClobMarketPriceUnits, type ClobOrderBookLevel, type ClobOrderBookOrder, type ClobOrderBookSnapshot, type ClobOrderEntry, type ClobOrderFundingPlan, type ClobOrderRemovalReason, type ClobOrderSide, type ClobOrderType, type ClobPreparedDeposit, type ClobPreparedOperation, type ClobPreparedOrder, type ClobPreparedWithdrawal, ClobProgramAccount, ClobProgramAccountBuilder, type ClobSeatEntry, type ClobTokenAccountInitialization, type ClobTokenSide, type ClobTradingMarket, type ClobTransactionPlan, type ClobUnavailableMarket, type ClobWalletTokenAccountSnapshot, type ClobWithdrawalCapacity, type CreateClobExchangeClientArgs, type CreateOrderArgs, CreateOrderEntryInstruction, CreateOrderEntryInstructionBuilder, type CreateSeatlessOrderArgs, CreateSeatlessOrderEntryInstruction, CreateSeatlessOrderEntryInstructionBuilder, ExchangeAdminEvent, ExchangeAdminEventBuilder, type ExchangeInitializeArgs, ExchangeInitializeInstruction, ExchangeInitializeInstructionBuilder, ExchangeInitializedEvent, ExchangeInitializedEventBuilder, ExchangeMetaAccount, ExchangeMetaAccountBuilder, type ExchangeRecoverAdminArgs, ExchangeRecoverAdminInstruction, ExchangeRecoverAdminInstructionBuilder, type ExchangeSetAdminArgs, ExchangeSetAdminInstruction, ExchangeSetAdminInstructionBuilder, type ExchangeSetStatusArgs, ExchangeSetStatusInstruction, ExchangeSetStatusInstructionBuilder, ExchangeStatusEvent, ExchangeStatusEventBuilder, type InstructionData, MarketAccountBuilder, MarketAccount as MarketAccountView, type MarketCreateArgs, MarketCreateInstruction, MarketCreateInstructionBuilder, MarketCreatedEvent, MarketCreatedEventBuilder, MarketExchangeStatusEvent, MarketExchangeStatusEventBuilder, type MarketRecordArgs, MarketRecordInstruction, MarketRecordInstructionBuilder, type MarketSetExchangeStatusArgs, MarketSetExchangeStatusInstruction, MarketSetExchangeStatusInstructionBuilder, type MarketSetStatusArgs, MarketSetStatusInstruction, MarketSetStatusInstructionBuilder, type ModifyOrderArgs, ModifyOrderEntryInstruction, ModifyOrderEntryInstructionBuilder, OrderArenaAccount, OrderCancelledEvent, OrderCancelledEventBuilder, OrderEntryBuilder, OrderEntryRemovedEvent, OrderEntryRemovedEventBuilder, OrderEntry as OrderEntryView, OrderFilledEvent, OrderFilledEventBuilder, OrderModifiedEvent, OrderModifiedEventBuilder, OrderPostedEvent, OrderPostedEventBuilder, type ParsedClobEvent, type ParsedClobEventBase, type PlanClobOrderFundingArgs, type PrepareClobDepositArgs, type PrepareClobOrderArgs, type PrepareClobWithdrawalArgs, SeatArenaAccount, SeatAssignedEvent, SeatAssignedEventBuilder, type SeatCreateArgs, SeatCreateInstruction, SeatCreateInstructionBuilder, SeatEntryBuilder, SeatEntry as SeatEntryView, TokenBalanceEvent, TokenBalanceEventBuilder, type TokenTransferArgs, TokenTransferInstruction, TokenTransferInstructionBuilder, type WrapClobPlanWithTokenAccountInitializationArgs, aggregateClobExchangeBalances, assertClobActiveSeatIndex, buildClobExchangeDepositInstructionPlan, buildClobExchangeWithdrawalInstructionPlan, buildClobFundedOrderInstructionPlan, buildOrderBookSnapshot, calculateClobOrderFundingAmount, clobMarketPriceNumber, concatClobInstructions, createClobExchangeClient, createExchangeInitializeInstruction, createExchangeRecoverAdminInstruction, createExchangeSetAdminInstruction, createExchangeSetStatusInstruction, createMarketCreateInstruction, createMarketRecordInstruction, createMarketSetExchangeStatusInstruction, createMarketSetStatusInstruction, createModifyOrderEntryInstruction, createOrderEntryInstruction, createSeatCreateInstruction, createSeatlessOrderEntryInstruction, createTokenDepositInstruction, createTokenWithdrawInstruction, deriveClobExchangeMetaAddress, effectiveClobStatusFlags, encodeOrderFlags, formatClobMarketPrice, parseCbookAccount, parseClobEvent, parseClobMarketPrice, parseClobProgramAccount, parseExchangeMetaAccount, parseMarketAccount, parseOrderArenaAccount, parseSeatArenaAccount, planClobOrderFunding, validateClobOrderFundingPlanSeats, wrapClobPlanWithTokenAccountInitialization };
@@ -2,7 +2,7 @@ import { fixedSeed, CLIENT_ID_SIZE, EVENT_REMOVE_REASON_EVICTED, EVENT_REMOVE_RE
2
2
  import { parseTokenAccountData, isAccountNotFoundError, parseMintAccountData, createInitializeAccountInstruction } from '../chunk-AI35IIYP.js';
3
3
  import { deriveTokenAccountAddress } from '../chunk-4F54VFIH.js';
4
4
  import { MULTICALL_PROGRAM_ADDRESS, buildMulticallInstruction } from '../chunk-JBEDPYDG.js';
5
- import { BOOTSTRAP_PROGRAM_ADDRESSES } from '../chunk-TRPUGPZJ.js';
5
+ import { BOOTSTRAP_PROGRAM_ADDRESSES } from '../chunk-2FFCNXCE.js';
6
6
  import '../chunk-EEKZPJBK.js';
7
7
  import { helpers_exports } from '../chunk-OWHG7YCW.js';
8
8
  import '../chunk-424PT5DM.js';
@@ -15598,6 +15598,7 @@ function createMarketRecordInstruction(args) {
15598
15598
  return buildClobInstruction("market_record", payload);
15599
15599
  };
15600
15600
  }
15601
+ var CLOB_MARKET_CREATE_STATE_UNITS = 36;
15601
15602
  function createMarketCreateInstruction(args) {
15602
15603
  return async (context) => {
15603
15604
  assertU64(args.lotSize, "lotSize");
@@ -16093,6 +16094,6 @@ function tokenSideFromValue(value) {
16093
16094
  throw new Error(`unknown CLOB token side: ${value}`);
16094
16095
  }
16095
16096
 
16096
- export { ArenaHeader, ArenaHeaderBuilder, CLOB_ARENA_HEADER_SIZE, CLOB_CBOOK_EMPTY_PRICE_IN_TICKS, CLOB_CBOOK_HEADER_SIZE, CLOB_CBOOK_LEVEL_SIZE, CLOB_CBOOK_MAX_PRICE_IN_TICKS, CLOB_CBOOK_MAX_SIZE, CLOB_CLIENT_ID_SIZE, CLOB_EVENT_EXCHANGE_ADMIN, CLOB_EVENT_EXCHANGE_INITIALIZED, CLOB_EVENT_EXCHANGE_STATUS, CLOB_EVENT_MARKET_CREATED, CLOB_EVENT_MARKET_EXCHANGE_STATUS, CLOB_EVENT_MARKET_STATUS, CLOB_EVENT_ORDER_CANCELLED, CLOB_EVENT_ORDER_ENTRY_REMOVED, CLOB_EVENT_ORDER_FILLED, CLOB_EVENT_ORDER_MODIFIED, CLOB_EVENT_ORDER_POSTED, CLOB_EVENT_REMOVE_REASON_EVICTED, CLOB_EVENT_REMOVE_REASON_EXPIRED, CLOB_EVENT_REMOVE_REASON_FILLED, CLOB_EVENT_REMOVE_REASON_USER, CLOB_EVENT_SEAT_ASSIGNED, CLOB_EVENT_SIDE_BUY, CLOB_EVENT_SIDE_SELL, CLOB_EVENT_TOKEN_DEPOSIT, CLOB_EVENT_TOKEN_SIDE_BASE, CLOB_EVENT_TOKEN_SIDE_QUOTE, CLOB_EVENT_TOKEN_WITHDRAW, CLOB_EXCHANGE_META_ACCOUNT_SIZE, CLOB_EXCHANGE_META_MAGIC, CLOB_EXCHANGE_META_SEED, CLOB_EXCHANGE_META_VERSION, CLOB_INSTRUCTION_CREATE_ORDER_ENTRY, CLOB_INSTRUCTION_CREATE_SEATLESS_ORDER_ENTRY, CLOB_INSTRUCTION_EXCHANGE_INITIALIZE, CLOB_INSTRUCTION_EXCHANGE_RECOVER_ADMIN, CLOB_INSTRUCTION_EXCHANGE_SET_ADMIN, CLOB_INSTRUCTION_EXCHANGE_SET_STATUS, CLOB_INSTRUCTION_MARKET_CREATE, CLOB_INSTRUCTION_MARKET_RECORD, CLOB_INSTRUCTION_MARKET_SET_EXCHANGE_STATUS, CLOB_INSTRUCTION_MARKET_SET_STATUS, CLOB_INSTRUCTION_MODIFY_ORDER_ENTRY, CLOB_INSTRUCTION_SEAT_CREATE, CLOB_INSTRUCTION_TOKEN_DEPOSIT, CLOB_INSTRUCTION_TOKEN_WITHDRAW, CLOB_MARKET_ACCOUNT_SIZE, CLOB_MARKET_MAGIC, CLOB_MAX_ATOMIC_FUNDING_SOURCES, CLOB_MODIFY_FLAG_FAIL_IF_OUT_OF_RANGE, CLOB_MODIFY_FLAG_HAS_CLIENT_ID, CLOB_MODIFY_FLAG_HAS_ORDER_ID, CLOB_NULL_INDEX, CLOB_ORDER_ENTRY_SIZE, CLOB_ORDER_FLAG_BUY, CLOB_ORDER_FLAG_HAS_CLIENT_ID, CLOB_ORDER_TYPE_ALO, CLOB_ORDER_TYPE_FOK, CLOB_ORDER_TYPE_GTC, CLOB_ORDER_TYPE_IOC, CLOB_ORDER_TYPE_MTL, CLOB_PROGRAM_ADDRESS, CLOB_SEATLESS_SEAT_IDX, CLOB_SEAT_ARENA_ENTRIES_OFFSET, CLOB_SEAT_ENTRY_SIZE, CLOB_SEAT_MANAGER_RESERVED_SIZE, CLOB_STATUS_FLAG_DEPOSITS_FROZEN, CLOB_STATUS_FLAG_MASK, CLOB_STATUS_FLAG_PAUSED, CLOB_STATUS_FLAG_POST_ONLY, CLOB_STATUS_FLAG_WITHDRAWALS_FROZEN, CbookAccount, CbookHeader, CbookHeaderBuilder, CbookLevel, CbookLevelBuilder, ClientId, ClobError, ClobErrorBuilder, ClobEvent, ClobEventBuilder, ClobExchangeClientError, ClobExchangeError, ClobInstruction, ClobInstructionBuilder, ClobProgramAccount, ClobProgramAccountBuilder, CreateOrderEntryInstruction, CreateOrderEntryInstructionBuilder, CreateSeatlessOrderEntryInstruction, CreateSeatlessOrderEntryInstructionBuilder, ExchangeAdminEvent, ExchangeAdminEventBuilder, ExchangeInitializeInstruction, ExchangeInitializeInstructionBuilder, ExchangeInitializedEvent, ExchangeInitializedEventBuilder, ExchangeMetaAccount, ExchangeMetaAccountBuilder, ExchangeRecoverAdminInstruction, ExchangeRecoverAdminInstructionBuilder, ExchangeSetAdminInstruction, ExchangeSetAdminInstructionBuilder, ExchangeSetStatusInstruction, ExchangeSetStatusInstructionBuilder, ExchangeStatusEvent, ExchangeStatusEventBuilder, MarketAccountBuilder, MarketAccount as MarketAccountView, MarketCreateInstruction, MarketCreateInstructionBuilder, MarketCreatedEvent, MarketCreatedEventBuilder, MarketExchangeStatusEvent, MarketExchangeStatusEventBuilder, MarketRecordInstruction, MarketRecordInstructionBuilder, MarketSetExchangeStatusInstruction, MarketSetExchangeStatusInstructionBuilder, MarketSetStatusInstruction, MarketSetStatusInstructionBuilder, ModifyOrderEntryInstruction, ModifyOrderEntryInstructionBuilder, OrderArenaAccount, OrderCancelledEvent, OrderCancelledEventBuilder, OrderEntryBuilder, OrderEntryRemovedEvent, OrderEntryRemovedEventBuilder, OrderEntry as OrderEntryView, OrderFilledEvent, OrderFilledEventBuilder, OrderModifiedEvent, OrderModifiedEventBuilder, OrderPostedEvent, OrderPostedEventBuilder, SeatArenaAccount, SeatAssignedEvent, SeatAssignedEventBuilder, SeatCreateInstruction, SeatCreateInstructionBuilder, SeatEntryBuilder, SeatEntry as SeatEntryView, TokenBalanceEvent, TokenBalanceEventBuilder, TokenTransferInstruction, TokenTransferInstructionBuilder, aggregateClobExchangeBalances, assertClobActiveSeatIndex, buildClobExchangeDepositInstructionPlan, buildClobExchangeWithdrawalInstructionPlan, buildClobFundedOrderInstructionPlan, buildOrderBookSnapshot, calculateClobOrderFundingAmount, clobMarketPriceNumber, concatClobInstructions, createClobExchangeClient, createExchangeInitializeInstruction, createExchangeRecoverAdminInstruction, createExchangeSetAdminInstruction, createExchangeSetStatusInstruction, createMarketCreateInstruction, createMarketRecordInstruction, createMarketSetExchangeStatusInstruction, createMarketSetStatusInstruction, createModifyOrderEntryInstruction, createOrderEntryInstruction, createSeatCreateInstruction, createSeatlessOrderEntryInstruction, createTokenDepositInstruction, createTokenWithdrawInstruction, deriveClobExchangeMetaAddress, effectiveClobStatusFlags, encodeOrderFlags, formatClobMarketPrice, parseCbookAccount, parseClobEvent, parseClobMarketPrice, parseClobProgramAccount, parseExchangeMetaAccount, parseMarketAccount, parseOrderArenaAccount, parseSeatArenaAccount, planClobOrderFunding, validateClobOrderFundingPlanSeats, wrapClobPlanWithTokenAccountInitialization };
16097
+ export { ArenaHeader, ArenaHeaderBuilder, CLOB_ARENA_HEADER_SIZE, CLOB_CBOOK_EMPTY_PRICE_IN_TICKS, CLOB_CBOOK_HEADER_SIZE, CLOB_CBOOK_LEVEL_SIZE, CLOB_CBOOK_MAX_PRICE_IN_TICKS, CLOB_CBOOK_MAX_SIZE, CLOB_CLIENT_ID_SIZE, CLOB_EVENT_EXCHANGE_ADMIN, CLOB_EVENT_EXCHANGE_INITIALIZED, CLOB_EVENT_EXCHANGE_STATUS, CLOB_EVENT_MARKET_CREATED, CLOB_EVENT_MARKET_EXCHANGE_STATUS, CLOB_EVENT_MARKET_STATUS, CLOB_EVENT_ORDER_CANCELLED, CLOB_EVENT_ORDER_ENTRY_REMOVED, CLOB_EVENT_ORDER_FILLED, CLOB_EVENT_ORDER_MODIFIED, CLOB_EVENT_ORDER_POSTED, CLOB_EVENT_REMOVE_REASON_EVICTED, CLOB_EVENT_REMOVE_REASON_EXPIRED, CLOB_EVENT_REMOVE_REASON_FILLED, CLOB_EVENT_REMOVE_REASON_USER, CLOB_EVENT_SEAT_ASSIGNED, CLOB_EVENT_SIDE_BUY, CLOB_EVENT_SIDE_SELL, CLOB_EVENT_TOKEN_DEPOSIT, CLOB_EVENT_TOKEN_SIDE_BASE, CLOB_EVENT_TOKEN_SIDE_QUOTE, CLOB_EVENT_TOKEN_WITHDRAW, CLOB_EXCHANGE_META_ACCOUNT_SIZE, CLOB_EXCHANGE_META_MAGIC, CLOB_EXCHANGE_META_SEED, CLOB_EXCHANGE_META_VERSION, CLOB_INSTRUCTION_CREATE_ORDER_ENTRY, CLOB_INSTRUCTION_CREATE_SEATLESS_ORDER_ENTRY, CLOB_INSTRUCTION_EXCHANGE_INITIALIZE, CLOB_INSTRUCTION_EXCHANGE_RECOVER_ADMIN, CLOB_INSTRUCTION_EXCHANGE_SET_ADMIN, CLOB_INSTRUCTION_EXCHANGE_SET_STATUS, CLOB_INSTRUCTION_MARKET_CREATE, CLOB_INSTRUCTION_MARKET_RECORD, CLOB_INSTRUCTION_MARKET_SET_EXCHANGE_STATUS, CLOB_INSTRUCTION_MARKET_SET_STATUS, CLOB_INSTRUCTION_MODIFY_ORDER_ENTRY, CLOB_INSTRUCTION_SEAT_CREATE, CLOB_INSTRUCTION_TOKEN_DEPOSIT, CLOB_INSTRUCTION_TOKEN_WITHDRAW, CLOB_MARKET_ACCOUNT_SIZE, CLOB_MARKET_CREATE_STATE_UNITS, CLOB_MARKET_MAGIC, CLOB_MAX_ATOMIC_FUNDING_SOURCES, CLOB_MODIFY_FLAG_FAIL_IF_OUT_OF_RANGE, CLOB_MODIFY_FLAG_HAS_CLIENT_ID, CLOB_MODIFY_FLAG_HAS_ORDER_ID, CLOB_NULL_INDEX, CLOB_ORDER_ENTRY_SIZE, CLOB_ORDER_FLAG_BUY, CLOB_ORDER_FLAG_HAS_CLIENT_ID, CLOB_ORDER_TYPE_ALO, CLOB_ORDER_TYPE_FOK, CLOB_ORDER_TYPE_GTC, CLOB_ORDER_TYPE_IOC, CLOB_ORDER_TYPE_MTL, CLOB_PROGRAM_ADDRESS, CLOB_SEATLESS_SEAT_IDX, CLOB_SEAT_ARENA_ENTRIES_OFFSET, CLOB_SEAT_ENTRY_SIZE, CLOB_SEAT_MANAGER_RESERVED_SIZE, CLOB_STATUS_FLAG_DEPOSITS_FROZEN, CLOB_STATUS_FLAG_MASK, CLOB_STATUS_FLAG_PAUSED, CLOB_STATUS_FLAG_POST_ONLY, CLOB_STATUS_FLAG_WITHDRAWALS_FROZEN, CbookAccount, CbookHeader, CbookHeaderBuilder, CbookLevel, CbookLevelBuilder, ClientId, ClobError, ClobErrorBuilder, ClobEvent, ClobEventBuilder, ClobExchangeClientError, ClobExchangeError, ClobInstruction, ClobInstructionBuilder, ClobProgramAccount, ClobProgramAccountBuilder, CreateOrderEntryInstruction, CreateOrderEntryInstructionBuilder, CreateSeatlessOrderEntryInstruction, CreateSeatlessOrderEntryInstructionBuilder, ExchangeAdminEvent, ExchangeAdminEventBuilder, ExchangeInitializeInstruction, ExchangeInitializeInstructionBuilder, ExchangeInitializedEvent, ExchangeInitializedEventBuilder, ExchangeMetaAccount, ExchangeMetaAccountBuilder, ExchangeRecoverAdminInstruction, ExchangeRecoverAdminInstructionBuilder, ExchangeSetAdminInstruction, ExchangeSetAdminInstructionBuilder, ExchangeSetStatusInstruction, ExchangeSetStatusInstructionBuilder, ExchangeStatusEvent, ExchangeStatusEventBuilder, MarketAccountBuilder, MarketAccount as MarketAccountView, MarketCreateInstruction, MarketCreateInstructionBuilder, MarketCreatedEvent, MarketCreatedEventBuilder, MarketExchangeStatusEvent, MarketExchangeStatusEventBuilder, MarketRecordInstruction, MarketRecordInstructionBuilder, MarketSetExchangeStatusInstruction, MarketSetExchangeStatusInstructionBuilder, MarketSetStatusInstruction, MarketSetStatusInstructionBuilder, ModifyOrderEntryInstruction, ModifyOrderEntryInstructionBuilder, OrderArenaAccount, OrderCancelledEvent, OrderCancelledEventBuilder, OrderEntryBuilder, OrderEntryRemovedEvent, OrderEntryRemovedEventBuilder, OrderEntry as OrderEntryView, OrderFilledEvent, OrderFilledEventBuilder, OrderModifiedEvent, OrderModifiedEventBuilder, OrderPostedEvent, OrderPostedEventBuilder, SeatArenaAccount, SeatAssignedEvent, SeatAssignedEventBuilder, SeatCreateInstruction, SeatCreateInstructionBuilder, SeatEntryBuilder, SeatEntry as SeatEntryView, TokenBalanceEvent, TokenBalanceEventBuilder, TokenTransferInstruction, TokenTransferInstructionBuilder, aggregateClobExchangeBalances, assertClobActiveSeatIndex, buildClobExchangeDepositInstructionPlan, buildClobExchangeWithdrawalInstructionPlan, buildClobFundedOrderInstructionPlan, buildOrderBookSnapshot, calculateClobOrderFundingAmount, clobMarketPriceNumber, concatClobInstructions, createClobExchangeClient, createExchangeInitializeInstruction, createExchangeRecoverAdminInstruction, createExchangeSetAdminInstruction, createExchangeSetStatusInstruction, createMarketCreateInstruction, createMarketRecordInstruction, createMarketSetExchangeStatusInstruction, createMarketSetStatusInstruction, createModifyOrderEntryInstruction, createOrderEntryInstruction, createSeatCreateInstruction, createSeatlessOrderEntryInstruction, createTokenDepositInstruction, createTokenWithdrawInstruction, deriveClobExchangeMetaAddress, effectiveClobStatusFlags, encodeOrderFlags, formatClobMarketPrice, parseCbookAccount, parseClobEvent, parseClobMarketPrice, parseClobProgramAccount, parseExchangeMetaAccount, parseMarketAccount, parseOrderArenaAccount, parseSeatArenaAccount, planClobOrderFunding, validateClobOrderFundingPlanSeats, wrapClobPlanWithTokenAccountInitialization };
16097
16098
  //# sourceMappingURL=index.js.map
16098
16099
  //# sourceMappingURL=index.js.map