@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapshot-labs/snapshot.js",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "repository": "snapshot-labs/snapshot.js",
5
5
  "license": "MIT",
6
6
  "main": "dist/snapshot.cjs.js",
package/src/networks.json CHANGED
@@ -1918,6 +1918,20 @@
1918
1918
  "start": 3368046,
1919
1919
  "logo": "ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom"
1920
1920
  },
1921
+ "29548": {
1922
+ "key": "29548",
1923
+ "name": "MCH Verse ",
1924
+ "shortName": "mainnet",
1925
+ "chainId": 29548,
1926
+ "network": "mainnet",
1927
+ "multicall": "0x1d39652386488CE1fE4254E105F5A42a04d43dB2",
1928
+ "rpc": [],
1929
+ "explorer": {
1930
+ "url": "https://explorer.oasys.mycryptoheroes.net"
1931
+ },
1932
+ "start": 27458402,
1933
+ "logo": "ipfs://QmZZnwR1y6cU1sare2TQmwqkNDLXQxD4GdPrmHLmUoPtbU"
1934
+ },
1921
1935
  "32659": {
1922
1936
  "key": "32659",
1923
1937
  "name": "Fusion Mainnet",
package/src/utils.ts CHANGED
@@ -150,14 +150,16 @@ export async function subgraphRequest(url: string, query, options: any = {}) {
150
150
  responseData = JSON.parse(responseData);
151
151
  } catch (e) {
152
152
  throw new Error(
153
- `Errors found in subgraphRequest: URL: ${url}, Status: ${res.status}, Response: ${responseData}`
153
+ `Errors found in subgraphRequest: URL: ${url}, Status: ${
154
+ res.status
155
+ }, Response: ${responseData.substring(0, 400)}`
154
156
  );
155
157
  }
156
158
  if (responseData.errors) {
157
159
  throw new Error(
158
160
  `Errors found in subgraphRequest: URL: ${url}, Status: ${
159
161
  res.status
160
- }, Response: ${JSON.stringify(responseData.errors)}`
162
+ }, Response: ${JSON.stringify(responseData.errors).substring(0, 400)}`
161
163
  );
162
164
  }
163
165
  const { data } = responseData;