예제 #1
0
        private (ParityLikeTxTrace trace, Block block, Transaction tx) ExecuteAndTraceParityCall(ParityTraceTypes traceTypes, params byte[] code)
        {
            (var block, var transaction) = PrepareTx(BlockNumber, 100000, code);
            ParityLikeTxTracer tracer = new ParityLikeTxTracer(block, transaction, traceTypes);

            _processor.Execute(transaction, block.Header, tracer);
            return(tracer.BuildResult(), block, transaction);
        }
예제 #2
0
        private (ParityLikeTxTrace trace, Block block, Transaction tx) ExecuteAndTraceParityCall(byte[] input, UInt256 value, params byte[] code)
        {
            (var block, var transaction) = PrepareTx(BlockNumber, 100000, code, input, value);
            ParityLikeTxTracer tracer = new ParityLikeTxTracer(block, transaction, ParityTraceTypes.Trace | ParityTraceTypes.StateDiff);

            _processor.Execute(transaction, block.Header, tracer);
            return(tracer.BuildResult(), block, transaction);
        }
예제 #3
0
        protected (ParityLikeTxTrace trace, Block block, Transaction tx) ExecuteInitAndTraceParityCall(params byte[] code)
        {
            (var block, var transaction) = PrepareInitTx(BlockNumber, 100000, code);
            ParityLikeTxTracer tracer = new ParityLikeTxTracer(block, transaction, ParityTraceTypes.Trace | ParityTraceTypes.StateDiff);

            _processor.Execute(transaction, block.Header, tracer);
            return(tracer.BuildResult(), block, transaction);
        }