/* 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 DepositHistoryItem */ export interface DepositHistoryItem { /** * * @type {string} * @memberof DepositHistoryItem */ id: string; /** * * @type {number} * @memberof DepositHistoryItem */ asset_id: number; /** * * @type {string} * @memberof DepositHistoryItem */ amount: string; /** * * @type {number} * @memberof DepositHistoryItem */ timestamp: number; /** * * @type {string} * @memberof DepositHistoryItem */ status: DepositHistoryItemStatusEnum; /** * * @type {string} * @memberof DepositHistoryItem */ l1_tx_hash: string; } /** * @export */ export const DepositHistoryItemStatusEnum = { Failed: 'failed', Pending: 'pending', Completed: 'completed', Claimable: 'claimable' } as const; export type DepositHistoryItemStatusEnum = typeof DepositHistoryItemStatusEnum[keyof typeof DepositHistoryItemStatusEnum]; /** * Check if a given object implements the DepositHistoryItem interface. */ export function instanceOfDepositHistoryItem(value: object): value is DepositHistoryItem { if (!('id' in value) || value['id'] === undefined) return false; if (!('asset_id' in value) || value['asset_id'] === undefined) return false; if (!('amount' in value) || value['amount'] === undefined) return false; if (!('timestamp' in value) || value['timestamp'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; if (!('l1_tx_hash' in value) || value['l1_tx_hash'] === undefined) return false; return true; } export function DepositHistoryItemFromJSON(json: any): DepositHistoryItem { return DepositHistoryItemFromJSONTyped(json, false); } export function DepositHistoryItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): DepositHistoryItem { if (json == null) { return json; } return { 'id': json['id'], 'asset_id': json['asset_id'], 'amount': json['amount'], 'timestamp': json['timestamp'], 'status': json['status'], 'l1_tx_hash': json['l1_tx_hash'], }; } export function DepositHistoryItemToJSON(value?: DepositHistoryItem | null): any { if (value == null) { return value; } return { 'id': value['id'], 'asset_id': value['asset_id'], 'amount': value['amount'], 'timestamp': value['timestamp'], 'status': value['status'], 'l1_tx_hash': value['l1_tx_hash'], }; }