@cityofzion/bs-neo-legacy
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -8,3 +8,3 @@ import { BalanceResponse, BlockchainDataService, ContractResponse, TransactionsByAddressParams, TransactionsByAddressResponse, TransactionResponse, BDSClaimable, Token, Network, RpcResponse } from '@cityofzion/blockchain-service'; | ||
getTransaction(hash: string): Promise<TransactionResponse>; | ||
getTransactionsByAddress({ address, page, }: TransactionsByAddressParams): Promise<TransactionsByAddressResponse>; | ||
getTransactionsByAddress({ address, nextPageParams, }: TransactionsByAddressParams): Promise<TransactionsByAddressResponse>; | ||
getContract(contractHash: string): Promise<ContractResponse>; | ||
@@ -11,0 +11,0 @@ getTokenInfo(tokenHash: string): Promise<Token>; |
@@ -71,5 +71,5 @@ "use strict"; | ||
} | ||
getTransactionsByAddress({ address, page = 1, }) { | ||
getTransactionsByAddress({ address, nextPageParams = 1, }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const data = yield dora_ts_1.api.NeoLegacyREST.getAddressAbstracts(address, page, __classPrivateFieldGet(this, _DoraBDSNeoLegacy_network, "f").id); | ||
const data = yield dora_ts_1.api.NeoLegacyREST.getAddressAbstracts(address, nextPageParams, __classPrivateFieldGet(this, _DoraBDSNeoLegacy_network, "f").id); | ||
const transactions = new Map(); | ||
@@ -103,5 +103,5 @@ const promises = data.entries.map((entry) => __awaiter(this, void 0, void 0, function* () { | ||
yield Promise.all(promises); | ||
const totalPages = Math.ceil(data.total_entries / data.page_size); | ||
return { | ||
totalCount: data.total_entries, | ||
limit: data.page_size, | ||
nextPageParams: nextPageParams < totalPages ? nextPageParams + 1 : undefined, | ||
transactions: Array.from(transactions.values()), | ||
@@ -108,0 +108,0 @@ }; |
export * from './BSNeoLegacy'; | ||
export * from './BSNeoLegacyHelper'; | ||
export * from './CryptoCompareEDSNeoLegacy'; | ||
export * from './DoraBDSNeoLegacy'; | ||
export * from './BSNeoLegacyHelper'; | ||
export * from './NeoTubeESNeoLegacy'; | ||
export * from './CryptoCompareEDSNeoLegacy'; |
@@ -18,5 +18,5 @@ "use strict"; | ||
__exportStar(require("./BSNeoLegacy"), exports); | ||
__exportStar(require("./BSNeoLegacyHelper"), exports); | ||
__exportStar(require("./CryptoCompareEDSNeoLegacy"), exports); | ||
__exportStar(require("./DoraBDSNeoLegacy"), exports); | ||
__exportStar(require("./BSNeoLegacyHelper"), exports); | ||
__exportStar(require("./NeoTubeESNeoLegacy"), exports); | ||
__exportStar(require("./CryptoCompareEDSNeoLegacy"), exports); |
{ | ||
"name": "@cityofzion/bs-neo-legacy", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"main": "dist/index.js", | ||
@@ -14,3 +14,3 @@ "types": "dist/index.d.ts", | ||
"@cityofzion/neon-js": "4.8.3", | ||
"@cityofzion/blockchain-service": "1.1.0", | ||
"@cityofzion/blockchain-service": "1.2.0", | ||
"@cityofzion/bs-asteroid-sdk": "0.9.0" | ||
@@ -17,0 +17,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49449