Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
max-wickham committed Mar 27, 2024
1 parent 65519c1 commit f3ad15f
Show file tree
Hide file tree
Showing 17 changed files with 127 additions and 693 deletions.
Binary file removed 1000.pdf
Binary file not shown.
19 changes: 12 additions & 7 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
# TODO

- [_] Replace closure with macro
- [_] Move entire decode step into inline function
- [_] Restructure code into a folder system
- [_] Get Memory Buffer tests to work
- Check CODECOPY
- Check CALLDATACOPY
- Check initial costs
- [_] Only pass JSON once in tests, (maybe pass in the proc macro and then directly insert in the code)
- [_] Replace macro with method in decoder?
- [x] Replace closure with macro
- [x] Move entire decode step into inline function
- [?] Restructure code into a folder system
- [_] More specific error handling
- [x] Create better gas tracking, (especially for memory)
- [x] Created gas tracker
- [x] Apply gas tracker to memory operations
- [x] Apply gas tracker to all other operations
- [?] Implement Reverts if failure (especially in calls)
- [_] Check the failure behavior of every instruction
- [_] Create a helper proc macro that creates a map from opcode to string value
- [x] Create a helper proc macro that creates a map from opcode to string value

- [_] Remove assembler
- [_] Fix test proc to auto detect if a file or folder and auto search sub directories
Expand All @@ -29,14 +35,13 @@
- [x] Implement hash of state for mock runtime

- [x] Finish implementing call, (without gas calculations)
- [_] Define tests for instructions not using runtime
- [N] Define tests for instructions not using runtime
- [x] Create Proc macro to define tests in json
- [_] Create tests for all basic arithmetic instructions
- [x] Add variable gas calculations
- [x] Create test implementing of Runtime
- [x] Revert only current context, (not also if a call fails)
- [x] Handle not enough values on stack
- [_] Define test for instructions using runtime
- [N] Define test for instructions using runtime
- [_] Implement delegate call and create 2
- [_] Implement Create
- [_] Define tests for mem and stack
Expand Down
Loading

0 comments on commit f3ad15f

Please sign in to comment.