@somnia-chain/markets-sdk / index / AmendOrdersResult
Interface: AmendOrdersResult
Defined in: packages/sdk/src/trade.ts:604
Result of a batch amend — the ids of the replacement orders.
Extends
Properties
hash
hash:
`0x${string}`
Defined in: packages/sdk/src/trade.ts:76
The transaction hash.
Inherited from
receipt
receipt:
TransactionReceipt
Defined in: packages/sdk/src/trade.ts:78
The mined receipt (status, gas used, logs).
Inherited from
newOrderIds
newOrderIds:
bigint[]
Defined in: packages/sdk/src/trade.ts:617
New order ids, index-aligned with the submitted amendments. Reconstructed
from OrderPlaced logs, since the pool's uint128[] return is not readable
from a receipt.
0n means the id could not be reconstructed — the receipt carried fewer
OrderPlaced events than there were amendments. It does not mean the
replacement failed to rest: OrderPlaced fires for every accepted order,
including one that fills completely and never reaches the book (OrderRested
is the rest-only event). Amend is all-or-nothing, so in a successful tx every
slot is populated.
fills
fills:
OrderFill[]
Defined in: packages/sdk/src/trade.ts:619
Fills executed by the replacement orders.