diff --git a/src/vendors/nexus/apis/DefaultApi.ts b/src/vendors/nexus/apis/DefaultApi.ts index aa3bc0fa06..39a22be1d1 100644 --- a/src/vendors/nexus/apis/DefaultApi.ts +++ b/src/vendors/nexus/apis/DefaultApi.ts @@ -183,8 +183,8 @@ export interface ConsensusBlocksGetRequest { offset?: number; from?: number; to?: number; - after?: Date; - before?: Date; + after?: string; + before?: string; hash?: string; } @@ -264,8 +264,8 @@ export interface ConsensusTransactionsGetRequest { method?: ConsensusTxMethod; sender?: string; rel?: string; - after?: Date; - before?: Date; + after?: string; + before?: string; } export interface ConsensusTransactionsTxHashGetRequest { @@ -324,8 +324,8 @@ export interface RuntimeBlocksGetRequest { offset?: number; from?: number; to?: number; - after?: Date; - before?: Date; + after?: string; + before?: string; hash?: string; } @@ -384,8 +384,8 @@ export interface RuntimeTransactionsGetRequest { limit?: number; offset?: number; block?: number; - after?: Date; - before?: Date; + after?: string; + before?: string; rel?: string; } @@ -653,11 +653,11 @@ export class DefaultApi extends runtime.BaseAPI { } if (requestParameters['after'] != null) { - queryParameters['after'] = (requestParameters['after'] as any).toISOString(); + queryParameters['after'] = requestParameters['after']; } if (requestParameters['before'] != null) { - queryParameters['before'] = (requestParameters['before'] as any).toISOString(); + queryParameters['before'] = requestParameters['before']; } if (requestParameters['hash'] != null) { @@ -1188,11 +1188,11 @@ export class DefaultApi extends runtime.BaseAPI { } if (requestParameters['after'] != null) { - queryParameters['after'] = (requestParameters['after'] as any).toISOString(); + queryParameters['after'] = requestParameters['after']; } if (requestParameters['before'] != null) { - queryParameters['before'] = (requestParameters['before'] as any).toISOString(); + queryParameters['before'] = requestParameters['before']; } const headerParameters: runtime.HTTPHeaders = {}; @@ -1610,11 +1610,11 @@ export class DefaultApi extends runtime.BaseAPI { } if (requestParameters['after'] != null) { - queryParameters['after'] = (requestParameters['after'] as any).toISOString(); + queryParameters['after'] = requestParameters['after']; } if (requestParameters['before'] != null) { - queryParameters['before'] = (requestParameters['before'] as any).toISOString(); + queryParameters['before'] = requestParameters['before']; } if (requestParameters['hash'] != null) { @@ -2001,11 +2001,11 @@ export class DefaultApi extends runtime.BaseAPI { } if (requestParameters['after'] != null) { - queryParameters['after'] = (requestParameters['after'] as any).toISOString(); + queryParameters['after'] = requestParameters['after']; } if (requestParameters['before'] != null) { - queryParameters['before'] = (requestParameters['before'] as any).toISOString(); + queryParameters['before'] = requestParameters['before']; } if (requestParameters['rel'] != null) { diff --git a/src/vendors/nexus/models/Account.ts b/src/vendors/nexus/models/Account.ts index 5307dcc3a5..5609822e71 100644 --- a/src/vendors/nexus/models/Account.ts +++ b/src/vendors/nexus/models/Account.ts @@ -81,10 +81,10 @@ export interface Account { * The second-granular consensus time of the block in which this account was first active. * Dates before Cobalt (2021-04-28) are approximate. * - * @type {Date} + * @type {string} * @memberof Account */ - first_activity?: Date; + first_activity?: string; /** * The allowances made by this account. * This field is omitted when listing multiple accounts. @@ -134,7 +134,7 @@ export function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): A 'debonding': json['debonding'], 'delegations_balance': json['delegations_balance'], 'debonding_delegations_balance': json['debonding_delegations_balance'], - 'first_activity': json['first_activity'] == null ? undefined : (new Date(json['first_activity'])), + 'first_activity': json['first_activity'] == null ? undefined : json['first_activity'], 'allowances': ((json['allowances'] as Array).map(AllowanceFromJSON)), 'stats': AccountStatsFromJSON(json['stats']), }; @@ -158,7 +158,7 @@ export function AccountToJSONTyped(value?: Account | null, ignoreDiscriminator: 'debonding': value['debonding'], 'delegations_balance': value['delegations_balance'], 'debonding_delegations_balance': value['debonding_delegations_balance'], - 'first_activity': value['first_activity'] == null ? undefined : ((value['first_activity']).toISOString()), + 'first_activity': value['first_activity'], 'allowances': ((value['allowances'] as Array).map(AllowanceToJSON)), 'stats': AccountStatsToJSON(value['stats']), }; diff --git a/src/vendors/nexus/models/AccountListAllOfAccounts.ts b/src/vendors/nexus/models/AccountListAllOfAccounts.ts index 1a2d3b728b..9b1c8e5c2a 100644 --- a/src/vendors/nexus/models/AccountListAllOfAccounts.ts +++ b/src/vendors/nexus/models/AccountListAllOfAccounts.ts @@ -80,10 +80,10 @@ export interface AccountListAllOfAccounts { * The second-granular consensus time of the block in which this account was first active. * Dates before Cobalt (2021-04-28) are approximate. * - * @type {Date} + * @type {string} * @memberof AccountListAllOfAccounts */ - first_activity?: Date; + first_activity?: string; /** * The allowances made by this account. * This field is omitted when listing multiple accounts. @@ -133,7 +133,7 @@ export function AccountListAllOfAccountsFromJSONTyped(json: any, ignoreDiscrimin 'debonding': json['debonding'], 'delegations_balance': json['delegations_balance'], 'debonding_delegations_balance': json['debonding_delegations_balance'], - 'first_activity': json['first_activity'] == null ? undefined : (new Date(json['first_activity'])), + 'first_activity': json['first_activity'] == null ? undefined : json['first_activity'], 'allowances': ((json['allowances'] as Array).map(AllowanceFromJSON)), 'stats': AccountStatsFromJSON(json['stats']), }; @@ -157,7 +157,7 @@ export function AccountListAllOfAccountsToJSONTyped(value?: AccountListAllOfAcco 'debonding': value['debonding'], 'delegations_balance': value['delegations_balance'], 'debonding_delegations_balance': value['debonding_delegations_balance'], - 'first_activity': value['first_activity'] == null ? undefined : ((value['first_activity']).toISOString()), + 'first_activity': value['first_activity'], 'allowances': ((value['allowances'] as Array).map(AllowanceToJSON)), 'stats': AccountStatsToJSON(value['stats']), }; diff --git a/src/vendors/nexus/models/ActiveAccounts.ts b/src/vendors/nexus/models/ActiveAccounts.ts index e595cec851..e2854b4ce4 100644 --- a/src/vendors/nexus/models/ActiveAccounts.ts +++ b/src/vendors/nexus/models/ActiveAccounts.ts @@ -21,10 +21,10 @@ import { mapValues } from '../runtime'; export interface ActiveAccounts { /** * The date for the end of the daily active accounts measurement window. - * @type {Date} + * @type {string} * @memberof ActiveAccounts */ - window_end: Date; + window_end: string; /** * The number of active accounts for the 24hour window ending at window_end. * @type {number} @@ -52,7 +52,7 @@ export function ActiveAccountsFromJSONTyped(json: any, ignoreDiscriminator: bool } return { - 'window_end': (new Date(json['window_end'])), + 'window_end': json['window_end'], 'active_accounts': json['active_accounts'], }; } @@ -68,7 +68,7 @@ export function ActiveAccountsToJSONTyped(value?: ActiveAccounts | null, ignoreD return { - 'window_end': ((value['window_end']).toISOString()), + 'window_end': value['window_end'], 'active_accounts': value['active_accounts'], }; } diff --git a/src/vendors/nexus/models/Block.ts b/src/vendors/nexus/models/Block.ts index ebe42fa864..d4e37e27a2 100644 --- a/src/vendors/nexus/models/Block.ts +++ b/src/vendors/nexus/models/Block.ts @@ -34,10 +34,10 @@ export interface Block { hash: string; /** * The second-granular consensus time. - * @type {Date} + * @type {string} * @memberof Block */ - timestamp: Date; + timestamp: string; /** * Number of transactions in the block. * @type {number} @@ -100,7 +100,7 @@ export function BlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Blo 'height': json['height'], 'hash': json['hash'], - 'timestamp': (new Date(json['timestamp'])), + 'timestamp': json['timestamp'], 'num_transactions': json['num_transactions'], 'gas_limit': json['gas_limit'], 'size_limit': json['size_limit'] == null ? undefined : json['size_limit'], @@ -122,7 +122,7 @@ export function BlockToJSONTyped(value?: Block | null, ignoreDiscriminator: bool 'height': value['height'], 'hash': value['hash'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'], 'num_transactions': value['num_transactions'], 'gas_limit': value['gas_limit'], 'size_limit': value['size_limit'], diff --git a/src/vendors/nexus/models/BlockListAllOfBlocks.ts b/src/vendors/nexus/models/BlockListAllOfBlocks.ts index d1270505a6..889e22f641 100644 --- a/src/vendors/nexus/models/BlockListAllOfBlocks.ts +++ b/src/vendors/nexus/models/BlockListAllOfBlocks.ts @@ -33,10 +33,10 @@ export interface BlockListAllOfBlocks { hash: string; /** * The second-granular consensus time. - * @type {Date} + * @type {string} * @memberof BlockListAllOfBlocks */ - timestamp: Date; + timestamp: string; /** * Number of transactions in the block. * @type {number} @@ -99,7 +99,7 @@ export function BlockListAllOfBlocksFromJSONTyped(json: any, ignoreDiscriminator 'height': json['height'], 'hash': json['hash'], - 'timestamp': (new Date(json['timestamp'])), + 'timestamp': json['timestamp'], 'num_transactions': json['num_transactions'], 'gas_limit': json['gas_limit'], 'size_limit': json['size_limit'] == null ? undefined : json['size_limit'], @@ -121,7 +121,7 @@ export function BlockListAllOfBlocksToJSONTyped(value?: BlockListAllOfBlocks | n 'height': value['height'], 'hash': value['hash'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'], 'num_transactions': value['num_transactions'], 'gas_limit': value['gas_limit'], 'size_limit': value['size_limit'], diff --git a/src/vendors/nexus/models/ProposalVote.ts b/src/vendors/nexus/models/ProposalVote.ts index 517f1c50d5..61271cd499 100644 --- a/src/vendors/nexus/models/ProposalVote.ts +++ b/src/vendors/nexus/models/ProposalVote.ts @@ -39,10 +39,10 @@ export interface ProposalVote { height?: number; /** * The second-granular consensus time of the block in which this vote was cast. - * @type {Date} + * @type {string} * @memberof ProposalVote */ - timestamp?: Date; + timestamp?: string; } /** @@ -67,7 +67,7 @@ export function ProposalVoteFromJSONTyped(json: any, ignoreDiscriminator: boolea 'address': json['address'], 'vote': json['vote'], 'height': json['height'] == null ? undefined : json['height'], - 'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])), + 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'], }; } @@ -85,7 +85,7 @@ export function ProposalVoteToJSONTyped(value?: ProposalVote | null, ignoreDiscr 'address': value['address'], 'vote': value['vote'], 'height': value['height'], - 'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'], }; } diff --git a/src/vendors/nexus/models/ProposalVotesAllOfVotes.ts b/src/vendors/nexus/models/ProposalVotesAllOfVotes.ts index 17e4ddf687..e61eb9062b 100644 --- a/src/vendors/nexus/models/ProposalVotesAllOfVotes.ts +++ b/src/vendors/nexus/models/ProposalVotesAllOfVotes.ts @@ -39,10 +39,10 @@ export interface ProposalVotesAllOfVotes { height?: number; /** * The second-granular consensus time of the block in which this vote was cast. - * @type {Date} + * @type {string} * @memberof ProposalVotesAllOfVotes */ - timestamp?: Date; + timestamp?: string; } /** @@ -67,7 +67,7 @@ export function ProposalVotesAllOfVotesFromJSONTyped(json: any, ignoreDiscrimina 'address': json['address'], 'vote': json['vote'], 'height': json['height'] == null ? undefined : json['height'], - 'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])), + 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'], }; } @@ -85,7 +85,7 @@ export function ProposalVotesAllOfVotesToJSONTyped(value?: ProposalVotesAllOfVot 'address': value['address'], 'vote': value['vote'], 'height': value['height'], - 'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'], }; } diff --git a/src/vendors/nexus/models/RuntimeBlock.ts b/src/vendors/nexus/models/RuntimeBlock.ts index a6d48143e9..d35c3ea707 100644 --- a/src/vendors/nexus/models/RuntimeBlock.ts +++ b/src/vendors/nexus/models/RuntimeBlock.ts @@ -34,10 +34,10 @@ export interface RuntimeBlock { hash: string; /** * The second-granular consensus time. - * @type {Date} + * @type {string} * @memberof RuntimeBlock */ - timestamp: Date; + timestamp: string; /** * The number of transactions in the block. * @type {number} @@ -83,7 +83,7 @@ export function RuntimeBlockFromJSONTyped(json: any, ignoreDiscriminator: boolea 'round': json['round'], 'hash': json['hash'], - 'timestamp': (new Date(json['timestamp'])), + 'timestamp': json['timestamp'], 'num_transactions': json['num_transactions'], 'size': json['size'], 'gas_used': json['gas_used'], @@ -103,7 +103,7 @@ export function RuntimeBlockToJSONTyped(value?: RuntimeBlock | null, ignoreDiscr 'round': value['round'], 'hash': value['hash'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'], 'num_transactions': value['num_transactions'], 'size': value['size'], 'gas_used': value['gas_used'], diff --git a/src/vendors/nexus/models/RuntimeBlockListAllOfBlocks.ts b/src/vendors/nexus/models/RuntimeBlockListAllOfBlocks.ts index d1af6805d0..26f9973625 100644 --- a/src/vendors/nexus/models/RuntimeBlockListAllOfBlocks.ts +++ b/src/vendors/nexus/models/RuntimeBlockListAllOfBlocks.ts @@ -33,10 +33,10 @@ export interface RuntimeBlockListAllOfBlocks { hash: string; /** * The second-granular consensus time. - * @type {Date} + * @type {string} * @memberof RuntimeBlockListAllOfBlocks */ - timestamp: Date; + timestamp: string; /** * The number of transactions in the block. * @type {number} @@ -82,7 +82,7 @@ export function RuntimeBlockListAllOfBlocksFromJSONTyped(json: any, ignoreDiscri 'round': json['round'], 'hash': json['hash'], - 'timestamp': (new Date(json['timestamp'])), + 'timestamp': json['timestamp'], 'num_transactions': json['num_transactions'], 'size': json['size'], 'gas_used': json['gas_used'], @@ -102,7 +102,7 @@ export function RuntimeBlockListAllOfBlocksToJSONTyped(value?: RuntimeBlockListA 'round': value['round'], 'hash': value['hash'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'], 'num_transactions': value['num_transactions'], 'size': value['size'], 'gas_used': value['gas_used'], diff --git a/src/vendors/nexus/models/RuntimeEvent.ts b/src/vendors/nexus/models/RuntimeEvent.ts index c0b8bc305b..97e83d0483 100644 --- a/src/vendors/nexus/models/RuntimeEvent.ts +++ b/src/vendors/nexus/models/RuntimeEvent.ts @@ -74,10 +74,10 @@ export interface RuntimeEvent { /** * The second-granular consensus time of this event's block. * - * @type {Date} + * @type {string} * @memberof RuntimeEvent */ - timestamp: Date; + timestamp: string; /** * The type of the event. * @type {RuntimeEventType} @@ -149,7 +149,7 @@ export function RuntimeEventFromJSONTyped(json: any, ignoreDiscriminator: boolea 'tx_index': json['tx_index'] == null ? undefined : json['tx_index'], 'tx_hash': json['tx_hash'] == null ? undefined : json['tx_hash'], 'eth_tx_hash': json['eth_tx_hash'] == null ? undefined : json['eth_tx_hash'], - 'timestamp': (new Date(json['timestamp'])), + 'timestamp': json['timestamp'], 'type': RuntimeEventTypeFromJSON(json['type']), 'body': json['body'], 'evm_log_name': json['evm_log_name'] == null ? undefined : json['evm_log_name'], @@ -173,7 +173,7 @@ export function RuntimeEventToJSONTyped(value?: RuntimeEvent | null, ignoreDiscr 'tx_index': value['tx_index'], 'tx_hash': value['tx_hash'], 'eth_tx_hash': value['eth_tx_hash'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'], 'type': RuntimeEventTypeToJSON(value['type']), 'body': value['body'], 'evm_log_name': value['evm_log_name'], diff --git a/src/vendors/nexus/models/RuntimeEventListAllOfEvents.ts b/src/vendors/nexus/models/RuntimeEventListAllOfEvents.ts index c335f9f374..ddc1997092 100644 --- a/src/vendors/nexus/models/RuntimeEventListAllOfEvents.ts +++ b/src/vendors/nexus/models/RuntimeEventListAllOfEvents.ts @@ -74,10 +74,10 @@ export interface RuntimeEventListAllOfEvents { /** * The second-granular consensus time of this event's block. * - * @type {Date} + * @type {string} * @memberof RuntimeEventListAllOfEvents */ - timestamp: Date; + timestamp: string; /** * The type of the event. * @type {RuntimeEventType} @@ -149,7 +149,7 @@ export function RuntimeEventListAllOfEventsFromJSONTyped(json: any, ignoreDiscri 'tx_index': json['tx_index'] == null ? undefined : json['tx_index'], 'tx_hash': json['tx_hash'] == null ? undefined : json['tx_hash'], 'eth_tx_hash': json['eth_tx_hash'] == null ? undefined : json['eth_tx_hash'], - 'timestamp': (new Date(json['timestamp'])), + 'timestamp': json['timestamp'], 'type': RuntimeEventTypeFromJSON(json['type']), 'body': json['body'], 'evm_log_name': json['evm_log_name'] == null ? undefined : json['evm_log_name'], @@ -173,7 +173,7 @@ export function RuntimeEventListAllOfEventsToJSONTyped(value?: RuntimeEventListA 'tx_index': value['tx_index'], 'tx_hash': value['tx_hash'], 'eth_tx_hash': value['eth_tx_hash'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'], 'type': RuntimeEventTypeToJSON(value['type']), 'body': value['body'], 'evm_log_name': value['evm_log_name'], diff --git a/src/vendors/nexus/models/RuntimeStatus.ts b/src/vendors/nexus/models/RuntimeStatus.ts index c7e9e54ede..4ad3014e40 100644 --- a/src/vendors/nexus/models/RuntimeStatus.ts +++ b/src/vendors/nexus/models/RuntimeStatus.ts @@ -33,10 +33,10 @@ export interface RuntimeStatus { latest_block: number; /** * The RFC 3339 formatted consensus time of when the latest indexed block for this runtime was produced. - * @type {Date} + * @type {string} * @memberof RuntimeStatus */ - latest_block_time: Date; + latest_block_time: string; /** * The number of milliseconds since Nexus processed the latest block. * @type {number} @@ -68,7 +68,7 @@ export function RuntimeStatusFromJSONTyped(json: any, ignoreDiscriminator: boole 'active_nodes': json['active_nodes'], 'latest_block': json['latest_block'], - 'latest_block_time': (new Date(json['latest_block_time'])), + 'latest_block_time': json['latest_block_time'], 'latest_update_age_ms': json['latest_update_age_ms'], }; } @@ -86,7 +86,7 @@ export function RuntimeStatusToJSONTyped(value?: RuntimeStatus | null, ignoreDis 'active_nodes': value['active_nodes'], 'latest_block': value['latest_block'], - 'latest_block_time': ((value['latest_block_time']).toISOString()), + 'latest_block_time': value['latest_block_time'], 'latest_update_age_ms': value['latest_update_age_ms'], }; } diff --git a/src/vendors/nexus/models/RuntimeTransaction.ts b/src/vendors/nexus/models/RuntimeTransaction.ts index 1c4c82f868..6b8fba7921 100644 --- a/src/vendors/nexus/models/RuntimeTransaction.ts +++ b/src/vendors/nexus/models/RuntimeTransaction.ts @@ -56,10 +56,10 @@ export interface RuntimeTransaction { index: number; /** * The second-granular consensus time when this tx's block was proposed. - * @type {Date} + * @type {string} * @memberof RuntimeTransaction */ - timestamp: Date; + timestamp: string; /** * The Oasis cryptographic hash of this transaction's encoding. * @type {string} @@ -301,7 +301,7 @@ export function RuntimeTransactionFromJSONTyped(json: any, ignoreDiscriminator: 'round': json['round'], 'index': json['index'], - 'timestamp': (new Date(json['timestamp'])), + 'timestamp': json['timestamp'], 'hash': json['hash'], 'eth_hash': json['eth_hash'] == null ? undefined : json['eth_hash'], 'sender_0': json['sender_0'], @@ -343,7 +343,7 @@ export function RuntimeTransactionToJSONTyped(value?: RuntimeTransaction | null, 'round': value['round'], 'index': value['index'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'], 'hash': value['hash'], 'eth_hash': value['eth_hash'], 'sender_0': value['sender_0'], diff --git a/src/vendors/nexus/models/RuntimeTransactionListAllOfTransactions.ts b/src/vendors/nexus/models/RuntimeTransactionListAllOfTransactions.ts index 5132853f68..61217b65aa 100644 --- a/src/vendors/nexus/models/RuntimeTransactionListAllOfTransactions.ts +++ b/src/vendors/nexus/models/RuntimeTransactionListAllOfTransactions.ts @@ -55,10 +55,10 @@ export interface RuntimeTransactionListAllOfTransactions { index: number; /** * The second-granular consensus time when this tx's block was proposed. - * @type {Date} + * @type {string} * @memberof RuntimeTransactionListAllOfTransactions */ - timestamp: Date; + timestamp: string; /** * The Oasis cryptographic hash of this transaction's encoding. * @type {string} @@ -300,7 +300,7 @@ export function RuntimeTransactionListAllOfTransactionsFromJSONTyped(json: any, 'round': json['round'], 'index': json['index'], - 'timestamp': (new Date(json['timestamp'])), + 'timestamp': json['timestamp'], 'hash': json['hash'], 'eth_hash': json['eth_hash'] == null ? undefined : json['eth_hash'], 'sender_0': json['sender_0'], @@ -342,7 +342,7 @@ export function RuntimeTransactionListAllOfTransactionsToJSONTyped(value?: Runti 'round': value['round'], 'index': value['index'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'], 'hash': value['hash'], 'eth_hash': value['eth_hash'], 'sender_0': value['sender_0'], diff --git a/src/vendors/nexus/models/Status.ts b/src/vendors/nexus/models/Status.ts index ae3642e92c..0bb4320c92 100644 --- a/src/vendors/nexus/models/Status.ts +++ b/src/vendors/nexus/models/Status.ts @@ -35,10 +35,10 @@ export interface Status { latest_node_block: number; /** * The RFC 3339 formatted consensus time of when the most recently indexed block was produced. - * @type {Date} + * @type {string} * @memberof Status */ - latest_block_time: Date; + latest_block_time: string; /** * The number of milliseconds since Nexus processed the latest block. * @type {number} @@ -70,7 +70,7 @@ export function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): St 'latest_block': json['latest_block'], 'latest_node_block': json['latest_node_block'], - 'latest_block_time': (new Date(json['latest_block_time'])), + 'latest_block_time': json['latest_block_time'], 'latest_update_age_ms': json['latest_update_age_ms'], }; } @@ -88,7 +88,7 @@ export function StatusToJSONTyped(value?: Status | null, ignoreDiscriminator: bo 'latest_block': value['latest_block'], 'latest_node_block': value['latest_node_block'], - 'latest_block_time': ((value['latest_block_time']).toISOString()), + 'latest_block_time': value['latest_block_time'], 'latest_update_age_ms': value['latest_update_age_ms'], }; } diff --git a/src/vendors/nexus/models/Transaction.ts b/src/vendors/nexus/models/Transaction.ts index d60af9ef15..e4dc74c1bf 100644 --- a/src/vendors/nexus/models/Transaction.ts +++ b/src/vendors/nexus/models/Transaction.ts @@ -51,10 +51,10 @@ export interface Transaction { * The second-granular consensus time of this tx's block, i.e. roughly when the * [block was proposed](https://github.com/tendermint/tendermint/blob/v0.34.x/spec/core/data_structures.md#header). * - * @type {Date} + * @type {string} * @memberof Transaction */ - timestamp: Date; + timestamp: string; /** * The cryptographic hash of this transaction's encoding. * @type {string} @@ -146,7 +146,7 @@ export function TransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean 'block': json['block'], 'index': json['index'], - 'timestamp': (new Date(json['timestamp'])), + 'timestamp': json['timestamp'], 'hash': json['hash'], 'sender': json['sender'], 'nonce': json['nonce'], @@ -172,7 +172,7 @@ export function TransactionToJSONTyped(value?: Transaction | null, ignoreDiscrim 'block': value['block'], 'index': value['index'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'], 'hash': value['hash'], 'sender': value['sender'], 'nonce': value['nonce'], diff --git a/src/vendors/nexus/models/TransactionListAllOfTransactions.ts b/src/vendors/nexus/models/TransactionListAllOfTransactions.ts index 0c97d65efb..0d4666494f 100644 --- a/src/vendors/nexus/models/TransactionListAllOfTransactions.ts +++ b/src/vendors/nexus/models/TransactionListAllOfTransactions.ts @@ -50,10 +50,10 @@ export interface TransactionListAllOfTransactions { * The second-granular consensus time of this tx's block, i.e. roughly when the * [block was proposed](https://github.com/tendermint/tendermint/blob/v0.34.x/spec/core/data_structures.md#header). * - * @type {Date} + * @type {string} * @memberof TransactionListAllOfTransactions */ - timestamp: Date; + timestamp: string; /** * The cryptographic hash of this transaction's encoding. * @type {string} @@ -145,7 +145,7 @@ export function TransactionListAllOfTransactionsFromJSONTyped(json: any, ignoreD 'block': json['block'], 'index': json['index'], - 'timestamp': (new Date(json['timestamp'])), + 'timestamp': json['timestamp'], 'hash': json['hash'], 'sender': json['sender'], 'nonce': json['nonce'], @@ -171,7 +171,7 @@ export function TransactionListAllOfTransactionsToJSONTyped(value?: TransactionL 'block': value['block'], 'index': value['index'], - 'timestamp': ((value['timestamp']).toISOString()), + 'timestamp': value['timestamp'], 'hash': value['hash'], 'sender': value['sender'], 'nonce': value['nonce'], diff --git a/src/vendors/nexus/models/TxVolume.ts b/src/vendors/nexus/models/TxVolume.ts index 2cbeb7943f..7e078c975c 100644 --- a/src/vendors/nexus/models/TxVolume.ts +++ b/src/vendors/nexus/models/TxVolume.ts @@ -21,10 +21,10 @@ import { mapValues } from '../runtime'; export interface TxVolume { /** * The end timestamp for this daily transaction volume measurement. - * @type {Date} + * @type {string} * @memberof TxVolume */ - window_end: Date; + window_end: string; /** * The transaction volume for this window. * @type {number} @@ -52,7 +52,7 @@ export function TxVolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'window_end': (new Date(json['window_end'])), + 'window_end': json['window_end'], 'tx_volume': json['tx_volume'], }; } @@ -68,7 +68,7 @@ export function TxVolumeToJSONTyped(value?: TxVolume | null, ignoreDiscriminator return { - 'window_end': ((value['window_end']).toISOString()), + 'window_end': value['window_end'], 'tx_volume': value['tx_volume'], }; } diff --git a/src/vendors/nexus/models/Validator.ts b/src/vendors/nexus/models/Validator.ts index 096578c4ed..fe52f3cc54 100644 --- a/src/vendors/nexus/models/Validator.ts +++ b/src/vendors/nexus/models/Validator.ts @@ -86,10 +86,10 @@ export interface Validator { active: boolean; /** * The second-granular consensus time. - * @type {Date} + * @type {string} * @memberof Validator */ - start_date: Date; + start_date: string; /** * The rank of the validator, determined by voting power. * @type {number} @@ -156,7 +156,7 @@ export function ValidatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'voting_power': json['voting_power'], 'voting_power_cumulative': json['voting_power_cumulative'] == null ? undefined : json['voting_power_cumulative'], 'active': json['active'], - 'start_date': (new Date(json['start_date'])), + 'start_date': json['start_date'], 'rank': json['rank'], 'in_validator_set': json['in_validator_set'], 'media': json['media'] == null ? undefined : ValidatorMediaFromJSON(json['media']), @@ -183,7 +183,7 @@ export function ValidatorToJSONTyped(value?: Validator | null, ignoreDiscriminat 'voting_power': value['voting_power'], 'voting_power_cumulative': value['voting_power_cumulative'], 'active': value['active'], - 'start_date': ((value['start_date']).toISOString()), + 'start_date': value['start_date'], 'rank': value['rank'], 'in_validator_set': value['in_validator_set'], 'media': ValidatorMediaToJSON(value['media']), diff --git a/src/vendors/nexus/models/ValidatorListAllOfValidators.ts b/src/vendors/nexus/models/ValidatorListAllOfValidators.ts index e0ec5299aa..75f9b572f8 100644 --- a/src/vendors/nexus/models/ValidatorListAllOfValidators.ts +++ b/src/vendors/nexus/models/ValidatorListAllOfValidators.ts @@ -85,10 +85,10 @@ export interface ValidatorListAllOfValidators { active: boolean; /** * The second-granular consensus time. - * @type {Date} + * @type {string} * @memberof ValidatorListAllOfValidators */ - start_date: Date; + start_date: string; /** * The rank of the validator, determined by voting power. * @type {number} @@ -155,7 +155,7 @@ export function ValidatorListAllOfValidatorsFromJSONTyped(json: any, ignoreDiscr 'voting_power': json['voting_power'], 'voting_power_cumulative': json['voting_power_cumulative'] == null ? undefined : json['voting_power_cumulative'], 'active': json['active'], - 'start_date': (new Date(json['start_date'])), + 'start_date': json['start_date'], 'rank': json['rank'], 'in_validator_set': json['in_validator_set'], 'media': json['media'] == null ? undefined : ValidatorMediaFromJSON(json['media']), @@ -182,7 +182,7 @@ export function ValidatorListAllOfValidatorsToJSONTyped(value?: ValidatorListAll 'voting_power': value['voting_power'], 'voting_power_cumulative': value['voting_power_cumulative'], 'active': value['active'], - 'start_date': ((value['start_date']).toISOString()), + 'start_date': value['start_date'], 'rank': value['rank'], 'in_validator_set': value['in_validator_set'], 'media': ValidatorMediaToJSON(value['media']),