@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.
package/dist/protocol.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  OmnistonSwap2Protocol
3
- } from "./chunk-FMMBUGYB.js";
4
- import "./chunk-3CGSN2T6.js";
3
+ } from "./chunk-IIFNHGC5.js";
4
+ import "./chunk-PKDRSR7N.js";
5
5
  import "./chunk-QDXFC6BC.js";
6
6
  import "./chunk-AIWAM7BS.js";
7
7
  export {
package/dist/provider.cjs CHANGED
@@ -1666,11 +1666,11 @@ function omnistonProvider(opts = {}) {
1666
1666
  return { state: "completed", depositReceived: true, ...progress.outgoingTxHash ? { destTxHash: progress.outgoingTxHash } : {} };
1667
1667
  case "TRADE_STATUS_PARTIALLY_FILLED":
1668
1668
  await quotes.clear(decoded.quoteId);
1669
- return { state: "completed", depositReceived: true, ...progress.outgoingTxHash ? { destTxHash: progress.outgoingTxHash } : {} };
1669
+ return { state: "partial", depositReceived: true, ...progress.outgoingTxHash ? { destTxHash: progress.outgoingTxHash } : {} };
1670
1670
  case "TRADE_STATUS_CANCELLED":
1671
1671
  case "TRADE_STATUS_FAILED":
1672
1672
  await quotes.clear(decoded.quoteId);
1673
- return { state: "failed", depositReceived: true };
1673
+ return { state: "refunded", depositReceived: true };
1674
1674
  default:
1675
1675
  return { state: "pending", depositReceived: true };
1676
1676
  }