/** * Infers the the first argument of a class */ export type ConstructorArgument = T extends new ( ...args: infer P ) => any ? P[0] : never /** * TODO This should be publically exported from ethereumjs but isn't * Typing this by hand is tedious so we are using some typescript inference to get it * do a pr to export this from ethereumjs and then replace this with an import * TODO this should be modified to take a hex address rather than an ethjs address to be consistent with rest of Tevm */ /** * Custom precompiles allow you to run arbitrary JavaScript code in the EVM */ export type CustomPrecompile = Exclude< Exclude< ConstructorArgument, undefined >['customPrecompiles'], undefined >[number]