@xchainjs/xchain-aggregator 2.0.22 → 2.0.23
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.esm.js
CHANGED
|
@@ -77,6 +77,7 @@ class ChainflipProtocol {
|
|
|
77
77
|
},
|
|
78
78
|
});
|
|
79
79
|
this.wallet = configuration === null || configuration === void 0 ? void 0 : configuration.wallet;
|
|
80
|
+
this.brokerCommissionBps = configuration === null || configuration === void 0 ? void 0 : configuration.affiliateBps;
|
|
80
81
|
this.assetsData = new CachedValue(() => {
|
|
81
82
|
return this.sdk.getAssets();
|
|
82
83
|
}, 24 * 60 * 60 * 1000);
|
|
@@ -149,6 +150,7 @@ class ChainflipProtocol {
|
|
|
149
150
|
refundAddress: params.fromAddress,
|
|
150
151
|
retryDurationBlocks: 100,
|
|
151
152
|
},
|
|
153
|
+
brokerCommissionBps: this.brokerCommissionBps,
|
|
152
154
|
});
|
|
153
155
|
toAddress = resp.depositAddress;
|
|
154
156
|
depositChannelId = resp.depositChannelId;
|
|
@@ -163,6 +165,7 @@ class ChainflipProtocol {
|
|
|
163
165
|
refundAddress: params.fromAddress,
|
|
164
166
|
retryDurationBlocks: 100,
|
|
165
167
|
},
|
|
168
|
+
brokerCommissionBps: this.brokerCommissionBps,
|
|
166
169
|
});
|
|
167
170
|
toAddress = resp.depositAddress;
|
|
168
171
|
depositChannelId = resp.depositChannelId;
|
package/lib/index.js
CHANGED
|
@@ -79,6 +79,7 @@ class ChainflipProtocol {
|
|
|
79
79
|
},
|
|
80
80
|
});
|
|
81
81
|
this.wallet = configuration === null || configuration === void 0 ? void 0 : configuration.wallet;
|
|
82
|
+
this.brokerCommissionBps = configuration === null || configuration === void 0 ? void 0 : configuration.affiliateBps;
|
|
82
83
|
this.assetsData = new xchainUtil.CachedValue(() => {
|
|
83
84
|
return this.sdk.getAssets();
|
|
84
85
|
}, 24 * 60 * 60 * 1000);
|
|
@@ -151,6 +152,7 @@ class ChainflipProtocol {
|
|
|
151
152
|
refundAddress: params.fromAddress,
|
|
152
153
|
retryDurationBlocks: 100,
|
|
153
154
|
},
|
|
155
|
+
brokerCommissionBps: this.brokerCommissionBps,
|
|
154
156
|
});
|
|
155
157
|
toAddress = resp.depositAddress;
|
|
156
158
|
depositChannelId = resp.depositChannelId;
|
|
@@ -165,6 +167,7 @@ class ChainflipProtocol {
|
|
|
165
167
|
refundAddress: params.fromAddress,
|
|
166
168
|
retryDurationBlocks: 100,
|
|
167
169
|
},
|
|
170
|
+
brokerCommissionBps: this.brokerCommissionBps,
|
|
168
171
|
});
|
|
169
172
|
toAddress = resp.depositAddress;
|
|
170
173
|
depositChannelId = resp.depositChannelId;
|
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.23",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "lib/index.esm.js",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"directory": "release/package"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@chainflip/sdk": "^1.
|
|
32
|
+
"@chainflip/sdk": "^1.10.1",
|
|
33
33
|
"@trpc/server": "^10.45.2",
|
|
34
34
|
"@xchainjs/xchain-client": "2.0.9",
|
|
35
35
|
"@xchainjs/xchain-mayachain": "4.0.1",
|
|
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.
|
|
40
|
-
"@xchainjs/xchain-thorchain-query": "2.0.
|
|
39
|
+
"@xchainjs/xchain-thorchain-amm": "3.0.21",
|
|
40
|
+
"@xchainjs/xchain-thorchain-query": "2.0.13",
|
|
41
41
|
"@xchainjs/xchain-util": "2.0.5",
|
|
42
42
|
"@xchainjs/xchain-wallet": "2.0.17"
|
|
43
43
|
},
|