opportunity-service 0.0.622 → 0.0.623

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.
@@ -13,6 +13,7 @@ import { Contracts } from '../constants';
13
13
  import { processLog } from './process/process-log';
14
14
  function syncMarkets() {
15
15
  return __awaiter(this, void 0, void 0, function* () {
16
+ console.log('syncMarkets: ' + addressMap[opportunityService.getEthNetwork()][Contracts.MARKET_FACTORY]);
16
17
  if (opportunityService.getProviderInterface()) {
17
18
  //sync Markets
18
19
  yield opportunityService.getProviderInterface().getLogs({
@@ -21,6 +22,7 @@ function syncMarkets() {
21
22
  toBlock: 'latest'
22
23
  }).then((logs) => {
23
24
  console.log('Found logs.. Processing...');
25
+ console.log(logs);
24
26
  logs.forEach(log => {
25
27
  if (log && Array.isArray(log.topics) && log.topics.length) {
26
28
  processLog(log); // keccashinside here
@@ -1 +1 @@
1
- {"version":3,"file":"sync-markets.js","sourceRoot":"","sources":["../../src/sync/sync-markets.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,UAAU,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,SAAe,WAAW;;QACrB,IAAI,kBAAkB,CAAC,oBAAoB,EAAE,EAAE;YAC/C,cAAc;YACd,MAAM,kBAAkB,CAAC,oBAAoB,EAAE,CAAC,OAAO,CAAC;gBACrD,OAAO,EAAE,UAAU,CAAC,kBAAkB,CAAC,aAAa,EAAE,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC;gBACjF,SAAS,EAAE,CAAC;gBACZ,OAAO,EAAE,QAAQ;aACpB,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;gBACb,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAA;gBACzC,IAAI,CAA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AI,CAAC,CAAA;gBACjB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;oBACf,IAAI,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE;wBACvD,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,qBAAqB;qBACzC;gBACL,CAAC,CAAC,CAAA;YACN,CAAC,CAAC;iBACD,KAAK,CAAC,GAAG,CAAC,EAAE;gBACT,OAAO,CAAC,GAAG,CAAC,wCAAwC,GAAG,GAAG,CAAC,CAAA;YAC/D,CAAC,CAAC,CAAA;SACD;IACL,CAAC;CAAA;AAED,eAAe,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opportunity-service",
3
- "version": "0.0.622",
3
+ "version": "0.0.623",
4
4
  "description": "A service layer that connects all services between the blockchain and ui.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -4,6 +4,7 @@ import { Contracts } from '../constants';
4
4
  import { processLog } from './process/process-log';
5
5
 
6
6
  async function syncMarkets() {
7
+ console.log('syncMarkets: ' + addressMap[opportunityService.getEthNetwork()][Contracts.MARKET_FACTORY])
7
8
  if (opportunityService.getProviderInterface()) {
8
9
  //sync Markets
9
10
  await opportunityService.getProviderInterface().getLogs({
@@ -12,6 +13,7 @@ async function syncMarkets() {
12
13
  toBlock: 'latest'
13
14
  }).then((logs) => {
14
15
  console.log('Found logs.. Processing...')
16
+ console.log(logs)
15
17
  logs.forEach(log => {
16
18
  if (log && Array.isArray(log.topics) && log.topics.length) {
17
19
  processLog(log); // keccashinside here