@polygon-hermez/vm
Version:
An Ethereum VM implementation
17 lines (14 loc) • 351 B
text/typescript
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
}