// Copyright Abridged, Inc. 2023,2024. All Rights Reserved. // Node module: @collabland/sdk // This file is licensed under the MIT License. // License text available at https://opensource.org/license/mit/ import {model, property} from '@loopback/repository'; import {TelefrensTraderWallet} from './telefrens-trader-wallet.model.js'; import {TelefrensSubjectGlobal} from './telefrens-subject-global.model.js'; /** * The model class is generated from OpenAPI schema - TelefrensSubgraphTrades * TelefrensSubgraphTrades */ @model({name: 'TelefrensSubgraphTrades'}) export class TelefrensSubgraphTrades { constructor(data?: Partial) { if (data != null && typeof data === 'object') { Object.assign(this, data); } } /** * */ @property({ jsonSchema: { type: 'string', }, }) txId?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) currentKeyPrice?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) blockTimestamp?: string; /** * */ @property({ jsonSchema: { type: 'boolean', }, }) isBuy?: boolean; /** * */ @property({ jsonSchema: { type: 'string', }, }) shareAmount?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) ethAmount?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) protocolEthAmount?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) subjectEthAmount?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) supply?: string; /** * */ @property({ jsonSchema: { $ref: '#/components/schemas/TelefrensTraderWallet', }, }) trader?: TelefrensTraderWallet; /** * */ @property({ jsonSchema: { $ref: '#/components/schemas/TelefrensSubjectGlobal', }, }) subject?: TelefrensSubjectGlobal; } export interface TelefrensSubgraphTradesRelations { // describe navigational properties here } export type TelefrensSubgraphTradesWithRelations = TelefrensSubgraphTrades & TelefrensSubgraphTradesRelations;