@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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  omnistonProvider
3
- } from "./chunk-3CGSN2T6.js";
3
+ } from "./chunk-KNT2XSQU.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-KVDPDEJB.js.map
package/dist/index.cjs CHANGED
@@ -1675,11 +1675,11 @@ function omnistonProvider(opts = {}) {
1675
1675
  return { state: "completed", depositReceived: true, ...progress.outgoingTxHash ? { destTxHash: progress.outgoingTxHash } : {} };
1676
1676
  case "TRADE_STATUS_PARTIALLY_FILLED":
1677
1677
  await quotes.clear(decoded.quoteId);
1678
- return { state: "completed", depositReceived: true, ...progress.outgoingTxHash ? { destTxHash: progress.outgoingTxHash } : {} };
1678
+ return { state: "partial", depositReceived: true, ...progress.outgoingTxHash ? { destTxHash: progress.outgoingTxHash } : {} };
1679
1679
  case "TRADE_STATUS_CANCELLED":
1680
1680
  case "TRADE_STATUS_FAILED":
1681
1681
  await quotes.clear(decoded.quoteId);
1682
- return { state: "failed", depositReceived: true };
1682
+ return { state: "refunded", depositReceived: true };
1683
1683
  default:
1684
1684
  return { state: "pending", depositReceived: true };
1685
1685
  }