2020-09-22 14:53:52 +02:00
|
|
|
// Copyright 2015-2020 Parity Technologies (UK) Ltd.
|
|
|
|
// This file is part of OpenEthereum.
|
2018-01-18 10:32:22 +01:00
|
|
|
|
2020-09-22 14:53:52 +02:00
|
|
|
// OpenEthereum is free software: you can redistribute it and/or modify
|
2018-01-18 10:32:22 +01:00
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
2020-09-22 14:53:52 +02:00
|
|
|
// OpenEthereum is distributed in the hope that it will be useful,
|
2018-01-18 10:32:22 +01:00
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU General Public License
|
2020-09-22 14:53:52 +02:00
|
|
|
// along with OpenEthereum. If not, see <http://www.gnu.org/licenses/>.
|
2018-01-18 10:32:22 +01:00
|
|
|
|
|
|
|
//! Standardized JSON VM output.
|
|
|
|
|
|
|
|
use std::{collections::HashMap, io};
|
|
|
|
|
2020-11-26 08:31:44 +01:00
|
|
|
use super::config::Config;
|
2018-01-18 10:32:22 +01:00
|
|
|
use bytes::ToPretty;
|
2020-11-26 08:31:44 +01:00
|
|
|
use display;
|
2018-11-25 20:12:59 +01:00
|
|
|
use ethcore::{pod_state, trace};
|
2018-01-18 10:32:22 +01:00
|
|
|
use ethereum_types::{H256, U256};
|
|
|
|
use info as vm;
|
|
|
|
|
|
|
|
pub trait Writer: io::Write + Send + Sized {
|
|
|
|
fn clone(&self) -> Self;
|
2018-08-29 19:13:45 +02:00
|
|
|
fn default() -> Self;
|
2018-01-18 10:32:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
impl Writer for io::Stdout {
|
|
|
|
fn clone(&self) -> Self {
|
|
|
|
io::stdout()
|
|
|
|
}
|
2018-08-29 19:13:45 +02:00
|
|
|
|
|
|
|
fn default() -> Self {
|
|
|
|
io::stdout()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Writer for io::Stderr {
|
|
|
|
fn clone(&self) -> Self {
|
|
|
|
io::stderr()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn default() -> Self {
|
|
|
|
io::stderr()
|
|
|
|
}
|
2018-01-18 10:32:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/// JSON formatting informant.
|
2018-11-25 20:12:59 +01:00
|
|
|
pub struct Informant<Trace, Out> {
|
2018-01-18 10:32:22 +01:00
|
|
|
code: Vec<u8>,
|
|
|
|
instruction: u8,
|
|
|
|
depth: usize,
|
|
|
|
stack: Vec<U256>,
|
|
|
|
storage: HashMap<H256, H256>,
|
2018-10-02 16:33:19 +02:00
|
|
|
subinfos: Vec<Informant<Trace, Out>>,
|
|
|
|
subdepth: usize,
|
2018-08-29 19:13:45 +02:00
|
|
|
trace_sink: Trace,
|
|
|
|
out_sink: Out,
|
2020-11-26 08:31:44 +01:00
|
|
|
config: Config,
|
2018-01-18 10:32:22 +01:00
|
|
|
}
|
|
|
|
|
2018-11-25 20:12:59 +01:00
|
|
|
impl Default for Informant<io::Stderr, io::Stdout> {
|
2018-01-18 10:32:22 +01:00
|
|
|
fn default() -> Self {
|
2020-11-26 08:31:44 +01:00
|
|
|
Self::new(io::stderr(), io::stdout(), Config::default())
|
2018-01-18 10:32:22 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-25 20:12:59 +01:00
|
|
|
impl Informant<io::Stdout, io::Stdout> {
|
|
|
|
/// std json informant using out only.
|
2020-11-26 08:31:44 +01:00
|
|
|
pub fn out_only(config: Config) -> Self {
|
|
|
|
Self::new(io::stdout(), io::stdout(), config)
|
2018-11-25 20:12:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Informant<io::Stderr, io::Stderr> {
|
|
|
|
/// std json informant using err only.
|
2020-11-26 08:31:44 +01:00
|
|
|
pub fn err_only(config: Config) -> Self {
|
|
|
|
Self::new(io::stderr(), io::stderr(), config)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Informant<io::Stderr, io::Stdout> {
|
|
|
|
pub fn new_default(config: Config) -> Self {
|
|
|
|
let mut informant = Self::default();
|
|
|
|
informant.config = config;
|
|
|
|
informant
|
2018-11-25 20:12:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-29 19:13:45 +02:00
|
|
|
impl<Trace: Writer, Out: Writer> Informant<Trace, Out> {
|
2020-11-26 08:31:44 +01:00
|
|
|
pub fn new(trace_sink: Trace, out_sink: Out, config: Config) -> Self {
|
2018-01-18 10:32:22 +01:00
|
|
|
Informant {
|
|
|
|
code: Default::default(),
|
|
|
|
instruction: Default::default(),
|
|
|
|
depth: Default::default(),
|
|
|
|
stack: Default::default(),
|
|
|
|
storage: Default::default(),
|
2018-10-02 16:33:19 +02:00
|
|
|
subinfos: Default::default(),
|
|
|
|
subdepth: 0,
|
2018-08-29 19:13:45 +02:00
|
|
|
trace_sink,
|
|
|
|
out_sink,
|
2020-11-26 08:31:44 +01:00
|
|
|
config,
|
2018-01-18 10:32:22 +01:00
|
|
|
}
|
|
|
|
}
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-10-02 16:33:19 +02:00
|
|
|
fn with_informant_in_depth<F: Fn(&mut Informant<Trace, Out>)>(
|
|
|
|
informant: &mut Informant<Trace, Out>,
|
|
|
|
depth: usize,
|
|
|
|
f: F,
|
|
|
|
) {
|
|
|
|
if depth == 0 {
|
|
|
|
f(informant);
|
|
|
|
} else {
|
|
|
|
Self::with_informant_in_depth(
|
|
|
|
informant
|
|
|
|
.subinfos
|
|
|
|
.last_mut()
|
|
|
|
.expect("prepare/done_trace are not balanced"),
|
|
|
|
depth - 1,
|
|
|
|
f,
|
|
|
|
);
|
|
|
|
}
|
2020-08-05 06:08:03 +02:00
|
|
|
}
|
|
|
|
|
2018-11-25 20:12:59 +01:00
|
|
|
fn dump_state_into(
|
|
|
|
trace_sink: &mut Trace,
|
|
|
|
root: H256,
|
|
|
|
end_state: &Option<pod_state::PodState>,
|
|
|
|
) {
|
|
|
|
if let Some(ref end_state) = end_state {
|
|
|
|
let dump_data = json!({
|
|
|
|
"root": root,
|
|
|
|
"accounts": end_state,
|
|
|
|
});
|
|
|
|
writeln!(trace_sink, "{}", dump_data).expect("The sink must be writeable.");
|
|
|
|
}
|
2020-08-05 06:08:03 +02:00
|
|
|
}
|
2018-01-18 10:32:22 +01:00
|
|
|
}
|
|
|
|
|
2018-08-29 19:13:45 +02:00
|
|
|
impl<Trace: Writer, Out: Writer> vm::Informant for Informant<Trace, Out> {
|
2020-11-26 08:31:44 +01:00
|
|
|
type Sink = (Trace, Out, Config);
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-01-18 10:32:22 +01:00
|
|
|
fn before_test(&mut self, name: &str, action: &str) {
|
2018-09-11 11:36:38 +02:00
|
|
|
let out_data = json!({
|
|
|
|
"action": action,
|
|
|
|
"test": name,
|
|
|
|
});
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-09-11 11:36:38 +02:00
|
|
|
writeln!(&mut self.out_sink, "{}", out_data).expect("The sink must be writeable.");
|
2018-01-18 10:32:22 +01:00
|
|
|
}
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-01-18 10:32:22 +01:00
|
|
|
fn set_gas(&mut self, _gas: U256) {}
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-11-25 20:12:59 +01:00
|
|
|
fn clone_sink(&self) -> Self::Sink {
|
2020-11-26 08:31:44 +01:00
|
|
|
(
|
|
|
|
self.trace_sink.clone(),
|
|
|
|
self.out_sink.clone(),
|
|
|
|
self.config.clone(),
|
|
|
|
)
|
2018-11-25 20:12:59 +01:00
|
|
|
}
|
|
|
|
fn finish(
|
|
|
|
result: vm::RunResult<<Self as trace::VMTracer>::Output>,
|
2020-11-26 08:31:44 +01:00
|
|
|
(ref mut trace_sink, ref mut out_sink, _): &mut Self::Sink,
|
2018-11-25 20:12:59 +01:00
|
|
|
) {
|
2018-01-18 10:32:22 +01:00
|
|
|
match result {
|
|
|
|
Ok(success) => {
|
2018-09-11 11:36:38 +02:00
|
|
|
let trace_data = json!({"stateRoot": success.state_root});
|
|
|
|
writeln!(trace_sink, "{}", trace_data).expect("The sink must be writeable.");
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-11-25 20:12:59 +01:00
|
|
|
Self::dump_state_into(trace_sink, success.state_root, &success.end_state);
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-09-11 11:36:38 +02:00
|
|
|
let out_data = json!({
|
|
|
|
"output": format!("0x{}", success.output.to_hex()),
|
|
|
|
"gasUsed": format!("{:#x}", success.gas_used),
|
|
|
|
"time": display::as_micros(&success.time),
|
|
|
|
});
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-11-25 20:12:59 +01:00
|
|
|
writeln!(out_sink, "{}", out_data).expect("The sink must be writeable.");
|
2018-01-18 10:32:22 +01:00
|
|
|
}
|
|
|
|
Err(failure) => {
|
2018-09-11 11:36:38 +02:00
|
|
|
let out_data = json!({
|
|
|
|
"error": &failure.error.to_string(),
|
|
|
|
"gasUsed": format!("{:#x}", failure.gas_used),
|
|
|
|
"time": display::as_micros(&failure.time),
|
|
|
|
});
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-11-25 20:12:59 +01:00
|
|
|
Self::dump_state_into(trace_sink, failure.state_root, &failure.end_state);
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-11-25 20:12:59 +01:00
|
|
|
writeln!(out_sink, "{}", out_data).expect("The sink must be writeable.");
|
2018-01-18 10:32:22 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-29 19:13:45 +02:00
|
|
|
impl<Trace: Writer, Out: Writer> trace::VMTracer for Informant<Trace, Out> {
|
2018-01-18 10:32:22 +01:00
|
|
|
type Output = ();
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-01-18 10:32:22 +01:00
|
|
|
fn trace_next_instruction(&mut self, pc: usize, instruction: u8, current_gas: U256) -> bool {
|
2018-10-02 16:33:19 +02:00
|
|
|
let subdepth = self.subdepth;
|
|
|
|
Self::with_informant_in_depth(self, subdepth, |informant: &mut Informant<Trace, Out>| {
|
|
|
|
let info = ::evm::Instruction::from_u8(instruction).map(|i| i.info());
|
|
|
|
informant.instruction = instruction;
|
|
|
|
let trace_data = json!({
|
|
|
|
"pc": pc,
|
|
|
|
"op": instruction,
|
|
|
|
"opName": info.map(|i| i.name).unwrap_or(""),
|
|
|
|
"gas": format!("{:#x}", current_gas),
|
|
|
|
"stack": informant.stack,
|
|
|
|
"storage": informant.storage,
|
|
|
|
"depth": informant.depth,
|
|
|
|
});
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-10-02 16:33:19 +02:00
|
|
|
writeln!(&mut informant.trace_sink, "{}", trace_data)
|
|
|
|
.expect("The sink must be writeable.");
|
2018-09-11 11:36:38 +02:00
|
|
|
});
|
2018-01-18 10:32:22 +01:00
|
|
|
true
|
|
|
|
}
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-10-02 16:33:19 +02:00
|
|
|
fn trace_prepare_execute(
|
|
|
|
&mut self,
|
|
|
|
_pc: usize,
|
|
|
|
_instruction: u8,
|
|
|
|
_gas_cost: U256,
|
|
|
|
_mem_written: Option<(usize, usize)>,
|
|
|
|
store_written: Option<(U256, U256)>,
|
|
|
|
) {
|
|
|
|
let subdepth = self.subdepth;
|
|
|
|
Self::with_informant_in_depth(self, subdepth, |informant: &mut Informant<Trace, Out>| {
|
|
|
|
if let Some((pos, val)) = store_written {
|
|
|
|
informant.storage.insert(pos.into(), val.into());
|
|
|
|
}
|
|
|
|
});
|
2018-01-18 10:32:22 +01:00
|
|
|
}
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-10-02 16:33:19 +02:00
|
|
|
fn trace_executed(&mut self, _gas_used: U256, stack_push: &[U256], _mem: &[u8]) {
|
|
|
|
let subdepth = self.subdepth;
|
|
|
|
Self::with_informant_in_depth(self, subdepth, |informant: &mut Informant<Trace, Out>| {
|
|
|
|
let info = ::evm::Instruction::from_u8(informant.instruction).map(|i| i.info());
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-10-02 16:33:19 +02:00
|
|
|
let len = informant.stack.len();
|
|
|
|
let info_args = info.map(|i| i.args).unwrap_or(0);
|
|
|
|
informant
|
|
|
|
.stack
|
|
|
|
.truncate(if len > info_args { len - info_args } else { 0 });
|
|
|
|
informant.stack.extend_from_slice(stack_push);
|
|
|
|
});
|
2018-01-18 10:32:22 +01:00
|
|
|
}
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-10-02 16:33:19 +02:00
|
|
|
fn prepare_subtrace(&mut self, code: &[u8]) {
|
|
|
|
let subdepth = self.subdepth;
|
|
|
|
Self::with_informant_in_depth(self, subdepth, |informant: &mut Informant<Trace, Out>| {
|
2020-11-26 08:31:44 +01:00
|
|
|
let mut vm = Informant::new(
|
|
|
|
informant.trace_sink.clone(),
|
|
|
|
informant.out_sink.clone(),
|
|
|
|
informant.config,
|
|
|
|
);
|
2018-10-02 16:33:19 +02:00
|
|
|
vm.depth = informant.depth + 1;
|
|
|
|
vm.code = code.to_vec();
|
|
|
|
informant.subinfos.push(vm);
|
|
|
|
});
|
|
|
|
self.subdepth += 1;
|
2018-01-18 10:32:22 +01:00
|
|
|
}
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-10-02 16:33:19 +02:00
|
|
|
fn done_subtrace(&mut self) {
|
|
|
|
self.subdepth -= 1;
|
|
|
|
let subdepth = self.subdepth;
|
|
|
|
Self::with_informant_in_depth(self, subdepth, |informant: &mut Informant<Trace, Out>| {
|
|
|
|
informant.subinfos.pop();
|
|
|
|
});
|
|
|
|
}
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-01-18 10:32:22 +01:00
|
|
|
fn drain(self) -> Option<Self::Output> {
|
|
|
|
None
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(test)]
|
2018-08-20 14:05:01 +02:00
|
|
|
pub mod tests {
|
2018-01-18 10:32:22 +01:00
|
|
|
use super::*;
|
|
|
|
use info::tests::run_test;
|
|
|
|
use std::sync::{Arc, Mutex};
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-01-18 10:32:22 +01:00
|
|
|
#[derive(Debug, Clone, Default)]
|
2018-08-20 14:05:01 +02:00
|
|
|
pub struct TestWriter(pub Arc<Mutex<Vec<u8>>>);
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-01-18 10:32:22 +01:00
|
|
|
impl Writer for TestWriter {
|
|
|
|
fn clone(&self) -> Self {
|
|
|
|
Clone::clone(self)
|
2018-08-29 19:13:45 +02:00
|
|
|
}
|
|
|
|
fn default() -> Self {
|
|
|
|
Default::default()
|
2018-01-18 10:32:22 +01:00
|
|
|
}
|
2020-08-05 06:08:03 +02:00
|
|
|
}
|
|
|
|
|
2018-01-18 10:32:22 +01:00
|
|
|
impl io::Write for TestWriter {
|
|
|
|
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
|
|
|
|
self.0.lock().unwrap().write(buf)
|
|
|
|
}
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-01-18 10:32:22 +01:00
|
|
|
fn flush(&mut self) -> io::Result<()> {
|
|
|
|
self.0.lock().unwrap().flush()
|
|
|
|
}
|
2020-08-05 06:08:03 +02:00
|
|
|
}
|
|
|
|
|
2018-08-29 19:13:45 +02:00
|
|
|
pub fn informant() -> (Informant<TestWriter, TestWriter>, Arc<Mutex<Vec<u8>>>) {
|
|
|
|
let trace_writer: TestWriter = Default::default();
|
|
|
|
let out_writer: TestWriter = Default::default();
|
|
|
|
let res = trace_writer.0.clone();
|
2020-11-26 08:31:44 +01:00
|
|
|
(
|
|
|
|
Informant::new(trace_writer, out_writer, Config::default()),
|
|
|
|
res,
|
|
|
|
)
|
2018-01-18 10:32:22 +01:00
|
|
|
}
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-01-18 10:32:22 +01:00
|
|
|
#[test]
|
|
|
|
fn should_trace_failure() {
|
|
|
|
let (inf, res) = informant();
|
|
|
|
run_test(
|
|
|
|
inf,
|
|
|
|
move |_, expected| {
|
|
|
|
let bytes = res.lock().unwrap();
|
|
|
|
assert_eq!(expected, &String::from_utf8_lossy(&**bytes))
|
|
|
|
},
|
|
|
|
"60F8d6",
|
|
|
|
0xffff,
|
2018-09-11 11:36:38 +02:00
|
|
|
r#"{"depth":1,"gas":"0xffff","op":96,"opName":"PUSH1","pc":0,"stack":[],"storage":{}}
|
|
|
|
{"depth":1,"gas":"0xfffc","op":214,"opName":"","pc":2,"stack":["0xf8"],"storage":{}}
|
2018-01-18 10:32:22 +01:00
|
|
|
"#,
|
|
|
|
);
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-01-18 10:32:22 +01:00
|
|
|
let (inf, res) = informant();
|
|
|
|
run_test(
|
|
|
|
inf,
|
|
|
|
move |_, expected| {
|
|
|
|
let bytes = res.lock().unwrap();
|
|
|
|
assert_eq!(expected, &String::from_utf8_lossy(&**bytes))
|
|
|
|
},
|
|
|
|
"F8d6",
|
|
|
|
0xffff,
|
2018-09-11 11:36:38 +02:00
|
|
|
r#"{"depth":1,"gas":"0xffff","op":248,"opName":"","pc":0,"stack":[],"storage":{}}
|
2018-01-18 10:32:22 +01:00
|
|
|
"#,
|
|
|
|
);
|
|
|
|
}
|
2020-08-05 06:08:03 +02:00
|
|
|
|
2018-01-18 10:32:22 +01:00
|
|
|
#[test]
|
|
|
|
fn should_trace_create_correctly() {
|
|
|
|
let (informant, res) = informant();
|
|
|
|
run_test(
|
|
|
|
informant,
|
|
|
|
move |_, expected| {
|
|
|
|
let bytes = res.lock().unwrap();
|
|
|
|
assert_eq!(expected, &String::from_utf8_lossy(&**bytes))
|
|
|
|
},
|
|
|
|
"32343434345830f138343438323439f0",
|
|
|
|
0xffff,
|
2018-09-11 11:36:38 +02:00
|
|
|
r#"{"depth":1,"gas":"0xffff","op":50,"opName":"ORIGIN","pc":0,"stack":[],"storage":{}}
|
|
|
|
{"depth":1,"gas":"0xfffd","op":52,"opName":"CALLVALUE","pc":1,"stack":["0x0"],"storage":{}}
|
|
|
|
{"depth":1,"gas":"0xfffb","op":52,"opName":"CALLVALUE","pc":2,"stack":["0x0","0x0"],"storage":{}}
|
|
|
|
{"depth":1,"gas":"0xfff9","op":52,"opName":"CALLVALUE","pc":3,"stack":["0x0","0x0","0x0"],"storage":{}}
|
|
|
|
{"depth":1,"gas":"0xfff7","op":52,"opName":"CALLVALUE","pc":4,"stack":["0x0","0x0","0x0","0x0"],"storage":{}}
|
|
|
|
{"depth":1,"gas":"0xfff5","op":88,"opName":"PC","pc":5,"stack":["0x0","0x0","0x0","0x0","0x0"],"storage":{}}
|
|
|
|
{"depth":1,"gas":"0xfff3","op":48,"opName":"ADDRESS","pc":6,"stack":["0x0","0x0","0x0","0x0","0x0","0x5"],"storage":{}}
|
|
|
|
{"depth":1,"gas":"0xfff1","op":241,"opName":"CALL","pc":7,"stack":["0x0","0x0","0x0","0x0","0x0","0x5","0x0"],"storage":{}}
|
|
|
|
{"depth":1,"gas":"0x9e21","op":56,"opName":"CODESIZE","pc":8,"stack":["0x1"],"storage":{}}
|
|
|
|
{"depth":1,"gas":"0x9e1f","op":52,"opName":"CALLVALUE","pc":9,"stack":["0x1","0x10"],"storage":{}}
|
|
|
|
{"depth":1,"gas":"0x9e1d","op":52,"opName":"CALLVALUE","pc":10,"stack":["0x1","0x10","0x0"],"storage":{}}
|
|
|
|
{"depth":1,"gas":"0x9e1b","op":56,"opName":"CODESIZE","pc":11,"stack":["0x1","0x10","0x0","0x0"],"storage":{}}
|
|
|
|
{"depth":1,"gas":"0x9e19","op":50,"opName":"ORIGIN","pc":12,"stack":["0x1","0x10","0x0","0x0","0x10"],"storage":{}}
|
|
|
|
{"depth":1,"gas":"0x9e17","op":52,"opName":"CALLVALUE","pc":13,"stack":["0x1","0x10","0x0","0x0","0x10","0x0"],"storage":{}}
|
|
|
|
{"depth":1,"gas":"0x9e15","op":57,"opName":"CODECOPY","pc":14,"stack":["0x1","0x10","0x0","0x0","0x10","0x0","0x0"],"storage":{}}
|
|
|
|
{"depth":1,"gas":"0x9e0c","op":240,"opName":"CREATE","pc":15,"stack":["0x1","0x10","0x0","0x0"],"storage":{}}
|
|
|
|
{"depth":2,"gas":"0x210c","op":50,"opName":"ORIGIN","pc":0,"stack":[],"storage":{}}
|
|
|
|
{"depth":2,"gas":"0x210a","op":52,"opName":"CALLVALUE","pc":1,"stack":["0x0"],"storage":{}}
|
|
|
|
{"depth":2,"gas":"0x2108","op":52,"opName":"CALLVALUE","pc":2,"stack":["0x0","0x0"],"storage":{}}
|
|
|
|
{"depth":2,"gas":"0x2106","op":52,"opName":"CALLVALUE","pc":3,"stack":["0x0","0x0","0x0"],"storage":{}}
|
|
|
|
{"depth":2,"gas":"0x2104","op":52,"opName":"CALLVALUE","pc":4,"stack":["0x0","0x0","0x0","0x0"],"storage":{}}
|
|
|
|
{"depth":2,"gas":"0x2102","op":88,"opName":"PC","pc":5,"stack":["0x0","0x0","0x0","0x0","0x0"],"storage":{}}
|
|
|
|
{"depth":2,"gas":"0x2100","op":48,"opName":"ADDRESS","pc":6,"stack":["0x0","0x0","0x0","0x0","0x0","0x5"],"storage":{}}
|
|
|
|
{"depth":2,"gas":"0x20fe","op":241,"opName":"CALL","pc":7,"stack":["0x0","0x0","0x0","0x0","0x0","0x5","0xbd770416a3345f91e4b34576cb804a576fa48eb1"],"storage":{}}
|
2018-01-18 10:32:22 +01:00
|
|
|
"#,
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|