-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to use evm foreign assets to pay XCM fees (#2908)
* create pallet xcm-weight-trader * add rust unit tests for trader fix trader impl * add functions for runtime api xcm-fee-payment * add rust test scenario: unpause and edit asset price * add pallet-xcm-weight-trader to all runtimes & migrate assets fees data * avoid div by zero * refactor moonbase rust tests to use new pallet xcm-weight-trader * refactor moonbeam/moonriver rust tests to use new pallet xcm-weight-trader * fix pallet compilation with feature runtime-benchmark and tests * fix rust tests * add weight info for pallet_xcm_weight_trader * fix migration formula * fix pallet tests * fix linting * fix typo * configure origins for xcmWeightTrader * fix: edit asset should not unpause asset * update registerOldForeignAssets to use xcmWeightTrader * fix tests using setAssetUnitsPerSecond * Update pallets/xcm-weight-trader/src/lib.rs Co-authored-by: Agustín Rodriguez <[email protected]> * fix rust compilation * benchmarks: use evm foreign assets for worst_case_holding * impl post-upgrade * fix migration code * fix rust test * rustfmt * remove unused import --------- Co-authored-by: Rodrigo Quelhas <[email protected]> Co-authored-by: Pablo Labarta <[email protected]> Co-authored-by: Agustín Rodriguez <[email protected]>
- Loading branch information
1 parent
7623155
commit dd3a4a4
Showing
42 changed files
with
2,714 additions
and
2,062 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.