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

export interface WithdrawChainConfigQueryParam extends PageQueryParam {}

export type WithdrawChainConfigPageResult = PageResult<WithdrawChainConfigItem[]>;

export interface WithdrawChainConfigItem {
  id: number;
  coinUnit: string;
  chainName: string;
  rpcUrl: string;
  contractAddress: string;
  payoutAddress: string;
  currency: number;
  keyType: number;
  signKey: string;
  derivePath: string;
  testMode: number;
  enabled: number;
  remark: string;
  createTime: string;
  updateTime: string;
}

export interface WithdrawChainConfigFormData {
  id?: number;
  coinUnit: string;
  chainName: string;
  rpcUrl: string;
  contractAddress: string;
  payoutAddress: string;
  currency: number;
  keyType: number;
  signKey: string;
  derivePath: string;
  testMode: number;
  enabled: number;
  remark: string;
}
