-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix xcmp_fee for automation-time (#366)
* Add asset_location param to get_local_currency_instructions function * Add Convert<MultiLocation, Option<TokenId>> to automationTime * Deduct fees based on different currency ID * Split DestinationAssetConfig into TransactInfoWithWeightLimit and DestinationAssetFeePerSecond * Change the type of destination to VersionedMultiLocation * Modify Mangata asset config * Customize XCMP fee and weight. * Fix typo * Calculate xcmp fee for alternate flow * Remove xcmp fee and weight calculation * Fix benchmark and tests * Fixing failed tests * Add migration * Code format * Fix schedule_xcmp_task_full test * Remove TransactInfo storage * Rename XcmFlow to XcmTaskSupported * Remove pallet_xcmp_handler storage in runtime configuration * Rename enum XcmTaskSupported to InstructionSequence * Change scheduleFee to MultiLcation * Fix the comment of AssetPayment * Extract instruction weight and fee to const variable in update_xcmp_task.rs * Fix tests for the merged code * Add calculate_schedule_fee_amount_works test * Add calculate_schedule_fee_amount tests * fixup: auto format Rust code * Add tests for all types of automation-time action * Set num_of_execution to a random number * Add comment for schedule_xcmp_task , schedule_xcmp_task_through_proxy function --------- Co-authored-by: oak-code-formatter <[email protected]>
- Loading branch information
Showing
31 changed files
with
1,138 additions
and
1,028 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
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
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
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.