@reality.eth/contracts 3.0.70 → 3.0.72

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": "0xB920dBedE88B42aA77eE55ebcE3671132ee856fC",
3
+ "block": 8561869,
4
+ "notes": null,
5
+ "arbitrators": {}
6
+ }
@@ -3,6 +3,7 @@
3
3
  "block": 10747559,
4
4
  "notes": null,
5
5
  "arbitrators": {
6
- "0x2642BFBfe5d8dfc53276c3D510484644dDb20276": "Butter dev arbitrator"
6
+ "0x2642BFBfe5d8dfc53276c3D510484644dDb20276": "Butter dev arbitrator",
7
+ "0x8FeAB350A304140b1593A38a13607d122BEC44b6": "Kleros (Oracle court)"
7
8
  }
8
9
  }
@@ -0,0 +1,6 @@
1
+ {
2
+ "address": "0x2F39f464d16402Ca3D8527dA89617b73DE2F60e8",
3
+ "block": 26260675,
4
+ "notes": null,
5
+ "arbitrators": {}
6
+ }
@@ -61,6 +61,10 @@
61
61
  "graphURL": "https://gateway-arbitrum.network.thegraph.com/api/73380b22a17017c081123ec9c0e34677/subgraphs/id/E7ymrCnNcQdAAgLbdFWzGE5mvr5Mb5T9VfT43FqA7bNh",
62
62
  "network_name": "gnosis"
63
63
  },
64
+ "130": {
65
+ "explorerURL": "https://unichain.blockscout.com/",
66
+ "network_name": "unichain"
67
+ },
64
68
  "137": {
65
69
  "explorerURL": "https://polygonscan.com/",
66
70
  "graphURLHosted": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-polygon",
@@ -100,6 +104,12 @@
100
104
  "explorerURL": "https://unichain-sepolia.blockscout.com/",
101
105
  "network_name": "unichain-sepolia"
102
106
  },
107
+ "8453": {
108
+ "hostedRPC": "https://mainnet.base.org",
109
+ "graphURL": "https://gateway.thegraph.com/api/73380b22a17017c081123ec9c0e34677/subgraphs/id/8Gtjsx3LGtN3Jfxx1YEbLWNLEd2ntrq3dsyzXgGHov1i",
110
+ "explorerURL": "https://basescan.org/",
111
+ "network_name": "base"
112
+ },
103
113
  "10200": {
104
114
  "hostedRPC": "https://rpc.chiadochain.net",
105
115
  "explorerURL": "https://gnosis-chiado.blockscout.com/",
@@ -23,7 +23,8 @@
23
23
  "https://rpc.mevblocker.io/noreverts",
24
24
  "https://rpc.mevblocker.io/fullprivacy",
25
25
  "https://eth.drpc.org",
26
- "wss://eth.drpc.org"
26
+ "wss://eth.drpc.org",
27
+ "https://api.securerpc.com/v1"
27
28
  ],
28
29
  "hostedRPC": "https://eth-mainnet.alchemyapi.io/v2/c9uS--nIxEOjVjh0AJlNttMaqUXQy8gR",
29
30
  "graphURL": "https://gateway-arbitrum.network.thegraph.com/api/73380b22a17017c081123ec9c0e34677/subgraphs/id/AGLkTv6eaW7JhQsLgB6SMzo43uM9V12ZoNkjAw7uijra",
@@ -280,6 +281,20 @@
280
281
  "https://gnosis.dex.guru"
281
282
  ]
282
283
  },
284
+ "130": {
285
+ "chainId": "0x82",
286
+ "chainName": "Unichain",
287
+ "nativeCurrency": {
288
+ "name": "Ether",
289
+ "symbol": "ETH",
290
+ "decimals": 18
291
+ },
292
+ "network_name": "unichain",
293
+ "rpcUrls": [],
294
+ "blockExplorerUrls": [
295
+ "https://unichain.blockscout.com/"
296
+ ]
297
+ },
283
298
  "137": {
284
299
  "chainId": "0x89",
285
300
  "chainName": "Polygon Mainnet",
@@ -447,6 +462,33 @@
447
462
  "https://unichain-sepolia.blockscout.com/"
448
463
  ]
449
464
  },
465
+ "8453": {
466
+ "chainId": "0x2105",
467
+ "chainName": "Base",
468
+ "nativeCurrency": {
469
+ "name": "Ether",
470
+ "symbol": "ETH",
471
+ "decimals": 18
472
+ },
473
+ "network_name": "base",
474
+ "rpcUrls": [
475
+ "https://mainnet.base.org/",
476
+ "https://developer-access-mainnet.base.org/",
477
+ "https://base.gateway.tenderly.co",
478
+ "wss://base.gateway.tenderly.co",
479
+ "https://base-rpc.publicnode.com",
480
+ "wss://base-rpc.publicnode.com"
481
+ ],
482
+ "hostedRPC": "https://mainnet.base.org",
483
+ "graphURL": "https://gateway.thegraph.com/api/73380b22a17017c081123ec9c0e34677/subgraphs/id/8Gtjsx3LGtN3Jfxx1YEbLWNLEd2ntrq3dsyzXgGHov1i",
484
+ "blockExplorerUrls": [
485
+ "https://basescan.org",
486
+ "https://base.blockscout.com",
487
+ "https://base.dex.guru",
488
+ "https://base.superscan.network",
489
+ "https://basescan.org/"
490
+ ]
491
+ },
450
492
  "10200": {
451
493
  "chainId": "0x27d8",
452
494
  "chainName": "Gnosis Chiado Testnet",
@@ -326,6 +326,16 @@
326
326
  }
327
327
  }
328
328
  },
329
+ "130": {
330
+ "ETH": {
331
+ "RealityETH-3.0": {
332
+ "address": "0xB920dBedE88B42aA77eE55ebcE3671132ee856fC",
333
+ "block": 8561869,
334
+ "notes": null,
335
+ "arbitrators": {}
336
+ }
337
+ }
338
+ },
329
339
  "137": {
330
340
  "MATIC": {
331
341
  "Arbitrator": {
@@ -432,11 +442,22 @@
432
442
  "block": 10747559,
433
443
  "notes": null,
434
444
  "arbitrators": {
435
- "0x2642BFBfe5d8dfc53276c3D510484644dDb20276": "Butter dev arbitrator"
445
+ "0x2642BFBfe5d8dfc53276c3D510484644dDb20276": "Butter dev arbitrator",
446
+ "0x8FeAB350A304140b1593A38a13607d122BEC44b6": "Kleros (Oracle court)"
436
447
  }
437
448
  }
438
449
  }
439
450
  },
451
+ "8453": {
452
+ "ETH": {
453
+ "RealityETH-3.0": {
454
+ "address": "0x2F39f464d16402Ca3D8527dA89617b73DE2F60e8",
455
+ "block": 26260675,
456
+ "notes": null,
457
+ "arbitrators": {}
458
+ }
459
+ }
460
+ },
440
461
  "10200": {
441
462
  "XDAI": {
442
463
  "RealityETH-2.1": {
@@ -38,12 +38,14 @@
38
38
  "4": true,
39
39
  "5": true,
40
40
  "42": true,
41
+ "130": true,
41
42
  "280": true,
42
43
  "300": true,
43
44
  "324": true,
44
45
  "690": true,
45
46
  "1101": true,
46
47
  "1301": true,
48
+ "8453": true,
47
49
  "17000": true,
48
50
  "421614": true,
49
51
  "534353": true,
package/index.js CHANGED
@@ -326,6 +326,23 @@ function tokenAndContractConfigFromFactory(factory_data, chain_id) {
326
326
 
327
327
  }
328
328
 
329
+ // An identifier for reality.eth use where we need a number for a chain...
330
+ // ...but we don't have enough bits to use the normal Chain ID
331
+ // This is intended for when we abuse atproto TIDs to make a unique rkey per question
332
+ // The Chain ID will go in the "clock identifier" field which is only 10 bits
333
+ // https://atproto.com/ja/specs/tid
334
+ function realityETH10BitChainID(chain_id) {
335
+ // For any chain ID below 512 we'll use the chain ID as is
336
+ if (chain_id < 512) {
337
+ return chain_id;
338
+ }
339
+ // Above that we'll assign them manually starting at the max
340
+ // We'll only assign them if we need them, ie if we're making rkeys for that chain
341
+ const assigned_manually = {
342
+ "11155111": 1023
343
+ }
344
+ return assigned_manually[""+chain_id];
345
+ }
329
346
 
330
347
  function getChainLabel(chain_id) {
331
348
  const c = chain_info[chain_id];
@@ -354,3 +371,4 @@ module.exports.tokenAndContractConfigFromFactory = tokenAndContractConfigFromFac
354
371
  module.exports.configForAddress = configForAddress;
355
372
  module.exports.populateImports = populateImports;
356
373
  module.exports.getChainLabel = getChainLabel;
374
+ module.exports.realityETH10BitChainID = realityETH10BitChainID;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reality.eth/contracts",
3
- "version": "3.0.70",
3
+ "version": "3.0.72",
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",
@@ -34,7 +34,7 @@
34
34
  "url": "https://github.com/RealityETH/monorepo/issues"
35
35
  },
36
36
  "homepage": "https://reality.eth.link",
37
- "gitHead": "56f96971347ebfa2d1cce385e6f551b5250941fd",
37
+ "gitHead": "d78e484c63f01925317e36e408cad8a06ba58bc4",
38
38
  "dependencies": {
39
39
  "ethers": "^5.6.8"
40
40
  }
package/scripts/deploy.js CHANGED
@@ -93,6 +93,8 @@ const non_infura_chains = {
93
93
  'sepolia': 'https://rpc.sepolia.org',
94
94
  'holesky': 'https://ethereum-holesky.publicnode.com',
95
95
  'telosevm': 'https://mainnet.telos.net/evm',
96
+ 'unichain': 'https://mainnet.unichain.org',
97
+ 'base': 'https://mainnet.base.org',
96
98
  'backstopTestnet1': 'https://testnet.rpc.backstop.technology'
97
99
  }
98
100
 
package/tokens/ETH.json CHANGED
@@ -6,12 +6,14 @@
6
6
  "4": true,
7
7
  "5": true,
8
8
  "42": true,
9
+ "130": true,
9
10
  "280": true,
10
11
  "300": true,
11
12
  "324": true,
12
13
  "690": true,
13
14
  "1101": true,
14
15
  "1301": true,
16
+ "8453": true,
15
17
  "17000": true,
16
18
  "421614": true,
17
19
  "534353": true,