@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/{chunk-FMMBUGYB.js → chunk-IIFNHGC5.js} +2 -2
- package/dist/{chunk-3CGSN2T6.js → chunk-PKDRSR7N.js} +3 -3
- package/dist/chunk-PKDRSR7N.js.map +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/protocol.cjs +2 -2
- package/dist/protocol.cjs.map +1 -1
- package/dist/protocol.js +2 -2
- package/dist/provider.cjs +2 -2
- package/dist/provider.cjs.map +1 -1
- package/dist/provider.js +1 -1
- package/package.json +7 -7
- package/dist/chunk-3CGSN2T6.js.map +0 -1
- /package/dist/{chunk-FMMBUGYB.js.map → chunk-IIFNHGC5.js.map} +0 -0
package/dist/protocol.js
CHANGED
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: "
|
|
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: "
|
|
1673
|
+
return { state: "refunded", depositReceived: true };
|
|
1674
1674
|
default:
|
|
1675
1675
|
return { state: "pending", depositReceived: true };
|
|
1676
1676
|
}
|