@reality.eth/contracts 3.0.24 → 3.0.26

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
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "address": "0xDE385Fe7695836f757E0846B8A9338Ea2fe48E0E",
3
+ "block": 9140,
4
+ "notes": null,
5
+ "arbitrators": {
6
+ }
7
+ }
@@ -66,6 +66,11 @@
66
66
  "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-polygon",
67
67
  "network_name": "matic"
68
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
+ },
69
74
  "777": {
70
75
  "explorerURL": "https://explore.cheapswap.io/",
71
76
  "network_name": "cheapeth"
@@ -93,6 +98,9 @@
93
98
  "421611": {
94
99
  "network_name": "arbitrum-rinkeby"
95
100
  },
101
+ "11155111": {
102
+ "network_name": "sepolia"
103
+ },
96
104
  "1337702": {
97
105
  "network_name": "kintsugi"
98
106
  }
@@ -10,7 +10,8 @@
10
10
  "network_name": "mainnet",
11
11
  "rpcUrls": [
12
12
  "https://api.mycryptoapi.com/eth",
13
- "https://cloudflare-eth.com"
13
+ "https://cloudflare-eth.com",
14
+ "https://ethereum.publicnode.com"
14
15
  ],
15
16
  "hostedRPC": "https://eth-mainnet.alchemyapi.io/v2/c9uS--nIxEOjVjh0AJlNttMaqUXQy8gR",
16
17
  "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth",
@@ -23,7 +24,7 @@
23
24
  "chainName": "Ropsten",
24
25
  "nativeCurrency": {
25
26
  "name": "Ropsten Ether",
26
- "symbol": "ROP",
27
+ "symbol": "ETH",
27
28
  "decimals": 18
28
29
  },
29
30
  "network_name": "ropsten",
@@ -39,7 +40,7 @@
39
40
  "chainName": "Rinkeby",
40
41
  "nativeCurrency": {
41
42
  "name": "Rinkeby Ether",
42
- "symbol": "RIN",
43
+ "symbol": "ETH",
43
44
  "decimals": 18
44
45
  },
45
46
  "network_name": "rinkeby",
@@ -52,10 +53,10 @@
52
53
  },
53
54
  "5": {
54
55
  "chainId": "0x5",
55
- "chainName": "Görli",
56
+ "chainName": "Goerli",
56
57
  "nativeCurrency": {
57
- "name": "Görli Ether",
58
- "symbol": "GOR",
58
+ "name": "Goerli Ether",
59
+ "symbol": "ETH",
59
60
  "decimals": 18
60
61
  },
61
62
  "network_name": "goerli",
@@ -108,10 +109,9 @@
108
109
  "chainName": "Kovan",
109
110
  "nativeCurrency": {
110
111
  "name": "Kovan Ether",
111
- "symbol": "KOV",
112
+ "symbol": "ETH",
112
113
  "decimals": 18
113
114
  },
114
- "network_name": "testnet",
115
115
  "rpcUrls": [
116
116
  "https://kovan.poa.network",
117
117
  "http://kovan.poa.network:8545",
@@ -145,6 +145,7 @@
145
145
  "https://bsc-dataseed2.ninicoin.io",
146
146
  "https://bsc-dataseed3.ninicoin.io",
147
147
  "https://bsc-dataseed4.ninicoin.io",
148
+ "https://bsc.publicnode.com",
148
149
  "wss://bsc-ws-node.nariox.org"
149
150
  ],
150
151
  "hostedRPC": "https://bsc-dataseed1.binance.org",
@@ -159,7 +160,7 @@
159
160
  "chainName": "Optimism Kovan",
160
161
  "nativeCurrency": {
161
162
  "name": "Kovan Ether",
162
- "symbol": "KOR",
163
+ "symbol": "ETH",
163
164
  "decimals": 18
164
165
  },
165
166
  "network_name": "kovan",
@@ -225,19 +226,16 @@
225
226
  "network_name": "gnosis",
226
227
  "rpcUrls": [
227
228
  "https://rpc.gnosischain.com",
228
- "https://xdai.poanetwork.dev",
229
- "https://dai.poa.network",
230
229
  "https://rpc.ankr.com/gnosis",
231
230
  "https://gnosischain-rpc.gateway.pokt.network",
232
- "wss://rpc.gnosischain.com/wss",
233
- "wss://xdai.poanetwork.dev/wss",
234
- "ws://xdai.poanetwork.dev:8546"
231
+ "https://gnosis-mainnet.public.blastapi.io",
232
+ "wss://rpc.gnosischain.com/wss"
235
233
  ],
236
234
  "hostedRPC": "https://rpc.gnosischain.com",
237
235
  "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-gnosis",
238
236
  "blockExplorerUrls": [
239
- "https://blockscout.com/xdai/mainnet",
240
- "https://gnosisscan.io"
237
+ "https://gnosisscan.io",
238
+ "https://blockscout.com/xdai/mainnet"
241
239
  ]
242
240
  },
243
241
  "137": {
@@ -255,7 +253,8 @@
255
253
  "https://matic-mainnet.chainstacklabs.com",
256
254
  "https://rpc-mainnet.maticvigil.com",
257
255
  "https://rpc-mainnet.matic.quiknode.pro",
258
- "https://matic-mainnet-full-rpc.bwarelabs.com"
256
+ "https://matic-mainnet-full-rpc.bwarelabs.com",
257
+ "https://polygon-bor.publicnode.com"
259
258
  ],
260
259
  "hostedRPC": "https://polygon-rpc.com/",
261
260
  "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-polygon",
@@ -283,6 +282,25 @@
283
282
  "https://zksync2-testnet.zkscan.io"
284
283
  ]
285
284
  },
285
+ "324": {
286
+ "chainId": "0x144",
287
+ "chainName": "zkSync Era Mainnet",
288
+ "nativeCurrency": {
289
+ "name": "Ether",
290
+ "symbol": "ETH",
291
+ "decimals": 18
292
+ },
293
+ "network_name": "era-todo",
294
+ "rpcUrls": [
295
+ "https://zksync2-mainnet.zksync.io"
296
+ ],
297
+ "hostedRPC": "https://zksync2-mainnet.zksync.io",
298
+ "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-zksync-todo",
299
+ "blockExplorerUrls": [
300
+ "https://explorer.zksync.io",
301
+ "https://explorer.zksync.io/"
302
+ ]
303
+ },
286
304
  "777": {
287
305
  "chainId": "0x309",
288
306
  "chainName": "cheapETH",
@@ -328,7 +346,8 @@
328
346
  },
329
347
  "network_name": "avalanche",
330
348
  "rpcUrls": [
331
- "https://api.avax.network/ext/bc/C/rpc"
349
+ "https://api.avax.network/ext/bc/C/rpc",
350
+ "https://avalanche-c-chain.publicnode.com"
332
351
  ],
333
352
  "hostedRPC": "https://api.avax.network/ext/bc/C/rpc",
334
353
  "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-ava",
@@ -362,7 +381,7 @@
362
381
  "chainName": "Arbitrum Rinkeby",
363
382
  "nativeCurrency": {
364
383
  "name": "Arbitrum Rinkeby Ether",
365
- "symbol": "ARETH",
384
+ "symbol": "ETH",
366
385
  "decimals": 18
367
386
  },
368
387
  "network_name": "arbitrum-rinkeby",
@@ -391,5 +410,25 @@
391
410
  "blockExplorerUrls": [
392
411
  "https://explorer.kintsugi.themerge.dev"
393
412
  ]
413
+ },
414
+ "11155111": {
415
+ "chainId": "0xaa36a7",
416
+ "chainName": "Sepolia",
417
+ "nativeCurrency": {
418
+ "name": "Sepolia Ether",
419
+ "symbol": "ETH",
420
+ "decimals": 18
421
+ },
422
+ "network_name": "sepolia",
423
+ "rpcUrls": [
424
+ "https://rpc.sepolia.org",
425
+ "https://rpc2.sepolia.org",
426
+ "https://rpc-sepolia.rockx.com"
427
+ ],
428
+ "hostedRPC": "https://rpc.sepolia.org",
429
+ "blockExplorerUrls": [
430
+ "https://sepolia.etherscan.io",
431
+ "https://sepolia.otterscan.io"
432
+ ]
394
433
  }
395
434
  }
@@ -385,6 +385,16 @@
385
385
  }
386
386
  }
387
387
  },
388
+ "324": {
389
+ "ETH": {
390
+ "RealityETH-3.0": {
391
+ "address": "0xDE385Fe7695836f757E0846B8A9338Ea2fe48E0E",
392
+ "block": 9140,
393
+ "notes": null,
394
+ "arbitrators": {}
395
+ }
396
+ }
397
+ },
388
398
  "777": {
389
399
  "CTH": {
390
400
  "RealityETH-3.0": {
@@ -470,5 +480,15 @@
470
480
  "arbitrators": {}
471
481
  }
472
482
  }
483
+ },
484
+ "11155111": {
485
+ "ETH": {
486
+ "RealityETH-3.0": {
487
+ "address": "0xaf33DcB6E8c5c4D9dDF579f53031b514d19449CA",
488
+ "block": 3044431,
489
+ "notes": null,
490
+ "arbitrators": {}
491
+ }
492
+ }
473
493
  }
474
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
+ }
@@ -15,6 +15,11 @@ module.exports = {
15
15
  ethNetwork: "goerli", // Can also be the RPC URL of the network (e.g. `https://goerli.infura.io/v3/<API_KEY>`)
16
16
  zksync: true,
17
17
  },
18
+ zkSyncMainnet: {
19
+ url: "https://zksync2-mainnet.zksync.io",
20
+ ethNetwork: "mainnet",
21
+ zksync: true,
22
+ },
18
23
  },
19
24
  solidity: {
20
25
  version: "0.8.17",
@@ -4,10 +4,10 @@
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
7
- "@matterlabs/hardhat-zksync-deploy": "^0.6.1",
7
+ "@matterlabs/hardhat-zksync-deploy": "^0.6.2",
8
8
  "@matterlabs/hardhat-zksync-solc": "^0.3.14",
9
9
  "ethers": "^5.7.2",
10
- "hardhat": "^2.12.7",
10
+ "hardhat": "^2.13.0",
11
11
  "ts-node": "^10.9.1",
12
12
  "typescript": "^4.9.5",
13
13
  "zksync-web3": "^0.13.1"