@reality.eth/contracts 3.0.29 → 3.0.31
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 +1867 -106
- package/chains/deployments/421613/ARETH/RealityETH-3.0.json +6 -0
- package/chains/deployments/80001/POLK/RealityETH_ERC20-3.0.json +8 -0
- package/chains/supported.json +3 -0
- package/generated/chains.json +19 -2
- package/generated/contracts.json +19 -0
- package/generated/tokens.json +4 -2
- package/package.json +2 -2
- package/scripts/deploy.js +16 -7
- package/tokens/ARETH.json +2 -1
- package/tokens/POLK.json +2 -1
package/chains/supported.json
CHANGED
package/generated/chains.json
CHANGED
|
@@ -292,9 +292,9 @@
|
|
|
292
292
|
},
|
|
293
293
|
"network_name": "zksync-era",
|
|
294
294
|
"rpcUrls": [
|
|
295
|
-
"https://
|
|
295
|
+
"https://mainnet.era.zksync.io"
|
|
296
296
|
],
|
|
297
|
-
"hostedRPC": "https://
|
|
297
|
+
"hostedRPC": "https://mainnet.era.zksync.io",
|
|
298
298
|
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-zksync-era",
|
|
299
299
|
"blockExplorerUrls": [
|
|
300
300
|
"https://explorer.zksync.io",
|
|
@@ -395,6 +395,23 @@
|
|
|
395
395
|
"https://rinkeby-explorer.arbitrum.io"
|
|
396
396
|
]
|
|
397
397
|
},
|
|
398
|
+
"421613": {
|
|
399
|
+
"chainId": "0x66eed",
|
|
400
|
+
"chainName": "Arbitrum Goerli",
|
|
401
|
+
"nativeCurrency": {
|
|
402
|
+
"name": "Arbitrum Goerli Ether",
|
|
403
|
+
"symbol": "AGOR",
|
|
404
|
+
"decimals": 18
|
|
405
|
+
},
|
|
406
|
+
"network_name": "arbitrum-goerli",
|
|
407
|
+
"rpcUrls": [
|
|
408
|
+
"https://goerli-rollup.arbitrum.io/rpc/"
|
|
409
|
+
],
|
|
410
|
+
"hostedRPC": "https://goerli-rollup.arbitrum.io/rpc/",
|
|
411
|
+
"blockExplorerUrls": [
|
|
412
|
+
"https://goerli-rollup-explorer.arbitrum.io"
|
|
413
|
+
]
|
|
414
|
+
},
|
|
398
415
|
"1337702": {
|
|
399
416
|
"chainId": "0x146966",
|
|
400
417
|
"chainName": "Kintsugi",
|
package/generated/contracts.json
CHANGED
|
@@ -446,6 +446,15 @@
|
|
|
446
446
|
"notes": null,
|
|
447
447
|
"arbitrators": {}
|
|
448
448
|
}
|
|
449
|
+
},
|
|
450
|
+
"POLK": {
|
|
451
|
+
"RealityETH_ERC20-3.0": {
|
|
452
|
+
"address": "0x895b09919250f81505c089651d3cb61d284531d3",
|
|
453
|
+
"block": 35623862,
|
|
454
|
+
"token_address": "0x222E11E134F9AB3750812b37F0DA51B4467EaA7a",
|
|
455
|
+
"notes": null,
|
|
456
|
+
"arbitrators": {}
|
|
457
|
+
}
|
|
449
458
|
}
|
|
450
459
|
},
|
|
451
460
|
"421611": {
|
|
@@ -471,6 +480,16 @@
|
|
|
471
480
|
}
|
|
472
481
|
}
|
|
473
482
|
},
|
|
483
|
+
"421613": {
|
|
484
|
+
"ARETH": {
|
|
485
|
+
"RealityETH-3.0": {
|
|
486
|
+
"address": "0x14a6748192aBC6E10CA694Ae07bDd4327D6c7A51",
|
|
487
|
+
"block": 19181142,
|
|
488
|
+
"notes": null,
|
|
489
|
+
"arbitrators": {}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
},
|
|
474
493
|
"1337702": {
|
|
475
494
|
"ETH": {
|
|
476
495
|
"RealityETH-3.0": {
|
package/generated/tokens.json
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
"small_number": 10000000000000000,
|
|
5
5
|
"native_chains": {
|
|
6
6
|
"42161": true,
|
|
7
|
-
"421611": true
|
|
7
|
+
"421611": true,
|
|
8
|
+
"421613": true
|
|
8
9
|
}
|
|
9
10
|
},
|
|
10
11
|
"AVAX": {
|
|
@@ -107,7 +108,8 @@
|
|
|
107
108
|
"decimals": 18,
|
|
108
109
|
"small_number": 1000000000000000000,
|
|
109
110
|
"erc20_chains": {
|
|
110
|
-
"42": "0x222E11E134F9AB3750812b37F0DA51B4467EaA7a"
|
|
111
|
+
"42": "0x222E11E134F9AB3750812b37F0DA51B4467EaA7a",
|
|
112
|
+
"80001": "0x935f82d011ee37e8870c435417ac58407a9863f7"
|
|
111
113
|
}
|
|
112
114
|
},
|
|
113
115
|
"SWISE": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reality.eth/contracts",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.31",
|
|
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": "ad25a359d752023e2ffe58f4fbbb90a383b4bc36",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"ethers": "^5.6.8"
|
|
36
36
|
}
|
package/scripts/deploy.js
CHANGED
|
@@ -11,16 +11,20 @@ const deployed_at = null;
|
|
|
11
11
|
var undef;
|
|
12
12
|
|
|
13
13
|
const defaultConfigs = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
//gasPrice: 70000000000
|
|
17
|
-
//
|
|
14
|
+
//maxFeePerGas: 610000000000,
|
|
15
|
+
//maxPriorityFeePerGas: 10000000000,
|
|
16
|
+
//gasPrice: 70000000000,
|
|
17
|
+
//gasPrice: 10000000000,
|
|
18
|
+
// gasPrice: 100000000,
|
|
18
19
|
// gasPrice: 10000, // optimism 1000000,
|
|
19
20
|
/// gasPrice: 5000000000,
|
|
20
|
-
//
|
|
21
|
+
//gasLimit: 6000000, // optimism 4500000
|
|
21
22
|
gasLimit: 4500000,
|
|
22
23
|
//etherscanApiKey: 'TPA4BFDDIH8Q7YBQ4JMGN6WDDRRPAV6G34'
|
|
23
|
-
//
|
|
24
|
+
//gasLimit: 155734867 // arbitrum
|
|
25
|
+
//gasLimit: 7000000
|
|
26
|
+
//gasLimit: 800035294
|
|
27
|
+
// gasLimit: 4291955938
|
|
24
28
|
}
|
|
25
29
|
const task = process.argv[2]
|
|
26
30
|
const version = process.argv[3]
|
|
@@ -45,10 +49,12 @@ const chains = {
|
|
|
45
49
|
'cheapeth': 777,
|
|
46
50
|
'gnosis': 100,
|
|
47
51
|
'polygon': 137,
|
|
52
|
+
'hermez': 1101,
|
|
48
53
|
'mumbai': 80001,
|
|
49
54
|
'ava': 43114,
|
|
50
55
|
'arbitrum': 42161,
|
|
51
56
|
'arbitrum-rinkeby': 421611,
|
|
57
|
+
'arbitrum-goerli': 421613,
|
|
52
58
|
'kovan-optimistic': 69,
|
|
53
59
|
'kintsugi': 1337702,
|
|
54
60
|
'sepolia': 11155111,
|
|
@@ -59,9 +65,11 @@ const non_infura_chains = {
|
|
|
59
65
|
'bsc': 'https://bsc-dataseed.binance.org',
|
|
60
66
|
'chapel': 'https://bsc-testnet.public.blastapi.io',
|
|
61
67
|
'polygon': 'https://rpc-mainnet.maticvigil.com',
|
|
68
|
+
'hermez': 'https://rpc.ankr.com/polygon_zkevm',
|
|
62
69
|
'ava': 'https://api.avax.network/ext/bc/C/rpc',
|
|
63
70
|
'arbitrum': 'https://arb1.arbitrum.io/rpc',
|
|
64
71
|
'arbitrum-rinkeby': 'https://rinkeby.arbitrum.io/rpc',
|
|
72
|
+
'arbitrum-goerli': 'https://goerli-rollup.arbitrum.io/rpc',
|
|
65
73
|
'ubiq': 'https://rpc.octano.dev',
|
|
66
74
|
'cheapeth': 'https://node.cheapeth.org/rpc',
|
|
67
75
|
'kovan-optimistic': 'https://kovan.optimism.io',
|
|
@@ -202,7 +210,8 @@ async function waitForGas(provider) {
|
|
|
202
210
|
}
|
|
203
211
|
|
|
204
212
|
const f = await provider.getFeeData()
|
|
205
|
-
|
|
213
|
+
console.log('fee', f)
|
|
214
|
+
return;
|
|
206
215
|
if (f.gasPrice.gt(ethers.BigNumber.from(defaultConfigs.maxFeePerGas))) {
|
|
207
216
|
console.log('Gas is too expensive, got', f.gasPrice.toString(), 'but you will only pay ', defaultConfigs.maxFeePerGas, ', retrying...')
|
|
208
217
|
await sleep(2000);
|
package/tokens/ARETH.json
CHANGED
package/tokens/POLK.json
CHANGED