/* tslint:disable */ /* eslint-disable */ /** * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface Tx */ export interface Tx { /** * * @type {string} * @memberof Tx */ hash: string; /** * * @type {number} * @memberof Tx */ type: number; /** * * @type {string} * @memberof Tx */ info: string; /** * * @type {string} * @memberof Tx */ event_info: string; /** * * @type {number} * @memberof Tx */ status: number; /** * * @type {number} * @memberof Tx */ transaction_index: number; /** * * @type {string} * @memberof Tx */ l1_address: string; /** * * @type {number} * @memberof Tx */ account_index: number; /** * * @type {number} * @memberof Tx */ nonce: number; /** * * @type {number} * @memberof Tx */ expire_at: number; /** * * @type {number} * @memberof Tx */ block_height: number; /** * * @type {number} * @memberof Tx */ queued_at: number; /** * * @type {number} * @memberof Tx */ executed_at: number; /** * * @type {number} * @memberof Tx */ sequence_index: number; /** * * @type {string} * @memberof Tx */ parent_hash: string; /** * * @type {number} * @memberof Tx */ api_key_index: number; /** * * @type {number} * @memberof Tx */ transaction_time: number; } /** * Check if a given object implements the Tx interface. */ export function instanceOfTx(value: object): value is Tx { if (!('hash' in value) || value['hash'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('info' in value) || value['info'] === undefined) return false; if (!('event_info' in value) || value['event_info'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; if (!('transaction_index' in value) || value['transaction_index'] === undefined) return false; if (!('l1_address' in value) || value['l1_address'] === undefined) return false; if (!('account_index' in value) || value['account_index'] === undefined) return false; if (!('nonce' in value) || value['nonce'] === undefined) return false; if (!('expire_at' in value) || value['expire_at'] === undefined) return false; if (!('block_height' in value) || value['block_height'] === undefined) return false; if (!('queued_at' in value) || value['queued_at'] === undefined) return false; if (!('executed_at' in value) || value['executed_at'] === undefined) return false; if (!('sequence_index' in value) || value['sequence_index'] === undefined) return false; if (!('parent_hash' in value) || value['parent_hash'] === undefined) return false; if (!('api_key_index' in value) || value['api_key_index'] === undefined) return false; if (!('transaction_time' in value) || value['transaction_time'] === undefined) return false; return true; } export function TxFromJSON(json: any): Tx { return TxFromJSONTyped(json, false); } export function TxFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tx { if (json == null) { return json; } return { 'hash': json['hash'], 'type': json['type'], 'info': json['info'], 'event_info': json['event_info'], 'status': json['status'], 'transaction_index': json['transaction_index'], 'l1_address': json['l1_address'], 'account_index': json['account_index'], 'nonce': json['nonce'], 'expire_at': json['expire_at'], 'block_height': json['block_height'], 'queued_at': json['queued_at'], 'executed_at': json['executed_at'], 'sequence_index': json['sequence_index'], 'parent_hash': json['parent_hash'], 'api_key_index': json['api_key_index'], 'transaction_time': json['transaction_time'], }; } export function TxToJSON(value?: Tx | null): any { if (value == null) { return value; } return { 'hash': value['hash'], 'type': value['type'], 'info': value['info'], 'event_info': value['event_info'], 'status': value['status'], 'transaction_index': value['transaction_index'], 'l1_address': value['l1_address'], 'account_index': value['account_index'], 'nonce': value['nonce'], 'expire_at': value['expire_at'], 'block_height': value['block_height'], 'queued_at': value['queued_at'], 'executed_at': value['executed_at'], 'sequence_index': value['sequence_index'], 'parent_hash': value['parent_hash'], 'api_key_index': value['api_key_index'], 'transaction_time': value['transaction_time'], }; }