@tokamak-zk-evm/synthesizer
Version:
Tokamak zk-EVM Synthesizer - Processes Ethereum transactions into wire maps for Tokamak zk-SNARK proof generation
15 lines • 658 B
TypeScript
import type { RunState } from '../interpreter.js';
import type { Common } from '@synthesizer-libs/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: bigint, common: Common): Promise<bigint>;
}
export interface SyncDynamicGasHandler {
(runState: RunState, gas: bigint, common: Common): bigint;
}
export declare const dynamicGasHandlers: Map<number, AsyncDynamicGasHandler | SyncDynamicGasHandler>;
//# sourceMappingURL=gas.d.ts.map