Asset conversion `get_pool_id` fix (`Ord` does not count with `is_native` flag) (#14572)
* Asset conversion `get_pool_id` fix (`Ord` does not count with `is_native` flag) * Removed unnecessery clones + added `pool_account` to `PoolCreated` event * Fix bench compile * Fix bench * Improved `MultiAssetIdConverter::try_convert` * Removed `into_multiasset_id` from converter and moved to `BenchmarkHelper` * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_asset_conversion * Fixed doc * Typo * Removed `NativeOrAssetId` (test/mock) impl from types.rs to mock.rs... * Typo + 0u32 -> 0 * Update frame/asset-conversion/src/benchmarking.rs Co-authored-by:Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com> * Typo * ".git/.scripts/commands/fmt/fmt.sh" * Fix from Jegor * Try to fix the other failing benchmark * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_asset_conversion * Update frame/asset-conversion/src/lib.rs Co-authored-by:
joe petrowski <25483142+joepetrowski@users.noreply.github.com> * Update frame/asset-conversion/src/types.rs Co-authored-by:
joe petrowski <25483142+joepetrowski@users.noreply.github.com> * Update frame/transaction-payment/asset-conversion-tx-payment/src/mock.rs Co-authored-by:
joe petrowski <25483142+joepetrowski@users.noreply.github.com> * Update frame/asset-conversion/src/mock.rs Co-authored-by:
joe petrowski <25483142+joepetrowski@users.noreply.github.com> * Update bin/node/runtime/src/impls.rs Co-authored-by:
joe petrowski <25483142+joepetrowski@users.noreply.github.com> * Update frame/asset-conversion/src/lib.rs Co-authored-by:
joe petrowski <25483142+joepetrowski@users.noreply.github.com> * Update bin/node/runtime/src/impls.rs Co-authored-by:
joe petrowski <25483142+joepetrowski@users.noreply.github.com> * Reverted NativeOrAssetId --------- Co-authored-by: command-bot <> Co-authored-by:
Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com> Co-authored-by:
Jegor Sidorenko <jegor@parity.io> Co-authored-by:
joe petrowski <25483142+joepetrowski@users.noreply.github.com>
Showing
- substrate/frame/asset-conversion/src/benchmarking.rs 27 additions, 18 deletionssubstrate/frame/asset-conversion/src/benchmarking.rs
- substrate/frame/asset-conversion/src/lib.rs 95 additions, 63 deletionssubstrate/frame/asset-conversion/src/lib.rs
- substrate/frame/asset-conversion/src/mock.rs 1 addition, 0 deletionssubstrate/frame/asset-conversion/src/mock.rs
- substrate/frame/asset-conversion/src/tests.rs 13 additions, 8 deletionssubstrate/frame/asset-conversion/src/tests.rs
- substrate/frame/asset-conversion/src/types.rs 68 additions, 55 deletionssubstrate/frame/asset-conversion/src/types.rs
- substrate/frame/asset-conversion/src/weights.rs 21 additions, 21 deletionssubstrate/frame/asset-conversion/src/weights.rs
- substrate/frame/assets/src/impl_fungibles.rs 1 addition, 1 deletionsubstrate/frame/assets/src/impl_fungibles.rs
- substrate/frame/support/src/traits/tokens/fungibles/regular.rs 2 additions, 1 deletion...rate/frame/support/src/traits/tokens/fungibles/regular.rs
Please register or sign in to comment