mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 04:07:57 +00:00
bda4e75ac4
Part of https://github.com/paritytech/polkadot-sdk/issues/226 Related https://github.com/paritytech/polkadot-sdk/issues/1833 - Deprecate `CurrencyAdapter` and introduce `FungibleAdapter` - Deprecate `ToStakingPot` and replace usage with `ResolveTo` - Required creating a new `StakingPotAccountId` struct that implements `TypedGet` for the staking pot account ID - Update parachain common utils `DealWithFees`, `ToAuthor` and `AssetsToBlockAuthor` implementations to use `fungible` - Update runtime XCM Weight Traders to use `ResolveTo` instead of `ToStakingPot` - Update runtime Transaction Payment pallets to use `FungibleAdapter` instead of `CurrencyAdapter` - [x] Blocked by https://github.com/paritytech/polkadot-sdk/pull/1296, needs the `Unbalanced::decrease_balance` fix
60 lines
1.7 KiB
Plaintext
60 lines
1.7 KiB
Plaintext
title: Migrate Fee Payment from Currency to fungible traits
|
|
|
|
doc:
|
|
- audience: Runtime Dev
|
|
description: |
|
|
Deprecates the `CurrencyAdapter` and introduces `FungibleAdapter`
|
|
Deprecates `ToStakingPot` and replaces usage with `ResolveTo`
|
|
Updated `DealWithFees`, `ToAuthor`, `AssetsToBlockAuthor` to all use `fungible` traits
|
|
Updated runtime XCM Weight Traders to use `ResolveTo`
|
|
Updated runtime TransactionPayment pallets to use `FungibleAdapter` instead of `CurrencyAdapter`
|
|
|
|
Runtime Migration Guide:
|
|
- Replace usage of `CurrencyAdapter` with `FungibleAdapter`
|
|
- Replace usage of `ToStakingPot<Runtime>` with `ResolveTo<pallet_collator_selection::StakingPotAccountId<Runtime>, Balances>`
|
|
|
|
crates:
|
|
- name: pallet-collator-selection
|
|
bump: minor
|
|
- name: parachains-common
|
|
bump: major
|
|
- name: asset-hub-rococo-runtime
|
|
bump: major
|
|
- name: asset-hub-westend-runtime
|
|
bump: major
|
|
- name: bridge-hub-westend-runtime
|
|
bump: major
|
|
- name: bridge-hub-rococo-runtime
|
|
bump: major
|
|
- name: collectives-westend-runtime
|
|
bump: major
|
|
- name: contracts-rococo-runtime
|
|
bump: major
|
|
- name: coretime-rococo-runtime
|
|
bump: major
|
|
- name: coretime-westend-runtime
|
|
bump: major
|
|
- name: people-westend-runtime
|
|
bump: major
|
|
- name: people-rococo-runtime
|
|
bump: major
|
|
- name: polkadot-runtime-common
|
|
bump: major
|
|
- name: westend-runtime
|
|
bump: major
|
|
- name: rococo-runtime
|
|
bump: major
|
|
- name: staging-xcm-builder
|
|
bump: major
|
|
- name: kitchensink-runtime
|
|
bump: major
|
|
- name: pallet-transaction-payment
|
|
bump: minor
|
|
- name: minimal-template-runtime
|
|
bump: major
|
|
- name: parachain-template-runtime
|
|
bump: major
|
|
- name: solochain-template-runtime
|
|
bump: major
|
|
|