import { OpCode } from '.' ; import { EvmContext } from '../vm/evm-context' ; class CallValueOp implements OpCode { public readonly code = 0x34 ; public readonly mnemonic = 'CALLVALUE' ; public readonly description = 'Get deposited value by the instruction/transaction responsible for this execution' ; public readonly gas = 2 ; public readonly bytes = 1 ; public toString ( params ) { return `${ this . mnemonic }` ; } public handle ( context ) { context . stack . push ( context . executionValue ) ; context . ip += this . bytes ; } } export const CallValue = new CallValueOp ( ) ;