@anywalletkit/protocol-swap2-omniston 0.5.5 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -38,6 +38,9 @@ Every route is fail-closed until its allowlists and validators are configured:
38
38
  (default `"enforce"`) — an explicit rollout opt-in.
39
39
  Behind `remoteProvider`, the app checks the built body itself:
40
40
  `remoteProvider({name: "omniston", baseUrl, verifyBuild: omnistonVerifyBuild({...createOmnistonTonValidators()})})`.
41
+ A body this check refuses reaches the app with its refusal reason (`vault_mismatch`, `price_check_failed`,
42
+ `recipient_mismatch`…) when the stub also gets `reasonOf: omnistonPins(AUDITED_OMNISTON_EVM_ORDER_PROTOCOLS).reasonOf`
43
+ (the whole pins carry it too); without it the refusal is unclassified.
41
44
  A TON → TON swap body is opened with `checkTonSwapPayload` against the app's own request (receiver,
42
45
  refund, on-chain minimum, input; the quote carries `routeSteps`) and the DEX it pays is confirmed with
43
46
  the app's validators — `validateTonSwapTarget` and `validateTonSwapLeg`; without the leg check a TON swap body