@reality.eth/contracts 3.0.34 → 3.0.36

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": "0x569Dcc6d797265Da700926fe8D10c0DA01717386",
3
+ "block": 1281264,
4
+ "notes": null,
5
+ "arbitrators": {}
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "address": "0xF2D17C08B6A3A60b5A32b95bC9621D292831446b",
3
+ "block": 2416829,
4
+ "notes": null,
5
+ "arbitrators": {}
6
+ }
@@ -32,10 +32,6 @@
32
32
  "explorerURL": "https://optimistic.etherscan.io",
33
33
  "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-optimism"
34
34
  },
35
- "42": {
36
- "explorerURL": "https://kovan.etherscan.io",
37
- "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-kovan"
38
- },
39
35
  "56": {
40
36
  "explorerURL": "https://www.bscscan.com",
41
37
  "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-bsc",
@@ -81,6 +77,11 @@
81
77
  "explorerURL": "https://zksync2-testnet.zkscan.io",
82
78
  "network_name": "zkSync2-testnet"
83
79
  },
80
+ "1101": {
81
+ "hostedRPC": "https://zkevm-rpc.com",
82
+ "explorerURL": "https://zkevm.polygonscan.com/",
83
+ "network_name": "polygon-zkevm"
84
+ },
84
85
  "80001": {
85
86
  "hostedRPC": "https://rpc.ankr.com/polygon_mumbai",
86
87
  "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-mumbai",
@@ -97,6 +98,9 @@
97
98
  "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-arbitrum",
98
99
  "network_name": "arbitrum-one"
99
100
  },
101
+ "534353": {
102
+ "hostedRPC": "https://alpha-rpc.scroll.io/l2"
103
+ },
100
104
  "421611": {
101
105
  "network_name": "arbitrum-rinkeby"
102
106
  },
@@ -105,25 +105,6 @@
105
105
  "https://optimistic.etherscan.io"
106
106
  ]
107
107
  },
108
- "42": {
109
- "chainId": "0x2a",
110
- "chainName": "Kovan",
111
- "nativeCurrency": {
112
- "name": "Kovan Ether",
113
- "symbol": "ETH",
114
- "decimals": 18
115
- },
116
- "rpcUrls": [
117
- "https://kovan.poa.network",
118
- "http://kovan.poa.network:8545",
119
- "ws://kovan.poa.network:8546"
120
- ],
121
- "hostedRPC": "https://kovan.poa.network",
122
- "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-kovan",
123
- "blockExplorerUrls": [
124
- "https://kovan.etherscan.io"
125
- ]
126
- },
127
108
  "56": {
128
109
  "chainId": "0x38",
129
110
  "chainName": "Binance Smart Chain Mainnet",
@@ -222,15 +203,19 @@
222
203
  "chainName": "Gnosis",
223
204
  "nativeCurrency": {
224
205
  "name": "xDAI",
225
- "symbol": "xDAI",
206
+ "symbol": "XDAI",
226
207
  "decimals": 18
227
208
  },
228
209
  "network_name": "gnosis",
229
210
  "rpcUrls": [
230
211
  "https://rpc.gnosischain.com",
212
+ "https://rpc.gnosis.gateway.fm",
231
213
  "https://rpc.ankr.com/gnosis",
232
214
  "https://gnosischain-rpc.gateway.pokt.network",
233
215
  "https://gnosis-mainnet.public.blastapi.io",
216
+ "https://gnosis.api.onfinality.io/public",
217
+ "https://gnosis.blockpi.network/v1/rpc/public",
218
+ "https://web3endpoints.com/gnosischain-mainnet",
234
219
  "wss://rpc.gnosischain.com/wss"
235
220
  ],
236
221
  "hostedRPC": "https://rpc.gnosischain.com",
@@ -320,6 +305,24 @@
320
305
  "https://explore.cheapswap.io/"
321
306
  ]
322
307
  },
308
+ "1101": {
309
+ "chainId": "0x44d",
310
+ "chainName": "Polygon zkEVM",
311
+ "nativeCurrency": {
312
+ "name": "Ether",
313
+ "symbol": "ETH",
314
+ "decimals": 18
315
+ },
316
+ "network_name": "polygon-zkevm",
317
+ "rpcUrls": [
318
+ "https://zkevm-rpc.com"
319
+ ],
320
+ "hostedRPC": "https://zkevm-rpc.com",
321
+ "blockExplorerUrls": [
322
+ "https://zkevm.polygonscan.com",
323
+ "https://zkevm.polygonscan.com/"
324
+ ]
325
+ },
323
326
  "42161": {
324
327
  "chainId": "0xa4b1",
325
328
  "chainName": "Arbitrum One",
@@ -415,6 +418,23 @@
415
418
  "https://goerli-rollup-explorer.arbitrum.io"
416
419
  ]
417
420
  },
421
+ "534353": {
422
+ "chainId": "0x82751",
423
+ "chainName": "Scroll Alpha Testnet",
424
+ "nativeCurrency": {
425
+ "name": "Ether",
426
+ "symbol": "ETH",
427
+ "decimals": 18
428
+ },
429
+ "rpcUrls": [
430
+ "https://alpha-rpc.scroll.io/l2"
431
+ ],
432
+ "hostedRPC": "https://alpha-rpc.scroll.io/l2",
433
+ "blockExplorerUrls": [
434
+ "https://blockscout.scroll.io",
435
+ "https://scrollscan.co"
436
+ ]
437
+ },
418
438
  "1337702": {
419
439
  "chainId": "0x146966",
420
440
  "chainName": "Kintsugi",
@@ -184,52 +184,6 @@
184
184
  }
185
185
  }
186
186
  },
187
- "42": {
188
- "ETH": {
189
- "RealityETH-2.0": {
190
- "address": "0x50e35a1ed424ab9c0b8c7095b3d9ec2fb791a168",
191
- "block": 0,
192
- "token_address": null,
193
- "notes": null,
194
- "arbitrators": {
195
- "0xB4683794998215B59a429e86c3A33F796F9aeb0f": "Reality.eth Team (dev)",
196
- "0xDEd12537dA82C1019b3CA1714A5d58B7c5c19A04": "Kleros"
197
- }
198
- },
199
- "RealityETH-3.0": {
200
- "address": "0xcB71745d032E16ec838430731282ff6c10D29Dea",
201
- "block": 27103177,
202
- "notes": null,
203
- "arbitrators": {
204
- "0x99489d7bb33539f3d1a401741e56e8f02b9ae0cf": "Kleros (General Court)",
205
- "0xb9fdd2904cbcc5543F02DB948B2CE59Ef10A950E": "Kleros DAO Governance (Technical Court)"
206
- }
207
- }
208
- },
209
- "POLK": {
210
- "Arbitrator": {
211
- "address": "0x9046D057D7957A2A93d55C711EBC5B62d812a5b8",
212
- "block": 25399305,
213
- "reality_eth_address": "0x1346800BC8915536B9eaa388fa9A6B93398E5999"
214
- },
215
- "RealityETH_ERC20-2.0": {
216
- "address": "0x1346800BC8915536B9eaa388fa9A6B93398E5999",
217
- "block": 25355307,
218
- "token_address": "0x222E11E134F9AB3750812b37F0DA51B4467EaA7a",
219
- "notes": null,
220
- "arbitrators": {
221
- "0x9046D057D7957A2A93d55C711EBC5B62d812a5b8": "Test POLK arbitrator (reality.eth)"
222
- }
223
- },
224
- "RealityETH_ERC20-3.0": {
225
- "address": "0xe9CF05F9F664b88160D5658619c028D1EEb00fc7",
226
- "block": 27103188,
227
- "token_address": "0x222E11E134F9AB3750812b37F0DA51B4467EaA7a",
228
- "notes": null,
229
- "arbitrators": {}
230
- }
231
- }
232
- },
233
187
  "56": {
234
188
  "BNB": {
235
189
  "Arbitrator": {
@@ -405,6 +359,16 @@
405
359
  }
406
360
  }
407
361
  },
362
+ "1101": {
363
+ "ETH": {
364
+ "RealityETH-3.0": {
365
+ "address": "0x569Dcc6d797265Da700926fe8D10c0DA01717386",
366
+ "block": 1281264,
367
+ "notes": null,
368
+ "arbitrators": {}
369
+ }
370
+ }
371
+ },
408
372
  "42161": {
409
373
  "ARETH": {
410
374
  "Arbitrator": {
@@ -493,6 +457,14 @@
493
457
  }
494
458
  },
495
459
  "534353": {
460
+ "ETH": {
461
+ "RealityETH-3.0": {
462
+ "address": "0xF2D17C08B6A3A60b5A32b95bC9621D292831446b",
463
+ "block": 2416829,
464
+ "notes": null,
465
+ "arbitrators": {}
466
+ }
467
+ },
496
468
  "SETH": {
497
469
  "RealityETH-3.0": {
498
470
  "address": "0x4300d4C410f87c7c1824Cbc2eF67431030106604",
@@ -40,6 +40,8 @@
40
40
  "42": true,
41
41
  "280": true,
42
42
  "324": true,
43
+ "1101": true,
44
+ "534353": true,
43
45
  "1337702": true,
44
46
  "11155111": true
45
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reality.eth/contracts",
3
- "version": "3.0.34",
3
+ "version": "3.0.36",
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": "6ac1849ade69b1537839039e35a73551839506dc",
33
+ "gitHead": "49c052b0c836059ef4b019123eed7d99fd9f12e3",
34
34
  "dependencies": {
35
35
  "ethers": "^5.6.8"
36
36
  }
package/scripts/deploy.js CHANGED
@@ -5,6 +5,11 @@ const build_dir = './../truffle/build/contracts/';
5
5
  const rc = require('../index.js');
6
6
  const { join } = require('path');
7
7
 
8
+ let secrets_dir = join(__dirname, '../secrets');
9
+ if (process.env.SECRETS) {
10
+ secrets_dir = process.env.SECRETS;
11
+ }
12
+
8
13
  const deployed_at = null;
9
14
  // const deployed_at = '0x33aa365a53a4c9ba777fb5f450901a8eef73f0a9'; //mainnet gno
10
15
  // const deployed_at = '0xc79e58D0a23ea0eDBDD2dBc96d16e65f696BfFc8'; // rinkeby test
@@ -51,7 +56,7 @@ const chains = {
51
56
  'gnosis': 100,
52
57
  'scroll-alpha-testnet': 534353,
53
58
  'polygon': 137,
54
- 'hermez': 1101,
59
+ 'polygon-zkevm': 1101,
55
60
  'mumbai': 80001,
56
61
  'ava': 43114,
57
62
  'arbitrum': 42161,
@@ -68,7 +73,7 @@ const non_infura_chains = {
68
73
  'bsc': 'https://bsc-dataseed.binance.org',
69
74
  'chapel': 'https://bsc-testnet.public.blastapi.io',
70
75
  'polygon': 'https://rpc-mainnet.maticvigil.com',
71
- 'hermez': 'https://rpc.ankr.com/polygon_zkevm',
76
+ 'polygon-zkevm': 'https://zkevm-rpc.com',
72
77
  'ava': 'https://api.avax.network/ext/bc/C/rpc',
73
78
  'arbitrum': 'https://arb1.arbitrum.io/rpc',
74
79
  'arbitrum-rinkeby': 'https://rinkeby.arbitrum.io/rpc',
@@ -138,7 +143,7 @@ if (arbitrator_owner == undef) {
138
143
  arbitrator_owner = "0xdd8a989e5e89ad23ed2f91c6f106aea678a1a3d0";
139
144
  }
140
145
 
141
- const priv = fs.readFileSync(join(__dirname, '../secrets/' + chain + '.sec'), 'utf8').replace(/\n/, '')
146
+ const priv = fs.readFileSync(secrets_dir + '/' + chain + '.sec', 'utf8').replace(/\n/, '')
142
147
 
143
148
  ensure_chain_directory_exists(chain_id, token_name);
144
149
 
package/tokens/ETH.json CHANGED
@@ -8,6 +8,8 @@
8
8
  "42": true,
9
9
  "280": true,
10
10
  "324": true,
11
+ "1101": true,
12
+ "534353": true,
11
13
  "1337702": true,
12
14
  "11155111": true
13
15
  }
@@ -1,10 +0,0 @@
1
- {
2
- "address": "0x50e35a1ed424ab9c0b8c7095b3d9ec2fb791a168",
3
- "block": 0,
4
- "token_address": null,
5
- "notes": null,
6
- "arbitrators": {
7
- "0xB4683794998215B59a429e86c3A33F796F9aeb0f": "Reality.eth Team (dev)",
8
- "0xDEd12537dA82C1019b3CA1714A5d58B7c5c19A04": "Kleros"
9
- }
10
- }
@@ -1,9 +0,0 @@
1
- {
2
- "address": "0xcB71745d032E16ec838430731282ff6c10D29Dea",
3
- "block": 27103177,
4
- "notes": null,
5
- "arbitrators": {
6
- "0x99489d7bb33539f3d1a401741e56e8f02b9ae0cf": "Kleros (General Court)",
7
- "0xb9fdd2904cbcc5543F02DB948B2CE59Ef10A950E": "Kleros DAO Governance (Technical Court)"
8
- }
9
- }
@@ -1,5 +0,0 @@
1
- {
2
- "address": "0x9046D057D7957A2A93d55C711EBC5B62d812a5b8",
3
- "block": 25399305,
4
- "reality_eth_address": "0x1346800BC8915536B9eaa388fa9A6B93398E5999"
5
- }
@@ -1,9 +0,0 @@
1
- {
2
- "address": "0x1346800BC8915536B9eaa388fa9A6B93398E5999",
3
- "block": 25355307,
4
- "token_address": "0x222E11E134F9AB3750812b37F0DA51B4467EaA7a",
5
- "notes": null,
6
- "arbitrators": {
7
- "0x9046D057D7957A2A93d55C711EBC5B62d812a5b8": "Test POLK arbitrator (reality.eth)"
8
- }
9
- }
@@ -1,7 +0,0 @@
1
- {
2
- "address": "0xe9CF05F9F664b88160D5658619c028D1EEb00fc7",
3
- "block": 27103188,
4
- "token_address": "0x222E11E134F9AB3750812b37F0DA51B4467EaA7a",
5
- "notes": null,
6
- "arbitrators": {}
7
- }