@cityofzion/bs-ethereum 2.2.1 → 2.2.3

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.
@@ -57,7 +57,7 @@ class BlockscoutNeoXBDSEthereum extends RpcBDSEthereum_1.RpcBDSEthereum {
57
57
  block: data.block,
58
58
  hash: data.hash,
59
59
  fee: ethers_1.ethers.utils.formatUnits(data.fee.value, nativeToken.decimals),
60
- time: new Date(data.timestamp).getTime(),
60
+ time: new Date(data.timestamp).getTime() / 1000,
61
61
  notifications: [],
62
62
  transfers,
63
63
  };
@@ -85,7 +85,7 @@ class BlockscoutNeoXBDSEthereum extends RpcBDSEthereum_1.RpcBDSEthereum {
85
85
  block: item.block,
86
86
  hash: item.hash,
87
87
  fee: ethers_1.ethers.utils.formatUnits(item.fee.value, nativeToken.decimals),
88
- time: new Date(item.timestamp).getTime(),
88
+ time: new Date(item.timestamp).getTime() / 1000,
89
89
  notifications: [],
90
90
  transfers,
91
91
  });
@@ -161,7 +161,7 @@ class MoralisBDSEthereum extends RpcBDSEthereum_1.RpcBDSEthereum {
161
161
  block: Number(data.block_number),
162
162
  hash,
163
163
  notifications: [],
164
- time: new Date(data.block_timestamp).getTime(),
164
+ time: new Date(data.block_timestamp).getTime() / 1000,
165
165
  transfers,
166
166
  fee: data.transaction_fee,
167
167
  };
@@ -226,7 +226,7 @@ class MoralisBDSEthereum extends RpcBDSEthereum_1.RpcBDSEthereum {
226
226
  block: Number(item.block_number),
227
227
  hash: item.hash,
228
228
  notifications: [],
229
- time: new Date(item.block_timestamp).getTime(),
229
+ time: new Date(item.block_timestamp).getTime() / 1000,
230
230
  transfers,
231
231
  fee: item.transaction_fee,
232
232
  });
@@ -64,7 +64,7 @@ class MoralisEDSEthereum extends blockchain_service_1.CryptoCompareEDS {
64
64
  splitTokensBody.push(tokensBody.slice(i, i + __classPrivateFieldGet(this, _MoralisEDSEthereum_maxTokenPricesPerCall, "f")));
65
65
  }
66
66
  const response = [];
67
- yield Promise.allSettled(splitTokensBody.slice(0, 1).map((body) => __awaiter(this, void 0, void 0, function* () {
67
+ yield Promise.allSettled(splitTokensBody.map((body) => __awaiter(this, void 0, void 0, function* () {
68
68
  const { data } = yield client.post('/erc20/prices', {
69
69
  tokens: body,
70
70
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/bs-ethereum",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": "https://github.com/CityOfZion/blockchain-services",