@xchainjs/xchain-aggregator 2.0.21 → 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;
@@ -8,6 +8,7 @@ export declare class ChainflipProtocol implements IProtocol {
8
8
  private sdk;
9
9
  private wallet?;
10
10
  private assetsData;
11
+ private brokerCommissionBps?;
11
12
  constructor(configuration?: ProtocolConfig);
12
13
  approveRouterToSpend(_params: {
13
14
  asset: TokenAsset;
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.21",
4
+ "version": "2.0.23",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
7
7
  "module": "lib/index.esm.js",
@@ -29,26 +29,26 @@
29
29
  "directory": "release/package"
30
30
  },
31
31
  "dependencies": {
32
- "@chainflip/sdk": "^1.9.2",
32
+ "@chainflip/sdk": "^1.10.1",
33
33
  "@trpc/server": "^10.45.2",
34
- "@xchainjs/xchain-client": "2.0.8",
35
- "@xchainjs/xchain-mayachain": "4.0.0",
36
- "@xchainjs/xchain-mayachain-amm": "4.1.0",
37
- "@xchainjs/xchain-mayachain-query": "2.1.0",
38
- "@xchainjs/xchain-thorchain": "3.0.12",
39
- "@xchainjs/xchain-thorchain-amm": "3.0.19",
40
- "@xchainjs/xchain-thorchain-query": "2.0.11",
41
- "@xchainjs/xchain-util": "2.0.4",
42
- "@xchainjs/xchain-wallet": "2.0.16"
34
+ "@xchainjs/xchain-client": "2.0.9",
35
+ "@xchainjs/xchain-mayachain": "4.0.1",
36
+ "@xchainjs/xchain-mayachain-amm": "4.1.1",
37
+ "@xchainjs/xchain-mayachain-query": "2.1.1",
38
+ "@xchainjs/xchain-thorchain": "3.0.13",
39
+ "@xchainjs/xchain-thorchain-amm": "3.0.21",
40
+ "@xchainjs/xchain-thorchain-query": "2.0.13",
41
+ "@xchainjs/xchain-util": "2.0.5",
42
+ "@xchainjs/xchain-wallet": "2.0.17"
43
43
  },
44
44
  "devDependencies": {
45
- "@xchainjs/xchain-avax": "2.0.11",
46
- "@xchainjs/xchain-base": "1.0.11",
47
- "@xchainjs/xchain-bitcoin": "2.0.8",
48
- "@xchainjs/xchain-bsc": "2.0.12",
49
- "@xchainjs/xchain-ethereum": "2.0.12",
50
- "@xchainjs/xchain-kujira": "2.0.8",
51
- "axios": "^1.8.4",
45
+ "@xchainjs/xchain-avax": "2.0.12",
46
+ "@xchainjs/xchain-base": "1.0.12",
47
+ "@xchainjs/xchain-bitcoin": "2.0.9",
48
+ "@xchainjs/xchain-bsc": "2.0.13",
49
+ "@xchainjs/xchain-ethereum": "2.0.13",
50
+ "@xchainjs/xchain-kujira": "2.0.9",
51
+ "axios": "1.12.1",
52
52
  "axios-mock-adapter": "^2.1.0"
53
53
  }
54
54
  }