pub fn worst_case_authorization_weight<T: Config>(n: u32) -> WeightExpand description
Pre-dispatch worst-case weight for processing n EIP-7702 authorizations.
Must be used as the reservation in #[pallet::weight(...)] and as the baseline against
which the post-dispatch refund is computed, so that both expressions agree and the
refund accounting balances out to the actual cost.
Takes a component-wise max of the all-new and all-existing aggregations: on at least one
asset-hub runtime process_existing_account_authorization has a larger per-auth proof_size
than process_new_account_authorization (the populated trie node carries more witness data),
so neither dimension uniformly dominates.