@xchainjs/xchain-aggregator 2.0.23 → 2.0.25
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/aggregator.d.ts +1 -1
- package/lib/index.esm.js +8888 -203
- package/lib/index.js +8883 -198
- package/lib/types.d.ts +6 -1
- package/package.json +2 -2
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TxHash } from '@xchainjs/xchain-client';
|
|
1
|
+
import { TxHash, Network } from '@xchainjs/xchain-client';
|
|
2
2
|
import { Address, AnyAsset, Asset, Chain, CryptoAmount, SecuredAsset, SynthAsset, TokenAsset, TradeAsset } from '@xchainjs/xchain-util';
|
|
3
3
|
import { Wallet } from '@xchainjs/xchain-wallet';
|
|
4
4
|
/**
|
|
@@ -49,6 +49,10 @@ export type Config = Partial<{
|
|
|
49
49
|
* Wallet
|
|
50
50
|
*/
|
|
51
51
|
wallet: Wallet;
|
|
52
|
+
/**
|
|
53
|
+
* Network to use for protocols. If not specified, will be inferred from wallet or default to mainnet
|
|
54
|
+
*/
|
|
55
|
+
network: Network;
|
|
52
56
|
}>;
|
|
53
57
|
/**
|
|
54
58
|
* Protocol config
|
|
@@ -57,6 +61,7 @@ export type ProtocolConfig = Partial<{
|
|
|
57
61
|
wallet: Wallet;
|
|
58
62
|
affiliateBps: number;
|
|
59
63
|
affiliateAddress: string;
|
|
64
|
+
network: Network;
|
|
60
65
|
}>;
|
|
61
66
|
/**
|
|
62
67
|
* Represents a quote for a swap operation.
|
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": "2.0.
|
|
4
|
+
"version": "2.0.25",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "lib/index.esm.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@xchainjs/xchain-mayachain-amm": "4.1.1",
|
|
37
37
|
"@xchainjs/xchain-mayachain-query": "2.1.1",
|
|
38
38
|
"@xchainjs/xchain-thorchain": "3.0.13",
|
|
39
|
-
"@xchainjs/xchain-thorchain-amm": "3.0.
|
|
39
|
+
"@xchainjs/xchain-thorchain-amm": "3.0.22",
|
|
40
40
|
"@xchainjs/xchain-thorchain-query": "2.0.13",
|
|
41
41
|
"@xchainjs/xchain-util": "2.0.5",
|
|
42
42
|
"@xchainjs/xchain-wallet": "2.0.17"
|