besu-network-manager
Version:
TypeScript library for managing Hyperledger Besu networks with Clique consensus using Docker
31 lines • 693 B
TypeScript
export interface BesuNodeConfig {
id: string;
type: 'bootnode' | 'miner' | 'rpc';
rpcPort: number;
p2pPort: number;
ip: string;
enode?: string;
address?: string;
bootnodes?: string[];
}
export interface NetworkConfig {
networkId: string;
chainId: number;
subnet: string;
gateway: string;
nodes: BesuNodeConfig[];
genesis?: any;
}
export interface ContainerInfo {
id: string;
containerId: string;
containerName: string;
status: 'running' | 'stopped' | 'error';
}
export interface NodeCredentials {
privateKey: string;
publicKey: string;
address: string;
enode: string;
}
//# sourceMappingURL=types.d.ts.map