@reality.eth/contracts 3.0.34 → 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/deployments/534353/ETH/RealityETH-3.0.json +6 -0
- package/chains/supported.json +3 -0
- package/generated/chains.json +17 -0
- package/generated/contracts.json +8 -0
- package/generated/tokens.json +1 -0
- package/package.json +2 -2
- package/scripts/deploy.js +6 -1
- package/tokens/ETH.json +1 -0
package/README.md
CHANGED
|
@@ -70,6 +70,10 @@ To deploy contracts using the code compiled under contracts/bytecode, use
|
|
|
70
70
|
|
|
71
71
|
`$ node deploy.js <RealityETH|Arbitrator|ERC20> <network> <token_name> [<dispute_fee>] [<arbitrator_owner>]`
|
|
72
72
|
|
|
73
|
+
If you prefer to keep your secret keys somewhere else you can pass it as an environment variable, eg
|
|
74
|
+
|
|
75
|
+
`$ SECRETS=/home/ed/secrets node deploy.js <RealityETH|Arbitrator|ERC20> <network> <token_name> [<dispute_fee>] [<arbitrator_owner>]`
|
|
76
|
+
|
|
73
77
|
This will add contract addresses to the existing deployed contract .json definitions, and deploy per-token versions in the format expected by the `@reality.eth/dapp` ui.
|
|
74
78
|
|
|
75
79
|
Supported networks are hard-coded in the `deploy.js` file. You may also wish to edit it to alter gas limits, etc.
|
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
|
@@ -415,6 +415,23 @@
|
|
|
415
415
|
"https://goerli-rollup-explorer.arbitrum.io"
|
|
416
416
|
]
|
|
417
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
|
+
},
|
|
418
435
|
"1337702": {
|
|
419
436
|
"chainId": "0x146966",
|
|
420
437
|
"chainName": "Kintsugi",
|
package/generated/contracts.json
CHANGED
|
@@ -493,6 +493,14 @@
|
|
|
493
493
|
}
|
|
494
494
|
},
|
|
495
495
|
"534353": {
|
|
496
|
+
"ETH": {
|
|
497
|
+
"RealityETH-3.0": {
|
|
498
|
+
"address": "0xF2D17C08B6A3A60b5A32b95bC9621D292831446b",
|
|
499
|
+
"block": 2416829,
|
|
500
|
+
"notes": null,
|
|
501
|
+
"arbitrators": {}
|
|
502
|
+
}
|
|
503
|
+
},
|
|
496
504
|
"SETH": {
|
|
497
505
|
"RealityETH-3.0": {
|
|
498
506
|
"address": "0x4300d4C410f87c7c1824Cbc2eF67431030106604",
|
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
|
@@ -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
|
|
@@ -138,7 +143,7 @@ if (arbitrator_owner == undef) {
|
|
|
138
143
|
arbitrator_owner = "0xdd8a989e5e89ad23ed2f91c6f106aea678a1a3d0";
|
|
139
144
|
}
|
|
140
145
|
|
|
141
|
-
const priv = fs.readFileSync(
|
|
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
|
|