@anywalletkit/protocol-swap2-omniston 0.2.6 → 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
omnistonProvider
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
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: "
|
|
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: "
|
|
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-
|
|
2149
|
+
//# sourceMappingURL=chunk-PKDRSR7N.js.map
|