@somnia-chain/markets-sdk


@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.

Parameters

receipt

TransactionReceipt

pool

`0x${string}`

amendmentCount

number

Returns

DecodedBatchAmendment