Skip to content

Commit

Permalink
fix: Updated CV and Pv response types (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomijaga authored Apr 9, 2021
1 parent 74ac9c3 commit 7191322
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
4 changes: 4 additions & 0 deletions src/models/responses/confirmation-validator/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@ export interface ConfirmationValidatorConfigResponse {
protocol: Protocol;
version: Version;
default_transaction_fee: number;
root_account_file: Url;
root_account_file_hash: Hex;
seed_block_identifier: Hex;
daily_confirmation_rate: number;
node_type: NodeType;
}
15 changes: 1 addition & 14 deletions src/models/responses/primary-validator/config.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
import type { Hex, Origin, Port, Protocol, Url, Trust, Version, NodeType } from "../constants";

export interface PrimaryValidatorConfigResponse {
primary_validator: {
account_number: Hex;
ip_address: Origin;
node_identifier: Hex;
port: Port | null;
protocol: Protocol;
version: Version;
default_transaction_fee: number;
root_account_file: Url;
root_account_file_hash: Hex;
seed_block_identifier: Hex;
daily_confirmation_rate: number | null;
trust: Trust;
};
primary_validator: null;
account_number: Hex;
ip_address: Origin;
node_identifier: Hex;
Expand Down

0 comments on commit 7191322

Please sign in to comment.