@reality.eth/contracts 3.0.11 → 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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "address": "0x6F80C5cBCF9FbC2dA2F0675E56A5900BB70Df72f",
3
- "block": 7313547,
3
+ "block": 7313546,
4
4
  "notes": null,
5
5
  "arbitrators": {}
6
6
  }
@@ -0,0 +1,6 @@
1
+ {
2
+ "address": "0x92115220C28e78312cCe86f3d1dE652CFBD0357A",
3
+ "block": 27425354,
4
+ "notes": null,
5
+ "arbitrators": {}
6
+ }
@@ -17,6 +17,12 @@
17
17
  "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-rinkeby",
18
18
  "network_name": "rinkeby"
19
19
  },
20
+ "5": {
21
+ "hostedRPC": "https://eth-goerli.g.alchemy.com/v2/i2jZKhmFBPZYl8YdSHxsZ6viP3PQLwId",
22
+ "explorerURL": "https://goerli.etherscan.io",
23
+ "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-goerli",
24
+ "network_name": "goerli"
25
+ },
20
26
  "8": {
21
27
  "hostedRPC": "https://rpc.octano.dev",
22
28
  "explorerURL": "https://ubqblockexplorer.com/"
@@ -66,6 +72,12 @@
66
72
  "explorerURL": "https://zksync2-testnet.zkscan.io",
67
73
  "network_name": "zkSync2-testnet"
68
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
+ },
69
81
  "43114": {
70
82
  "explorerURL": "https://cchain.explorer.avax.network/",
71
83
  "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-ava",
@@ -50,6 +50,24 @@
50
50
  "https://rinkeby.etherscan.io"
51
51
  ]
52
52
  },
53
+ "5": {
54
+ "chainId": "0x5",
55
+ "chainName": "Görli",
56
+ "nativeCurrency": {
57
+ "name": "Görli Ether",
58
+ "symbol": "GOR",
59
+ "decimals": 18
60
+ },
61
+ "network_name": "goerli",
62
+ "rpcUrls": [
63
+ "https://rpc.goerli.mudit.blog/"
64
+ ],
65
+ "hostedRPC": "https://eth-goerli.g.alchemy.com/v2/i2jZKhmFBPZYl8YdSHxsZ6viP3PQLwId",
66
+ "graphURL": "https://api.thegraph.com/subgraphs/name/realityeth/realityeth-goerli",
67
+ "blockExplorerUrls": [
68
+ "https://goerli.etherscan.io"
69
+ ]
70
+ },
53
71
  "8": {
54
72
  "chainId": "0x8",
55
73
  "chainName": "Ubiq",
@@ -299,6 +317,26 @@
299
317
  "https://cchain.explorer.avax.network/"
300
318
  ]
301
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
+ },
302
340
  "421611": {
303
341
  "chainId": "0x66eeb",
304
342
  "chainName": "Arbitrum Rinkeby",
@@ -153,7 +153,7 @@
153
153
  "ETH": {
154
154
  "RealityETH-3.0": {
155
155
  "address": "0x6F80C5cBCF9FbC2dA2F0675E56A5900BB70Df72f",
156
- "block": 7313547,
156
+ "block": 7313546,
157
157
  "notes": null,
158
158
  "arbitrators": {}
159
159
  }
@@ -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": {
@@ -44,7 +44,8 @@
44
44
  "decimals": 18,
45
45
  "small_number": 1000000000000000000,
46
46
  "native_chains": {
47
- "137": true
47
+ "137": true,
48
+ "80001": true
48
49
  }
49
50
  },
50
51
  "OETH": {
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.11",
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": "2a849ecdec07e90265aa2fc84765cd4339bbaf2e",
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
- // maxFeePerGas: 61000000000,
15
- // maxPriorityFeePerGas: 1000000000,
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
- // gasLimit: 4500000,
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) {
package/tokens/MATIC.json CHANGED
@@ -2,6 +2,7 @@
2
2
  "decimals": 18,
3
3
  "small_number": 1000000000000000000,
4
4
  "native_chains": {
5
- "137": true
5
+ "137": true,
6
+ "80001": true
6
7
  }
7
8
  }