Skip to content
docs

omnistonVerifyBuild

omnistonVerifyBuild(hooks): (quote, tx, params?) => Promise<string | null>

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

The app’s check of a remote Omniston TON build, for remoteProvider({name: "omniston", baseUrl, verifyBuild: omnistonVerifyBuild({...createOmnistonTonValidators()})}) (scan 2026-10-27 modules, F7/F13/F18/F19):

  • a TON → TON swap body is opened with checkTonSwapPayload against the app’s own request — receiver, refund / excess to the trader, the on-chain minimum, the input — and the DEX it pays is confirmed with the app’s validators (validateTonSwapTarget, validateTonSwapLeg);
  • a TON → EVM escrow body (an Omniston order from TON) goes to verifyTonEscrowBuild with what the app knows: the input, the trader’s TON address, the destination chain, address and token, and the quote’s minimum delivery.
  • an EVM typed order (EVM → TON, EVM → EVM) is opened with the order extension the build carries: price, receiver, traits, salt and the escrow terms are checked against the app’s request and the audited contracts (trustedEvmOrderProtocols, trustedSettlementContracts; default the audited tables), scan 2026-10-28 F6. The reason it fails, or null.

string | null

The integrator your backend’s Omniston provider uses: the only referral a body may name.

Readonly<Record<string, readonly string[]>>

EVM order protocols an EVM typed order may name, per chain. Default AUDITED_OMNISTON_EVM_ORDER_PROTOCOLS.

Readonly<Record<string, readonly string[]>>

Escrow factories an EVM order’s extension may target, per chain. Default AUDITED_OMNISTON_SETTLEMENT_CONTRACTS.

(leg) => boolean | Promise<boolean>

The DEX pays out the quoted token (createOmnistonTonValidators().validateTonSwapLeg). Without it a TON swap body is refused.

(input) => boolean | Promise<boolean>

(input) => string | Promise<string | null> | null

The app’s check of a TON → EVM escrow body (createOmnistonTonValidators().verifyTonEscrowBuild). Without it a TON → EVM build is refused.

(quote, tx, params?) => Promise<string | null>