@polygon-hermez/vm
Version:
An Ethereum VM implementation
17 lines (16 loc) • 434 B
TypeScript
/// <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;
}