This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: Basic Containers | |
summary: Tree hash tests for containers of basic types | |
version: '0.1' | |
test_cases: | |
- type: | |
field0: uint256 | |
value: | |
field0: '70532389840033727561416535998' | |
root: '0xbe6f9f62ac4c09c28206e7e30000000000000000000000000000000000000000' | |
tags: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: Bool | |
summary: Tests for the two bool values | |
version: '0.1' | |
test_cases: | |
- type: bool | |
valid: true | |
value: true | |
ssz: '0x01' | |
tags: | |
- basic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import numpy as np | |
import matplotlib | |
matplotlib.use("agg") | |
import matplotlib.pyplot as plt | |
NUM_NODES = 1000 | |
MAX_NODE_ID = 2**64 - 1 | |
NUM_REPETITIONS = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MEMORY_COUNTER = 0 | |
MEMORY_N_ITERATIONS = 32 | |
MEMORY_CALLDATA_INDEX = 64 | |
MEMORY_TOTAL_AMOUNT = 96 | |
MEMORY_KEY = 128 | |
MEMORY_SIGNATURE = 160 | |
MEMORY_ADDRESS = 160 | |
# CALLDATA: |