@cityofzion/blockchain-service 1.1.0 → 1.2.0

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.
@@ -70,10 +70,10 @@ class BSAggregator {
70
70
  }
71
71
  if (index !== 0) {
72
72
  try {
73
- const { totalCount } = yield service.blockchainDataService.getTransactionsByAddress({
73
+ const { transactions } = yield service.blockchainDataService.getTransactionsByAddress({
74
74
  address: generatedAccount.address,
75
75
  });
76
- if (!totalCount || totalCount <= 0)
76
+ if (!transactions || transactions.length <= 0)
77
77
  hasError = true;
78
78
  }
79
79
  catch (_a) {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './interfaces';
2
1
  export * from './BSAggregator';
3
- export * from './functions';
4
2
  export * from './CryptoCompareEDS';
3
+ export * from './functions';
4
+ export * from './interfaces';
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./interfaces"), exports);
18
17
  __exportStar(require("./BSAggregator"), exports);
19
- __exportStar(require("./functions"), exports);
20
18
  __exportStar(require("./CryptoCompareEDS"), exports);
19
+ __exportStar(require("./functions"), exports);
20
+ __exportStar(require("./interfaces"), exports);
@@ -109,15 +109,12 @@ export type ContractParameter = {
109
109
  type: string;
110
110
  };
111
111
  export type TransactionsByAddressResponse = {
112
- totalCount?: number;
113
- limit?: number;
114
- nextCursor?: string;
115
112
  transactions: TransactionResponse[];
113
+ nextPageParams?: any;
116
114
  };
117
115
  export type TransactionsByAddressParams = {
118
116
  address: string;
119
- page?: number;
120
- cursor?: string;
117
+ nextPageParams?: any;
121
118
  };
122
119
  export type ContractMethod = {
123
120
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/blockchain-service",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": "https://github.com/CityOfZion/blockchain-services",