@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / orderBookEventsAbi

Variable: orderBookEventsAbi

const orderBookEventsAbi: readonly [{ type: "event"; name: "OrderPlaced"; inputs: readonly [{ name: "orderId"; type: "uint128"; indexed: true; }, { name: "placedOrder"; type: "tuple"; indexed: false; components: readonly [{ name: "orderId"; type: "uint128"; }, { name: "isBid"; type: "bool"; }, { name: "owner"; type: "address"; }, { name: "userData"; type: "uint64"; }, { name: "price"; type: "uint256"; }, { name: "fullQuantity"; type: "uint256"; }, { name: "quantityRemaining"; type: "uint256"; }, { name: "expireTimestampNs"; type: "uint64"; }]; }]; anonymous: false; }, { type: "event"; name: "OrderRested"; inputs: readonly [{ name: "orderId"; type: "uint128"; indexed: true; }]; anonymous: false; }, { type: "event"; name: "OrderCancelled"; inputs: readonly [{ name: "orderId"; type: "uint128"; indexed: true; }]; anonymous: false; }, { type: "event"; name: "OrderExpired"; inputs: readonly [{ name: "orderId"; type: "uint128"; indexed: true; }]; anonymous: false; }, { type: "event"; name: "OrderReduced"; inputs: readonly [{ name: "orderId"; type: "uint128"; indexed: true; }, { name: "newQuantity"; type: "uint256"; indexed: false; }]; anonymous: false; }, { type: "event"; name: "OrderFilled"; inputs: readonly [{ name: "takerOrderId"; type: "uint128"; indexed: true; }, { name: "makerOrderId"; type: "uint128"; indexed: true; }, { name: "quantityFilled"; type: "uint256"; indexed: false; }, { name: "takerRemainingQuantity"; type: "uint256"; indexed: false; }, { name: "makerRemainingQuantity"; type: "uint256"; indexed: false; }, { name: "fillPrice"; type: "uint256"; indexed: false; }]; anonymous: false; }, { type: "event"; name: "OrderCancelledSelfMatch"; inputs: readonly [{ name: "orderId"; type: "uint128"; indexed: true; }]; anonymous: false; }, { type: "event"; name: "MakerOrderCancelledExceedsPosition"; inputs: readonly [{ name: "orderId"; type: "uint128"; indexed: true; }]; anonymous: false; }]

Defined in: packages/sdk/src/eventsAbi.ts:18

Order lifecycle events shared by SpotPool + BinaryPool (the OrderBook base).