@anywalletkit/protocol-swap2-omniston 0.2.5 → 0.2.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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  omnistonProvider
3
- } from "./chunk-3CGSN2T6.js";
3
+ } from "./chunk-PKDRSR7N.js";
4
4
  import {
5
5
  omniston
6
6
  } from "./chunk-QDXFC6BC.js";
@@ -24,4 +24,4 @@ var OmnistonSwap2Protocol = class extends SingleProviderSwap2 {
24
24
  export {
25
25
  OmnistonSwap2Protocol
26
26
  };
27
- //# sourceMappingURL=chunk-FMMBUGYB.js.map
27
+ //# sourceMappingURL=chunk-IIFNHGC5.js.map
@@ -1552,11 +1552,11 @@ function omnistonProvider(opts = {}) {
1552
1552
  return { state: "completed", depositReceived: true, ...progress.outgoingTxHash ? { destTxHash: progress.outgoingTxHash } : {} };
1553
1553
  case "TRADE_STATUS_PARTIALLY_FILLED":
1554
1554
  await quotes.clear(decoded.quoteId);
1555
- return { state: "completed", depositReceived: true, ...progress.outgoingTxHash ? { destTxHash: progress.outgoingTxHash } : {} };
1555
+ return { state: "partial", depositReceived: true, ...progress.outgoingTxHash ? { destTxHash: progress.outgoingTxHash } : {} };
1556
1556
  case "TRADE_STATUS_CANCELLED":
1557
1557
  case "TRADE_STATUS_FAILED":
1558
1558
  await quotes.clear(decoded.quoteId);
1559
- return { state: "failed", depositReceived: true };
1559
+ return { state: "refunded", depositReceived: true };
1560
1560
  default:
1561
1561
  return { state: "pending", depositReceived: true };
1562
1562
  }
@@ -2146,4 +2146,4 @@ export {
2146
2146
  validateEvmToTonOrderExtension,
2147
2147
  omnistonProvider
2148
2148
  };
2149
- //# sourceMappingURL=chunk-3CGSN2T6.js.map
2149
+ //# sourceMappingURL=chunk-PKDRSR7N.js.map