@reality.eth/contracts 3.0.33 → 3.0.35
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/README.md +4 -0
- package/chains/chainid.network.json +2079 -115
- package/chains/deployments/534353/ETH/RealityETH-3.0.json +6 -0
- package/chains/deployments/534353/SETH/RealityETH-3.0.json +6 -0
- package/chains/supported.json +3 -0
- package/generated/chains.json +23 -3
- package/generated/contracts.json +18 -0
- package/generated/tokens.json +1 -0
- package/package.json +2 -2
- package/scripts/deploy.js +9 -1
- package/tokens/ETH.json +1 -0
package/chains/supported.json
CHANGED
|
@@ -97,6 +97,9 @@
|
|
|
97
97
|
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-arbitrum",
|
|
98
98
|
"network_name": "arbitrum-one"
|
|
99
99
|
},
|
|
100
|
+
"534353": {
|
|
101
|
+
"hostedRPC": "https://alpha-rpc.scroll.io/l2"
|
|
102
|
+
},
|
|
100
103
|
"421611": {
|
|
101
104
|
"network_name": "arbitrum-rinkeby"
|
|
102
105
|
},
|
package/generated/chains.json
CHANGED
|
@@ -61,7 +61,8 @@
|
|
|
61
61
|
},
|
|
62
62
|
"network_name": "goerli",
|
|
63
63
|
"rpcUrls": [
|
|
64
|
-
"https://rpc.goerli.mudit.blog/"
|
|
64
|
+
"https://rpc.goerli.mudit.blog/",
|
|
65
|
+
"https://ethereum-goerli.publicnode.com"
|
|
65
66
|
],
|
|
66
67
|
"hostedRPC": "https://eth-goerli.g.alchemy.com/v2/i2jZKhmFBPZYl8YdSHxsZ6viP3PQLwId",
|
|
67
68
|
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-goerli",
|
|
@@ -207,7 +208,8 @@
|
|
|
207
208
|
"https://data-seed-prebsc-1-s2.binance.org:8545",
|
|
208
209
|
"https://data-seed-prebsc-2-s2.binance.org:8545",
|
|
209
210
|
"https://data-seed-prebsc-1-s3.binance.org:8545",
|
|
210
|
-
"https://data-seed-prebsc-2-s3.binance.org:8545"
|
|
211
|
+
"https://data-seed-prebsc-2-s3.binance.org:8545",
|
|
212
|
+
"https://bsc-testnet.publicnode.com"
|
|
211
213
|
],
|
|
212
214
|
"hostedRPC": "https://data-seed-prebsc-1-s1.binance.org:8545",
|
|
213
215
|
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-chapel",
|
|
@@ -369,7 +371,8 @@
|
|
|
369
371
|
"rpcUrls": [
|
|
370
372
|
"https://matic-mumbai.chainstacklabs.com",
|
|
371
373
|
"https://rpc-mumbai.maticvigil.com",
|
|
372
|
-
"https://matic-testnet-archive-rpc.bwarelabs.com"
|
|
374
|
+
"https://matic-testnet-archive-rpc.bwarelabs.com",
|
|
375
|
+
"https://polygon-mumbai-bor.publicnode.com"
|
|
373
376
|
],
|
|
374
377
|
"hostedRPC": "https://rpc.ankr.com/polygon_mumbai",
|
|
375
378
|
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-mumbai",
|
|
@@ -412,6 +415,23 @@
|
|
|
412
415
|
"https://goerli-rollup-explorer.arbitrum.io"
|
|
413
416
|
]
|
|
414
417
|
},
|
|
418
|
+
"534353": {
|
|
419
|
+
"chainId": "0x82751",
|
|
420
|
+
"chainName": "Scroll Alpha Testnet",
|
|
421
|
+
"nativeCurrency": {
|
|
422
|
+
"name": "Ether",
|
|
423
|
+
"symbol": "ETH",
|
|
424
|
+
"decimals": 18
|
|
425
|
+
},
|
|
426
|
+
"rpcUrls": [
|
|
427
|
+
"https://alpha-rpc.scroll.io/l2"
|
|
428
|
+
],
|
|
429
|
+
"hostedRPC": "https://alpha-rpc.scroll.io/l2",
|
|
430
|
+
"blockExplorerUrls": [
|
|
431
|
+
"https://blockscout.scroll.io",
|
|
432
|
+
"https://scrollexplorer.unifra.io"
|
|
433
|
+
]
|
|
434
|
+
},
|
|
415
435
|
"1337702": {
|
|
416
436
|
"chainId": "0x146966",
|
|
417
437
|
"chainName": "Kintsugi",
|
package/generated/contracts.json
CHANGED
|
@@ -492,6 +492,24 @@
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
},
|
|
495
|
+
"534353": {
|
|
496
|
+
"ETH": {
|
|
497
|
+
"RealityETH-3.0": {
|
|
498
|
+
"address": "0xF2D17C08B6A3A60b5A32b95bC9621D292831446b",
|
|
499
|
+
"block": 2416829,
|
|
500
|
+
"notes": null,
|
|
501
|
+
"arbitrators": {}
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
"SETH": {
|
|
505
|
+
"RealityETH-3.0": {
|
|
506
|
+
"address": "0x4300d4C410f87c7c1824Cbc2eF67431030106604",
|
|
507
|
+
"block": 2364219,
|
|
508
|
+
"notes": null,
|
|
509
|
+
"arbitrators": {}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
},
|
|
495
513
|
"1337702": {
|
|
496
514
|
"ETH": {
|
|
497
515
|
"RealityETH-3.0": {
|
package/generated/tokens.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reality.eth/contracts",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.35",
|
|
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": "
|
|
33
|
+
"gitHead": "29623f7c2b40f2415018f4cb40054582fb9876a0",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"ethers": "^5.6.8"
|
|
36
36
|
}
|
package/scripts/deploy.js
CHANGED
|
@@ -3,6 +3,12 @@ const ethers = require('ethers');
|
|
|
3
3
|
const project_base = './../';
|
|
4
4
|
const build_dir = './../truffle/build/contracts/';
|
|
5
5
|
const rc = require('../index.js');
|
|
6
|
+
const { join } = require('path');
|
|
7
|
+
|
|
8
|
+
let secrets_dir = join(__dirname, '../secrets');
|
|
9
|
+
if (process.env.SECRETS) {
|
|
10
|
+
secrets_dir = process.env.SECRETS;
|
|
11
|
+
}
|
|
6
12
|
|
|
7
13
|
const deployed_at = null;
|
|
8
14
|
// const deployed_at = '0x33aa365a53a4c9ba777fb5f450901a8eef73f0a9'; //mainnet gno
|
|
@@ -48,6 +54,7 @@ const chains = {
|
|
|
48
54
|
'sokol': 77,
|
|
49
55
|
'cheapeth': 777,
|
|
50
56
|
'gnosis': 100,
|
|
57
|
+
'scroll-alpha-testnet': 534353,
|
|
51
58
|
'polygon': 137,
|
|
52
59
|
'hermez': 1101,
|
|
53
60
|
'mumbai': 80001,
|
|
@@ -61,6 +68,7 @@ const chains = {
|
|
|
61
68
|
}
|
|
62
69
|
const non_infura_chains = {
|
|
63
70
|
'gnosis': 'https://rpc.ankr.com/gnosis',
|
|
71
|
+
'scroll-alpha-testnet': 'https://alpha-rpc.scroll.io/l2',
|
|
64
72
|
'sokol': 'https://sokol.poa.network',
|
|
65
73
|
'bsc': 'https://bsc-dataseed.binance.org',
|
|
66
74
|
'chapel': 'https://bsc-testnet.public.blastapi.io',
|
|
@@ -135,7 +143,7 @@ if (arbitrator_owner == undef) {
|
|
|
135
143
|
arbitrator_owner = "0xdd8a989e5e89ad23ed2f91c6f106aea678a1a3d0";
|
|
136
144
|
}
|
|
137
145
|
|
|
138
|
-
const priv = fs.readFileSync('/
|
|
146
|
+
const priv = fs.readFileSync(secrets_dir + '/' + chain + '.sec', 'utf8').replace(/\n/, '')
|
|
139
147
|
|
|
140
148
|
ensure_chain_directory_exists(chain_id, token_name);
|
|
141
149
|
|