// Copyright Abridged, Inc. 2021,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 {TokenContract} from './token-contract.model.js'; import {Nep171TokenMetadata} from './nep-171-token-metadata.model.js'; /** * The model class is generated from OpenAPI schema - Token * Token */ @model({name: 'Token'}) export class Token { constructor(data?: Partial) { if (data != null && typeof data === 'object') { Object.assign(this, data); } } /** * */ @property({ jsonSchema: { type: 'string', }, }) chainId?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) tokenAddress?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) id?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) ownerAddress?: string; /** * */ @property({ jsonSchema: { $ref: '#/components/schemas/TokenContract', }, }) tokenContract?: TokenContract; /** * */ @property({ jsonSchema: { $ref: '#/components/schemas/NEP171TokenMetadata', }, }) metadata?: Nep171TokenMetadata; } export interface TokenRelations { // describe navigational properties here } export type TokenWithRelations = Token & TokenRelations;