@somnia-chain/markets-sdk


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

Interface: AmendOrderResult

Defined in: packages/sdk/src/trade.ts:854

Result of a single amend — the id of the replacement order.

Extends

Properties

hash

hash: `0x${string}`

Defined in: packages/sdk/src/trade.ts:82

The transaction hash.

Inherited from

TxResult.hash


receipt

receipt: TransactionReceipt

Defined in: packages/sdk/src/trade.ts:84

The mined receipt (status, gas used, logs).

Inherited from

TxResult.receipt


newOrderId

newOrderId: bigint

Defined in: packages/sdk/src/trade.ts:865

The replacement's NEW order id — update local tracking, the old id is gone. Reconstructed from the OrderPlaced log, since the pool's uint128 return is not readable from a receipt.

0n means the id could not be reconstructed (no OrderPlaced in the receipt). It does NOT mean the replacement failed: a single amend reverts outright when its replacement does not rest or fill, so a successful tx always carries one.


fills

fills: OrderFill[]

Defined in: packages/sdk/src/trade.ts:867

Fills executed by the replacement order.