Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cityofzion/bs-neo-legacy

Package Overview
Dependencies
Maintainers
0
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cityofzion/bs-neo-legacy - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

2

dist/DoraBDSNeoLegacy.d.ts

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc