{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: RedeemAuthorization

Defined in: trade.ts:426

A signed authorization the position OWNER produces so a relayer can call Trader.redeemFor on their behalf. The on-chain payout is hard-pinned to owner (never the relayer), so this is a pure gas sponsorship — the signer keeps every cent of the proceeds. Produced by Trader.signRedeemAuth, consumed by Trader.redeemFor.

Properties

owner

owner: `0x${string}`

Defined in: trade.ts:428

The position owner (the signer). The payout is paid here on-chain.


operatorId

operatorId: number

Defined in: trade.ts:430

Routing operator id (uint32) for attribution; part of the signed struct.


venueId

venueId: `0x${string}`

Defined in: trade.ts:432

Routing venue id (bytes32 hex); part of the signed struct.


marketId

marketId: `0x${string}`

Defined in: trade.ts:434

bytes32 marketId the redemption targets.


outcomeIdx

outcomeIdx: 0 | 1

Defined in: trade.ts:436

Outcome the owner holds (0 = YES, 1 = NO).


amount

amount: bigint

Defined in: trade.ts:438

Outcome-token amount to burn for collateral.


nonce

nonce: bigint

Defined in: trade.ts:440

Per-owner replay nonce (module tracks (owner, nonce)); any unused value.


deadline

deadline: bigint

Defined in: trade.ts:442

Signature deadline (unix seconds). The module rejects a stale authorization.


signature

signature: `0x${string}`

Defined in: trade.ts:444

The EIP-712 signature over the authorization (65-byte r‖s‖v hex).