Skip to content
docs

validateEvmToTonOrderExtension

validateEvmToTonOrderExtension(extension, expected): Promise<void>

Defined in: protocol-swap2-omniston/src/provider.ts:931

Strict decoder for the currently observed Omniston v1beta8 EVM→TON 1inch extension profile. It deliberately rejects unknown auction/fee/timelock profiles: signing a merely well-formed extension is not enough because the resolver-controlled tail contains the actual on-chain HTLC terms.

This binds what the wallet signs to the quote; it does not by itself make the swap complete. Secret disclosure additionally needs the independently finalized EVM source-fill and TON output-position proofs (trackIntent). dstSecurityDepositUnits is the value the EVM deposits word carries — for a TON destination that word is 0 (the TON deposit is bound in the TON position).

Uint8Array

number

EVM destination (EIP-155 id): ExtraDataArgs carry it and the destination ERC-20 (outputTokenAddress, traderDstAddress are EVM then). Absent = TON.

string

string

number

string

number

string

number

Uint8Array

string

string

string

number

(address) => boolean

Promise<void>