-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Moving pallet-asset-tx-payment
from cumulus to substrate
#10127
Moving pallet-asset-tx-payment
from cumulus to substrate
#10127
Conversation
Thank you for your contribution! I took the liberty of moving the pallet into |
…x-payment-from-cumulus
@shawntabrizi Do we want to add this pallet to the node runtime? Will break transaction format, but would probably be good to make sure that it keeps working with any changes. |
The Substrate node is just for testing, for nothing else. So, it should be fine to add this. |
@georgesdib |
I had to change the Balance type to u128. Also harmonised that pallet's version
Done, however I had to do quite a few changes, and some (like changing |
…orgesdib/substrate into asset-tx-payment-from-cumulus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The SignedExtension is replaced, not added.
@jacogr I imagine this PR would have an impact on how Polkadot-js handles the default Substrate node. |
No impact, the metadata defined which extensions should be used. (As long as it knows the type and in this case it does... assuming no changes to the format of the extension...) |
from `0.3.1` to `0.3.2`
It's not. I have reverted the |
All checks are green, @kianenigma @tomusdrw look good to merge? |
into asset-tx-payment-from-cumulus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Co-authored-by: Kian Paimani <[email protected]>
Reverting changes which broke cargo fmt
@apopiak we have all approvals, shall we merge it? |
bot merge |
/tip small |
Please fix the following problems before calling the tip bot again:
|
@georgesdib if you add your address, I can ping the bot another time. |
Done, thank you very much! |
/tip small |
A small tip was successfully submitted for georgesdib (131dPecTmpTC1p1ofemufqFBJo9vNbV7dkgN7vWwKnaSMkC4 on polkadot). |
…h#10127) * Moving `pallet-asset-tx-payment` from cumulus * move pallet-asset-tx-payment into transaction payment directory * cargo +nightly fmt * Adding `pallet-asset-tx-payment` to node runtime I had to change the Balance type to u128. Also harmonised that pallet's version * Updating cargo.lock after merge * forgot this * Adding tx-payment signature * Missed one more * `transaction-payment` replaced in`SignedExtension` by `asset-tx-payment` and not added * Fixing benches * add test to verify that we don't charge on post-dispatch if we didn't on pre-dispatch * add (failing) test for asset tx payment of unsigned extrinsics * fix test by removing debug_assert * cargo +nightly fmt * typo in `Cargo.lock` * Object defined twice in lock file * cargo update * remove todo * Apply formatting suggestions from code review Co-authored-by: Kian Paimani <[email protected]> * Refactoring `post_dispatch` of `asset-tx-payment` to reuse `post_dispatch` of `transaction-payment` if the fee asset is native Removing unneeded imports. * Removing redundant `TODO` * Reverting an accidental bump of `impl-serde` from `0.3.1` to `0.3.2` * Revert unneeded changes to `cargo.lock` * Update frame/transaction-payment/asset-tx-payment/src/payment.rs Co-authored-by: Kian Paimani <[email protected]> * Fixing cargo fmt Reverting changes which broke cargo fmt Co-authored-by: Alexander Popiak <[email protected]> Co-authored-by: Alexander Popiak <[email protected]> Co-authored-by: Kian Paimani <[email protected]>
…aritytech#10127)" This reverts commit 4581dd9.
…h#10127) * Moving `pallet-asset-tx-payment` from cumulus * move pallet-asset-tx-payment into transaction payment directory * cargo +nightly fmt * Adding `pallet-asset-tx-payment` to node runtime I had to change the Balance type to u128. Also harmonised that pallet's version * Updating cargo.lock after merge * forgot this * Adding tx-payment signature * Missed one more * `transaction-payment` replaced in`SignedExtension` by `asset-tx-payment` and not added * Fixing benches * add test to verify that we don't charge on post-dispatch if we didn't on pre-dispatch * add (failing) test for asset tx payment of unsigned extrinsics * fix test by removing debug_assert * cargo +nightly fmt * typo in `Cargo.lock` * Object defined twice in lock file * cargo update * remove todo * Apply formatting suggestions from code review Co-authored-by: Kian Paimani <[email protected]> * Refactoring `post_dispatch` of `asset-tx-payment` to reuse `post_dispatch` of `transaction-payment` if the fee asset is native Removing unneeded imports. * Removing redundant `TODO` * Reverting an accidental bump of `impl-serde` from `0.3.1` to `0.3.2` * Revert unneeded changes to `cargo.lock` * Update frame/transaction-payment/asset-tx-payment/src/payment.rs Co-authored-by: Kian Paimani <[email protected]> * Fixing cargo fmt Reverting changes which broke cargo fmt Co-authored-by: Alexander Popiak <[email protected]> Co-authored-by: Alexander Popiak <[email protected]> Co-authored-by: Kian Paimani <[email protected]>
Fixes paritytech/cumulus#688.
Moving
pallet-asset-tx-payment
into substrate given there is nothing cumulus specific in it.@apopiak @nukemandan
related cumulus PR building on this one: paritytech/cumulus#712
Polkadot address: 131dPecTmpTC1p1ofemufqFBJo9vNbV7dkgN7vWwKnaSMkC4