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).
Parameters
Section titled “Parameters”extension
Section titled “extension”Uint8Array
expected
Section titled “expected”dstChainId?
Section titled “dstChainId?”number
EVM destination (EIP-155 id): ExtraDataArgs carry it and the destination
ERC-20 (outputTokenAddress, traderDstAddress are EVM then). Absent = TON.
dstSecurityDepositUnits
Section titled “dstSecurityDepositUnits”string
initialResolverAddress
Section titled “initialResolverAddress”string
integratorFeePips
Section titled “integratorFeePips”number
outputTokenAddress
Section titled “outputTokenAddress”string
protocolFeePips
Section titled “protocolFeePips”number
quoteId
Section titled “quoteId”string
quoteTimestamp
Section titled “quoteTimestamp”number
secretHash
Section titled “secretHash”Uint8Array
srcSecurityDepositUnits
Section titled “srcSecurityDepositUnits”string
takerAsset
Section titled “takerAsset”string
traderDstAddress
Section titled “traderDstAddress”string
tradeStartDeadline
Section titled “tradeStartDeadline”number
trustedTarget
Section titled “trustedTarget”(address) => boolean
Returns
Section titled “Returns”Promise<void>