@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/{chunk-3CGSN2T6.js → chunk-KNT2XSQU.js} +3 -3
- package/dist/chunk-KNT2XSQU.js.map +1 -0
- package/dist/{chunk-FMMBUGYB.js → chunk-KVDPDEJB.js} +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/protocol.cjs +2 -2
- package/dist/protocol.cjs.map +1 -1
- package/dist/protocol.d.cts +1 -1
- package/dist/protocol.d.ts +1 -1
- package/dist/protocol.js +2 -2
- package/dist/provider.cjs +2 -2
- package/dist/provider.cjs.map +1 -1
- package/dist/provider.d.cts +1 -1
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +1 -1
- package/package.json +17 -9
- package/dist/chunk-3CGSN2T6.js.map +0 -1
- /package/dist/{chunk-FMMBUGYB.js.map → chunk-KVDPDEJB.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
omnistonProvider
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
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: "
|
|
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: "
|
|
1682
|
+
return { state: "refunded", depositReceived: true };
|
|
1683
1683
|
default:
|
|
1684
1684
|
return { state: "pending", depositReceived: true };
|
|
1685
1685
|
}
|