@chainflip/utils 0.11.2 → 0.11.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/dist/consts.cjs +21 -2
- package/dist/consts.js +21 -2
- package/dist/ss58.cjs +5 -5
- package/dist/ss58.js +5 -5
- package/package.json +3 -3
package/dist/consts.cjs
CHANGED
|
@@ -201,7 +201,25 @@ var brokerAliasMap = {
|
|
|
201
201
|
cFKpid38PmmZ8V81AHaZAhHzzpRbsf7Xw5PYt5ajTXAUvHoTQ: {
|
|
202
202
|
name: "Li.Fi",
|
|
203
203
|
twitter: "@lifiprotocol"
|
|
204
|
-
}
|
|
204
|
+
},
|
|
205
|
+
cFNXP6GCSVcHAWfoEBsWTQAXQs3nCxnw8EsSxz6KAernHRpAf: {
|
|
206
|
+
name: "Binance Web3 Wallet",
|
|
207
|
+
twitter: "@BinanceWallet"
|
|
208
|
+
},
|
|
209
|
+
cFPWhtZhoxt3FLgxAJasebmSNtVvCza1KeDEkR9pm1quCp46T: {
|
|
210
|
+
name: "MetaMask",
|
|
211
|
+
twitter: "@MetaMask"
|
|
212
|
+
},
|
|
213
|
+
cFMaDHQWsJQqDktnXuEM8fjx4EVzvfHpwJS1KgcEW6Xchv6L7: {
|
|
214
|
+
name: "MetaMask",
|
|
215
|
+
twitter: "@MetaMask"
|
|
216
|
+
},
|
|
217
|
+
cFJt567jd8vooomo6z86sS9qenBodSYyPb6CKgqGESYJS4cFG: {
|
|
218
|
+
name: "Ellipal Wallet",
|
|
219
|
+
twitter: "@ellipalwallet"
|
|
220
|
+
},
|
|
221
|
+
cFPZ7XoAWHFBJy2t2t5rupQ3fvMKRyCpxDHjnmtD42XAEjxcW: { name: "SafePal", twitter: "@SafePal" },
|
|
222
|
+
cFNqDaZ9apGKt9uXaGQGucWuizVeTms2cXq8hnYM8g7y99Cpy: { name: "Trocador", twitter: "@TrocadorApp" }
|
|
205
223
|
};
|
|
206
224
|
var lpAliasMap = {
|
|
207
225
|
cFLBKavxvThwqLWNr7cTwtqhYD6jDqXM31d6QoTLvuK4X78ve: { name: "CumpsD", twitter: "@cumpsd" },
|
|
@@ -238,7 +256,8 @@ var lpAliasMap = {
|
|
|
238
256
|
cFPJNbXH9KNP1CRejnf19ARopcS8w8c4teTz5GF3G36MZRWJG: { name: "curiouspleb", twitter: null },
|
|
239
257
|
cFNBZ5iYqorZcAEjpUSHgt6Ghy4Hmf9sNK6rRYemEa93Xnark: { name: "curiouspleb", twitter: null },
|
|
240
258
|
cFNgY2xnF9jvLLJ9TTtFwVTUCoo9aAX26UveiN7NftzkhEyYW: { name: "curiouspleb", twitter: null },
|
|
241
|
-
cFLZS9GDX4CeXWdjqm2sXmVUNqW1H71BK5nfUXHo6qtKDqNHu: { name: "Gonzo", twitter: null }
|
|
259
|
+
cFLZS9GDX4CeXWdjqm2sXmVUNqW1H71BK5nfUXHo6qtKDqNHu: { name: "Gonzo", twitter: null },
|
|
260
|
+
cFJxVfwcjkFgqvVPP2C2fmjEHgMj5Hc6wvYUQgiSddvQbDvUj: { name: "BrodaNoel", twitter: null }
|
|
242
261
|
};
|
|
243
262
|
var GENESIS_LP_ACCOUNT_IDS = [
|
|
244
263
|
// perseverance
|
package/dist/consts.js
CHANGED
|
@@ -167,7 +167,25 @@ var brokerAliasMap = {
|
|
|
167
167
|
cFKpid38PmmZ8V81AHaZAhHzzpRbsf7Xw5PYt5ajTXAUvHoTQ: {
|
|
168
168
|
name: "Li.Fi",
|
|
169
169
|
twitter: "@lifiprotocol"
|
|
170
|
-
}
|
|
170
|
+
},
|
|
171
|
+
cFNXP6GCSVcHAWfoEBsWTQAXQs3nCxnw8EsSxz6KAernHRpAf: {
|
|
172
|
+
name: "Binance Web3 Wallet",
|
|
173
|
+
twitter: "@BinanceWallet"
|
|
174
|
+
},
|
|
175
|
+
cFPWhtZhoxt3FLgxAJasebmSNtVvCza1KeDEkR9pm1quCp46T: {
|
|
176
|
+
name: "MetaMask",
|
|
177
|
+
twitter: "@MetaMask"
|
|
178
|
+
},
|
|
179
|
+
cFMaDHQWsJQqDktnXuEM8fjx4EVzvfHpwJS1KgcEW6Xchv6L7: {
|
|
180
|
+
name: "MetaMask",
|
|
181
|
+
twitter: "@MetaMask"
|
|
182
|
+
},
|
|
183
|
+
cFJt567jd8vooomo6z86sS9qenBodSYyPb6CKgqGESYJS4cFG: {
|
|
184
|
+
name: "Ellipal Wallet",
|
|
185
|
+
twitter: "@ellipalwallet"
|
|
186
|
+
},
|
|
187
|
+
cFPZ7XoAWHFBJy2t2t5rupQ3fvMKRyCpxDHjnmtD42XAEjxcW: { name: "SafePal", twitter: "@SafePal" },
|
|
188
|
+
cFNqDaZ9apGKt9uXaGQGucWuizVeTms2cXq8hnYM8g7y99Cpy: { name: "Trocador", twitter: "@TrocadorApp" }
|
|
171
189
|
};
|
|
172
190
|
var lpAliasMap = {
|
|
173
191
|
cFLBKavxvThwqLWNr7cTwtqhYD6jDqXM31d6QoTLvuK4X78ve: { name: "CumpsD", twitter: "@cumpsd" },
|
|
@@ -204,7 +222,8 @@ var lpAliasMap = {
|
|
|
204
222
|
cFPJNbXH9KNP1CRejnf19ARopcS8w8c4teTz5GF3G36MZRWJG: { name: "curiouspleb", twitter: null },
|
|
205
223
|
cFNBZ5iYqorZcAEjpUSHgt6Ghy4Hmf9sNK6rRYemEa93Xnark: { name: "curiouspleb", twitter: null },
|
|
206
224
|
cFNgY2xnF9jvLLJ9TTtFwVTUCoo9aAX26UveiN7NftzkhEyYW: { name: "curiouspleb", twitter: null },
|
|
207
|
-
cFLZS9GDX4CeXWdjqm2sXmVUNqW1H71BK5nfUXHo6qtKDqNHu: { name: "Gonzo", twitter: null }
|
|
225
|
+
cFLZS9GDX4CeXWdjqm2sXmVUNqW1H71BK5nfUXHo6qtKDqNHu: { name: "Gonzo", twitter: null },
|
|
226
|
+
cFJxVfwcjkFgqvVPP2C2fmjEHgMj5Hc6wvYUQgiSddvQbDvUj: { name: "BrodaNoel", twitter: null }
|
|
208
227
|
};
|
|
209
228
|
var GENESIS_LP_ACCOUNT_IDS = [
|
|
210
229
|
// perseverance
|
package/dist/ss58.cjs
CHANGED
|
@@ -26,14 +26,14 @@ __export(ss58_exports, {
|
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(ss58_exports);
|
|
28
28
|
|
|
29
|
-
// ../../node_modules/.pnpm/@noble+hashes@2.0.
|
|
29
|
+
// ../../node_modules/.pnpm/@noble+hashes@2.0.1/node_modules/@noble/hashes/utils.js
|
|
30
30
|
function isBytes(a) {
|
|
31
31
|
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
32
32
|
}
|
|
33
33
|
function anumber(n, title = "") {
|
|
34
34
|
if (!Number.isSafeInteger(n) || n < 0) {
|
|
35
35
|
const prefix = title && `"${title}" `;
|
|
36
|
-
throw new Error(`${prefix}expected integer
|
|
36
|
+
throw new Error(`${prefix}expected integer >= 0, got ${n}`);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
function abytes(value, length, title = "") {
|
|
@@ -91,7 +91,7 @@ function createHasher(hashCons, info = {}) {
|
|
|
91
91
|
return Object.freeze(hashC);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
// ../../node_modules/.pnpm/@noble+hashes@2.0.
|
|
94
|
+
// ../../node_modules/.pnpm/@noble+hashes@2.0.1/node_modules/@noble/hashes/_blake.js
|
|
95
95
|
var BSIGMA = /* @__PURE__ */ Uint8Array.from([
|
|
96
96
|
0,
|
|
97
97
|
1,
|
|
@@ -352,7 +352,7 @@ var BSIGMA = /* @__PURE__ */ Uint8Array.from([
|
|
|
352
352
|
9
|
|
353
353
|
]);
|
|
354
354
|
|
|
355
|
-
// ../../node_modules/.pnpm/@noble+hashes@2.0.
|
|
355
|
+
// ../../node_modules/.pnpm/@noble+hashes@2.0.1/node_modules/@noble/hashes/_u64.js
|
|
356
356
|
var U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
357
357
|
var _32n = /* @__PURE__ */ BigInt(32);
|
|
358
358
|
function fromBig(n, le = false) {
|
|
@@ -373,7 +373,7 @@ function add(Ah, Al, Bh, Bl) {
|
|
|
373
373
|
var add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);
|
|
374
374
|
var add3H = (low, Ah, Bh, Ch) => Ah + Bh + Ch + (low / 2 ** 32 | 0) | 0;
|
|
375
375
|
|
|
376
|
-
// ../../node_modules/.pnpm/@noble+hashes@2.0.
|
|
376
|
+
// ../../node_modules/.pnpm/@noble+hashes@2.0.1/node_modules/@noble/hashes/blake2.js
|
|
377
377
|
var B2B_IV = /* @__PURE__ */ Uint32Array.from([
|
|
378
378
|
4089235720,
|
|
379
379
|
1779033703,
|
package/dist/ss58.js
CHANGED
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
} from "./chunk-ZHIKNZLU.js";
|
|
12
12
|
import "./chunk-HBIFE4XN.js";
|
|
13
13
|
|
|
14
|
-
// ../../node_modules/.pnpm/@noble+hashes@2.0.
|
|
14
|
+
// ../../node_modules/.pnpm/@noble+hashes@2.0.1/node_modules/@noble/hashes/utils.js
|
|
15
15
|
function isBytes(a) {
|
|
16
16
|
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
17
17
|
}
|
|
18
18
|
function anumber(n, title = "") {
|
|
19
19
|
if (!Number.isSafeInteger(n) || n < 0) {
|
|
20
20
|
const prefix = title && `"${title}" `;
|
|
21
|
-
throw new Error(`${prefix}expected integer
|
|
21
|
+
throw new Error(`${prefix}expected integer >= 0, got ${n}`);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
function abytes(value, length, title = "") {
|
|
@@ -76,7 +76,7 @@ function createHasher(hashCons, info = {}) {
|
|
|
76
76
|
return Object.freeze(hashC);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
// ../../node_modules/.pnpm/@noble+hashes@2.0.
|
|
79
|
+
// ../../node_modules/.pnpm/@noble+hashes@2.0.1/node_modules/@noble/hashes/_blake.js
|
|
80
80
|
var BSIGMA = /* @__PURE__ */ Uint8Array.from([
|
|
81
81
|
0,
|
|
82
82
|
1,
|
|
@@ -337,7 +337,7 @@ var BSIGMA = /* @__PURE__ */ Uint8Array.from([
|
|
|
337
337
|
9
|
|
338
338
|
]);
|
|
339
339
|
|
|
340
|
-
// ../../node_modules/.pnpm/@noble+hashes@2.0.
|
|
340
|
+
// ../../node_modules/.pnpm/@noble+hashes@2.0.1/node_modules/@noble/hashes/_u64.js
|
|
341
341
|
var U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
342
342
|
var _32n = /* @__PURE__ */ BigInt(32);
|
|
343
343
|
function fromBig(n, le = false) {
|
|
@@ -358,7 +358,7 @@ function add(Ah, Al, Bh, Bl) {
|
|
|
358
358
|
var add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);
|
|
359
359
|
var add3H = (low, Ah, Bh, Ch) => Ah + Bh + Ch + (low / 2 ** 32 | 0) | 0;
|
|
360
360
|
|
|
361
|
-
// ../../node_modules/.pnpm/@noble+hashes@2.0.
|
|
361
|
+
// ../../node_modules/.pnpm/@noble+hashes@2.0.1/node_modules/@noble/hashes/blake2.js
|
|
362
362
|
var B2B_IV = /* @__PURE__ */ Uint32Array.from([
|
|
363
363
|
4089235720,
|
|
364
364
|
1779033703,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainflip/utils",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@noble/hashes": "^2.0.
|
|
30
|
-
"@vitest/ui": "
|
|
29
|
+
"@noble/hashes": "^2.0.1",
|
|
30
|
+
"@vitest/ui": "4.0.18"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@date-fns/utc": "^2.1.1",
|