Skip to content

Upgrade to Polkadot SDK stable2412-5 and merge upstream changes#13

Merged
sam0x17 merged 38 commits intomasterfrom
feat/upgrade-polkadot-sdk-to-2412
May 24, 2025
Merged

Upgrade to Polkadot SDK stable2412-5 and merge upstream changes#13
sam0x17 merged 38 commits intomasterfrom
feat/upgrade-polkadot-sdk-to-2412

Conversation

@l0r1s
Copy link

@l0r1s l0r1s commented May 19, 2025

This PR introduces multiple things:

  • Upstream changes from commit polkadot-evm/frontier@d21ddc2 to commit polkadot-evm/frontier@986eb1a.

  • Polkadot SDK version upgraded to stable2412-5.

  • Fixes the failing tests due to EVM/Substrate factor of 10e9 and some others due to whitelist check for smart contracts creation.

  • Fixes the workflows, now they run correctly

dmitrylavrenov and others added 30 commits May 15, 2025 15:55
* Introduce account provider interface

* Use AccountProvider logic at pallet-evm

* Remove redundant ower type usage

* Fix fmt

* Fix clippy

* Fix clippy

* License at primitives/evm/src/account_provider.rs

* Rename NativeSystemAccountProvider to FrameSystemAccountProvider

* Formatting corrcetions at account_provider.rs

---------

Co-authored-by: MOZGIII <mike-n@narod.ru>
)

* feat: Implement TestDefaultConfig for pallet-evm

* feat: Implement TestDefaultConfig for pallet-ethereum

* style: Reformat

* Extend to the ethereum pallet

* chore: Align ChainId in TestDefaultConfig with template runtime

* chore: Clean up imports

* test: Fix broken pallet-ethereum tests

* chore: Fix clippy error

* chore: Fix clippy error (2)

---------

Co-authored-by: bear <boundless.forest@outlook.com>
* A new trait for recording foreign metrics

* Remove Metric trait

* rename BasicMetric to Metric

* add unit tests and a new MetricError enum

* Add ProofSizeMeter

* Add ProofSizeMeter to WeightInfo

* formatting

* Add RefTimeMeter to WeightInfo

* add storage meter to WeightInfo

* rename metric to resource

* code refactor

* remove unused functions

* make clippy happy

* minor improvements

* rename meter to resource

* compute new storage created by SSTORE

* revert changes

* compute storage growth for opcodes

* compute the storage quota per tx

* pin evm temporarily

* record storage growth for opcodes

* update GAS_LIMIT_STORAGE_GROWTH_RATIO for tests

* add support to record storage growth for precompiles

* fix tests

* fix formatting

* fix storage growth parameters for tests

* add rust integration tests

* fix typo

* fix recording storage growth of a special use case of SSTORE

* use saturating add

* minor improvements

* add license to meter.rs

* fix clippy warnings

* pin evm to master

* update evm to the latest commit

* check limit exceedance before updating the usage

* Use BtreeSet

* add support for storage growth in precompiles

* clippy warnings

* update to evm 0.41.0

* Update Cargo.toml

Co-authored-by: Qinxuan Chen <koushiro.cqx@gmail.com>

* update Cargo.lock

* format

* fix tests

* update license information in meter.rs to Apache-2.0

---------

Co-authored-by: Qinxuan Chen <koushiro.cqx@gmail.com>
Co-authored-by: librelois <c@elo.tf>
* estimate gas: always ignore user provided nonce

* add: test estimateGas ignores nonce

---------

Co-authored-by: Éloïs <c@elo.tf>
Signed-off-by: goodfirm <fanyishang@yeah.net>
* add backend method first_block_hash

* fix comment

---------

Co-authored-by: Éloïs <c@elo.tf>
…adot-evm#1551)

* feat(precompile-utils): implement helper methods

* add RemovedPrecompilesAt for filtering a list of removed precompiles

* impl is_empty() for BoundedVec

* appease clippy

* appease clippy x2

---------

Co-authored-by: Rodrigo Quelhas <rodrigo_quelhas@outlook.pt>
* irregular verb form

* irregular verb form

* typos

* typo

* irregular verb form
Signed-off-by: linchizhen <jiayanbing@yeah.net>
…vm#1567)

Co-authored-by: Rodrigo Quelhas <rodrigo_quelhas@outlook.pt>
* Merge pull request polkadot-evm#225 from moonbeam-foundation/elois-storage-oog

propagate OOG from pov and MBIP5

* taplo fmt

---------

Co-authored-by: Éloïs <c@elo.tf>
* Fine-grained Pending state

Signed-off-by: linning <linningde25@gmail.com>

* Use CountedStorageMap for managing pending transactions

Signed-off-by: linning <linningde25@gmail.com>

---------

Signed-off-by: linning <linningde25@gmail.com>
* build(deps): bump syn from 1.0.109 to 2.0.90

* build(deps): Clean up dependencies
* update evm version

* Cancun support (polkadot-evm#206)

* use Cancun config
* feat: support transient storage (EIP-1153)
* Update evm dependency
* Adds a new opcode (MCOPY) for copying memory
* feat: support cancun selfdestruct changes (EIP-6780)
---------

Co-authored-by: Agusrodri <agusrodriguez2456@gmail.com>
Co-authored-by: Ahmad Kaouk <ahmadkaouk.93@gmail.com>

* style: formatting

* style: fix clippy errors

* style: fix issues

* revert: test

* fix: solidity pragma

* fix: fix tests

* fix: fix tests

* fix gas tests

* test:update gas estimation result

* use crates.io version

* remove Suicided storage and all related items

* Remove SuicideQuickClearLimit configuration from EVM precompile and related modules

---------

Co-authored-by: Rodrigo Quelhas <22591718+romarq@users.noreply.github.com>
Co-authored-by: Agusrodri <agusrodriguez2456@gmail.com>
Co-authored-by: Ahmad Kaouk <ahmadkaouk.93@gmail.com>
Co-authored-by: Rodrigo Quelhas <rodrigo_quelhas@outlook.pt>
* bound VariadicValue multiple variant

* fix: increase VARIADIC_MULTIPLE_MAX_SIZE to 1024

* style: fix

---------

Co-authored-by: Éloïs <c@elo.tf>
* Upgrade the version of `polkadot-sdk` to `stable2412`

* fix: `Invalid params`: missing field `accessList`

* chore: `Deref` is not necessarily required

* chore: remove unnecessary code that uses the `U256` type.

* remove non-essential trait bounds from `fp-self-contained`

these changes are based on the [suggestions](conr2d@df360d6) from @conr2d.

* chore: using full-qualified name of an enumeration for matching arms is a best practice.
@l0r1s l0r1s marked this pull request as ready for review May 21, 2025 13:04
@l0r1s l0r1s changed the title Feat/upgrade polkadot sdk to 2412 Upgrade to Polkadot SDK stable2412-5 and merge upstream changes May 21, 2025
@sam0x17 sam0x17 merged commit ec1b29d into master May 24, 2025
4 checks passed
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.