{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: RedeemAuthorization

Defined in: trade.ts:596

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:598

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


operatorId

operatorId: number

Defined in: trade.ts:600

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


venueId

venueId: `0x${string}`

Defined in: trade.ts:602

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


marketId

marketId: `0x${string}`

Defined in: trade.ts:604

bytes32 marketId the redemption targets.


outcomeIdx

outcomeIdx: 0 | 1

Defined in: trade.ts:606

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


amount

amount: bigint

Defined in: trade.ts:608

Outcome-token amount to burn for collateral.


nonce

nonce: bigint

Defined in: trade.ts:610

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


deadline

deadline: bigint

Defined in: trade.ts:612

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


signature

signature: `0x${string}`

Defined in: trade.ts:614

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