{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: Permit2TransferFrom

Defined in: trade.ts:792

A canonical Permit2 PermitTransferFrom — the signed authorization the Permit2 mint path forwards to the router (which relays it to Permit2). Build it (and the EIP-712 signature) with a Permit2 SDK on the app side.

Properties

permitted

permitted: object

Defined in: trade.ts:794

Token + amount the signature authorizes. token must equal the market collateral.

token

token: `0x${string}`

The ERC-20 the signature authorizes — must equal the market's collateral token.

amount

amount: bigint

Max amount the signature authorizes, raw collateral units.


nonce

nonce: bigint

Defined in: trade.ts:801

Unordered Permit2 nonce.


deadline

deadline: bigint

Defined in: trade.ts:803

Signature deadline (unix seconds).