import { PageQueryParam, PageResult } from '../base';

export interface CoinNetworkConfigQueryParam extends PageQueryParam {
  property?: string | null;
  direction?: string | null;
}

export type CoinNetworkConfigPageResult = PageResult<CoinNetworkConfigItem[]>;

export interface CoinNetworkConfigItem {
  id: number;
  coinName: string;
  network: {
    id: number;
    name: string;
    protocol: string;
  };
  contractAddress: string;
  rechargeAddress: string;
  contractDecimals: number;
  scale: number;
  sort: number;
  memo: string;
}

export interface CoinNetworkConfigFormData {
  id?: number;
  coinName: string;
  networkId?: number;
  contractAddress: string;
  rechargeAddress: string;
  contractDecimals: number;
  scale: number;
  sort: number;
  memo: string;
}
