@snapshot-labs/snapshot.js 0.6.0 → 0.6.2
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/snapshot.cjs.js +17 -2
- package/dist/snapshot.esm.js +17 -2
- package/dist/snapshot.min.js +5 -5
- package/package.json +1 -1
- package/src/networks.json +14 -0
- package/src/utils.ts +4 -2
package/dist/snapshot.cjs.js
CHANGED
|
@@ -3451,6 +3451,21 @@ var networks = {
|
|
|
3451
3451
|
},
|
|
3452
3452
|
start: 3368046,
|
|
3453
3453
|
logo: "ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom"
|
|
3454
|
+
},
|
|
3455
|
+
"29548": {
|
|
3456
|
+
key: "29548",
|
|
3457
|
+
name: "MCH Verse ",
|
|
3458
|
+
shortName: "mainnet",
|
|
3459
|
+
chainId: 29548,
|
|
3460
|
+
network: "mainnet",
|
|
3461
|
+
multicall: "0x1d39652386488CE1fE4254E105F5A42a04d43dB2",
|
|
3462
|
+
rpc: [
|
|
3463
|
+
],
|
|
3464
|
+
explorer: {
|
|
3465
|
+
url: "https://explorer.oasys.mycryptoheroes.net"
|
|
3466
|
+
},
|
|
3467
|
+
start: 27458402,
|
|
3468
|
+
logo: "ipfs://QmZZnwR1y6cU1sare2TQmwqkNDLXQxD4GdPrmHLmUoPtbU"
|
|
3454
3469
|
},
|
|
3455
3470
|
"32659": {
|
|
3456
3471
|
key: "32659",
|
|
@@ -4550,10 +4565,10 @@ function subgraphRequest(url, query, options) {
|
|
|
4550
4565
|
responseData = JSON.parse(responseData);
|
|
4551
4566
|
}
|
|
4552
4567
|
catch (e) {
|
|
4553
|
-
throw new Error("Errors found in subgraphRequest: URL: " + url + ", Status: " + res.status + ", Response: " + responseData);
|
|
4568
|
+
throw new Error("Errors found in subgraphRequest: URL: " + url + ", Status: " + res.status + ", Response: " + responseData.substring(0, 400));
|
|
4554
4569
|
}
|
|
4555
4570
|
if (responseData.errors) {
|
|
4556
|
-
throw new Error("Errors found in subgraphRequest: URL: " + url + ", Status: " + res.status + ", Response: " + JSON.stringify(responseData.errors));
|
|
4571
|
+
throw new Error("Errors found in subgraphRequest: URL: " + url + ", Status: " + res.status + ", Response: " + JSON.stringify(responseData.errors).substring(0, 400));
|
|
4557
4572
|
}
|
|
4558
4573
|
data = responseData.data;
|
|
4559
4574
|
return [2 /*return*/, data || {}];
|
package/dist/snapshot.esm.js
CHANGED
|
@@ -3442,6 +3442,21 @@ var networks = {
|
|
|
3442
3442
|
},
|
|
3443
3443
|
start: 3368046,
|
|
3444
3444
|
logo: "ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom"
|
|
3445
|
+
},
|
|
3446
|
+
"29548": {
|
|
3447
|
+
key: "29548",
|
|
3448
|
+
name: "MCH Verse ",
|
|
3449
|
+
shortName: "mainnet",
|
|
3450
|
+
chainId: 29548,
|
|
3451
|
+
network: "mainnet",
|
|
3452
|
+
multicall: "0x1d39652386488CE1fE4254E105F5A42a04d43dB2",
|
|
3453
|
+
rpc: [
|
|
3454
|
+
],
|
|
3455
|
+
explorer: {
|
|
3456
|
+
url: "https://explorer.oasys.mycryptoheroes.net"
|
|
3457
|
+
},
|
|
3458
|
+
start: 27458402,
|
|
3459
|
+
logo: "ipfs://QmZZnwR1y6cU1sare2TQmwqkNDLXQxD4GdPrmHLmUoPtbU"
|
|
3445
3460
|
},
|
|
3446
3461
|
"32659": {
|
|
3447
3462
|
key: "32659",
|
|
@@ -4541,10 +4556,10 @@ function subgraphRequest(url, query, options) {
|
|
|
4541
4556
|
responseData = JSON.parse(responseData);
|
|
4542
4557
|
}
|
|
4543
4558
|
catch (e) {
|
|
4544
|
-
throw new Error("Errors found in subgraphRequest: URL: " + url + ", Status: " + res.status + ", Response: " + responseData);
|
|
4559
|
+
throw new Error("Errors found in subgraphRequest: URL: " + url + ", Status: " + res.status + ", Response: " + responseData.substring(0, 400));
|
|
4545
4560
|
}
|
|
4546
4561
|
if (responseData.errors) {
|
|
4547
|
-
throw new Error("Errors found in subgraphRequest: URL: " + url + ", Status: " + res.status + ", Response: " + JSON.stringify(responseData.errors));
|
|
4562
|
+
throw new Error("Errors found in subgraphRequest: URL: " + url + ", Status: " + res.status + ", Response: " + JSON.stringify(responseData.errors).substring(0, 400));
|
|
4548
4563
|
}
|
|
4549
4564
|
data = responseData.data;
|
|
4550
4565
|
return [2 /*return*/, data || {}];
|