Closed Agusrodri closed 4 months ago
@@ Coverage Diff @@
## master agustin-contract-deploy-customization +/- ##
=========================================================================
- Coverage 69.64% 69.55% -0.09%
+ Files 224 225 +1
+ Lines 39602 39671 +69
=========================================================================
+ Hits 27580 27591 +11
+ Misses 12022 12080 +58
Files Changed | Coverage | |
---|---|---|
/container-chains/runtime-templates/frontier/src/lib.rs | 58.47% (-2.35%) | 🔽 |
/container-chains/runtime-templates/frontier/src/migrations.rs | 64.58% (-24.71%) | 🔽 |
/container-chains/runtime-templates/frontier/src/xcm_config.rs | 66.67% (+3.03%) | 🔼 |
Coverage generated Fri Jun 7 20:06:18 UTC 2024
What does it do?
This PR adds support for contract deployment customization inside the frontier template. This means, that thanks to the changes in this PR, we are now able to filter which addresses can deploy contracts on the evm of a frontier-like chain.
More specifically, we can filter in two ways via
pallet-evm
configuration:CreateOrigin
filter: contains the list of which addresses can deploy contracts via CREATE.CreateInnerOrigin
filter: contains the list of which addresses can deploy inner contracts via CALL(CREATE).Companion PRs (forks)
Extra
The PR also adds support for changing these filters in a dynamic way, thanks to
pallet-parameters
. Thus, the allowed origin to update these parameters can easily do it without the need of going through the process of a runtime upgrade.