@anywalletkit/protocol-swap2-omniston 0.3.1 → 0.5.0

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.
@@ -1,2 +1,2 @@
1
- export { A as AssetId, C as ChainAddress, E as EscrowMessage, H as HtlcSecretStore, O as ObservableLike, a as OmnistonClientLike, b as OmnistonProviderOptions, c as OmnistonQuote, d as OmnistonQuoteStore, e as OrderEvent, f as OrderExecution, g as OrderSettlement, h as OrderSnapshot, Q as QuoteRequest, R as RfqEvent, S as SwapSettlement, i as SwapTrackEvent, T as TON_SWAP_PROTOCOL_LAYOUTS, j as TonSwapCheckInput, k as TonSwapCheckResult, l as TonSwapLeg, m as TonSwapPayloadError, n as checkTonSwapPayload, o as encodeTypedMessage, p as inMemoryQuoteStore, q as inMemorySecretStore, r as omnistonPins, s as omnistonProvider, t as omnistonVerifyBuild, v as validateEvmToTonOrderExtension, u as validateEvmTypedOrder } from './provider-BBG2zhpu.cjs';
1
+ export { A as AssetId, C as ChainAddress, E as EscrowMessage, H as HtlcSecretStore, O as ObservableLike, a as OmnistonClientLike, b as OmnistonProviderOptions, c as OmnistonQuote, d as OmnistonQuoteStore, e as OrderEvent, f as OrderExecution, g as OrderSettlement, h as OrderSnapshot, Q as QuoteRequest, R as RfqEvent, S as SwapSettlement, i as SwapTrackEvent, T as TON_SWAP_PROTOCOL_LAYOUTS, j as TonSwapCheckInput, k as TonSwapCheckResult, l as TonSwapLeg, m as TonSwapPayloadError, n as checkTonSwapPayload, o as encodeTypedMessage, p as inMemoryQuoteStore, q as inMemorySecretStore, r as omnistonPins, s as omnistonProvider, t as omnistonVerifyBuild, v as validateEvmToTonOrderExtension, u as validateEvmTypedOrder } from './provider-CcCZB-Cj.cjs';
2
2
  import '@anywalletkit/protocol-swap2-core/types';
@@ -1,2 +1,2 @@
1
- export { A as AssetId, C as ChainAddress, E as EscrowMessage, H as HtlcSecretStore, O as ObservableLike, a as OmnistonClientLike, b as OmnistonProviderOptions, c as OmnistonQuote, d as OmnistonQuoteStore, e as OrderEvent, f as OrderExecution, g as OrderSettlement, h as OrderSnapshot, Q as QuoteRequest, R as RfqEvent, S as SwapSettlement, i as SwapTrackEvent, T as TON_SWAP_PROTOCOL_LAYOUTS, j as TonSwapCheckInput, k as TonSwapCheckResult, l as TonSwapLeg, m as TonSwapPayloadError, n as checkTonSwapPayload, o as encodeTypedMessage, p as inMemoryQuoteStore, q as inMemorySecretStore, r as omnistonPins, s as omnistonProvider, t as omnistonVerifyBuild, v as validateEvmToTonOrderExtension, u as validateEvmTypedOrder } from './provider-BBG2zhpu.js';
1
+ export { A as AssetId, C as ChainAddress, E as EscrowMessage, H as HtlcSecretStore, O as ObservableLike, a as OmnistonClientLike, b as OmnistonProviderOptions, c as OmnistonQuote, d as OmnistonQuoteStore, e as OrderEvent, f as OrderExecution, g as OrderSettlement, h as OrderSnapshot, Q as QuoteRequest, R as RfqEvent, S as SwapSettlement, i as SwapTrackEvent, T as TON_SWAP_PROTOCOL_LAYOUTS, j as TonSwapCheckInput, k as TonSwapCheckResult, l as TonSwapLeg, m as TonSwapPayloadError, n as checkTonSwapPayload, o as encodeTypedMessage, p as inMemoryQuoteStore, q as inMemorySecretStore, r as omnistonPins, s as omnistonProvider, t as omnistonVerifyBuild, v as validateEvmToTonOrderExtension, u as validateEvmTypedOrder } from './provider-CcCZB-Cj.js';
2
2
  import '@anywalletkit/protocol-swap2-core/types';
package/dist/provider.js CHANGED
@@ -10,9 +10,10 @@ import {
10
10
  omnistonVerifyBuild,
11
11
  validateEvmToTonOrderExtension,
12
12
  validateEvmTypedOrder
13
- } from "./chunk-HOTFZYSW.js";
13
+ } from "./chunk-2DGCZD5K.js";
14
14
  import "./chunk-QDXFC6BC.js";
15
15
  import "./chunk-AIWAM7BS.js";
16
+ import "./chunk-JWYDIW4V.js";
16
17
  export {
17
18
  TON_SWAP_PROTOCOL_LAYOUTS,
18
19
  TonSwapPayloadError,
@@ -1,4 +1,4 @@
1
- export { D as DEFAULT_OMNISTON_TON_CODE_HASHES, w as DEFAULT_OMNISTON_TON_PROXY_TON_MASTERS, x as DEFAULT_OMNISTON_TON_SWAP_INTERFACES, M as MAX_OMNISTON_EXCLUSIVITY_SECONDS, y as OmnistonTonDeliveryInput, z as OmnistonTonDeliveryLocatorOptions, B as OmnistonTonValidationOptions, F as TonEscrowBuildExpectation, G as TonOutputPositionInput, I as createOmnistonTonDeliveryLocator, J as createOmnistonTonValidators } from './provider-BBG2zhpu.cjs';
1
+ export { D as DEFAULT_OMNISTON_TON_CODE_HASHES, w as DEFAULT_OMNISTON_TON_PROXY_TON_MASTERS, x as DEFAULT_OMNISTON_TON_SWAP_INTERFACES, M as MAX_OMNISTON_EXCLUSIVITY_SECONDS, y as OmnistonTonDeliveryInput, z as OmnistonTonDeliveryLocatorOptions, B as OmnistonTonValidationOptions, F as TonEscrowBuildExpectation, G as TonOutputPositionInput, I as createOmnistonTonDeliveryLocator, J as createOmnistonTonValidators } from './provider-CcCZB-Cj.cjs';
2
2
  import '@anywalletkit/protocol-swap2-core/types';
3
3
 
4
4
  /** How far back (blocks) a factory event is searched, per chain — shared with the EVM input validator. */
@@ -1,4 +1,4 @@
1
- export { D as DEFAULT_OMNISTON_TON_CODE_HASHES, w as DEFAULT_OMNISTON_TON_PROXY_TON_MASTERS, x as DEFAULT_OMNISTON_TON_SWAP_INTERFACES, M as MAX_OMNISTON_EXCLUSIVITY_SECONDS, y as OmnistonTonDeliveryInput, z as OmnistonTonDeliveryLocatorOptions, B as OmnistonTonValidationOptions, F as TonEscrowBuildExpectation, G as TonOutputPositionInput, I as createOmnistonTonDeliveryLocator, J as createOmnistonTonValidators } from './provider-BBG2zhpu.js';
1
+ export { D as DEFAULT_OMNISTON_TON_CODE_HASHES, w as DEFAULT_OMNISTON_TON_PROXY_TON_MASTERS, x as DEFAULT_OMNISTON_TON_SWAP_INTERFACES, M as MAX_OMNISTON_EXCLUSIVITY_SECONDS, y as OmnistonTonDeliveryInput, z as OmnistonTonDeliveryLocatorOptions, B as OmnistonTonValidationOptions, F as TonEscrowBuildExpectation, G as TonOutputPositionInput, I as createOmnistonTonDeliveryLocator, J as createOmnistonTonValidators } from './provider-CcCZB-Cj.js';
2
2
  import '@anywalletkit/protocol-swap2-core/types';
3
3
 
4
4
  /** How far back (blocks) a factory event is searched, per chain — shared with the EVM input validator. */
@@ -1,3 +1,8 @@
1
+ import {
2
+ AUDITED_OMNISTON_EVM_ORDER_PROTOCOLS,
3
+ AUDITED_OMNISTON_SETTLEMENT_CONTRACTS
4
+ } from "./chunk-JWYDIW4V.js";
5
+
1
6
  // src/validators/evm-output.ts
2
7
  import {
3
8
  decodeAbiParameters,
@@ -507,40 +512,6 @@ function createOmnistonEvmInputValidator(options = {}) {
507
512
  import { Buffer } from "buffer";
508
513
  import { Address, Cell } from "@ton/core";
509
514
  import { bigintToNumber as bigintToNumber2 } from "@anywalletkit/core";
510
-
511
- // src/validators/settlement.ts
512
- var AUDITED_OMNISTON_SETTLEMENT_CONTRACTS = {
513
- "ton:-239": ["EQAbWJ3Y1HgIIvcMq1prG1anlDC0T3cZlAU7luPT6LmTpmrZ"],
514
- "eip155:1": ["0xafCF681272AF10959736f45616eeCBC22D7095E2"],
515
- "eip155:56": ["0xafCF681272AF10959736f45616eeCBC22D7095E2"],
516
- "eip155:137": ["0x41A392062A4307a6961d48e30FF20bF6823715B8"],
517
- "eip155:4663": ["0xafCF681272AF10959736f45616eeCBC22D7095E2"],
518
- "eip155:8453": ["0xACa3E2F9b61a44892926bC6c3e104192E7D1c3cd"],
519
- "eip155:42161": ["0xafCF681272AF10959736f45616eeCBC22D7095E2"],
520
- "eip155:43114": ["0xafCF681272AF10959736f45616eeCBC22D7095E2"],
521
- // 2026-10-20: one factory address on X Layer, HyperEVM and Plasma. Runtime
522
- // bytecode equals Ethereum's 0xafCF… byte for byte except the immutable slots
523
- // (escrow implementations, its order protocol, domain hash); it references
524
- // the order protocol trusted below on the same chain.
525
- "eip155:196": ["0xd602079AFa5c38F550510a2a988CbFa698Fa0189"],
526
- "eip155:999": ["0xd602079AFa5c38F550510a2a988CbFa698Fa0189"],
527
- "eip155:9745": ["0xd602079AFa5c38F550510a2a988CbFa698Fa0189"]
528
- };
529
- var AUDITED_OMNISTON_EVM_ORDER_PROTOCOLS = {
530
- "eip155:1": ["0xb5810aCfD45D85Eaa938bF90a5857295513DA7E9"],
531
- "eip155:56": ["0xb5810aCfD45D85Eaa938bF90a5857295513DA7E9"],
532
- "eip155:137": ["0xafCF681272AF10959736f45616eeCBC22D7095E2"],
533
- "eip155:8453": ["0xe7405fAcDEDB2512e91F2886BDff13231343aF5E"],
534
- "eip155:42161": ["0xb5810aCfD45D85Eaa938bF90a5857295513DA7E9"],
535
- "eip155:43114": ["0xb5810aCfD45D85Eaa938bF90a5857295513DA7E9"],
536
- // 2026-10-20: bytecode equals Ethereum's 0xb581… except immutables (wrapped
537
- // native, own address, chain id 196 / 9745 / 999 at the chain-id slot).
538
- "eip155:196": ["0xb5810aCfD45D85Eaa938bF90a5857295513DA7E9"],
539
- "eip155:9745": ["0xb5810aCfD45D85Eaa938bF90a5857295513DA7E9"],
540
- "eip155:999": ["0xD84778bbeEC5D2a8d17c6424249C438EC0b1ABE3"]
541
- };
542
-
543
- // src/validators/ton.ts
544
515
  var JETTON_TRANSFER_OP = 260734629;
545
516
  var ESCROW_CREATE_OP = 3232100569;
546
517
  var ESCROW_CONFIG_OP = 4073126499;