ethereumjs-common
Version:
Resources common to all Ethereum implementations
47 lines (46 loc) • 928 B
TypeScript
export interface genesisStatesType {
names: {
[key: string]: string;
};
[key: string]: {};
}
export interface chainsType {
names: {
[key: string]: string;
};
[key: string]: any;
}
export interface Chain {
name: string;
chainId: number;
networkId: number;
comment: string;
url: string;
genesis: GenesisBlock;
hardforks: Hardfork[];
bootstrapNodes: BootstrapNode[];
}
export interface GenesisBlock {
hash: string;
timestamp: string | null;
gasLimit: number;
difficulty: number;
nonce: string;
extraData: string;
stateRoot: string;
}
export interface Hardfork {
name: string;
block: number | null;
consensus: string;
finality: any;
}
export interface BootstrapNode {
ip: string;
port: number | string;
network?: string;
chainId?: number;
id: string;
location: string;
comment: string;
}