Skip to content

Instantly share code, notes, and snippets.

@hugo-dc
Created July 24, 2019 18:38
Show Gist options
  • Save hugo-dc/e39308cd3b033bda387d3ed2e7e2e79c to your computer and use it in GitHub Desktop.
Save hugo-dc/e39308cd3b033bda387d3ed2e7e2e79c to your computer and use it in GitHub Desktop.
Process yaml!
TestFile {
beacon_state: TestBeaconState {
execution_scripts: [
"scripts/jaredtrie/target/wasm32-unknown-unknown/release/phase2_jaredtrie.wasm",
],
},
shard_blocks: [
TestShardBlock {
env: 0,
data: "5c0000005000000001000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000001010101010101010101010101010101010101010101010101010101010101010400000000000000",
},
],
shard_pre_state: TestShardState {
exec_env_states: [
"0000000000000000000000000000000000000000000000000000000000000000",
],
},
shard_post_state: TestShardState {
exec_env_states: [
"0000000000000000000000000000000000000000000000000000000000000000",
],
},
}
Executing block: Some(
ShardBlock {
env: 0,
data: ShardBlockBody {
data: [
92,
0,
0,
0,
80,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
4,
0,
0,
0,
0,
0,
0,
0,
],
},
},
)
Pre-execution: ShardState {
exec_env_states: [
Bytes32 {
bytes: [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
],
},
],
slot: 0,
parent_block: ShardBlockHeader,
}
Executing codesize(37894) and data: ShardBlockBody {
data: [
92,
0,
0,
0,
80,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
4,
0,
0,
0,
0,
0,
0,
0,
],
}
loadprestateroot to 1048360
savepoststateroot from 1048360
Result: None
Execution finished
Post-execution: ShardState {
exec_env_states: [
Bytes32 {
bytes: [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
],
},
],
slot: 0,
parent_block: ShardBlockHeader,
}
ShardState {
exec_env_states: [
Bytes32 {
bytes: [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
],
},
],
slot: 0,
parent_block: ShardBlockHeader,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment