capitalisk-dex 18.0.3 → 18.0.4
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/index.js +6 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -39,6 +39,10 @@ module.exports = class CapitaliskDEXModule {
|
|
|
39
39
|
this.options = {...defaultConfig, ...config};
|
|
40
40
|
this.appConfig = appConfig;
|
|
41
41
|
this.alias = alias || DEFAULT_MODULE_ALIAS;
|
|
42
|
+
this.networkAlias = (
|
|
43
|
+
(this.options.moduleRedirects && this.options.moduleRedirects[this.alias]) ||
|
|
44
|
+
this.alias
|
|
45
|
+
);
|
|
42
46
|
this.updater = updater;
|
|
43
47
|
if (!updates) {
|
|
44
48
|
updates = [];
|
|
@@ -1296,7 +1300,7 @@ module.exports = class CapitaliskDEXModule {
|
|
|
1296
1300
|
|
|
1297
1301
|
let hasMultisigWalletsInfo = false;
|
|
1298
1302
|
|
|
1299
|
-
this.channel.subscribe(`network:event:${this.
|
|
1303
|
+
this.channel.subscribe(`network:event:${this.networkAlias}:signatures`, async ({data}) => {
|
|
1300
1304
|
if (!hasMultisigWalletsInfo) {
|
|
1301
1305
|
return;
|
|
1302
1306
|
}
|
|
@@ -2709,7 +2713,7 @@ module.exports = class CapitaliskDEXModule {
|
|
|
2709
2713
|
|
|
2710
2714
|
// Broadcast the signature to all DEX nodes with a matching baseAddress and quoteAddress
|
|
2711
2715
|
async _broadcastSignaturesToSubnet(signatureDataList) {
|
|
2712
|
-
let actionRouteString = `${this.
|
|
2716
|
+
let actionRouteString = `${this.networkAlias}?baseAddress=${this.baseAddress}"eAddress=${this.quoteAddress}`;
|
|
2713
2717
|
try {
|
|
2714
2718
|
await this.channel.invoke('network:emit', {
|
|
2715
2719
|
event: `${actionRouteString}:signatures`,
|