forked from lambdaclass/ethrex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: (levm) Implement different call types (lambdaclass#583)
**Motivation** Implement `CALLCODE`, `DELEGATECALL` and `STATICCALL` **Description** - `CALL`, `STATICCALL`, `DELEGATECALL` and `CALLCODE` are similar but have some key differences, for example: 1) `StaticCall` does the same as `Call`, but changes the config of the `CallFrame` to be static 2) `DelegateCall` is used to execute code from another contract, but changing the storage of the actual address. This is done by having an `Option<Address>` in the `CallFrame`. `CallCode` does the same as `DelegateCall` but changes value and msg_sender. - Created the `generic_call` function to provide a standard on performing calls. more info in [EVM Deep Dives](https://noxx.substack.com/p/evm-deep-dives-the-path-to-shadowy-a5f?utm_source=%2Fprofile%2F80455042-noxx&utm_medium=reader2&s=r) Closes lambdaclass#530 Closes lambdaclass#532 Closes lambdaclass#534 --------- Co-authored-by: Paolo Belforte <[email protected]> Co-authored-by: Paolo Belforte <[email protected]> Co-authored-by: Juan Ignacio Medone Sabatini <[email protected]>
- Loading branch information
Showing
8 changed files
with
612 additions
and
155 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ethtests |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
pub use bytes::Bytes; | ||
pub use ethereum_types::{Address, H160, H256, U256, U512}; | ||
pub use ethereum_types::{Address, H160, H256, H32, U256, U512}; |
Oops, something went wrong.