@reality.eth/contracts 3.0.13 → 3.0.14
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/deployments/80001/MATIC/RealityETH-3.0.json +6 -0
- package/chains/supported.json +6 -0
- package/generated/chains.json +20 -0
- package/generated/contracts.json +10 -0
- package/generated/tokens.json +2 -1
- package/index.js +9 -0
- package/package.json +2 -2
- package/scripts/deploy.js +6 -3
- package/tokens/MATIC.json +2 -1
package/chains/supported.json
CHANGED
|
@@ -72,6 +72,12 @@
|
|
|
72
72
|
"explorerURL": "https://zksync2-testnet.zkscan.io",
|
|
73
73
|
"network_name": "zkSync2-testnet"
|
|
74
74
|
},
|
|
75
|
+
"80001": {
|
|
76
|
+
"hostedRPC": "https://rpc.ankr.com/polygon_mumbai",
|
|
77
|
+
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-mumbai",
|
|
78
|
+
"explorerURL": "https://mumbai.polygonscan.com",
|
|
79
|
+
"network_name": "mumbai"
|
|
80
|
+
},
|
|
75
81
|
"43114": {
|
|
76
82
|
"explorerURL": "https://cchain.explorer.avax.network/",
|
|
77
83
|
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-ava",
|
package/generated/chains.json
CHANGED
|
@@ -317,6 +317,26 @@
|
|
|
317
317
|
"https://cchain.explorer.avax.network/"
|
|
318
318
|
]
|
|
319
319
|
},
|
|
320
|
+
"80001": {
|
|
321
|
+
"chainId": "0x13881",
|
|
322
|
+
"chainName": "Mumbai",
|
|
323
|
+
"nativeCurrency": {
|
|
324
|
+
"name": "MATIC",
|
|
325
|
+
"symbol": "MATIC",
|
|
326
|
+
"decimals": 18
|
|
327
|
+
},
|
|
328
|
+
"network_name": "mumbai",
|
|
329
|
+
"rpcUrls": [
|
|
330
|
+
"https://matic-mumbai.chainstacklabs.com",
|
|
331
|
+
"https://rpc-mumbai.maticvigil.com",
|
|
332
|
+
"https://matic-testnet-archive-rpc.bwarelabs.com"
|
|
333
|
+
],
|
|
334
|
+
"hostedRPC": "https://rpc.ankr.com/polygon_mumbai",
|
|
335
|
+
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-mumbai",
|
|
336
|
+
"blockExplorerUrls": [
|
|
337
|
+
"https://mumbai.polygonscan.com"
|
|
338
|
+
]
|
|
339
|
+
},
|
|
320
340
|
"421611": {
|
|
321
341
|
"chainId": "0x66eeb",
|
|
322
342
|
"chainName": "Arbitrum Rinkeby",
|
package/generated/contracts.json
CHANGED
|
@@ -424,6 +424,16 @@
|
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
},
|
|
427
|
+
"80001": {
|
|
428
|
+
"MATIC": {
|
|
429
|
+
"RealityETH-3.0": {
|
|
430
|
+
"address": "0x92115220C28e78312cCe86f3d1dE652CFBD0357A",
|
|
431
|
+
"block": 27425354,
|
|
432
|
+
"notes": null,
|
|
433
|
+
"arbitrators": {}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
},
|
|
427
437
|
"421611": {
|
|
428
438
|
"ARETH": {
|
|
429
439
|
"Arbitrator": {
|
package/generated/tokens.json
CHANGED
package/index.js
CHANGED
|
@@ -2,6 +2,7 @@ const all_config = require('./generated/contracts.json');
|
|
|
2
2
|
const token_info = require('./generated/tokens.json');
|
|
3
3
|
const chain_info = require('./generated/chains.json');
|
|
4
4
|
const template_config = require('./config/templates.json');
|
|
5
|
+
const factory_config = require('./generated/factories.json');
|
|
5
6
|
|
|
6
7
|
function realityETHInstance(config) {
|
|
7
8
|
const abis = {
|
|
@@ -209,6 +210,13 @@ function versionHasFeature(vernum, feature_name) {
|
|
|
209
210
|
}
|
|
210
211
|
}
|
|
211
212
|
|
|
213
|
+
function factoryList(chain_id) {
|
|
214
|
+
if (!factory_config[chain_id]) {
|
|
215
|
+
return {};
|
|
216
|
+
}
|
|
217
|
+
return factory_config[chain_id];
|
|
218
|
+
}
|
|
219
|
+
|
|
212
220
|
module.exports.realityETHConfig = realityETHConfig;
|
|
213
221
|
module.exports.realityETHConfigs = realityETHConfigs;
|
|
214
222
|
module.exports.realityETHInstance = realityETHInstance;
|
|
@@ -222,3 +230,4 @@ module.exports.templateConfig = templateConfig;
|
|
|
222
230
|
module.exports.defaultTokenForChain = defaultTokenForChain;
|
|
223
231
|
module.exports.versionHasFeature = versionHasFeature;
|
|
224
232
|
module.exports.isChainSupported = isChainSupported;
|
|
233
|
+
module.exports.factoryList = factoryList;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reality.eth/contracts",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.14",
|
|
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": "a6967162fe1addfaa727cb3d3bac37fcabb2c7bb",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"ethers": "^5.6.8"
|
|
36
36
|
}
|
package/scripts/deploy.js
CHANGED
|
@@ -11,13 +11,14 @@ const deployed_at = null;
|
|
|
11
11
|
var undef;
|
|
12
12
|
|
|
13
13
|
const defaultConfigs = {
|
|
14
|
-
//
|
|
15
|
-
//
|
|
14
|
+
//maxFeePerGas: 610000000000,
|
|
15
|
+
//maxPriorityFeePerGas: 10000000000,
|
|
16
16
|
//gasPrice: 70000000000
|
|
17
|
+
// gasPrice: 10000000000,
|
|
17
18
|
// gasPrice: 10000, // optimism 1000000,
|
|
18
19
|
/// gasPrice: 5000000000,
|
|
19
20
|
// gasLimit: 6000000, // optimism 4500000
|
|
20
|
-
|
|
21
|
+
gasLimit: 4500000,
|
|
21
22
|
//etherscanApiKey: 'TPA4BFDDIH8Q7YBQ4JMGN6WDDRRPAV6G34'
|
|
22
23
|
// gasLimit: 155734867 // arbitrum
|
|
23
24
|
}
|
|
@@ -43,6 +44,7 @@ const chains = {
|
|
|
43
44
|
'cheapeth': 777,
|
|
44
45
|
'xdai': 100,
|
|
45
46
|
'polygon': 137,
|
|
47
|
+
'mumbai': 80001,
|
|
46
48
|
'ava': 43114,
|
|
47
49
|
'arbitrum': 42161,
|
|
48
50
|
'arbitrum-rinkeby': 421611,
|
|
@@ -62,6 +64,7 @@ const non_infura_chains = {
|
|
|
62
64
|
'kovan-optimistic': 'https://kovan.optimism.io',
|
|
63
65
|
'optimism': 'https://mainnet.optimism.io',
|
|
64
66
|
'kintsugi': 'https://rpc.kintsugi.themerge.dev',
|
|
67
|
+
'mumbai': 'https://matic-mumbai.chainstacklabs.com',
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
function constructContractTemplate(contract_name) {
|