@somnia-chain/markets-sdk / index / decodeAmendOrders
Function: decodeAmendOrders()
decodeAmendOrders(
receipt,pool,amendmentCount):DecodedBatchAmendment
Defined in: packages/sdk/src/decode/orders.ts:199
Decode a batch amendment from its receipt. amendOrders is all-or-nothing,
so every amendment either placed a replacement or the whole tx reverted —
which means the n-th OrderPlaced is the n-th amendment's replacement, with
no rejection gaps to skip.
- Throws InvalidInputError -
amendmentCountis negative, fractional, or not a safe integer (the result is allocated to that length). The complete union is DecodeAmendOrdersError.
Parameters
receipt
TransactionReceipt
pool
`0x${string}`
amendmentCount
number