export interface iAccount{
    address: string;
    privateKey: string;
    publicKey: string;
    excer: Excer
}


export interface Account {
    id?: number;
    address: string;
    encryptedPrivateKey: string;
    publicKey: string;
    excer:number
}

export enum WalletType{
    RECOMMEND,
    ERC20,
    CHAIN33
}

export enum Excer {
    ETH,
    BTY
}

// 0 eth , 1 bty
export interface Wallet {
    address: string;
    privateKey: string;
    publicKey: string;
    excer:Excer
}


export interface Chains{
    id?:string,
    name:string,
    url?:string
}

export interface Coin {
    name:string,
    cn_name?:string,
    alis:string,
    avatar?:string,
    amount?:number,
    price?:number,
    total?:number,
    c_name?:string,
    is_main:boolean,
    c_addr?:string,
}

export type CoinList = Coin[]