Balance to Asset Balance Conversion (#9076)
* add BalanceConversion trait and implementation * derive some useful traits on Imbalance * Update frame/support/src/traits/tokens/fungibles/imbalance.rs Co-authored-by:Xiliang Chen <xlchen1291@gmail.com> * make BalanceConversion error type configurable * add RuntimeDebug import and derive traits on other Imbalance * formatting * move BalanceConversion trait to frame-support * add necessary trait import Co-authored-by:
Xiliang Chen <xlchen1291@gmail.com>
Showing
- substrate/frame/assets/src/lib.rs 1 addition, 5 deletionssubstrate/frame/assets/src/lib.rs
- substrate/frame/assets/src/tests.rs 27 additions, 1 deletionsubstrate/frame/assets/src/tests.rs
- substrate/frame/assets/src/types.rs 59 additions, 0 deletionssubstrate/frame/assets/src/types.rs
- substrate/frame/support/src/traits/tokens.rs 2 additions, 1 deletionsubstrate/frame/support/src/traits/tokens.rs
- substrate/frame/support/src/traits/tokens/fungible/imbalance.rs 2 additions, 1 deletion...ate/frame/support/src/traits/tokens/fungible/imbalance.rs
- substrate/frame/support/src/traits/tokens/fungibles/imbalance.rs 2 additions, 1 deletion...te/frame/support/src/traits/tokens/fungibles/imbalance.rs
- substrate/frame/support/src/traits/tokens/misc.rs 6 additions, 0 deletionssubstrate/frame/support/src/traits/tokens/misc.rs
Please register or sign in to comment