Skip to content

Add support for a gas-based storage limit#173

Merged
sorpaas merged 2 commits intorust-ethereum:masterfrom
moonbeam-foundation:ahmad-update-external-operation
Aug 23, 2023
Merged

Add support for a gas-based storage limit#173
sorpaas merged 2 commits intorust-ethereum:masterfrom
moonbeam-foundation:ahmad-update-external-operation

Conversation

@ahmadkaouk
Copy link
Copy Markdown
Contributor

This PR introduces some minor changes that are needed to support introducing a new gas-based storage limit here polkadot-evm/frontier#1142.

Changes introduced:

  • Add a U256 field to the ExternalOperation::Write variant that will be used to communicate the number of bytes written.
  • Add storage_growth attribute to record_external_cost function to support recording of storage growth with precompiles.

@sorpaas sorpaas merged commit 44bb77c into rust-ethereum:master Aug 23, 2023
zjb0807 added a commit to AcalaNetwork/Acala that referenced this pull request Jan 22, 2024
zjb0807 added a commit to AcalaNetwork/Acala that referenced this pull request Jan 29, 2024
* update PrecompileHandle ref: rust-ethereum/evm#122

* update fee calculation ref: rust-ethereum/evm#132

* add code_size/code_hash fn in StackState trait ref: rust-ethereum/evm#140

* update evm call stack ref: rust-ethereum/evm#136

* update evm call stack ref: rust-ethereum/evm#155

* add shanghai eips 3651, 3855, 3860 ref: rust-ethereum/evm#152

* update is_precompile ref: rust-ethereum/evm#157

* fix eip-3860 ref: rust-ethereum/evm#160

* update runtime config ref: rust-ethereum/evm#161

* add eip-4399 ref: rust-ethereum/evm#162

* fix eip-2618 ref: rust-ethereum/evm#163

* fix nonce back to U256 ref: rust-ethereum/evm#166

* remove exit_substate in create functions ref: rust-ethereum/evm#168

* record external cost ref: rust-ethereum/evm#170

* add record_external_operation ref: rust-ethereum/evm#171

* add storage_growth ref: rust-ethereum/evm#173

* update evm

* switch to shanghai hardfork

* update ecrecover ref: polkadot-evm/frontier#964 (#2696)
mattsse pushed a commit to mattsse/evm that referenced this pull request Jan 17, 2026
* feat: Add constructor of `EvmEnv` for a block

* test: Test that created evm env is consistent with given block

* refactor: Use `SpecId` derivation function

* refactor: Use function instead of trait to construct `EvmEnv` with `OpSpecId`

* refactor: Put `alloy-op-evm` spec functions in `alloy-evm` crate with `op` feature

* fix: Rewrite op specific `EvmEnv` constructor

* test: Put eth specific `EvmEnv` test inside `eth` module

* refactor: Use constant from `alloy-eips`

* deps: Restrict `alloy-eips` to version `~1.0.34`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants