21 Commits

Author SHA1 Message Date
wborgeaud
923722b1e4
Fix copy opcodes when offset is large (#957)
* Fix wcopy

* Fix extcodecopy and use memset

* Comments
2023-04-05 06:24:26 +02:00
wborgeaud
56bf08921b
Charge gas for extcodecopy (#942)
* Charge gas for extcodecopy

* Check for size=0
2023-03-30 06:46:26 +02:00
wborgeaud
ce22d94518
Access lists (#937)
* Working linear search

* Working linear search for storage keys

* Macros

* Gas for wextaccount

* Add origin and to to the access list

* Handle precompiles

* Fixes

* Other opcodes

* Access list SLOAD

* Minor

* Add TODO for SSTORE

* Comments

* Clippy

* Minor

* PR feedback: cold_access

* PR feedback: simplify insert_accessed_addresses_no_return macro

* Fix sys_selfdestruct

* Store length in global metadata and store arrays in kernel memory

* Truncate address in all *CALL syscalls
2023-03-23 20:22:25 +01:00
wborgeaud
06936c7649
Implement various syscalls (#930)
* Bunch of syscalls

* Minor

* Minor

* Minor

* Add todo for overflow
2023-03-22 06:42:14 +01:00
wborgeaud
a79271a8ec
Minor account code fixes (#929)
* Fixes

* Fix

* Newline
2023-03-21 20:15:30 +01:00
Daniel Lubarov
f717a40b85 Charge for memory expansion 2023-03-19 20:17:30 -07:00
Daniel Lubarov
a6ac051952 Misc EVM fixes 2023-03-06 22:33:06 -08:00
Daniel Lubarov
c558eedd65 Misc EVM fixes 2023-03-05 09:39:49 -08:00
Daniel Lubarov
df2ba7a384 Basic smart contract test 2023-01-14 21:18:58 -08:00
Daniel Lubarov
1b4acf5917 Make load_code a bit more general
So that it can be used to load code we're going to execute into the code segment of a certain context.
2022-11-21 13:54:39 -08:00
Daniel Lubarov
d23cecfcd8 Kernel code to do jumpdest analysis 2022-11-21 13:06:03 -08:00
wborgeaud
8198355565 Fix + Use context=0 2022-11-02 11:06:14 +01:00
wborgeaud
35c00fa6a7 Return 0 if account doesn't exist 2022-11-02 10:37:19 +01:00
wborgeaud
7647c5b51b Use address macro instead of opcode 2022-10-31 10:15:43 +01:00
wborgeaud
fd96d30e24 Minor 2022-10-27 14:57:17 +02:00
wborgeaud
dc8a62fbee Codecopy test 2022-10-27 11:06:24 +02:00
wborgeaud
8b1152c3b3 Working codesize 2022-10-27 09:32:29 +02:00
wborgeaud
03d7f3d17e Found bug 2022-10-26 16:39:31 +02:00
wborgeaud
0d4cf5be47 Minor 2022-10-26 15:45:34 +02:00
wborgeaud
560b9b2a97 Finish extcodecopy 2022-10-21 18:11:27 +02:00
wborgeaud
6b4cce21d8 Start 2022-10-21 18:00:41 +02:00