@reality.eth/contracts 3.0.23 → 3.0.25

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.
@@ -0,0 +1,6 @@
1
+ {
2
+ "address": "0xaf33DcB6E8c5c4D9dDF579f53031b514d19449CA",
3
+ "block": 3044431,
4
+ "notes": null,
5
+ "arbitrators": {}
6
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
- "address": "0xFAD6e5e3a9421B9de71A517122D3Bb39A57D6FF5",
3
- "block": 5956040,
2
+ "address": "0x7955DFA097Cd5474b2773dFe85F1988014d85C01",
3
+ "block": 715363,
4
4
  "notes": null,
5
5
  "arbitrators": {
6
6
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "address": "0xDE385Fe7695836f757E0846B8A9338Ea2fe48E0E",
3
+ "block": 9140,
4
+ "notes": null,
5
+ "arbitrators": {
6
+ }
7
+ }
@@ -2,5 +2,7 @@
2
2
  "address": "0x6F80C5cBCF9FbC2dA2F0675E56A5900BB70Df72f",
3
3
  "block": 7313546,
4
4
  "notes": null,
5
- "arbitrators": {}
5
+ "arbitrators": {
6
+ "0xaa5681047a16f163391377fd9f78e84355cc9696": "Kleros"
7
+ }
6
8
  }
@@ -57,16 +57,20 @@
57
57
  "network_name": "chapel"
58
58
  },
59
59
  "100": {
60
- "iconURL": "https://gblobscdn.gitbook.com/spaces%2F-Lpi9AHj62wscNlQjI-l%2Favatar.png",
61
- "explorerURL": "https://blockscout.com/poa/xdai/",
62
- "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-xdai",
63
- "network_name": "xdai"
60
+ "explorerURL": "https://gnosisscan.io",
61
+ "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-gnosis",
62
+ "network_name": "gnosis"
64
63
  },
65
64
  "137": {
66
65
  "explorerURL": "https://polygonscan.com/",
67
66
  "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-polygon",
68
67
  "network_name": "matic"
69
68
  },
69
+ "324": {
70
+ "explorerURL": "https://explorer.zksync.io/",
71
+ "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-zksync-todo",
72
+ "network_name": "era-todo"
73
+ },
70
74
  "777": {
71
75
  "explorerURL": "https://explore.cheapswap.io/",
72
76
  "network_name": "cheapeth"
@@ -94,6 +98,9 @@
94
98
  "421611": {
95
99
  "network_name": "arbitrum-rinkeby"
96
100
  },
101
+ "11155111": {
102
+ "network_name": "sepolia"
103
+ },
97
104
  "1337702": {
98
105
  "network_name": "kintsugi"
99
106
  }
@@ -222,7 +222,7 @@
222
222
  "symbol": "xDAI",
223
223
  "decimals": 18
224
224
  },
225
- "network_name": "xdai",
225
+ "network_name": "gnosis",
226
226
  "rpcUrls": [
227
227
  "https://rpc.gnosischain.com",
228
228
  "https://xdai.poanetwork.dev",
@@ -234,13 +234,10 @@
234
234
  "ws://xdai.poanetwork.dev:8546"
235
235
  ],
236
236
  "hostedRPC": "https://rpc.gnosischain.com",
237
- "iconUrls": [
238
- "https://gblobscdn.gitbook.com/spaces%2F-Lpi9AHj62wscNlQjI-l%2Favatar.png"
239
- ],
240
- "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-xdai",
237
+ "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-gnosis",
241
238
  "blockExplorerUrls": [
242
239
  "https://blockscout.com/xdai/mainnet",
243
- "https://blockscout.com/poa/xdai/"
240
+ "https://gnosisscan.io"
244
241
  ]
245
242
  },
246
243
  "137": {
@@ -394,5 +391,19 @@
394
391
  "blockExplorerUrls": [
395
392
  "https://explorer.kintsugi.themerge.dev"
396
393
  ]
394
+ },
395
+ "11155111": {
396
+ "chainId": "0xaa36a7",
397
+ "chainName": "Sepolia",
398
+ "nativeCurrency": {
399
+ "name": "Sepolia Ether",
400
+ "symbol": "SEP",
401
+ "decimals": 18
402
+ },
403
+ "network_name": "sepolia",
404
+ "rpcUrls": [],
405
+ "blockExplorerUrls": [
406
+ "https://sepolia.otterscan.io"
407
+ ]
397
408
  }
398
409
  }
@@ -145,7 +145,9 @@
145
145
  "address": "0x6F80C5cBCF9FbC2dA2F0675E56A5900BB70Df72f",
146
146
  "block": 7313546,
147
147
  "notes": null,
148
- "arbitrators": {}
148
+ "arbitrators": {
149
+ "0xaa5681047a16f163391377fd9f78e84355cc9696": "Kleros"
150
+ }
149
151
  }
150
152
  }
151
153
  },
@@ -376,8 +378,18 @@
376
378
  "280": {
377
379
  "ETH": {
378
380
  "RealityETH-3.0": {
379
- "address": "0xFAD6e5e3a9421B9de71A517122D3Bb39A57D6FF5",
380
- "block": 5956040,
381
+ "address": "0x7955DFA097Cd5474b2773dFe85F1988014d85C01",
382
+ "block": 715363,
383
+ "notes": null,
384
+ "arbitrators": {}
385
+ }
386
+ }
387
+ },
388
+ "324": {
389
+ "ETH": {
390
+ "RealityETH-3.0": {
391
+ "address": "0xDE385Fe7695836f757E0846B8A9338Ea2fe48E0E",
392
+ "block": 9140,
381
393
  "notes": null,
382
394
  "arbitrators": {}
383
395
  }
@@ -468,5 +480,15 @@
468
480
  "arbitrators": {}
469
481
  }
470
482
  }
483
+ },
484
+ "11155111": {
485
+ "ETH": {
486
+ "RealityETH-3.0": {
487
+ "address": "0xaf33DcB6E8c5c4D9dDF579f53031b514d19449CA",
488
+ "block": 3044431,
489
+ "notes": null,
490
+ "arbitrators": {}
491
+ }
492
+ }
471
493
  }
472
494
  }
@@ -38,7 +38,9 @@
38
38
  "5": true,
39
39
  "42": true,
40
40
  "280": true,
41
- "1337702": true
41
+ "324": true,
42
+ "1337702": true,
43
+ "11155111": true
42
44
  }
43
45
  },
44
46
  "MATIC": {
@@ -0,0 +1,47 @@
1
+ import { Wallet, utils } from "zksync-web3";
2
+ import * as ethers from "ethers";
3
+ import { HardhatRuntimeEnvironment } from "hardhat/types";
4
+ import { Deployer } from "@matterlabs/hardhat-zksync-deploy";
5
+ const fs = require('fs');
6
+
7
+ const key_file = '/home/ed/secrets/zksync_mainnet.sec';
8
+ const PRIVATE_KEY = fs.readFileSync(key_file, 'utf8').replace(/\n$/, "");
9
+
10
+ // An example of a deploy script that will deploy and call a simple contract.
11
+ export default async function (hre: HardhatRuntimeEnvironment) {
12
+ console.log(`Running deploy script for the reality.eth contract`);
13
+
14
+ // Initialize the wallet.
15
+ const wallet = new Wallet(PRIVATE_KEY);
16
+
17
+ // Create deployer object and load the artifact of the contract you want to deploy.
18
+ const deployer = new Deployer(hre, wallet);
19
+ const artifact = await deployer.loadArtifact("RealityETH_v3_0");
20
+
21
+ // Estimate contract deployment fee
22
+ const greeting = "Hi there!";
23
+ const deploymentFee = await deployer.estimateDeployFee(artifact, []);
24
+
25
+ /*
26
+ // OPTIONAL: Deposit funds to L2
27
+ // Comment this block if you already have funds on zkSync.
28
+ const depositHandle = await deployer.zkWallet.deposit({
29
+ to: deployer.zkWallet.address,
30
+ token: utils.ETH_ADDRESS,
31
+ amount: deploymentFee.mul(2),
32
+ });
33
+ // Wait until the deposit is processed on zkSync
34
+ await depositHandle.wait();
35
+ */
36
+
37
+ // Deploy this contract. The returned object will be of a `Contract` type, similarly to ones in `ethers`.
38
+ // `greeting` is an argument for contract constructor.
39
+ const parsedFee = ethers.utils.formatEther(deploymentFee.toString());
40
+ console.log(`The deployment is estimated to cost ${parsedFee} ETH`);
41
+
42
+ const realityContract = await deployer.deploy(artifact, []);
43
+
44
+ // Show the contract info.
45
+ const contractAddress = realityContract.address;
46
+ console.log(`${artifact.contractName} was deployed to ${contractAddress}`);
47
+ }
@@ -3,19 +3,25 @@ import "@matterlabs/hardhat-zksync-solc";
3
3
 
4
4
  module.exports = {
5
5
  zksolc: {
6
- version: "1.2.2",
6
+ version: "1.3.1",
7
7
  compilerSource: "binary",
8
8
  settings: {},
9
9
  },
10
- defaultNetwork: "zkTestnet",
10
+ defaultNetwork: "zkSyncTestnet",
11
+
11
12
  networks: {
12
- zkTestnet: {
13
- url: "https://zksync2-testnet.zksync.dev", // URL of the zkSync network RPC
14
- ethNetwork: "goerli", // Can also be the RPC URL of the Ethereum network (e.g. `https://goerli.infura.io/v3/<API_KEY>`)
13
+ zkSyncTestnet: {
14
+ url: "https://zksync2-testnet.zksync.dev",
15
+ ethNetwork: "goerli", // Can also be the RPC URL of the network (e.g. `https://goerli.infura.io/v3/<API_KEY>`)
16
+ zksync: true,
17
+ },
18
+ zkSyncMainnet: {
19
+ url: "https://zksync2-mainnet.zksync.io",
20
+ ethNetwork: "mainnet",
15
21
  zksync: true,
16
22
  },
17
23
  },
18
24
  solidity: {
19
- version: "0.8.16",
25
+ version: "0.8.17",
20
26
  },
21
27
  };
@@ -4,17 +4,12 @@
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
7
- "@ethersproject/hash": "^5.7.0",
8
- "@ethersproject/web": "^5.7.1",
9
- "@matterlabs/hardhat-zksync-deploy": "^0.6.1",
10
- "@matterlabs/hardhat-zksync-solc": "^0.3.13",
11
- "@types/node": "^18.11.18",
12
- "hardhat": "^2.12.6",
7
+ "@matterlabs/hardhat-zksync-deploy": "^0.6.2",
8
+ "@matterlabs/hardhat-zksync-solc": "^0.3.14",
9
+ "ethers": "^5.7.2",
10
+ "hardhat": "^2.13.0",
13
11
  "ts-node": "^10.9.1",
14
12
  "typescript": "^4.9.5",
15
- "zksync-web3": "^0.12.5"
16
- },
17
- "dependencies": {
18
- "ethers": "^5.7.2"
13
+ "zksync-web3": "^0.13.1"
19
14
  }
20
15
  }