UNPKG

@polygon-hermez/vm

Version:
17 lines (16 loc) 434 B
/// <reference types="node" /> /// <reference types="bn.js" /> 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; }