@reality.eth/contracts 3.0.26 → 3.0.28

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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "address": "0x7955DFA097Cd5474b2773dFe85F1988014d85C01",
3
- "block": 715363,
2
+ "address": "0xFAD6e5e3a9421B9de71A517122D3Bb39A57D6FF5",
3
+ "block": 2902645,
4
4
  "notes": null,
5
5
  "arbitrators": {
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
- "address": "0xDE385Fe7695836f757E0846B8A9338Ea2fe48E0E",
3
- "block": 9140,
2
+ "address": "0xA8AC760332770FcF2056040B1f964750e4bEf808",
3
+ "block": 9691,
4
4
  "notes": null,
5
5
  "arbitrators": {
6
6
  }
@@ -68,8 +68,8 @@
68
68
  },
69
69
  "324": {
70
70
  "explorerURL": "https://explorer.zksync.io/",
71
- "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-zksync-todo",
72
- "network_name": "era-todo"
71
+ "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-zksync-era",
72
+ "network_name": "zksync-era"
73
73
  },
74
74
  "777": {
75
75
  "explorerURL": "https://explore.cheapswap.io/",
package/example.js CHANGED
@@ -7,7 +7,7 @@ const ethers = require('ethers');
7
7
 
8
8
  // The chain ID is usually either specified by the user or detected from metamask etc.
9
9
  const chain_id = 1;
10
- console.log('Using chain ID', chain_id)
10
+ console.log('Using chain', chain_id, realityeth_contracts.getChainLabel(chain_id))
11
11
 
12
12
  // We provide some basic information about chains we support.
13
13
  // This will include an RPC node and a Graph endpoint where available.
@@ -290,12 +290,12 @@
290
290
  "symbol": "ETH",
291
291
  "decimals": 18
292
292
  },
293
- "network_name": "era-todo",
293
+ "network_name": "zksync-era",
294
294
  "rpcUrls": [
295
295
  "https://zksync2-mainnet.zksync.io"
296
296
  ],
297
297
  "hostedRPC": "https://zksync2-mainnet.zksync.io",
298
- "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-zksync-todo",
298
+ "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-zksync-era",
299
299
  "blockExplorerUrls": [
300
300
  "https://explorer.zksync.io",
301
301
  "https://explorer.zksync.io/"
@@ -378,8 +378,8 @@
378
378
  "280": {
379
379
  "ETH": {
380
380
  "RealityETH-3.0": {
381
- "address": "0x7955DFA097Cd5474b2773dFe85F1988014d85C01",
382
- "block": 715363,
381
+ "address": "0xFAD6e5e3a9421B9de71A517122D3Bb39A57D6FF5",
382
+ "block": 2902645,
383
383
  "notes": null,
384
384
  "arbitrators": {}
385
385
  }
@@ -388,8 +388,8 @@
388
388
  "324": {
389
389
  "ETH": {
390
390
  "RealityETH-3.0": {
391
- "address": "0xDE385Fe7695836f757E0846B8A9338Ea2fe48E0E",
392
- "block": 9140,
391
+ "address": "0xA8AC760332770FcF2056040B1f964750e4bEf808",
392
+ "block": 9691,
393
393
  "notes": null,
394
394
  "arbitrators": {}
395
395
  }
package/index.js CHANGED
@@ -315,6 +315,14 @@ function tokenAndContractConfigFromFactory(factory_data, chain_id) {
315
315
  }
316
316
 
317
317
 
318
+ function getChainLabel(chain_id) {
319
+ const c = chain_info[chain_id];
320
+ if (!c) {
321
+ return null;
322
+ }
323
+ return c['chainName'];
324
+ }
325
+
318
326
  module.exports.realityETHConfig = realityETHConfig;
319
327
  module.exports.realityETHConfigs = realityETHConfigs;
320
328
  module.exports.realityETHInstance = realityETHInstance;
@@ -332,3 +340,4 @@ module.exports.factoryList = factoryList;
332
340
  module.exports.tokenAndContractConfigFromFactory = tokenAndContractConfigFromFactory;
333
341
  module.exports.configForAddress = configForAddress;
334
342
  module.exports.populateImports = populateImports;
343
+ module.exports.getChainLabel = getChainLabel;
@@ -15,13 +15,15 @@ contract BalanceHolder {
15
15
  public {
16
16
  uint256 bal = balanceOf[msg.sender];
17
17
  balanceOf[msg.sender] = 0;
18
- payable(msg.sender).transfer(bal);
18
+ // payable(msg.sender).transfer(bal); This behaves badly in zksync
19
+ (bool success, ) = payable(msg.sender).call{value: bal}("");
20
+ require(success, "transfer failed");
19
21
  emit LogWithdraw(msg.sender, bal);
20
22
  }
21
23
 
22
24
  }
23
25
 
24
- contract RealityETH_v3_0 is BalanceHolder {
26
+ contract RealityETH_zksync_v3_0 is BalanceHolder {
25
27
 
26
28
  address constant NULL_ADDRESS = address(0);
27
29
 
@@ -21,7 +21,7 @@ export default async function (hre: HardhatRuntimeEnvironment) {
21
21
 
22
22
  // Create deployer object and load the artifact of the contract we want to deploy.
23
23
  const deployer = new Deployer(hre, wallet);
24
- const artifact = await deployer.loadArtifact("RealityETH_v3_0");
24
+ const artifact = await deployer.loadArtifact("RealityETH_zksync_v3_0");
25
25
 
26
26
  /*
27
27
  // Deposit some funds to L2 in order to be able to perform L2 transactions.
@@ -16,10 +16,9 @@ export default async function (hre: HardhatRuntimeEnvironment) {
16
16
 
17
17
  // Create deployer object and load the artifact of the contract you want to deploy.
18
18
  const deployer = new Deployer(hre, wallet);
19
- const artifact = await deployer.loadArtifact("RealityETH_v3_0");
19
+ const artifact = await deployer.loadArtifact("RealityETH_zksync_v3_0");
20
20
 
21
21
  // Estimate contract deployment fee
22
- const greeting = "Hi there!";
23
22
  const deploymentFee = await deployer.estimateDeployFee(artifact, []);
24
23
 
25
24
  /*
@@ -3,7 +3,7 @@ import "@matterlabs/hardhat-zksync-solc";
3
3
 
4
4
  module.exports = {
5
5
  zksolc: {
6
- version: "1.3.1",
6
+ version: "1.3.5",
7
7
  compilerSource: "binary",
8
8
  settings: {},
9
9
  },
@@ -6,10 +6,10 @@
6
6
  "devDependencies": {
7
7
  "@matterlabs/hardhat-zksync-deploy": "^0.6.2",
8
8
  "@matterlabs/hardhat-zksync-solc": "^0.3.14",
9
- "ethers": "^5.7.2",
9
+ "ethers": "5",
10
10
  "hardhat": "^2.13.0",
11
11
  "ts-node": "^10.9.1",
12
12
  "typescript": "^4.9.5",
13
- "zksync-web3": "^0.13.1"
13
+ "zksync-web3": "^0.14.3"
14
14
  }
15
15
  }
@@ -411,29 +411,29 @@
411
411
  resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.7.1.tgz#b251c70f824ce3ca7f8dc3df08d58f005cc0507c"
412
412
  integrity sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw==
413
413
 
414
- "@nomicfoundation/ethereumjs-block@^4.0.0":
415
- version "4.0.0"
416
- resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-block/-/ethereumjs-block-4.0.0.tgz#fdd5c045e7baa5169abeed0e1202bf94e4481c49"
417
- integrity sha512-bk8uP8VuexLgyIZAHExH1QEovqx0Lzhc9Ntm63nCRKLHXIZkobaFaeCVwTESV7YkPKUk7NiK11s8ryed4CS9yA==
418
- dependencies:
419
- "@nomicfoundation/ethereumjs-common" "^3.0.0"
420
- "@nomicfoundation/ethereumjs-rlp" "^4.0.0"
421
- "@nomicfoundation/ethereumjs-trie" "^5.0.0"
422
- "@nomicfoundation/ethereumjs-tx" "^4.0.0"
423
- "@nomicfoundation/ethereumjs-util" "^8.0.0"
414
+ "@nomicfoundation/ethereumjs-block@4.2.2", "@nomicfoundation/ethereumjs-block@^4.0.0":
415
+ version "4.2.2"
416
+ resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-block/-/ethereumjs-block-4.2.2.tgz#f317078c810a54381c682d0c12e1e81acfc11599"
417
+ integrity sha512-atjpt4gc6ZGZUPHBAQaUJsm1l/VCo7FmyQ780tMGO8QStjLdhz09dXynmhwVTy5YbRr0FOh/uX3QaEM0yIB2Zg==
418
+ dependencies:
419
+ "@nomicfoundation/ethereumjs-common" "3.1.2"
420
+ "@nomicfoundation/ethereumjs-rlp" "4.0.3"
421
+ "@nomicfoundation/ethereumjs-trie" "5.0.5"
422
+ "@nomicfoundation/ethereumjs-tx" "4.1.2"
423
+ "@nomicfoundation/ethereumjs-util" "8.0.6"
424
424
  ethereum-cryptography "0.1.3"
425
425
 
426
- "@nomicfoundation/ethereumjs-blockchain@^6.0.0":
427
- version "6.0.0"
428
- resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-blockchain/-/ethereumjs-blockchain-6.0.0.tgz#1a8c243a46d4d3691631f139bfb3a4a157187b0c"
429
- integrity sha512-pLFEoea6MWd81QQYSReLlLfH7N9v7lH66JC/NMPN848ySPPQA5renWnE7wPByfQFzNrPBuDDRFFULMDmj1C0xw==
430
- dependencies:
431
- "@nomicfoundation/ethereumjs-block" "^4.0.0"
432
- "@nomicfoundation/ethereumjs-common" "^3.0.0"
433
- "@nomicfoundation/ethereumjs-ethash" "^2.0.0"
434
- "@nomicfoundation/ethereumjs-rlp" "^4.0.0"
435
- "@nomicfoundation/ethereumjs-trie" "^5.0.0"
436
- "@nomicfoundation/ethereumjs-util" "^8.0.0"
426
+ "@nomicfoundation/ethereumjs-blockchain@6.2.2", "@nomicfoundation/ethereumjs-blockchain@^6.0.0":
427
+ version "6.2.2"
428
+ resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-blockchain/-/ethereumjs-blockchain-6.2.2.tgz#9f79dd2b3dc73f5d5a220f7d8a734330c4c26320"
429
+ integrity sha512-6AIB2MoTEPZJLl6IRKcbd8mUmaBAQ/NMe3O7OsAOIiDjMNPPH5KaUQiLfbVlegT4wKIg/GOsFH7XlH2KDVoJNg==
430
+ dependencies:
431
+ "@nomicfoundation/ethereumjs-block" "4.2.2"
432
+ "@nomicfoundation/ethereumjs-common" "3.1.2"
433
+ "@nomicfoundation/ethereumjs-ethash" "2.0.5"
434
+ "@nomicfoundation/ethereumjs-rlp" "4.0.3"
435
+ "@nomicfoundation/ethereumjs-trie" "5.0.5"
436
+ "@nomicfoundation/ethereumjs-util" "8.0.6"
437
437
  abstract-level "^1.0.3"
438
438
  debug "^4.3.3"
439
439
  ethereum-cryptography "0.1.3"
@@ -441,33 +441,33 @@
441
441
  lru-cache "^5.1.1"
442
442
  memory-level "^1.0.0"
443
443
 
444
- "@nomicfoundation/ethereumjs-common@^3.0.0":
445
- version "3.0.0"
446
- resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-common/-/ethereumjs-common-3.0.0.tgz#f6bcc7753994555e49ab3aa517fc8bcf89c280b9"
447
- integrity sha512-WS7qSshQfxoZOpHG/XqlHEGRG1zmyjYrvmATvc4c62+gZXgre1ymYP8ZNgx/3FyZY0TWe9OjFlKOfLqmgOeYwA==
444
+ "@nomicfoundation/ethereumjs-common@3.1.2", "@nomicfoundation/ethereumjs-common@^3.0.0":
445
+ version "3.1.2"
446
+ resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-common/-/ethereumjs-common-3.1.2.tgz#041086da66ed40f2bf2a2116a1f2f0fcf33fb80d"
447
+ integrity sha512-JAEBpIua62dyObHM9KI2b4wHZcRQYYge9gxiygTWa3lNCr2zo+K0TbypDpgiNij5MCGNWP1eboNfNfx1a3vkvA==
448
448
  dependencies:
449
- "@nomicfoundation/ethereumjs-util" "^8.0.0"
449
+ "@nomicfoundation/ethereumjs-util" "8.0.6"
450
450
  crc-32 "^1.2.0"
451
451
 
452
- "@nomicfoundation/ethereumjs-ethash@^2.0.0":
453
- version "2.0.0"
454
- resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-ethash/-/ethereumjs-ethash-2.0.0.tgz#11539c32fe0990e1122ff987d1b84cfa34774e81"
455
- integrity sha512-WpDvnRncfDUuXdsAXlI4lXbqUDOA+adYRQaEezIkxqDkc+LDyYDbd/xairmY98GnQzo1zIqsIL6GB5MoMSJDew==
452
+ "@nomicfoundation/ethereumjs-ethash@2.0.5":
453
+ version "2.0.5"
454
+ resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-ethash/-/ethereumjs-ethash-2.0.5.tgz#0c605812f6f4589a9f6d597db537bbf3b86469db"
455
+ integrity sha512-xlLdcICGgAYyYmnI3r1t0R5fKGBJNDQSOQxXNjVO99JmxJIdXR5MgPo5CSJO1RpyzKOgzi3uIFn8agv564dZEQ==
456
456
  dependencies:
457
- "@nomicfoundation/ethereumjs-block" "^4.0.0"
458
- "@nomicfoundation/ethereumjs-rlp" "^4.0.0"
459
- "@nomicfoundation/ethereumjs-util" "^8.0.0"
457
+ "@nomicfoundation/ethereumjs-block" "4.2.2"
458
+ "@nomicfoundation/ethereumjs-rlp" "4.0.3"
459
+ "@nomicfoundation/ethereumjs-util" "8.0.6"
460
460
  abstract-level "^1.0.3"
461
461
  bigint-crypto-utils "^3.0.23"
462
462
  ethereum-cryptography "0.1.3"
463
463
 
464
- "@nomicfoundation/ethereumjs-evm@^1.0.0":
465
- version "1.0.0"
466
- resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-evm/-/ethereumjs-evm-1.0.0.tgz#99cd173c03b59107c156a69c5e215409098a370b"
467
- integrity sha512-hVS6qRo3V1PLKCO210UfcEQHvlG7GqR8iFzp0yyjTg2TmJQizcChKgWo8KFsdMw6AyoLgLhHGHw4HdlP8a4i+Q==
464
+ "@nomicfoundation/ethereumjs-evm@1.3.2", "@nomicfoundation/ethereumjs-evm@^1.0.0":
465
+ version "1.3.2"
466
+ resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-evm/-/ethereumjs-evm-1.3.2.tgz#f9d6bafd5c23d07ab75b8649d589af1a43b60bfc"
467
+ integrity sha512-I00d4MwXuobyoqdPe/12dxUQxTYzX8OckSaWsMcWAfQhgVDvBx6ffPyP/w1aL0NW7MjyerySPcSVfDJAMHjilw==
468
468
  dependencies:
469
- "@nomicfoundation/ethereumjs-common" "^3.0.0"
470
- "@nomicfoundation/ethereumjs-util" "^8.0.0"
469
+ "@nomicfoundation/ethereumjs-common" "3.1.2"
470
+ "@nomicfoundation/ethereumjs-util" "8.0.6"
471
471
  "@types/async-eventemitter" "^0.2.1"
472
472
  async-eventemitter "^0.2.4"
473
473
  debug "^4.3.3"
@@ -475,66 +475,66 @@
475
475
  mcl-wasm "^0.7.1"
476
476
  rustbn.js "~0.2.0"
477
477
 
478
- "@nomicfoundation/ethereumjs-rlp@^4.0.0", "@nomicfoundation/ethereumjs-rlp@^4.0.0-beta.2":
479
- version "4.0.0"
480
- resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-rlp/-/ethereumjs-rlp-4.0.0.tgz#d9a9c5f0f10310c8849b6525101de455a53e771d"
481
- integrity sha512-GaSOGk5QbUk4eBP5qFbpXoZoZUj/NrW7MRa0tKY4Ew4c2HAS0GXArEMAamtFrkazp0BO4K5p2ZCG3b2FmbShmw==
478
+ "@nomicfoundation/ethereumjs-rlp@4.0.3", "@nomicfoundation/ethereumjs-rlp@^4.0.0":
479
+ version "4.0.3"
480
+ resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-rlp/-/ethereumjs-rlp-4.0.3.tgz#8d9147fbd0d49e8f4c5ce729d226694a8fe03eb8"
481
+ integrity sha512-DZMzB/lqPK78T6MluyXqtlRmOMcsZbTTbbEyAjo0ncaff2mqu/k8a79PBcyvpgAhWD/R59Fjq/x3ro5Lof0AtA==
482
482
 
483
- "@nomicfoundation/ethereumjs-statemanager@^1.0.0":
484
- version "1.0.0"
485
- resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-statemanager/-/ethereumjs-statemanager-1.0.0.tgz#14a9d4e1c828230368f7ab520c144c34d8721e4b"
486
- integrity sha512-jCtqFjcd2QejtuAMjQzbil/4NHf5aAWxUc+CvS0JclQpl+7M0bxMofR2AJdtz+P3u0ke2euhYREDiE7iSO31vQ==
483
+ "@nomicfoundation/ethereumjs-statemanager@1.0.5", "@nomicfoundation/ethereumjs-statemanager@^1.0.0":
484
+ version "1.0.5"
485
+ resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-statemanager/-/ethereumjs-statemanager-1.0.5.tgz#951cc9ff2c421d40233d2e9d0fe033db2391ee44"
486
+ integrity sha512-CAhzpzTR5toh/qOJIZUUOnWekUXuRqkkzaGAQrVcF457VhtCmr+ddZjjK50KNZ524c1XP8cISguEVNqJ6ij1sA==
487
487
  dependencies:
488
- "@nomicfoundation/ethereumjs-common" "^3.0.0"
489
- "@nomicfoundation/ethereumjs-rlp" "^4.0.0"
490
- "@nomicfoundation/ethereumjs-trie" "^5.0.0"
491
- "@nomicfoundation/ethereumjs-util" "^8.0.0"
488
+ "@nomicfoundation/ethereumjs-common" "3.1.2"
489
+ "@nomicfoundation/ethereumjs-rlp" "4.0.3"
490
+ "@nomicfoundation/ethereumjs-trie" "5.0.5"
491
+ "@nomicfoundation/ethereumjs-util" "8.0.6"
492
492
  debug "^4.3.3"
493
493
  ethereum-cryptography "0.1.3"
494
494
  functional-red-black-tree "^1.0.1"
495
495
 
496
- "@nomicfoundation/ethereumjs-trie@^5.0.0":
497
- version "5.0.0"
498
- resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-trie/-/ethereumjs-trie-5.0.0.tgz#dcfbe3be53a94bc061c9767a396c16702bc2f5b7"
499
- integrity sha512-LIj5XdE+s+t6WSuq/ttegJzZ1vliwg6wlb+Y9f4RlBpuK35B9K02bO7xU+E6Rgg9RGptkWd6TVLdedTI4eNc2A==
496
+ "@nomicfoundation/ethereumjs-trie@5.0.5", "@nomicfoundation/ethereumjs-trie@^5.0.0":
497
+ version "5.0.5"
498
+ resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-trie/-/ethereumjs-trie-5.0.5.tgz#bf31c9306dcbba2007fad668e96109ddb147040c"
499
+ integrity sha512-+8sNZrXkzvA1NH5F4kz5RSYl1I6iaRz7mAZRsyxOm0IVY4UaP43Ofvfp/TwOalFunurQrYB5pRO40+8FBcxFMA==
500
500
  dependencies:
501
- "@nomicfoundation/ethereumjs-rlp" "^4.0.0"
502
- "@nomicfoundation/ethereumjs-util" "^8.0.0"
501
+ "@nomicfoundation/ethereumjs-rlp" "4.0.3"
502
+ "@nomicfoundation/ethereumjs-util" "8.0.6"
503
503
  ethereum-cryptography "0.1.3"
504
504
  readable-stream "^3.6.0"
505
505
 
506
- "@nomicfoundation/ethereumjs-tx@^4.0.0":
507
- version "4.0.0"
508
- resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-tx/-/ethereumjs-tx-4.0.0.tgz#59dc7452b0862b30342966f7052ab9a1f7802f52"
509
- integrity sha512-Gg3Lir2lNUck43Kp/3x6TfBNwcWC9Z1wYue9Nz3v4xjdcv6oDW9QSMJxqsKw9QEGoBBZ+gqwpW7+F05/rs/g1w==
506
+ "@nomicfoundation/ethereumjs-tx@4.1.2", "@nomicfoundation/ethereumjs-tx@^4.0.0":
507
+ version "4.1.2"
508
+ resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-tx/-/ethereumjs-tx-4.1.2.tgz#8659fad7f9094b7eb82aa6cc3c8097cb1c42ff31"
509
+ integrity sha512-emJBJZpmTdUa09cqxQqHaysbBI9Od353ZazeH7WgPb35miMgNY6mb7/3vBA98N5lUW/rgkiItjX0KZfIzihSoQ==
510
510
  dependencies:
511
- "@nomicfoundation/ethereumjs-common" "^3.0.0"
512
- "@nomicfoundation/ethereumjs-rlp" "^4.0.0"
513
- "@nomicfoundation/ethereumjs-util" "^8.0.0"
511
+ "@nomicfoundation/ethereumjs-common" "3.1.2"
512
+ "@nomicfoundation/ethereumjs-rlp" "4.0.3"
513
+ "@nomicfoundation/ethereumjs-util" "8.0.6"
514
514
  ethereum-cryptography "0.1.3"
515
515
 
516
- "@nomicfoundation/ethereumjs-util@^8.0.0":
517
- version "8.0.0"
518
- resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-util/-/ethereumjs-util-8.0.0.tgz#deb2b15d2c308a731e82977aefc4e61ca0ece6c5"
519
- integrity sha512-2emi0NJ/HmTG+CGY58fa+DQuAoroFeSH9gKu9O6JnwTtlzJtgfTixuoOqLEgyyzZVvwfIpRueuePb8TonL1y+A==
516
+ "@nomicfoundation/ethereumjs-util@8.0.6", "@nomicfoundation/ethereumjs-util@^8.0.0":
517
+ version "8.0.6"
518
+ resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-util/-/ethereumjs-util-8.0.6.tgz#dbce5d258b017b37aa58b3a7c330ad59d10ccf0b"
519
+ integrity sha512-jOQfF44laa7xRfbfLXojdlcpkvxeHrE2Xu7tSeITsWFgoII163MzjOwFEzSNozHYieFysyoEMhCdP+NY5ikstw==
520
520
  dependencies:
521
- "@nomicfoundation/ethereumjs-rlp" "^4.0.0-beta.2"
521
+ "@nomicfoundation/ethereumjs-rlp" "4.0.3"
522
522
  ethereum-cryptography "0.1.3"
523
523
 
524
524
  "@nomicfoundation/ethereumjs-vm@^6.0.0":
525
- version "6.0.0"
526
- resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-vm/-/ethereumjs-vm-6.0.0.tgz#2bb50d332bf41790b01a3767ffec3987585d1de6"
527
- integrity sha512-JMPxvPQ3fzD063Sg3Tp+UdwUkVxMoo1uML6KSzFhMH3hoQi/LMuXBoEHAoW83/vyNS9BxEe6jm6LmT5xdeEJ6w==
528
- dependencies:
529
- "@nomicfoundation/ethereumjs-block" "^4.0.0"
530
- "@nomicfoundation/ethereumjs-blockchain" "^6.0.0"
531
- "@nomicfoundation/ethereumjs-common" "^3.0.0"
532
- "@nomicfoundation/ethereumjs-evm" "^1.0.0"
533
- "@nomicfoundation/ethereumjs-rlp" "^4.0.0"
534
- "@nomicfoundation/ethereumjs-statemanager" "^1.0.0"
535
- "@nomicfoundation/ethereumjs-trie" "^5.0.0"
536
- "@nomicfoundation/ethereumjs-tx" "^4.0.0"
537
- "@nomicfoundation/ethereumjs-util" "^8.0.0"
525
+ version "6.4.2"
526
+ resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-vm/-/ethereumjs-vm-6.4.2.tgz#af1cf62e6c0054bc2b7febc8556d032433d1b18c"
527
+ integrity sha512-PRTyxZMP6kx+OdAzBhuH1LD2Yw+hrSpaytftvaK//thDy2OI07S0nrTdbrdk7b8ZVPAc9H9oTwFBl3/wJ3w15g==
528
+ dependencies:
529
+ "@nomicfoundation/ethereumjs-block" "4.2.2"
530
+ "@nomicfoundation/ethereumjs-blockchain" "6.2.2"
531
+ "@nomicfoundation/ethereumjs-common" "3.1.2"
532
+ "@nomicfoundation/ethereumjs-evm" "1.3.2"
533
+ "@nomicfoundation/ethereumjs-rlp" "4.0.3"
534
+ "@nomicfoundation/ethereumjs-statemanager" "1.0.5"
535
+ "@nomicfoundation/ethereumjs-trie" "5.0.5"
536
+ "@nomicfoundation/ethereumjs-tx" "4.1.2"
537
+ "@nomicfoundation/ethereumjs-util" "8.0.6"
538
538
  "@types/async-eventemitter" "^0.2.1"
539
539
  async-eventemitter "^0.2.4"
540
540
  debug "^4.3.3"
@@ -753,9 +753,9 @@
753
753
  integrity sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw==
754
754
 
755
755
  "@types/node@*":
756
- version "18.15.0"
757
- resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.0.tgz#286a65e3fdffd691e170541e6ecb0410b16a38be"
758
- integrity sha512-z6nr0TTEOBGkzLGmbypWOGnpSpSIBorEhC4L+4HeQ2iezKCi4f77kyslRwvHeNitymGQ+oFyIWGP96l/DPSV9w==
756
+ version "18.15.6"
757
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.6.tgz#af98ef4a36e7ac5f2d03040f3109fcce972bf6cb"
758
+ integrity sha512-YErOafCZpK4g+Rp3Q/PBgZNAsWKGunQTm9FA3/Pbcm0VCriTEzcrutQ/SxSc0rytAp0NoFWue669jmKhEtd0sA==
759
759
 
760
760
  "@types/pbkdf2@^3.0.0":
761
761
  version "3.1.0"
@@ -1356,9 +1356,9 @@ docker-modem@^1.0.8:
1356
1356
  split-ca "^1.0.0"
1357
1357
 
1358
1358
  docker-modem@^3.0.0:
1359
- version "3.0.7"
1360
- resolved "https://registry.yarnpkg.com/docker-modem/-/docker-modem-3.0.7.tgz#021f4b91d49cdff41e60196ef5b3c3acf5074e72"
1361
- integrity sha512-34Kvg/u64OUl5CXMBqbs2FQao3eL4mc2dL8/GGPwwKQUEY1RjFC1dLo/OTqr3mu0BQC51+TPLsBAKGtr0kxiBg==
1359
+ version "3.0.8"
1360
+ resolved "https://registry.yarnpkg.com/docker-modem/-/docker-modem-3.0.8.tgz#ef62c8bdff6e8a7d12f0160988c295ea8705e77a"
1361
+ integrity sha512-f0ReSURdM3pcKPNS30mxOHSbaFLcknGmQjwSfmbcdOw1XWKXVhukM3NJHhr7NpY9BIyyWQb0EBo3KQvvuU5egQ==
1362
1362
  dependencies:
1363
1363
  debug "^4.1.1"
1364
1364
  readable-stream "^3.5.0"
@@ -1487,7 +1487,7 @@ ethereumjs-util@^6.0.0, ethereumjs-util@^6.2.1:
1487
1487
  ethjs-util "0.1.6"
1488
1488
  rlp "^2.2.3"
1489
1489
 
1490
- ethers@^5.7.2:
1490
+ ethers@5:
1491
1491
  version "5.7.2"
1492
1492
  resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.7.2.tgz#3a7deeabbb8c030d4126b24f84e525466145872e"
1493
1493
  integrity sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==
@@ -1677,9 +1677,9 @@ glob@^7.1.3:
1677
1677
  path-is-absolute "^1.0.0"
1678
1678
 
1679
1679
  graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9:
1680
- version "4.2.10"
1681
- resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c"
1682
- integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==
1680
+ version "4.2.11"
1681
+ resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3"
1682
+ integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==
1683
1683
 
1684
1684
  hardhat@^2.13.0:
1685
1685
  version "2.13.0"
@@ -2761,9 +2761,9 @@ typescript@^4.9.5:
2761
2761
  integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
2762
2762
 
2763
2763
  undici@^5.14.0:
2764
- version "5.20.0"
2765
- resolved "https://registry.yarnpkg.com/undici/-/undici-5.20.0.tgz#6327462f5ce1d3646bcdac99da7317f455bcc263"
2766
- integrity sha512-J3j60dYzuo6Eevbawwp1sdg16k5Tf768bxYK4TUJRH7cBM4kFCbf3mOnM/0E3vQYXvpxITbbWmBafaDbxLDz3g==
2764
+ version "5.21.0"
2765
+ resolved "https://registry.yarnpkg.com/undici/-/undici-5.21.0.tgz#b00dfc381f202565ab7f52023222ab862bb2494f"
2766
+ integrity sha512-HOjK8l6a57b2ZGXOcUsI5NLfoTrfmbOl90ixJDl0AEFG4wgHNDQxtZy15/ZQp7HhjkpaGlp/eneMgtsu1dIlUA==
2767
2767
  dependencies:
2768
2768
  busboy "^1.6.0"
2769
2769
 
@@ -2892,7 +2892,7 @@ yocto-queue@^0.1.0:
2892
2892
  resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
2893
2893
  integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
2894
2894
 
2895
- zksync-web3@^0.13.1:
2896
- version "0.13.4"
2897
- resolved "https://registry.yarnpkg.com/zksync-web3/-/zksync-web3-0.13.4.tgz#1c5b1303436cb4cba1a0873ea07860b19f385331"
2898
- integrity sha512-AjCKhn9TRqsk2T9VLKxlod22rnVWOWGOjq+QXppFe2yTxZx9dVaai325OJ0aa7a3m5wx+9yhPqBu23jG2xPo5Q==
2895
+ zksync-web3@^0.14.3:
2896
+ version "0.14.3"
2897
+ resolved "https://registry.yarnpkg.com/zksync-web3/-/zksync-web3-0.14.3.tgz#64ac2a16d597464c3fc4ae07447a8007631c57c9"
2898
+ integrity sha512-hT72th4AnqyLW1d5Jlv8N2B/qhEnl2NePK2A3org7tAa24niem/UAaHMkEvmWI3SF9waYUPtqAtjpf+yvQ9zvQ==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reality.eth/contracts",
3
- "version": "3.0.26",
3
+ "version": "3.0.28",
4
4
  "description": "Collection of smart contracts for the Realitio fact verification platform",
5
5
  "scripts": {
6
6
  "generate-chains": "node scripts/generate_chains_json.js",
@@ -30,7 +30,7 @@
30
30
  "url": "https://github.com/RealityETH/monorepo/issues"
31
31
  },
32
32
  "homepage": "https://reality.eth.link",
33
- "gitHead": "0d2dc425f700aaf514f1927384dd6fe0015e8dba",
33
+ "gitHead": "ee8105a5204125b708d3919365a2c53d72711124",
34
34
  "dependencies": {
35
35
  "ethers": "^5.6.8"
36
36
  }
package/scripts/deploy.js CHANGED
@@ -43,7 +43,7 @@ const chains = {
43
43
  'chapel': 97,
44
44
  'sokol': 77,
45
45
  'cheapeth': 777,
46
- 'xdai': 100,
46
+ 'gnosis': 100,
47
47
  'polygon': 137,
48
48
  'mumbai': 80001,
49
49
  'ava': 43114,
@@ -54,7 +54,7 @@ const chains = {
54
54
  'sepolia': 11155111,
55
55
  }
56
56
  const non_infura_chains = {
57
- 'xdai': 'https://rpc.ankr.com/gnosis',
57
+ 'gnosis': 'https://rpc.ankr.com/gnosis',
58
58
  'sokol': 'https://sokol.poa.network',
59
59
  'bsc': 'https://bsc-dataseed.binance.org',
60
60
  'chapel': 'https://bsc-testnet.public.blastapi.io',