// Copyright Abridged, Inc. 2022,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 {StakingAsset} from './staking-asset.model.js'; /** * The model class is generated from OpenAPI schema - StakingContractMetadata * StakingContractMetadata */ @model({name: 'StakingContractMetadata'}) export class StakingContractMetadata { constructor(data?: Partial) { if (data != null && typeof data === 'object') { Object.assign(this, data); } } /** * Contract name */ @property({ jsonSchema: { type: 'string', description: 'Contract name', }, }) contractName?: string; /** * Staking contract address */ @property({ jsonSchema: { type: 'string', description: 'Staking contract address', }, }) contractAddress?: string; /** * Chain id */ @property({ jsonSchema: { type: 'number', description: 'Chain id', }, }) chainId?: number; /** * */ @property.array(StakingAsset, { jsonSchema: { type: 'array', items: { $ref: '#/components/schemas/StakingAsset', }, }, }) supportedAssets?: StakingAsset[]; } export interface StakingContractMetadataRelations { // describe navigational properties here } export type StakingContractMetadataWithRelations = StakingContractMetadata & StakingContractMetadataRelations;