UNPKG

0xweb

Version:

Contract package manager and other web3 tools

22 lines (17 loc) 454 B
import { EvmBytecode } from '../EvmBytecode'; import Opcode from '../interfaces/IOpcode'; export class COINBASE { readonly name: string; readonly type?: string; readonly wrapped: boolean; constructor() { this.name = 'COINBASE'; this.wrapped = false; } toString() { return 'block.coinbase'; } } export default (opcode: Opcode, state: EvmBytecode): void => { state.stack.push(new COINBASE()); };