Upgrade to unstable2507#1029
Conversation
|
|
||
| impl pallet_transaction_payment::Config for Runtime { | ||
| type RuntimeEvent = RuntimeEvent; | ||
| type OnChargeTransaction = impls::tx_payment::FungiblesAdapter< |
There was a problem hiding this comment.
Reasoning for this change: Using FungiblesAdapter (plural) for NativeAndAsset and DotLocation is the same as using FungibleAdapter (singular) with Balances because NativeAndAsset will just forward all calls to Balances for DotLocation.
| pallet-election-provider-multi-block = { version = "0.3.4", default-features = false } | ||
| pallet-staking-async = { version = "0.6.2", default-features = false } | ||
| pallet-election-provider-multi-block = { version = "0.5.0", default-features = false } | ||
| pallet-staking-async = { version = "0.7.0", default-features = false } |
There was a problem hiding this comment.
No changes needed for this bump.
| type OnChargeTransaction = | ||
| pallet_transaction_payment::FungibleAdapter<Balances, ResolveTo<StakingPot, Balances>>; | ||
| type WeightToFee = WeightToFee; | ||
| type WeightToFee = pallet_revive::evm::fees::BlockRatioFee<333333333, 10_815_700_000_000, Self>; |
There was a problem hiding this comment.
Where do these numbers come from?
There was a problem hiding this comment.
This encodes the same fraction as the one in the WeightToFeePolynomial used in WeightToFee, which is defined as:
- numerator:
super::currency::CENTS- this is
1_000_000_000_000 / 30 / 100=333_333_333
- this is
- denominator:
100 * Balance::from(ExtrinsicBaseWeight::get().ref_time())- this is
100 * 1_000 * 108_157=10_815_700_000
- this is
There was a problem hiding this comment.
I corrected the value that was here before, it was wrongly calculated.
There was a problem hiding this comment.
Maybe you can add a sanity check test to ensure that the fee of a simple transaction is sane?
And please put the calculation into a comment above the code so that we can reproduce it later.
There was a problem hiding this comment.
I added a comment with explanation.
|
/cmd bench --runtime asset-hub-kusama --pallet pallet_revive |
|
Command "bench --runtime asset-hub-kusama --pallet pallet_revive" has started 🚀 See logs here |
|
Command "bench --runtime asset-hub-kusama --pallet pallet_revive" has finished ✅ See logs here DetailsSubweight results:No changes found. |
|
/cmd fmt |
| type OnChargeTransaction = | ||
| pallet_transaction_payment::FungibleAdapter<Balances, ResolveTo<StakingPot, Balances>>; | ||
| type WeightToFee = WeightToFee; | ||
| type WeightToFee = pallet_revive::evm::fees::BlockRatioFee<333333333, 10_815_700_000, Self>; |
There was a problem hiding this comment.
can you add a comment here explaining the used WeightToFee? I'm sure it will not age well without clear docs/code-comments..
There was a problem hiding this comment.
I added a comment with explanation.
| type DepositPerChildTrieItem = DepositPerChildTrieItem; | ||
| type DepositPerByte = DepositPerByte; | ||
| type WeightPrice = pallet_transaction_payment::Pallet<Self>; | ||
| // TODO(#840): use `weights::pallet_revive::WeightInfo` here |
There was a problem hiding this comment.
with the new pallet-revive version you should be able to fix this too, right?
There was a problem hiding this comment.
I believe the benchmark is still not fixed. Also we need solc to be installed on the benchmarking bot. We don't have time to get this done right now.
| snowbridge-outbound-queue-runtime-api = { version = "0.17.0", default-features = false } | ||
| snowbridge-outbound-queue-v2-runtime-api = { version = "0.6.0", default-features = false } | ||
| snowbridge-outbound-queue-primitives = { version = "0.6.0", default-features = false } | ||
| snowbridge-pallet-ethereum-client = { version = "0.17.0", default-features = false } | ||
| snowbridge-pallet-inbound-queue = { version = "0.17.0", default-features = false } | ||
| snowbridge-pallet-inbound-queue-v2 = { version = "0.6.0", default-features = false } | ||
| snowbridge-pallet-inbound-queue-fixtures = { version = "0.25.0" } | ||
| snowbridge-pallet-ethereum-client-fixtures = { version = "0.25.0" } | ||
| snowbridge-pallet-outbound-queue = { version = "0.17.0", default-features = false } | ||
| snowbridge-pallet-outbound-queue-v2 = { version = "0.6.0", default-features = false } | ||
| snowbridge-pallet-system = { version = "0.17.0", default-features = false } | ||
| snowbridge-pallet-system-v2 = { version = "0.6.0", default-features = false } | ||
| snowbridge-pallet-system-frontend = { version = "0.6.0", default-features = false } | ||
| snowbridge-inbound-queue-primitives = { version = "0.6.0", default-features = false } | ||
| snowbridge-runtime-common = { version = "0.18.0", default-features = false } | ||
| snowbridge-runtime-test-common = { version = "0.20.0" } | ||
| snowbridge-system-runtime-api = { version = "0.17.0", default-features = false } | ||
| snowbridge-system-v2-runtime-api = { version = "0.6.0", default-features = false } |
There was a problem hiding this comment.
@claravanstaden please confirm the snowbridge pallet versions bump
There was a problem hiding this comment.
All of the version bumps are just because of crate dependency changes.
|
Command "fmt" has started 🚀 See logs here |
|
Command "fmt" has failed ❌! See logs here |
There was a problem hiding this comment.
To bump to the latest: https://matrix.to/#/!cqAmzdIcbOFwrdrubV:parity.io/$Kygjlcxk58wiMVkbVeiK1mAfZtLnkB8i-oVBPnoIb5I?via=parity.io&via=matrix.org&via=web3.foundation
The other Snowbridge crate bumps are correct, its just because the Snowbridge crate dependency updates.
I bumped that crate. |
Prefund Ethereum style testnet accounts
|
The failures for kusama are actually real. We are missing this migration: Needs to be added to the |
|
@athei @TorstenStueber the asset-hub-kusama |
|
Should be fixed by paritytech/polkadot-sdk#10680 |
This upgrades polkadot-sdk crates to the latest version of
unstable2507. The main change is the following backport: paritytech/polkadot-sdk#10552.This is an important step for upgrading the Kusama AH runtime to the latest version of pallet-revive with: