@chainflip/utils 2.2.0-alpha.6 → 2.2.0-alpha.8
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/dist/chainflip.cjs +1 -1
- package/dist/chainflip.mjs +1 -1
- package/dist/consts.cjs +4 -0
- package/dist/consts.mjs +4 -0
- package/package.json +1 -1
package/dist/chainflip.cjs
CHANGED
|
@@ -464,7 +464,7 @@ const parseSemver = (version) => {
|
|
|
464
464
|
};
|
|
465
465
|
};
|
|
466
466
|
const parseBlockSpecId = (blockVersion) => {
|
|
467
|
-
const stringVersion =
|
|
467
|
+
const stringVersion = /@?(\d+)$/.exec(blockVersion)?.[1];
|
|
468
468
|
require_assertion.assert(stringVersion, `Could not parse spec version from blockVersion: ${blockVersion}`);
|
|
469
469
|
const digitCount = Math.ceil(stringVersion.length / 3);
|
|
470
470
|
const paddedVersion = stringVersion.padStart(digitCount * 3, "0");
|
package/dist/chainflip.mjs
CHANGED
|
@@ -463,7 +463,7 @@ const parseSemver = (version) => {
|
|
|
463
463
|
};
|
|
464
464
|
};
|
|
465
465
|
const parseBlockSpecId = (blockVersion) => {
|
|
466
|
-
const stringVersion =
|
|
466
|
+
const stringVersion = /@?(\d+)$/.exec(blockVersion)?.[1];
|
|
467
467
|
assert(stringVersion, `Could not parse spec version from blockVersion: ${blockVersion}`);
|
|
468
468
|
const digitCount = Math.ceil(stringVersion.length / 3);
|
|
469
469
|
const paddedVersion = stringVersion.padStart(digitCount * 3, "0");
|
package/dist/consts.cjs
CHANGED
|
@@ -223,6 +223,10 @@ const brokerAliasMap = {
|
|
|
223
223
|
cFLTrurprjV8jTV1yXop6Px8bG1hk4JKV6rgvQJU9nkneDYwg: {
|
|
224
224
|
name: "CoolWallet",
|
|
225
225
|
twitter: "@coolwallet"
|
|
226
|
+
},
|
|
227
|
+
cFMbRyKPPQCUFUnkro1fTXpjgezXCR85H1dUT16D4eWWiU8bw: {
|
|
228
|
+
name: "Asgardex",
|
|
229
|
+
twitter: "@asgardex"
|
|
226
230
|
}
|
|
227
231
|
};
|
|
228
232
|
const lpAliasMap = {
|
package/dist/consts.mjs
CHANGED
|
@@ -221,6 +221,10 @@ const brokerAliasMap = {
|
|
|
221
221
|
cFLTrurprjV8jTV1yXop6Px8bG1hk4JKV6rgvQJU9nkneDYwg: {
|
|
222
222
|
name: "CoolWallet",
|
|
223
223
|
twitter: "@coolwallet"
|
|
224
|
+
},
|
|
225
|
+
cFMbRyKPPQCUFUnkro1fTXpjgezXCR85H1dUT16D4eWWiU8bw: {
|
|
226
|
+
name: "Asgardex",
|
|
227
|
+
twitter: "@asgardex"
|
|
224
228
|
}
|
|
225
229
|
};
|
|
226
230
|
const lpAliasMap = {
|