moondance-labs / tanssi

GNU General Public License v3.0
226 stars 48 forks source link

Contract deployment customization in frontier template #571

Closed Agusrodri closed 4 months ago

Agusrodri commented 4 months ago

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:

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.

github-actions[bot] commented 4 months ago

Coverage Report

(master)

@@                            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