otterscan/src/types.ts

26 lines
455 B
TypeScript
Raw Normal View History

2021-07-01 18:21:40 +00:00
import { BigNumber } from "ethers";
export type ProcessedTransaction = {
blockNumber: number;
timestamp: number;
idx: number;
hash: string;
from?: string;
to?: string;
value: BigNumber;
fee: BigNumber;
gasPrice: BigNumber;
data: string;
status: number;
};
export type TransactionChunk = {
txs: ProcessedTransaction[];
firstPage: boolean;
lastPage: boolean;
};
export type ENSReverseCache = {
[address: string]: string;
};