-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(CA): adding transaction simulation #859
Conversation
3a7442f
to
cbe0e7b
Compare
cbe0e7b
to
e049391
Compare
e049391
to
05b6a30
Compare
src/handlers/chain_agnostic/mod.rs
Outdated
/// Compute the storage slot for a given address and slot number to use in the | ||
/// simulation state overrides | ||
/// https://docs.tenderly.co/simulations/state-overrides#storage-slot-calculation | ||
pub fn compute_simulation_storage_slot(address: Address, slot_number: u64) -> Bytes { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't need to convert to/from hex in order to concatenate some bytes together
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the implementation a bit, but we still need to contact two B256 and use this for the keccak.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this PR set the gas
field somewhere?
49870b7
to
49cdfce
Compare
This is a quite big PR and a lot of changes, let's merge this first and I'll add gas with the caching as a follow-up (don't want to make two monster stacked PRs 😅). |
49cdfce
to
473814d
Compare
Description
This PR adds the transaction simulation using the Tenderly simulation provider to the chain abstraction route endpoint to check for the ERC20 asset changes in case the initial transaction is not an ERC20 transfer.
How Has This Been Tested?
Integration tests update TBD.
Due Diligence