opportunity-service 0.0.631 → 0.0.635

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.631",
3
+ "version": "0.0.635",
4
4
  "description": "A service layer that connects all services between the blockchain and ui.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -45,6 +45,7 @@ class OpportunityService {
45
45
  this.ethNetwork = 'rinkeby'
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
+ console.log(this.opportunityProvider)
48
49
  }
49
50
 
50
51
  /**
@@ -151,7 +152,11 @@ class OpportunityService {
151
152
 
152
153
  getProviderInterface() : providers.JsonRpcProvider {
153
154
  if (this.opportunityProvider) {
155
+ console.log('Provider is not null')
156
+ console.log(this.opportunityProvider)
154
157
  return this.opportunityProvider
158
+ } else {
159
+ console.log('provider is null')
155
160
  }
156
161
 
157
162
  return this.ethersProvider;