@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
package/dist/protocol.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _anywalletkit_protocol_swap2_core_types from '@anywalletkit/protocol-swap2-core/types';
|
|
2
2
|
import { SingleProviderSwap2 } from '@anywalletkit/protocol-swap2-core/swap2/single';
|
|
3
|
-
import {
|
|
3
|
+
import { Swap2EngineConfig, Swap2Account } from '@anywalletkit/protocol-swap2-core/swap2/base';
|
|
4
4
|
import { OmnistonProviderOptions } from './provider.cjs';
|
|
5
5
|
|
|
6
6
|
interface OmnistonSwap2Config extends Swap2EngineConfig, OmnistonProviderOptions {
|
package/dist/protocol.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _anywalletkit_protocol_swap2_core_types from '@anywalletkit/protocol-swap2-core/types';
|
|
2
2
|
import { SingleProviderSwap2 } from '@anywalletkit/protocol-swap2-core/swap2/single';
|
|
3
|
-
import {
|
|
3
|
+
import { Swap2EngineConfig, Swap2Account } from '@anywalletkit/protocol-swap2-core/swap2/base';
|
|
4
4
|
import { OmnistonProviderOptions } from './provider.js';
|
|
5
5
|
|
|
6
6
|
interface OmnistonSwap2Config extends Swap2EngineConfig, OmnistonProviderOptions {
|
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
|
}
|