@cityofzion/bs-neo-legacy 1.1.1 → 1.2.1
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/dist/DoraBDSNeoLegacy.d.ts +1 -1
- package/dist/DoraBDSNeoLegacy.js +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@ export declare class DoraBDSNeoLegacy implements BlockchainDataService, BDSClaim
|
|
|
5
5
|
maxTimeToConfirmTransactionInMs: number;
|
|
6
6
|
constructor(network: Network<BSNeoLegacyNetworkId>, feeToken: Token, claimToken: Token, tokens: Token[]);
|
|
7
7
|
getTransaction(hash: string): Promise<TransactionResponse>;
|
|
8
|
-
getTransactionsByAddress({ address,
|
|
8
|
+
getTransactionsByAddress({ address, nextPageParams, }: TransactionsByAddressParams): Promise<TransactionsByAddressResponse>;
|
|
9
9
|
getContract(contractHash: string): Promise<ContractResponse>;
|
|
10
10
|
getTokenInfo(tokenHash: string): Promise<Token>;
|
|
11
11
|
getBalance(address: string): Promise<BalanceResponse[]>;
|
package/dist/DoraBDSNeoLegacy.js
CHANGED
|
@@ -68,9 +68,9 @@ class DoraBDSNeoLegacy {
|
|
|
68
68
|
};
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
getTransactionsByAddress({ address,
|
|
71
|
+
getTransactionsByAddress({ address, nextPageParams = 1, }) {
|
|
72
72
|
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
const data = yield dora_ts_1.api.NeoLegacyREST.getAddressAbstracts(address,
|
|
73
|
+
const data = yield dora_ts_1.api.NeoLegacyREST.getAddressAbstracts(address, nextPageParams, __classPrivateFieldGet(this, _DoraBDSNeoLegacy_network, "f").id);
|
|
74
74
|
const transactions = new Map();
|
|
75
75
|
const promises = data.entries.map((entry) => __awaiter(this, void 0, void 0, function* () {
|
|
76
76
|
var _a, _b;
|
|
@@ -99,9 +99,9 @@ class DoraBDSNeoLegacy {
|
|
|
99
99
|
});
|
|
100
100
|
}));
|
|
101
101
|
yield Promise.all(promises);
|
|
102
|
+
const totalPages = Math.ceil(data.total_entries / data.page_size);
|
|
102
103
|
return {
|
|
103
|
-
|
|
104
|
-
limit: data.page_size,
|
|
104
|
+
nextPageParams: nextPageParams < totalPages ? nextPageParams + 1 : undefined,
|
|
105
105
|
transactions: Array.from(transactions.values()),
|
|
106
106
|
};
|
|
107
107
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './BSNeoLegacy';
|
|
2
|
-
export * from './DoraBDSNeoLegacy';
|
|
3
2
|
export * from './BSNeoLegacyHelper';
|
|
4
|
-
export * from './NeoTubeESNeoLegacy';
|
|
5
3
|
export * from './CryptoCompareEDSNeoLegacy';
|
|
4
|
+
export * from './DoraBDSNeoLegacy';
|
|
5
|
+
export * from './NeoTubeESNeoLegacy';
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BSNeoLegacy"), exports);
|
|
18
|
-
__exportStar(require("./DoraBDSNeoLegacy"), exports);
|
|
19
18
|
__exportStar(require("./BSNeoLegacyHelper"), exports);
|
|
20
|
-
__exportStar(require("./NeoTubeESNeoLegacy"), exports);
|
|
21
19
|
__exportStar(require("./CryptoCompareEDSNeoLegacy"), exports);
|
|
20
|
+
__exportStar(require("./DoraBDSNeoLegacy"), exports);
|
|
21
|
+
__exportStar(require("./NeoTubeESNeoLegacy"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cityofzion/bs-neo-legacy",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"author": "Coz",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@cityofzion/dora-ts": "0.0.11",
|
|
13
13
|
"@cityofzion/neon-js": "4.8.3",
|
|
14
|
-
"@cityofzion/blockchain-service": "1.
|
|
14
|
+
"@cityofzion/blockchain-service": "1.3.0",
|
|
15
15
|
"@cityofzion/bs-asteroid-sdk": "0.9.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|