@reality.eth/contracts 3.0.56 → 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/deployments/11155420/ETH/RealityETH-3.0.json +6 -0
- package/chains/supported.json +9 -3
- package/generated/chains.json +22 -0
- package/generated/contracts.json +10 -0
- package/generated/tokens.json +3 -1
- package/index.js +11 -0
- package/package.json +2 -2
- package/scripts/generate_chains_json.js +4 -0
- package/tokens/ETH.json +3 -1
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,11 @@
|
|
|
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
|
|
145
|
+
},
|
|
146
|
+
"11155420": {
|
|
147
|
+
"network_name": "optimism-sepolia"
|
|
142
148
|
},
|
|
143
149
|
"11155111": {
|
|
144
150
|
"network_name": "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
|
]
|
|
@@ -648,6 +651,25 @@
|
|
|
648
651
|
"https://sepolia.otterscan.io"
|
|
649
652
|
]
|
|
650
653
|
},
|
|
654
|
+
"11155420": {
|
|
655
|
+
"chainId": "0xaa37dc",
|
|
656
|
+
"chainName": "OP Sepolia Testnet",
|
|
657
|
+
"nativeCurrency": {
|
|
658
|
+
"name": "Sepolia Ether",
|
|
659
|
+
"symbol": "ETH",
|
|
660
|
+
"decimals": 18
|
|
661
|
+
},
|
|
662
|
+
"network_name": "optimism-sepolia",
|
|
663
|
+
"rpcUrls": [
|
|
664
|
+
"https://sepolia.optimism.io",
|
|
665
|
+
"https://optimism-sepolia.drpc.org",
|
|
666
|
+
"wss://optimism-sepolia.drpc.org"
|
|
667
|
+
],
|
|
668
|
+
"hostedRPC": "https://sepolia.optimism.io",
|
|
669
|
+
"blockExplorerUrls": [
|
|
670
|
+
"https://optimism-sepolia.blockscout.com"
|
|
671
|
+
]
|
|
672
|
+
},
|
|
651
673
|
"88558801": {
|
|
652
674
|
"chainId": "0x5474cd1",
|
|
653
675
|
"chainName": "Backstop Testnet 1",
|
package/generated/contracts.json
CHANGED
|
@@ -578,6 +578,16 @@
|
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
},
|
|
581
|
+
"11155420": {
|
|
582
|
+
"ETH": {
|
|
583
|
+
"RealityETH-3.0": {
|
|
584
|
+
"address": "0xeAD0ca922390a5E383A9D5Ba4366F7cfdc6f0dbA",
|
|
585
|
+
"block": 14341474,
|
|
586
|
+
"notes": null,
|
|
587
|
+
"arbitrators": {}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
},
|
|
581
591
|
"88558801": {
|
|
582
592
|
"ZBS": {
|
|
583
593
|
"Arbitrator": {
|
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']) {
|