@xchainjs/xchain-aggregator 1.0.10 → 1.0.11
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/lib/index.d.ts +1 -1
- package/lib/types.d.ts +11 -4
- package/package.json +15 -15
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Aggregator } from './aggregator';
|
|
2
|
-
export { IProtocol, QuoteSwapParams, QuoteSwap, TxSubmitted, SwapHistory, SwapHistoryParams, SwapResume, Config, ApproveParams, IsApprovedParams, } from './types';
|
|
2
|
+
export { IProtocol, QuoteSwapParams, QuoteSwap, TxSubmitted, SwapHistory, SwapHistoryParams, SwapResume, SuccessSwap, PendingSwap, Config, ApproveParams, IsApprovedParams, } from './types';
|
package/lib/types.d.ts
CHANGED
|
@@ -97,13 +97,20 @@ type TransactionAction = {
|
|
|
97
97
|
address: Address;
|
|
98
98
|
amount: CryptoAmount;
|
|
99
99
|
};
|
|
100
|
-
type
|
|
100
|
+
type SuccessSwap = {
|
|
101
101
|
protocol: Protocol;
|
|
102
102
|
date: Date;
|
|
103
|
-
status: 'success'
|
|
103
|
+
status: 'success';
|
|
104
104
|
inboundTx: TransactionAction;
|
|
105
|
-
outboundTx
|
|
105
|
+
outboundTx: TransactionAction;
|
|
106
106
|
};
|
|
107
|
+
type PendingSwap = {
|
|
108
|
+
protocol: Protocol;
|
|
109
|
+
date: Date;
|
|
110
|
+
status: 'pending';
|
|
111
|
+
inboundTx: TransactionAction;
|
|
112
|
+
};
|
|
113
|
+
type SwapResume = SuccessSwap | PendingSwap;
|
|
107
114
|
type SwapHistory = {
|
|
108
115
|
count: number;
|
|
109
116
|
swaps: SwapResume[];
|
|
@@ -127,4 +134,4 @@ interface IProtocol {
|
|
|
127
134
|
approveRouterToSpend(params: ApproveParams): Promise<TxSubmitted>;
|
|
128
135
|
shouldBeApproved(params: IsApprovedParams): Promise<boolean>;
|
|
129
136
|
}
|
|
130
|
-
export { IProtocol, QuoteSwapParams, QuoteSwap, TxSubmitted, Protocol, SwapHistory, SwapResume, SwapHistoryParams, ApproveParams, IsApprovedParams, };
|
|
137
|
+
export { IProtocol, QuoteSwapParams, QuoteSwap, TxSubmitted, Protocol, SwapHistory, SuccessSwap, PendingSwap, SwapResume, SwapHistoryParams, ApproveParams, IsApprovedParams, };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-aggregator",
|
|
3
3
|
"description": "Protocol aggregator to make actions in different protocols",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.11",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "lib/index.esm.js",
|
|
@@ -30,22 +30,22 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@chainflip/sdk": "1.3.0",
|
|
33
|
-
"@xchainjs/xchain-client": "1.0.
|
|
34
|
-
"@xchainjs/xchain-mayachain": "2.0.
|
|
35
|
-
"@xchainjs/xchain-mayachain-amm": "3.0.
|
|
36
|
-
"@xchainjs/xchain-mayachain-query": "1.0.
|
|
37
|
-
"@xchainjs/xchain-thorchain": "2.0.
|
|
38
|
-
"@xchainjs/xchain-thorchain-amm": "2.0.
|
|
39
|
-
"@xchainjs/xchain-thorchain-query": "1.0.
|
|
40
|
-
"@xchainjs/xchain-util": "1.0.
|
|
41
|
-
"@xchainjs/xchain-wallet": "1.0.
|
|
33
|
+
"@xchainjs/xchain-client": "1.0.5",
|
|
34
|
+
"@xchainjs/xchain-mayachain": "2.0.6",
|
|
35
|
+
"@xchainjs/xchain-mayachain-amm": "3.0.11",
|
|
36
|
+
"@xchainjs/xchain-mayachain-query": "1.0.6",
|
|
37
|
+
"@xchainjs/xchain-thorchain": "2.0.7",
|
|
38
|
+
"@xchainjs/xchain-thorchain-amm": "2.0.11",
|
|
39
|
+
"@xchainjs/xchain-thorchain-query": "1.0.5",
|
|
40
|
+
"@xchainjs/xchain-util": "1.0.4",
|
|
41
|
+
"@xchainjs/xchain-wallet": "1.0.11"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@xchainjs/xchain-avax": "1.0.
|
|
45
|
-
"@xchainjs/xchain-binance": "6.0.
|
|
46
|
-
"@xchainjs/xchain-bitcoin": "1.1.
|
|
47
|
-
"@xchainjs/xchain-ethereum": "1.0.
|
|
48
|
-
"@xchainjs/xchain-kujira": "1.0.
|
|
44
|
+
"@xchainjs/xchain-avax": "1.0.9",
|
|
45
|
+
"@xchainjs/xchain-binance": "6.0.5",
|
|
46
|
+
"@xchainjs/xchain-bitcoin": "1.1.1",
|
|
47
|
+
"@xchainjs/xchain-ethereum": "1.0.9",
|
|
48
|
+
"@xchainjs/xchain-kujira": "1.0.6",
|
|
49
49
|
"axios": "1.7.4",
|
|
50
50
|
"axios-mock-adapter": "1.20.0"
|
|
51
51
|
}
|