import {
  iGetBlocksRetResultItemBlockTx,
  iGetBlocksRetResultItemRecipt,
} from "./block";

export interface iConsensusNodeTablListItem {
  height: number;
  address: string;
  reward: number;
  time: number;
  type: "pack" | "vote";
}

export interface iGetTxByHashesRetTxItemTx
  extends iGetBlocksRetResultItemBlockTx {
  amount: number;
  amountfmt: string;
  groupCount: number;
}

export interface iGetTxByHashesRetTxItem {
  actionName: string;
  amount: number;
  assets: any[];
  blockTime: number;
  fromAddr: string;
  fullHash: string;
  height: number;
  index: number;
  proofs: any;
  receipt: iGetBlocksRetResultItemRecipt;
  tx: iGetTxByHashesRetTxItemTx;
  txHash: string;
  txProofs: any;
}

export interface iCustomizedGetTxByHashesRetTxItem
  extends iGetTxByHashesRetTxItem {
  tradeG: number;
}
