@polygon-hermez/vm
Version:
An Ethereum VM implementation
14 lines (13 loc) • 536 B
TypeScript
/// <reference types="bn.js" />
import { BN } from 'ethereumjs-util';
import { RunState } from '../interpreter';
import Common from '@ethereumjs/common';
/**
* This file returns the dynamic parts of opcodes which have dynamic gas
* These are not pure functions: some edit the size of the memory
* These functions are therefore not read-only
*/
export interface AsyncDynamicGasHandler {
(runState: RunState, gas: BN, common: Common): Promise<void>;
}
export declare const dynamicGasHandlers: Map<number, AsyncDynamicGasHandler>;