3774 Commits

Author SHA1 Message Date
BGluth
3c7bc8835c Removed a type alias
- Was conflicting with the trait `PartialTrie` and also making the types
  harder to follow.
2023-03-28 14:38:58 -06:00
BGluth
60ad9e03ba Bumped eth_trie_utils to 0.5.0 2023-03-27 17:30:11 -06: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
Daniel Lubarov
f9fa38d3cd Fix new account insert key 2023-03-22 21:53:33 -07:00
Dima V
1ce47cebc5
Merge pull request #906 from mir-protocol/fp318
Generalize rust code for field extension arithmetic to be base-field agnostic
2023-03-22 17:40:58 -07:00
Dmitry Vagner
0650d2636c remove .scale 2023-03-22 17:26:14 -07:00
Dmitry Vagner
3f4d970f15 Merge branch 'main' of github.com:mir-protocol/plonky2 into fp318 2023-03-22 16:58:54 -07:00
wborgeaud
f4e65feb65
Fix bugs in wcopy and update_mem_words (#934)
* Fix bugs in wcopy and update_mem_words

* Update comment
2023-03-22 19:14:55 +01:00
wborgeaud
15bafce5dd
Implement CREATE2 address generation (#936)
* Implement create2 address gen

* Clippy

* Minor

* Wrong order

* Fix test

* Fix comment
2023-03-22 19:14:17 +01:00
Dmitry Vagner
645ef664a2 comment 2023-03-22 10:58:09 -07:00
Dmitry Vagner
63ec13e24b Merge branch 'main' of github.com:mir-protocol/plonky2 into fp318 2023-03-22 10:57:30 -07:00
Dmitry Vagner
3425391a09 more comments 2023-03-22 10:57:26 -07:00
wborgeaud
d0b2b81e11
More MemoryError (#932) 2023-03-22 18:43:41 +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
Dmitry Vagner
54b8ce74ab Merge branch 'main' of github.com:mir-protocol/plonky2 into fp318 2023-03-21 19:22:13 -07:00
Dmitry Vagner
143225f449 finish 2023-03-21 19:19:02 -07:00
Dmitry Vagner
fc72ce46c5 fp6 works 2023-03-21 13:55:51 -07:00
Dmitry Vagner
4d83c58d1f frob works 2023-03-21 13:51:11 -07:00
wborgeaud
2df1439d35
Return error instead of panic in memory operation (#928) 2023-03-21 20:15:46 +01:00
wborgeaud
a79271a8ec
Minor account code fixes (#929)
* Fixes

* Fix

* Newline
2023-03-21 20:15:30 +01:00
Dmitry Vagner
caaf3b4a34 merge fields 2023-03-21 11:42:46 -07:00
Dmitry Vagner
cf1e6a76f3 Merge branch 'main' of github.com:mir-protocol/plonky2 into fp318 2023-03-21 11:25:23 -07:00
Daniel Lubarov
ff81a565ef
Merge pull request #927 from mir-protocol/creation_fixes
Contract creation fixes
2023-03-21 00:06:19 -07:00
Daniel Lubarov
e1ae539271 Fix test 2023-03-20 23:57:44 -07:00
Daniel Lubarov
afded1682b Contract creation fixes 2023-03-20 23:43:13 -07:00
wborgeaud
893b88c309
Implement syscalls for BALANCE and SELFBALANCE (#922)
* Implement syscalls for BALANCE and SELFBALANCE

* Remove stubs
2023-03-21 05:54:29 +01:00
Daniel Lubarov
fc6487cac0
Merge pull request #926 from mir-protocol/fix_gas
Fix GAS and implement storage value parsing
2023-03-20 18:29:59 -07:00
Daniel Lubarov
3c4bc1d824 Fix GAS and implement storage value parsing 2023-03-20 18:02:20 -07:00
Nicholas Ward
b16b82613e
Merge pull request #881 from mir-protocol/bignum-basic
Basic bignum operations
2023-03-20 13:09:17 -07:00
Nicholas Ward
6fe8554fb4
Merge pull request #924 from mir-protocol/empty-stack-replacement
allow empty stack replacement
2023-03-20 13:08:25 -07:00
Nicholas Ward
652b2bedad allow empty stack replacement 2023-03-20 12:37:37 -07:00
Nicholas Ward
a5fad9ebc0 addressed comments 2023-03-20 12:36:48 -07:00
Nicholas Ward
f6b9d6ee2e addressed comments 2023-03-20 12:36:07 -07:00
Nicholas Ward
72b5bb0eac fmt 2023-03-20 12:31:41 -07:00
Nicholas Ward
2752456e5d addressed comments 2023-03-20 12:31:36 -07:00
Dmitry Vagner
5e98a5f907 adj trait 2023-03-20 12:25:23 -07:00
Dmitry Vagner
503880731a rename 2023-03-20 11:55:43 -07:00
Dmitry Vagner
25575df57c cleanup 2023-03-20 11:49:13 -07:00
Dmitry Vagner
ec0f3ce78b Merge branch 'main' of github.com:mir-protocol/plonky2 into fp318 2023-03-20 11:36:05 -07:00
Hamish Ivey-Law
692575a24b
Bump eth_trie_utils version. (#923) 2023-03-21 02:20:11 +11:00
Daniel Lubarov
2ab1634413
Merge pull request #921 from mir-protocol/dlubarov_misc
Dlubarov misc
2023-03-19 23:31:26 -07:00
Daniel Lubarov
bdf35374d5 Misc 2023-03-19 23:22:33 -07:00
Daniel Lubarov
b80a28dbd1 Misc 2023-03-19 22:52:49 -07:00
Daniel Lubarov
f13d603a51
Merge pull request #920 from mir-protocol/dlubarov_misc
Couple fixes & minor refactor
2023-03-19 22:43:11 -07:00
Daniel Lubarov
47fac8e35b Couple fixes & minor refactor 2023-03-19 22:35:53 -07:00
Nicholas Ward
64c76e76dd Merge branch 'main' into bignum-basic 2023-03-19 22:19:54 -07:00
Daniel Lubarov
c491a98961
Merge pull request #919 from mir-protocol/mem_expansion
Charge for memory expansion
2023-03-19 21:54:05 -07:00
Daniel Lubarov
f717a40b85 Charge for memory expansion 2023-03-19 20:17:30 -07:00
Nicholas Ward
e8405effa1 Merge branch 'main' into bignum-basic 2023-03-19 17:29:51 -07:00
Daniel Lubarov
de246e227d
Merge pull request #918 from mir-protocol/fix_read_ext
Fix reads from not-found ext nodes
2023-03-19 14:22:29 -07:00