@coinbase/onchaintestkit
Version:
End-to-end testing toolkit for blockchain applications, powered by Playwright
32 lines (31 loc) • 973 B
TypeScript
/**
* Configuration options for LocalNodeManager
*/
export type NodeConfig = {
/** Port number for RPC server */
port?: number;
/** Port range for automatic port selection */
portRange?: [number, number];
/** Chain ID for the network */
chainId?: number;
/** Mnemonic for the network */
mnemonic?: string;
/** URL to fork from (e.g. mainnet) */
forkUrl?: string;
/** Block number to fork from */
forkBlockNumber?: bigint;
/** Retry interval for fork requests */
forkRetryInterval?: number;
/** Default balance for test accounts */
defaultBalance?: bigint;
/** Number of test accounts to generate */
totalAccounts?: number;
/** Time between blocks (0 for instant) */
blockTime?: number;
/** Gas limit per block */
blockGasLimit?: bigint;
/** Disable automatic mining */
noMining?: boolean;
/** Specific hardfork to use */
hardfork?: "london" | "berlin" | "cancun";
};