@anywalletkit/protocol-swap2-omniston 0.3.1 → 0.4.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.
- package/README.md +13 -0
- package/dist/chunk-JWYDIW4V.js +37 -0
- package/dist/chunk-JWYDIW4V.js.map +1 -0
- package/dist/{chunk-HOTFZYSW.js → chunk-R6B2CV5Z.js} +153 -42
- package/dist/chunk-R6B2CV5Z.js.map +1 -0
- package/dist/{chunk-RW4XZWNC.js → chunk-WL7BSEBR.js} +2 -2
- package/dist/index.cjs +180 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/protocol.cjs +55 -41
- package/dist/protocol.cjs.map +1 -1
- package/dist/protocol.d.cts +1 -1
- package/dist/protocol.d.ts +1 -1
- package/dist/protocol.js +3 -2
- package/dist/{provider-BBG2zhpu.d.cts → provider-D6RXRgf-.d.cts} +8 -1
- package/dist/{provider-BBG2zhpu.d.ts → provider-D6RXRgf-.d.ts} +8 -1
- package/dist/provider.cjs +180 -41
- package/dist/provider.cjs.map +1 -1
- package/dist/provider.d.cts +1 -1
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +2 -1
- package/dist/validators.d.cts +1 -1
- package/dist/validators.d.ts +1 -1
- package/dist/validators.js +5 -34
- package/dist/validators.js.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-HOTFZYSW.js.map +0 -1
- /package/dist/{chunk-RW4XZWNC.js.map → chunk-WL7BSEBR.js.map} +0 -0
package/dist/provider.d.cts
CHANGED
|
@@ -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-
|
|
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-D6RXRgf-.cjs';
|
|
2
2
|
import '@anywalletkit/protocol-swap2-core/types';
|
package/dist/provider.d.ts
CHANGED
|
@@ -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-
|
|
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-D6RXRgf-.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-
|
|
13
|
+
} from "./chunk-R6B2CV5Z.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,
|
package/dist/validators.d.cts
CHANGED
|
@@ -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-
|
|
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-D6RXRgf-.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. */
|
package/dist/validators.d.ts
CHANGED
|
@@ -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-
|
|
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-D6RXRgf-.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. */
|
package/dist/validators.js
CHANGED
|
@@ -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;
|