@pioneer-platform/eth-network 8.30.0 → 8.31.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.
- package/CHANGELOG.md +12 -0
- package/lib/index.js +6 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @pioneer-platform/eth-network
|
|
2
2
|
|
|
3
|
+
## 8.31.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- chore: feat(pioneer-sdk): Add ERC-20/BEP-20 token table to portfolio dashboard
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @pioneer-platform/blockbook@8.30.0
|
|
13
|
+
- @pioneer-platform/nodes@8.28.0
|
|
14
|
+
|
|
3
15
|
## 8.30.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/lib/index.js
CHANGED
|
@@ -1385,6 +1385,12 @@ exports.getTransactionByNetwork = getTransactionByNetwork;
|
|
|
1385
1385
|
const getTransactionsByNetwork = async function (networkId, address, options = {}) {
|
|
1386
1386
|
let tag = TAG + ' | getTransactionsByNetwork | ';
|
|
1387
1387
|
try {
|
|
1388
|
+
// Auto-initialize blockbook if not already initialized
|
|
1389
|
+
const blockbookUrls = blockbook.getBlockbooks ? blockbook.getBlockbooks() : {};
|
|
1390
|
+
if (!blockbookUrls || Object.keys(blockbookUrls).length === 0) {
|
|
1391
|
+
log.info(tag, 'Blockbook not initialized - initializing now');
|
|
1392
|
+
await blockbook.init();
|
|
1393
|
+
}
|
|
1388
1394
|
log.info(tag, `Fetching transactions for ${address} on ${networkId}`);
|
|
1389
1395
|
// Normalize address to checksummed format
|
|
1390
1396
|
let checksummedAddress;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pioneer-platform/eth-network",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.31.0",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"@ethersproject/abstract-provider": "^5.8.0",
|
|
19
19
|
"@ethersproject/bignumber": "^5.8.0",
|
|
20
20
|
"@ethersproject/providers": "^5.8.0",
|
|
21
|
-
"@pioneer-platform/blockbook": "^8.
|
|
21
|
+
"@pioneer-platform/blockbook": "^8.30.0",
|
|
22
22
|
"@pioneer-platform/loggerdog": "^8.11.0",
|
|
23
|
-
"@pioneer-platform/nodes": "^8.
|
|
23
|
+
"@pioneer-platform/nodes": "^8.28.0",
|
|
24
24
|
"@pioneer-platform/pioneer-caip": "^9.19.0",
|
|
25
25
|
"@xchainjs/xchain-client": "0.9.0",
|
|
26
26
|
"@xchainjs/xchain-util": "0.2.6",
|