@snapshot-labs/snapshot.js 0.4.74 → 0.4.75

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.
@@ -1207,46 +1207,32 @@ function getBlockNumber(provider) {
1207
1207
 
1208
1208
  function verifyDefault(address, sig, hash, provider) {
1209
1209
  return __awaiter(this, void 0, void 0, function () {
1210
- var returnValue, magicValue, abi, e_1;
1210
+ var magicValue, abi, returnValue;
1211
1211
  return __generator(this, function (_a) {
1212
1212
  switch (_a.label) {
1213
1213
  case 0:
1214
1214
  magicValue = '0x1626ba7e';
1215
1215
  abi = 'function isValidSignature(bytes32 _hash, bytes memory _signature) public view returns (bytes4 magicValue)';
1216
- _a.label = 1;
1217
- case 1:
1218
- _a.trys.push([1, 3, , 4]);
1219
1216
  return [4 /*yield*/, call(provider, [abi], [address, 'isValidSignature', [bytes.arrayify(hash), sig]])];
1220
- case 2:
1217
+ case 1:
1221
1218
  returnValue = _a.sent();
1222
- return [3 /*break*/, 4];
1223
- case 3:
1224
- e_1 = _a.sent();
1225
- return [2 /*return*/, false];
1226
- case 4: return [2 /*return*/, returnValue.toLowerCase() === magicValue.toLowerCase()];
1219
+ return [2 /*return*/, returnValue.toLowerCase() === magicValue.toLowerCase()];
1227
1220
  }
1228
1221
  });
1229
1222
  });
1230
1223
  }
1231
1224
  function verifyOldVersion(address, sig, hash, provider) {
1232
1225
  return __awaiter(this, void 0, void 0, function () {
1233
- var returnValue, magicValue, abi, e_2;
1226
+ var magicValue, abi, returnValue;
1234
1227
  return __generator(this, function (_a) {
1235
1228
  switch (_a.label) {
1236
1229
  case 0:
1237
1230
  magicValue = '0x20c13b0b';
1238
1231
  abi = 'function isValidSignature(bytes _hash, bytes memory _signature) public view returns (bytes4 magicValue)';
1239
- _a.label = 1;
1240
- case 1:
1241
- _a.trys.push([1, 3, , 4]);
1242
1232
  return [4 /*yield*/, call(provider, [abi], [address, 'isValidSignature', [bytes.arrayify(hash), sig]])];
1243
- case 2:
1233
+ case 1:
1244
1234
  returnValue = _a.sent();
1245
- return [3 /*break*/, 4];
1246
- case 3:
1247
- e_2 = _a.sent();
1248
- return [2 /*return*/, false];
1249
- case 4: return [2 /*return*/, returnValue.toLowerCase() === magicValue.toLowerCase()];
1235
+ return [2 /*return*/, returnValue.toLowerCase() === magicValue.toLowerCase()];
1250
1236
  }
1251
1237
  });
1252
1238
  });
@@ -2380,6 +2366,23 @@ var networks = {
2380
2366
  url: "https://explorer.kardiachain.io"
2381
2367
  },
2382
2368
  logo: "ipfs://QmVH3uyPQDcrPC1DMUWCb7HayMv1oMAiKehuWwP2C2fdgM"
2369
+ },
2370
+ "1071": {
2371
+ key: "1071",
2372
+ name: "Shimmer EVM Testnet",
2373
+ shortName: "ShimmerEVM",
2374
+ chainId: 1071,
2375
+ network: "testnet",
2376
+ testnet: true,
2377
+ multicall: "0xb6d9a0849bA7a6FB565567A6013cFEb8d91A1688",
2378
+ rpc: [
2379
+ "https://json-rpc.evm.testnet.shimmer.network/"
2380
+ ],
2381
+ explorer: {
2382
+ url: "https://explorer.evm.testnet.shimmer.network/"
2383
+ },
2384
+ start: 38066,
2385
+ logo: "ipfs://QmYGxmEhV6djksUk97pdE9TmL6DXm9KW8BP7pwUv8pqp8r"
2383
2386
  },
2384
2387
  "1088": {
2385
2388
  key: "1088",
@@ -1198,46 +1198,32 @@ function getBlockNumber(provider) {
1198
1198
 
1199
1199
  function verifyDefault(address, sig, hash, provider) {
1200
1200
  return __awaiter(this, void 0, void 0, function () {
1201
- var returnValue, magicValue, abi, e_1;
1201
+ var magicValue, abi, returnValue;
1202
1202
  return __generator(this, function (_a) {
1203
1203
  switch (_a.label) {
1204
1204
  case 0:
1205
1205
  magicValue = '0x1626ba7e';
1206
1206
  abi = 'function isValidSignature(bytes32 _hash, bytes memory _signature) public view returns (bytes4 magicValue)';
1207
- _a.label = 1;
1208
- case 1:
1209
- _a.trys.push([1, 3, , 4]);
1210
1207
  return [4 /*yield*/, call(provider, [abi], [address, 'isValidSignature', [arrayify(hash), sig]])];
1211
- case 2:
1208
+ case 1:
1212
1209
  returnValue = _a.sent();
1213
- return [3 /*break*/, 4];
1214
- case 3:
1215
- e_1 = _a.sent();
1216
- return [2 /*return*/, false];
1217
- case 4: return [2 /*return*/, returnValue.toLowerCase() === magicValue.toLowerCase()];
1210
+ return [2 /*return*/, returnValue.toLowerCase() === magicValue.toLowerCase()];
1218
1211
  }
1219
1212
  });
1220
1213
  });
1221
1214
  }
1222
1215
  function verifyOldVersion(address, sig, hash, provider) {
1223
1216
  return __awaiter(this, void 0, void 0, function () {
1224
- var returnValue, magicValue, abi, e_2;
1217
+ var magicValue, abi, returnValue;
1225
1218
  return __generator(this, function (_a) {
1226
1219
  switch (_a.label) {
1227
1220
  case 0:
1228
1221
  magicValue = '0x20c13b0b';
1229
1222
  abi = 'function isValidSignature(bytes _hash, bytes memory _signature) public view returns (bytes4 magicValue)';
1230
- _a.label = 1;
1231
- case 1:
1232
- _a.trys.push([1, 3, , 4]);
1233
1223
  return [4 /*yield*/, call(provider, [abi], [address, 'isValidSignature', [arrayify(hash), sig]])];
1234
- case 2:
1224
+ case 1:
1235
1225
  returnValue = _a.sent();
1236
- return [3 /*break*/, 4];
1237
- case 3:
1238
- e_2 = _a.sent();
1239
- return [2 /*return*/, false];
1240
- case 4: return [2 /*return*/, returnValue.toLowerCase() === magicValue.toLowerCase()];
1226
+ return [2 /*return*/, returnValue.toLowerCase() === magicValue.toLowerCase()];
1241
1227
  }
1242
1228
  });
1243
1229
  });
@@ -2371,6 +2357,23 @@ var networks = {
2371
2357
  url: "https://explorer.kardiachain.io"
2372
2358
  },
2373
2359
  logo: "ipfs://QmVH3uyPQDcrPC1DMUWCb7HayMv1oMAiKehuWwP2C2fdgM"
2360
+ },
2361
+ "1071": {
2362
+ key: "1071",
2363
+ name: "Shimmer EVM Testnet",
2364
+ shortName: "ShimmerEVM",
2365
+ chainId: 1071,
2366
+ network: "testnet",
2367
+ testnet: true,
2368
+ multicall: "0xb6d9a0849bA7a6FB565567A6013cFEb8d91A1688",
2369
+ rpc: [
2370
+ "https://json-rpc.evm.testnet.shimmer.network/"
2371
+ ],
2372
+ explorer: {
2373
+ url: "https://explorer.evm.testnet.shimmer.network/"
2374
+ },
2375
+ start: 38066,
2376
+ logo: "ipfs://QmYGxmEhV6djksUk97pdE9TmL6DXm9KW8BP7pwUv8pqp8r"
2374
2377
  },
2375
2378
  "1088": {
2376
2379
  key: "1088",