UNPKG

@polygon-hermez/vm

Version:
17 lines (14 loc) 351 B
import { BN } from 'ethereumjs-util' import Common from '@ethereumjs/common' import { ExecResult } from '../evm' import VM from '../../index' export interface PrecompileFunc { (opts: PrecompileInput): Promise<ExecResult> | ExecResult } export interface PrecompileInput { data: Buffer outLength: BN gasLimit: BN _common: Common _VM: VM }