From 7191322e956bc4e2ac4bf47c45a4a075917e8c0d Mon Sep 17 00:00:00 2001 From: tomijaga Date: Fri, 9 Apr 2021 09:44:37 -0400 Subject: [PATCH] fix: Updated CV and Pv response types (#133) --- .../responses/confirmation-validator/config.ts | 4 ++++ src/models/responses/primary-validator/config.ts | 15 +-------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/models/responses/confirmation-validator/config.ts b/src/models/responses/confirmation-validator/config.ts index 52a0b01f..df00cdd8 100644 --- a/src/models/responses/confirmation-validator/config.ts +++ b/src/models/responses/confirmation-validator/config.ts @@ -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; } diff --git a/src/models/responses/primary-validator/config.ts b/src/models/responses/primary-validator/config.ts index 45a79efe..6226aea1 100644 --- a/src/models/responses/primary-validator/config.ts +++ b/src/models/responses/primary-validator/config.ts @@ -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;