decouple transaction payment and currency (#6912)
* wip: setup types * fix types * make tx payment pallet independent from balances * fix dependent tests * comments * restructure a bit and include more info * clean up ugly phantom * reduce complexity * minor doc improvements * use shorthand * doc * fix line lenght and style * readd BalanceOf * some clarifications and readability improvements * move balance type to OnChargeTransaction * remove noise * fix style * Apply suggestions from code review improved documentation Co-authored-by:Alexander Theißen <alex.theissen@me.com> * Improve naming and documentation Apply suggestions from code review Co-authored-by:
Alexander Theißen <alex.theissen@me.com> * Apply suggestions from code review Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * always call withdraw_fee * move NegativeImbalanceOf to payment module * fix unused import Co-authored-by:
Alexander Theißen <alex.theissen@me.com> Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Showing
- substrate/bin/node-template/runtime/src/lib.rs 2 additions, 2 deletionssubstrate/bin/node-template/runtime/src/lib.rs
- substrate/bin/node/runtime/src/lib.rs 2 additions, 3 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/balances/src/tests_composite.rs 2 additions, 2 deletionssubstrate/frame/balances/src/tests_composite.rs
- substrate/frame/balances/src/tests_local.rs 2 additions, 2 deletionssubstrate/frame/balances/src/tests_local.rs
- substrate/frame/executive/src/lib.rs 2 additions, 2 deletionssubstrate/frame/executive/src/lib.rs
- substrate/frame/transaction-payment/src/lib.rs 48 additions, 67 deletionssubstrate/frame/transaction-payment/src/lib.rs
- substrate/frame/transaction-payment/src/payment.rs 127 additions, 0 deletionssubstrate/frame/transaction-payment/src/payment.rs
Please register or sign in to comment