@reality.eth/contracts 3.0.57 → 3.0.58
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/supported.json +6 -3
- package/generated/chains.json +3 -0
- package/generated/tokens.json +1 -0
- package/index.js +11 -0
- package/package.json +2 -2
- package/scripts/generate_chains_json.js +4 -0
- package/tokens/ETH.json +1 -0
package/chains/supported.json
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"hostedRPC": "https://ropsten.infura.io/tSrhlXUe1sNEO5ZWhpUK",
|
|
10
10
|
"explorerURL": "https://ropsten.etherscan.io",
|
|
11
11
|
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-ropsten",
|
|
12
|
-
"network_name": "ropsten"
|
|
12
|
+
"network_name": "ropsten",
|
|
13
|
+
"deprecated": true
|
|
13
14
|
},
|
|
14
15
|
"4": {
|
|
15
16
|
"hostedRPC": "https://eth-rinkeby.alchemyapi.io/v2/m2Op-gK2G1RiwtWHr6QB_JH9-ry0A6do",
|
|
@@ -102,7 +103,8 @@
|
|
|
102
103
|
"17000": {
|
|
103
104
|
"hostedRPC": "https://ethereum-holesky.publicnode.com",
|
|
104
105
|
"explorerURL": "https://holesky.etherscan.io/",
|
|
105
|
-
"network_name": "holesky"
|
|
106
|
+
"network_name": "holesky",
|
|
107
|
+
"deprecated": true
|
|
106
108
|
},
|
|
107
109
|
"42161": {
|
|
108
110
|
"hostedRPC": "https://arb1.arbitrum.io/rpc",
|
|
@@ -138,7 +140,8 @@
|
|
|
138
140
|
"hostedRPC": "https://alpha-rpc.scroll.io/l2"
|
|
139
141
|
},
|
|
140
142
|
"1337702": {
|
|
141
|
-
"network_name": "kintsugi"
|
|
143
|
+
"network_name": "kintsugi",
|
|
144
|
+
"deprecated": true
|
|
142
145
|
},
|
|
143
146
|
"11155420": {
|
|
144
147
|
"network_name": "optimism-sepolia"
|
package/generated/chains.json
CHANGED
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"rpcUrls": [],
|
|
46
46
|
"hostedRPC": "https://ropsten.infura.io/tSrhlXUe1sNEO5ZWhpUK",
|
|
47
47
|
"graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-ropsten",
|
|
48
|
+
"deprecated": true,
|
|
48
49
|
"blockExplorerUrls": [
|
|
49
50
|
"https://ropsten.etherscan.io"
|
|
50
51
|
]
|
|
@@ -465,6 +466,7 @@
|
|
|
465
466
|
"wss://holesky.drpc.org"
|
|
466
467
|
],
|
|
467
468
|
"hostedRPC": "https://ethereum-holesky.publicnode.com",
|
|
469
|
+
"deprecated": true,
|
|
468
470
|
"blockExplorerUrls": [
|
|
469
471
|
"https://holesky.beaconcha.in",
|
|
470
472
|
"https://holesky.otterscan.io",
|
|
@@ -617,6 +619,7 @@
|
|
|
617
619
|
"https://rpc.kintsugi.themerge.dev"
|
|
618
620
|
],
|
|
619
621
|
"hostedRPC": "https://rpc.kintsugi.themerge.dev",
|
|
622
|
+
"deprecated": true,
|
|
620
623
|
"blockExplorerUrls": [
|
|
621
624
|
"https://explorer.kintsugi.themerge.dev"
|
|
622
625
|
]
|
package/generated/tokens.json
CHANGED
package/index.js
CHANGED
|
@@ -182,6 +182,16 @@ function isChainSupported(chain_id) {
|
|
|
182
182
|
return (""+chain_id in chain_info);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
+
function supportedChains(include_deprecated = false) {
|
|
186
|
+
let ret = {};
|
|
187
|
+
for (chain_id in chain_info) {
|
|
188
|
+
if (include_deprecated || !chain_info[""+chain_id].deprecated) {
|
|
189
|
+
ret[""+chain_id] = chain_info[""+chain_id].chainName;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return ret;
|
|
193
|
+
}
|
|
194
|
+
|
|
185
195
|
function walletAddParameters(chain_id) {
|
|
186
196
|
var params = ['chainId', 'chainName', 'nativeCurrency', 'rpcUrls', 'blockExplorerUrls']
|
|
187
197
|
var ret = {};
|
|
@@ -338,6 +348,7 @@ module.exports.templateConfig = templateConfig;
|
|
|
338
348
|
module.exports.defaultTokenForChain = defaultTokenForChain;
|
|
339
349
|
module.exports.versionHasFeature = versionHasFeature;
|
|
340
350
|
module.exports.isChainSupported = isChainSupported;
|
|
351
|
+
module.exports.supportedChains = supportedChains;
|
|
341
352
|
module.exports.factoryList = factoryList;
|
|
342
353
|
module.exports.tokenAndContractConfigFromFactory = tokenAndContractConfigFromFactory;
|
|
343
354
|
module.exports.configForAddress = configForAddress;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reality.eth/contracts",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.58",
|
|
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": "bff8a19d318298eebdba71c5bd4dd31e76d67da3",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"ethers": "^5.6.8"
|
|
40
40
|
}
|
|
@@ -74,6 +74,10 @@ for (var ci = 0; ci< chain_id_list.length; ci++) {
|
|
|
74
74
|
chainparams['network_name'] = our_data['network_name'];
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
if (our_data['deprecated']) {
|
|
78
|
+
chainparams['deprecated'] = true;
|
|
79
|
+
}
|
|
80
|
+
|
|
77
81
|
chainparams['blockExplorerUrls'] = [];
|
|
78
82
|
if ('explorers' in chain_info) {
|
|
79
83
|
for(var exi in chain_info['explorers']) {
|