opportunity-service 0.0.633 → 0.0.637

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,7 +34,7 @@ class OpportunityService {
34
34
  this.storage = null;
35
35
  this.api = opportunityAPI;
36
36
  const web3 = createAlchemyWeb3(process.env.NODE_ENV == 'dev' ? "https://eth-mainnet.alchemyapi.io/v2/JKVeBInuvm4wq9_8fECUmazLbm7Vpv5V" : "https://eth-mainnet.alchemyapi.io/v2/7d2CRio84usjQwU8tRPG75rqV1wJmX_W");
37
- this.ethNetwork = 'rinkeby';
37
+ this.ethNetwork = 'mainnet';
38
38
  this.opportunityProvider = new ethers.providers.JsonRpcProvider(process.env.NODE_ENV == 'dev' ? "https://eth-mainnet.alchemyapi.io/v2/JKVeBInuvm4wq9_8fECUmazLbm7Vpv5V" : "https://eth-mainnet.alchemyapi.io/v2/7d2CRio84usjQwU8tRPG75rqV1wJmX_W");
39
39
  console.log(this.opportunityProvider);
40
40
  }
@@ -75,6 +75,19 @@
75
75
  "stateMutability": "nonpayable",
76
76
  "type": "function"
77
77
  },
78
+ {
79
+ "inputs": [],
80
+ "name": "getMarkets",
81
+ "outputs": [
82
+ {
83
+ "internalType": "address[]",
84
+ "name": "",
85
+ "type": "address[]"
86
+ }
87
+ ],
88
+ "stateMutability": "view",
89
+ "type": "function"
90
+ },
78
91
  {
79
92
  "inputs": [],
80
93
  "name": "getNumMarkets",
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "rinkeby": {
3
3
  "MarketFactory": "0x850cADCF43FB7a40F8aD0C09e7F4B4A649598298",
4
- "UserRegistration": "0x855B49FEf7e8Ece986E4A63EcA584F44114aBc0e",
4
+ "UserRegistration": "0x31799946e72a44273515556e366e059064Df8ca2",
5
5
  "UserSummaryFactory": "0x9d64421D3472E1c1776d5E4C2d1Fdb71A1B4b541",
6
- "Dai": "0x5592ec0cfb4dbc12d3ab100b257153436a1f0fea",
7
- "Participation": "0xC9dbEA7aeBd89acA4d138Df139E04c30Ea0FF47f"
6
+ "Dai": "0x5592ec0cfb4dbc12d3ab100b257153436a1f0fea"
8
7
  },
9
8
  "mainnet": {
10
- "MarketFactory": "0x1da7170783ff0EbeCBf5497A195D4b8c3a2717b9",
11
- "UserRegistration": "0x3755AfF65C5FB6C4f58863B09C685bA8B782d36a",
12
- "UserSummaryFactory": "0xA5C56C73bF223A928fB7DF7026cC4A16288AC88a",
13
- "Dai": "0x6b175474e89094c44da98b954eedeac495271d0f",
14
- "Participation": "0x2bC16f94570b51AE50cfcAAFFCB0Ef64FCDC94F4"
9
+ "MarketFactory": "0x9fd244e5972F28e2F133bd3dAA5A6691C8E6d1c7",
10
+ "UserRegistration": "0x31799946e72a44273515556e366e059064Df8ca2",
11
+ "UserSummaryFactory": "0xA31Ea4553E82e08b3F411B29C009ECd45AE1738B",
12
+ "Dai": "0x6b175474e89094c44da98b954eedeac495271d0f"
15
13
  },
16
14
  "xdai": {}
17
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opportunity-service",
3
- "version": "0.0.633",
3
+ "version": "0.0.637",
4
4
  "description": "A service layer that connects all services between the blockchain and ui.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -42,7 +42,7 @@ class OpportunityService {
42
42
  */
43
43
  private constructor() {
44
44
  const web3 = createAlchemyWeb3(process.env.NODE_ENV == 'dev' ? "https://eth-mainnet.alchemyapi.io/v2/JKVeBInuvm4wq9_8fECUmazLbm7Vpv5V" : "https://eth-mainnet.alchemyapi.io/v2/7d2CRio84usjQwU8tRPG75rqV1wJmX_W");
45
- this.ethNetwork = 'rinkeby'
45
+ this.ethNetwork = 'mainnet'
46
46
 
47
47
  this.opportunityProvider = new ethers.providers.JsonRpcProvider(process.env.NODE_ENV == 'dev' ? "https://eth-mainnet.alchemyapi.io/v2/JKVeBInuvm4wq9_8fECUmazLbm7Vpv5V" : "https://eth-mainnet.alchemyapi.io/v2/7d2CRio84usjQwU8tRPG75rqV1wJmX_W")
48
48
  console.log(this.opportunityProvider)
@@ -75,6 +75,19 @@
75
75
  "stateMutability": "nonpayable",
76
76
  "type": "function"
77
77
  },
78
+ {
79
+ "inputs": [],
80
+ "name": "getMarkets",
81
+ "outputs": [
82
+ {
83
+ "internalType": "address[]",
84
+ "name": "",
85
+ "type": "address[]"
86
+ }
87
+ ],
88
+ "stateMutability": "view",
89
+ "type": "function"
90
+ },
78
91
  {
79
92
  "inputs": [],
80
93
  "name": "getNumMarkets",
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "rinkeby": {
3
3
  "MarketFactory": "0x850cADCF43FB7a40F8aD0C09e7F4B4A649598298",
4
- "UserRegistration": "0x855B49FEf7e8Ece986E4A63EcA584F44114aBc0e",
4
+ "UserRegistration": "0x31799946e72a44273515556e366e059064Df8ca2",
5
5
  "UserSummaryFactory": "0x9d64421D3472E1c1776d5E4C2d1Fdb71A1B4b541",
6
- "Dai": "0x5592ec0cfb4dbc12d3ab100b257153436a1f0fea",
7
- "Participation": "0xC9dbEA7aeBd89acA4d138Df139E04c30Ea0FF47f"
6
+ "Dai": "0x5592ec0cfb4dbc12d3ab100b257153436a1f0fea"
8
7
  },
9
8
  "mainnet": {
10
- "MarketFactory": "0x1da7170783ff0EbeCBf5497A195D4b8c3a2717b9",
11
- "UserRegistration": "0x3755AfF65C5FB6C4f58863B09C685bA8B782d36a",
12
- "UserSummaryFactory": "0xA5C56C73bF223A928fB7DF7026cC4A16288AC88a",
9
+ "MarketFactory": "0x9fd244e5972F28e2F133bd3dAA5A6691C8E6d1c7",
10
+ "UserRegistration": "0x31799946e72a44273515556e366e059064Df8ca2",
11
+ "UserSummaryFactory": "0xA31Ea4553E82e08b3F411B29C009ECd45AE1738B",
13
12
  "Dai": "0x6b175474e89094c44da98b954eedeac495271d0f",
14
- "Participation": "0x2bC16f94570b51AE50cfcAAFFCB0Ef64FCDC94F4"
15
13
  },
16
14
  "xdai": {
17
15