@anywalletkit/protocol-swap2-omniston 0.2.6 → 0.2.8

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/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { omniston } from './config.cjs';
2
- export { HtlcSecretStore, OmnistonClientLike, OmnistonProviderOptions, OmnistonQuoteStore, TON_SWAP_PROTOCOL_LAYOUTS, TonSwapCheckInput, TonSwapCheckResult, TonSwapLeg, TonSwapPayloadError, checkTonSwapPayload, encodeTypedMessage, inMemoryQuoteStore, inMemorySecretStore, omnistonProvider, validateEvmToTonOrderExtension } from './provider.cjs';
3
- export { OmnistonSwap2Protocol, OmnistonSwap2Protocol as default } from './protocol.cjs';
2
+ export { AssetId, ChainAddress, EscrowMessage, HtlcSecretStore, ObservableLike, OmnistonClientLike, OmnistonProviderOptions, OmnistonQuote, OmnistonQuoteStore, OrderEvent, OrderExecution, OrderSettlement, OrderSnapshot, QuoteRequest, RfqEvent, SwapSettlement, SwapTrackEvent, TON_SWAP_PROTOCOL_LAYOUTS, TonSwapCheckInput, TonSwapCheckResult, TonSwapLeg, TonSwapPayloadError, checkTonSwapPayload, encodeTypedMessage, inMemoryQuoteStore, inMemorySecretStore, omnistonProvider, validateEvmToTonOrderExtension } from './provider.cjs';
3
+ export { OmnistonSwap2Config, OmnistonSwap2Protocol, OmnistonSwap2Protocol as default } from './protocol.cjs';
4
4
  export { OMNISTON_ESCROWS, OMNISTON_MODULE, STONFI_ROUTERS, describeOmnistonActivity } from './activity.cjs';
5
5
  import '@anywalletkit/protocol-swap2-core/types';
6
6
  import '@anywalletkit/protocol-swap2-core/swap2/single';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { omniston } from './config.js';
2
- export { HtlcSecretStore, OmnistonClientLike, OmnistonProviderOptions, OmnistonQuoteStore, TON_SWAP_PROTOCOL_LAYOUTS, TonSwapCheckInput, TonSwapCheckResult, TonSwapLeg, TonSwapPayloadError, checkTonSwapPayload, encodeTypedMessage, inMemoryQuoteStore, inMemorySecretStore, omnistonProvider, validateEvmToTonOrderExtension } from './provider.js';
3
- export { OmnistonSwap2Protocol, OmnistonSwap2Protocol as default } from './protocol.js';
2
+ export { AssetId, ChainAddress, EscrowMessage, HtlcSecretStore, ObservableLike, OmnistonClientLike, OmnistonProviderOptions, OmnistonQuote, OmnistonQuoteStore, OrderEvent, OrderExecution, OrderSettlement, OrderSnapshot, QuoteRequest, RfqEvent, SwapSettlement, SwapTrackEvent, TON_SWAP_PROTOCOL_LAYOUTS, TonSwapCheckInput, TonSwapCheckResult, TonSwapLeg, TonSwapPayloadError, checkTonSwapPayload, encodeTypedMessage, inMemoryQuoteStore, inMemorySecretStore, omnistonProvider, validateEvmToTonOrderExtension } from './provider.js';
3
+ export { OmnistonSwap2Config, OmnistonSwap2Protocol, OmnistonSwap2Protocol as default } from './protocol.js';
4
4
  export { OMNISTON_ESCROWS, OMNISTON_MODULE, STONFI_ROUTERS, describeOmnistonActivity } from './activity.js';
5
5
  import '@anywalletkit/protocol-swap2-core/types';
6
6
  import '@anywalletkit/protocol-swap2-core/swap2/single';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OmnistonSwap2Protocol
3
- } from "./chunk-FMMBUGYB.js";
3
+ } from "./chunk-KVDPDEJB.js";
4
4
  import {
5
5
  TON_SWAP_PROTOCOL_LAYOUTS,
6
6
  TonSwapPayloadError,
@@ -10,7 +10,7 @@ import {
10
10
  inMemorySecretStore,
11
11
  omnistonProvider,
12
12
  validateEvmToTonOrderExtension
13
- } from "./chunk-3CGSN2T6.js";
13
+ } from "./chunk-KNT2XSQU.js";
14
14
  import {
15
15
  omniston
16
16
  } from "./chunk-QDXFC6BC.js";
package/dist/protocol.cjs CHANGED
@@ -1662,11 +1662,11 @@ function omnistonProvider(opts = {}) {
1662
1662
  return { state: "completed", depositReceived: true, ...progress.outgoingTxHash ? { destTxHash: progress.outgoingTxHash } : {} };
1663
1663
  case "TRADE_STATUS_PARTIALLY_FILLED":
1664
1664
  await quotes.clear(decoded.quoteId);
1665
- return { state: "completed", depositReceived: true, ...progress.outgoingTxHash ? { destTxHash: progress.outgoingTxHash } : {} };
1665
+ return { state: "partial", depositReceived: true, ...progress.outgoingTxHash ? { destTxHash: progress.outgoingTxHash } : {} };
1666
1666
  case "TRADE_STATUS_CANCELLED":
1667
1667
  case "TRADE_STATUS_FAILED":
1668
1668
  await quotes.clear(decoded.quoteId);
1669
- return { state: "failed", depositReceived: true };
1669
+ return { state: "refunded", depositReceived: true };
1670
1670
  default:
1671
1671
  return { state: "pending", depositReceived: true };
1672
1672
  }