@reality.eth/contracts 3.0.69 → 3.0.71
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.
- package/chains/chainid.network.json +2468 -195
- package/chains/deployments/130/ETH/RealityETH-3.0.json +6 -0
- package/chains/deployments/1301/ETH/Arbitrator.json +5 -0
- package/chains/deployments/1301/ETH/RealityETH-3.0.json +2 -1
- package/chains/deployments/8453/ETH/RealityETH-3.0.json +6 -0
- package/chains/supported.json +9 -0
- package/generated/chains.json +42 -1
- package/generated/contracts.json +25 -4
- package/generated/tokens.json +2 -0
- package/index.js +18 -0
- package/package.json +2 -2
- package/scripts/deploy.js +2 -0
- package/tokens/ETH.json +2 -0
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"block": 10747559,
|
|
4
4
|
"notes": null,
|
|
5
5
|
"arbitrators": {
|
|
6
|
-
"
|
|
6
|
+
"0x2642BFBfe5d8dfc53276c3D510484644dDb20276": "Butter dev arbitrator",
|
|
7
|
+
"0x8FeAB350A304140b1593A38a13607d122BEC44b6": "Kleros (Oracle court)"
|
|
7
8
|
}
|
|
8
9
|
}
|
package/chains/supported.json
CHANGED
|
@@ -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,11 @@
|
|
|
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
|
+
"explorerURL": "https://basescan.org/",
|
|
110
|
+
"network_name": "base"
|
|
111
|
+
},
|
|
103
112
|
"10200": {
|
|
104
113
|
"hostedRPC": "https://rpc.chiadochain.net",
|
|
105
114
|
"explorerURL": "https://gnosis-chiado.blockscout.com/",
|
package/generated/chains.json
CHANGED
|
@@ -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,32 @@
|
|
|
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
|
+
"blockExplorerUrls": [
|
|
484
|
+
"https://basescan.org",
|
|
485
|
+
"https://base.blockscout.com",
|
|
486
|
+
"https://base.dex.guru",
|
|
487
|
+
"https://base.superscan.network",
|
|
488
|
+
"https://basescan.org/"
|
|
489
|
+
]
|
|
490
|
+
},
|
|
450
491
|
"10200": {
|
|
451
492
|
"chainId": "0x27d8",
|
|
452
493
|
"chainName": "Gnosis Chiado Testnet",
|
package/generated/contracts.json
CHANGED
|
@@ -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": {
|
|
@@ -423,20 +433,31 @@
|
|
|
423
433
|
"1301": {
|
|
424
434
|
"ETH": {
|
|
425
435
|
"Arbitrator": {
|
|
426
|
-
"address": "
|
|
427
|
-
"block":
|
|
428
|
-
"reality_eth_address": "
|
|
436
|
+
"address": "0x2642BFBfe5d8dfc53276c3D510484644dDb20276",
|
|
437
|
+
"block": 10756151,
|
|
438
|
+
"reality_eth_address": "0x8bF08aE62cbC9a48aaeB473a82DAE2e6D2628517"
|
|
429
439
|
},
|
|
430
440
|
"RealityETH-3.0": {
|
|
431
441
|
"address": "0x8bF08aE62cbC9a48aaeB473a82DAE2e6D2628517",
|
|
432
442
|
"block": 10747559,
|
|
433
443
|
"notes": null,
|
|
434
444
|
"arbitrators": {
|
|
435
|
-
"
|
|
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": {
|
package/generated/tokens.json
CHANGED
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.
|
|
3
|
+
"version": "3.0.71",
|
|
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": "
|
|
37
|
+
"gitHead": "a04d423bccd358fac94fd9b4de3896aa2a19e79c",
|
|
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