opportunity-service 0.0.634 → 0.0.638

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
  }
@@ -44,6 +44,25 @@
44
44
  "name": "MarketDestroyed",
45
45
  "type": "event"
46
46
  },
47
+ {
48
+ "inputs": [
49
+ {
50
+ "internalType": "uint256",
51
+ "name": "",
52
+ "type": "uint256"
53
+ }
54
+ ],
55
+ "name": "_createdMarkets",
56
+ "outputs": [
57
+ {
58
+ "internalType": "address",
59
+ "name": "",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "stateMutability": "view",
64
+ "type": "function"
65
+ },
47
66
  {
48
67
  "inputs": [
49
68
  {
@@ -75,6 +94,19 @@
75
94
  "stateMutability": "nonpayable",
76
95
  "type": "function"
77
96
  },
97
+ {
98
+ "inputs": [],
99
+ "name": "getMarkets",
100
+ "outputs": [
101
+ {
102
+ "internalType": "address[]",
103
+ "name": "",
104
+ "type": "address[]"
105
+ }
106
+ ],
107
+ "stateMutability": "view",
108
+ "type": "function"
109
+ },
78
110
  {
79
111
  "inputs": [],
80
112
  "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.634",
3
+ "version": "0.0.638",
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)
@@ -44,6 +44,25 @@
44
44
  "name": "MarketDestroyed",
45
45
  "type": "event"
46
46
  },
47
+ {
48
+ "inputs": [
49
+ {
50
+ "internalType": "uint256",
51
+ "name": "",
52
+ "type": "uint256"
53
+ }
54
+ ],
55
+ "name": "_createdMarkets",
56
+ "outputs": [
57
+ {
58
+ "internalType": "address",
59
+ "name": "",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "stateMutability": "view",
64
+ "type": "function"
65
+ },
47
66
  {
48
67
  "inputs": [
49
68
  {
@@ -75,6 +94,19 @@
75
94
  "stateMutability": "nonpayable",
76
95
  "type": "function"
77
96
  },
97
+ {
98
+ "inputs": [],
99
+ "name": "getMarkets",
100
+ "outputs": [
101
+ {
102
+ "internalType": "address[]",
103
+ "name": "",
104
+ "type": "address[]"
105
+ }
106
+ ],
107
+ "stateMutability": "view",
108
+ "type": "function"
109
+ },
78
110
  {
79
111
  "inputs": [],
80
112
  "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