New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nano-account-crawler

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nano-account-crawler - npm Package Compare versions

Comparing version 1.0.20 to 1.0.21

4

dist/nano-account-forward-crawler.d.ts
import { NanoNode } from './nano-node';
import { INanoAccountForwardIterable, INanoBlock, TAccount, TBlockHash, TStringNumber } from './nano-interfaces';
import { INanoAccountForwardIterable, INanoBlock, TAccount, TBlockHash, TStringBigInt } from './nano-interfaces';
export declare class NanoAccountForwardCrawler implements INanoAccountForwardIterable {

@@ -15,3 +15,3 @@ private _nanoNode;

private _maxRpcIterations;
constructor(nanoNode: NanoNode, account: TAccount, head?: TBlockHash, offset?: TStringNumber, accountFilter?: TAccount[], count?: number, maxBlocksPerRequest?: number);
constructor(nanoNode: NanoNode, account: TAccount, head?: TBlockHash, offset?: TStringBigInt, accountFilter?: TAccount[], count?: number, maxBlocksPerRequest?: number);
initialize(): Promise<void>;

@@ -18,0 +18,0 @@ [Symbol.asyncIterator](): AsyncIterator<INanoBlock>;

export declare type TAccount = `${'ban_' | 'nano_'}${string}`;
export declare type TNanoBlockType = "state";
export declare type TNanoBlockSubtype = "send" | "receive" | "open" | "change" | "epoch";
export declare type TStringNumber = `${number}`;
export declare type TStringBigInt = `${number}`;
export declare type TBlockHeight = `${number}`;

@@ -12,4 +12,4 @@ export declare type TBlockHash = string;

account: TAccount;
amount: TStringNumber;
balance: TStringNumber;
amount: TStringBigInt;
balance: TStringBigInt;
representative: string;

@@ -33,7 +33,7 @@ previous: string;

representative_block: TBlockHash;
balance: TStringNumber;
balance: TStringBigInt;
modified_timestamp: string;
block_count: TStringNumber;
block_count: TStringBigInt;
account_version: string;
confirmation_height: TStringNumber;
confirmation_height: TStringBigInt;
confirmation_height_frontier: TBlockHash;

@@ -40,0 +40,0 @@ }

@@ -1,2 +0,2 @@

import { INanoAccountHistory, INanoAccountInfo, TAccount, TStringNumber, TBlockHash } from './nano-interfaces';
import { INanoAccountHistory, INanoAccountInfo, TAccount, TStringBigInt, TBlockHash } from './nano-interfaces';
export declare class NanoNode {

@@ -6,4 +6,4 @@ private nodeApiUrl;

constructor(nodeApiUrl: string, fetch: Function);
getForwardHistory(account: TAccount, head?: TBlockHash, offset?: TStringNumber, account_filter?: TAccount[], count?: number, max_retries?: number): Promise<INanoAccountHistory>;
getBackwardHistory(account: TAccount, head?: TBlockHash, offset?: TStringNumber, account_filter?: TAccount[], count?: number, max_retries?: number): Promise<INanoAccountHistory>;
getForwardHistory(account: TAccount, head?: TBlockHash, offset?: TStringBigInt, account_filter?: TAccount[], count?: number, max_retries?: number): Promise<INanoAccountHistory>;
getBackwardHistory(account: TAccount, head?: TBlockHash, offset?: TStringBigInt, account_filter?: TAccount[], count?: number, max_retries?: number): Promise<INanoAccountHistory>;
getAccountInfo(account: TAccount): Promise<INanoAccountInfo>;

@@ -10,0 +10,0 @@ hasMoreHistory(history: any, confirmationHeight: BigInt): boolean;

{
"name": "nano-account-crawler",
"version": "1.0.20",
"version": "1.0.21",
"description": "Makes block iterators that make multiple RPC calls to Nano nodes if neccessary. Block confirmation height is checked so only confirmed blocks are iterated.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/Airtune/nano-account-crawler",

@@ -9,3 +9,3 @@ import { NanoNode } from './nano-node';

TBlockHash,
TStringNumber
TStringBigInt
} from './nano-interfaces';

@@ -18,3 +18,3 @@

private _head: TBlockHash;
private _offset: TStringNumber;
private _offset: TStringBigInt;
private _accountFilter: TAccount[];

@@ -28,3 +28,3 @@ private _accountHistory: INanoAccountHistory;

constructor(nanoNode: NanoNode, account: TAccount, head: TBlockHash = undefined, offset: TStringNumber = undefined, accountFilter: TAccount[] = undefined, count: number = undefined, maxBlocksPerRequest: number = 3000) {
constructor(nanoNode: NanoNode, account: TAccount, head: TBlockHash = undefined, offset: TStringBigInt = undefined, accountFilter: TAccount[] = undefined, count: number = undefined, maxBlocksPerRequest: number = 3000) {
this._nanoNode = nanoNode;

@@ -31,0 +31,0 @@ this._account = account;

export type TAccount = `${'ban_' | 'nano_'}${string}`;
export type TNanoBlockType = "state";
export type TNanoBlockSubtype = "send" | "receive" | "open" | "change" | "epoch";
export type TStringNumber = `${number}`;
export type TStringBigInt = `${number}`;
export type TBlockHeight = `${number}`;

@@ -13,4 +13,4 @@ export type TBlockHash = string;

account: TAccount;
amount: TStringNumber;
balance: TStringNumber;
amount: TStringBigInt;
balance: TStringBigInt;
representative: string;

@@ -36,7 +36,7 @@ previous: string;

representative_block: TBlockHash,
balance: TStringNumber,
balance: TStringBigInt,
modified_timestamp: string,
block_count: TStringNumber,
block_count: TStringBigInt,
account_version: string,
confirmation_height: TStringNumber,
confirmation_height: TStringBigInt,
confirmation_height_frontier: TBlockHash

@@ -43,0 +43,0 @@ }

@@ -5,3 +5,3 @@ import {

TAccount,
TStringNumber,
TStringBigInt,
TBlockHash

@@ -14,3 +14,3 @@ } from './nano-interfaces';

constructor(nodeApiUrl: string, fetch: Function) {
constructor(nodeApiUrl: string, fetch: Function) {
this.nodeApiUrl = nodeApiUrl;

@@ -20,3 +20,3 @@ this.fetch = fetch;

async getForwardHistory(account: TAccount, head: TBlockHash = undefined, offset: TStringNumber = "0", account_filter: TAccount[] = undefined, count: number = undefined, max_retries: number = 3): Promise<INanoAccountHistory> {
async getForwardHistory(account: TAccount, head: TBlockHash = undefined, offset: TStringBigInt = "0", account_filter: TAccount[] = undefined, count: number = undefined, max_retries: number = 3): Promise<INanoAccountHistory> {
const request: any = {

@@ -61,3 +61,3 @@ action: 'account_history',

async getBackwardHistory(account: TAccount, head: TBlockHash = undefined, offset: TStringNumber = "0", account_filter: TAccount[] = undefined, count: number = undefined, max_retries: number = 3): Promise<INanoAccountHistory> {
async getBackwardHistory(account: TAccount, head: TBlockHash = undefined, offset: TStringBigInt = "0", account_filter: TAccount[] = undefined, count: number = undefined, max_retries: number = 3): Promise<INanoAccountHistory> {
const request: any = {

@@ -64,0 +64,0 @@ action: 'account_history',

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