• Keith Yeung's avatar
    Add storage size component to weights (#12277) · 03272585
    Keith Yeung authored
    
    
    * Add storage size component to weights
    
    * Rename storage_size to proof_size
    
    * Update primitives/weights/src/weight_v2.rs
    
    Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
    
    * Fixes
    
    * cargo fmt
    
    * Implement custom Decode and CompactAs
    
    * Add missing import
    
    * Fixes
    
    * Remove CompactAs implementation
    
    * Properly migrate from 1D weight
    
    * Remove #[pallet::compact] from Weight parameters
    
    * More #[pallet::compact] removals
    
    * Add unit tests
    
    * Set appropriate default block proof size
    
    * cargo fmt
    
    * Remove nonsensical weight constant
    
    * Test only for the reference time weight in frame_system::limits
    
    * Only check for reference time weight on idle
    
    * Use destructuring syntax
    
    * Update test expectations
    
    * Fixes
    
    * Fixes
    
    * Fixes
    
    * Correctly migrate from 1D weights
    
    * cargo fmt
    
    * Migrate using extra extrinsics instead of custom Decode
    
    * Fixes
    
    * Silence dispatch call warnings that were previously allowed
    
    * Fix gas_left test
    
    * Use OldWeight instead of u64
    
    * Fixes
    
    * Only check for reference time weight in election provider
    
    * Fix test expectations
    
    * Fix test expectations
    
    * Use only reference time weight in grandpa test
    
    * Use only reference time weight in examples test
    
    * Use only reference time weight in examples test
    
    * Fix test expectations
    
    Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
    Co-authored-by: default avatarAlexander Theißen <[email protected]>
    03272585