Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting Unlimited for BuyExecution in XCM Transactor #2553

Merged
merged 9 commits into from
Dec 11, 2023

Conversation

Agusrodri
Copy link
Contributor

@Agusrodri Agusrodri commented Nov 7, 2023

What does it do?

Modifies the overall_weight field inside TransactWeights struct of pallet-xcm-transactor to allow setting Unlimited as the total weight to buy in the destination chain.

It also adds the possibility of using Unlimited through the XCM Transactor precompile V3. To do this, a uint64::MAX should be passed through the refTime field of the overall_weight parameter in the desired function of the precompile's smart contract.

@Agusrodri Agusrodri added B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. not-breaking Does not need to be mentioned in breaking changes labels Nov 7, 2023
@Agusrodri Agusrodri changed the title Allow to set Unlimited for BuyExecution in XCM Transactor Allow setting Unlimited for BuyExecution in XCM Transactor Nov 7, 2023
@Agusrodri Agusrodri marked this pull request as ready for review November 9, 2023 21:21
asiniscalchi pushed a commit to asiniscalchi/moonbeam that referenced this pull request Nov 10, 2023
…undation#2475)

* Fix try-runtime pre/post hook (moonbeam-foundation#2553)

* Update moonkit rev in Cargo.lock

* Make the same changes in moonbase and moonriver runtimes
Copy link
Collaborator

@librelois librelois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some naming conventions are confusing

Copy link
Contributor

github-actions bot commented Dec 7, 2023

Coverage Report

@@                         Coverage Diff                         @@
##           master   agustin-unlimited-buy-execution      +/-   ##
===================================================================
- Coverage   81.90%                            81.88%   -0.02%     
  Files         286                               286              
+ Lines       95261                             95320      +59     
===================================================================
+ Hits        78018                             78049      +31     
+ Misses      17243                             17271      +28     
Files Changed Coverage
/pallets/xcm-transactor/src/lib.rs 88.48% (-0.52%) 🔽
/precompiles/xcm-transactor/src/functions.rs 96.80% (-0.71%) 🔽
/runtime/common/src/migrations.rs 80.11% (-5.32%) 🔽
/runtime/moonbase/src/lib.rs 50.13% (-0.25%) 🔽
/runtime/moonbeam/src/lib.rs 69.05% (-0.25%) 🔽
/runtime/moonriver/src/lib.rs 68.97% (-0.25%) 🔽

Coverage generated Mon Dec 11 13:30:05 UTC 2023

@Agusrodri Agusrodri merged commit 9014c50 into master Dec 11, 2023
28 checks passed
@Agusrodri Agusrodri deleted the agustin-unlimited-buy-execution branch December 11, 2023 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. not-breaking Does not need to be mentioned in breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants