Skip to content

Commit

Permalink
Merge pull request AraiEzzra#16 from AraiEzzra/feature/add-types
Browse files Browse the repository at this point in the history
Feature / Add types
  • Loading branch information
axelsheva authored Oct 21, 2019
2 parents 62121bd + 33cf6ab commit 2b3031d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
14 changes: 14 additions & 0 deletions dist/model/common/type.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,17 @@ export declare type BlockchainInfoSchema = {
totalStakeHolders: number;
transactionsCount: number;
};
export declare type SystemInfoSchema = {
height: number;
consensus: number;
datetime: Date;
transactionsCount: {
queue: number;
conflictedQueue: number;
pool: number;
};
peersCount: number;
peers: Array<any>;
broadhash: string;
version: string;
};
15 changes: 15 additions & 0 deletions src/model/common/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,18 @@ export type BlockchainInfoSchema = {
totalStakeHolders: number;
transactionsCount: number;
};

export type SystemInfoSchema = {
height: number;
consensus: number;
datetime: Date;
transactionsCount: {
queue: number;
conflictedQueue: number;
pool: number;
};
peersCount: number;
peers: Array<any>;
broadhash: string;
version: string;
};

0 comments on commit 2b3031d

Please sign in to comment.