@@ -82,32 +82,41 @@ impl<T: frame_system::Config> parachain_staking::WeightInfo for WeightInfo<T> {
82
82
Weight :: from_parts ( 3_573_000 as u64 , 0 )
83
83
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 1 as u64 ) )
84
84
}
85
- // Storage: ParachainStaking CandidatePool (r:76 w:0)
86
- // Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(1790), added: 4265, mode: MaxEncodedLen)
87
- // Storage: ParachainStaking BlocksAuthored (r:75 w:0)
88
- // Proof: ParachainStaking BlocksAuthored (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
89
- // Storage: ParachainStaking BlocksRewarded (r:2700 w:2700)
90
- // Proof: ParachainStaking BlocksRewarded (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
91
- // Storage: ParachainStaking Rewards (r:2700 w:2700)
92
- // Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
93
- // Storage: ParachainStaking TotalCollatorStake (r:1 w:0)
94
- // Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
95
- // Storage: ParachainStaking InflationConfig (r:1 w:1)
96
- // Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen)
97
- // Storage: ParachainStaking CounterForCandidatePool (r:1 w:0)
98
- // Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
85
+ /// Storage: `ParachainStaking::CounterForCandidatePool` (r:1 w:0)
86
+ /// Proof: `ParachainStaking::CounterForCandidatePool` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
87
+ /// Storage: `ParachainStaking::CandidatePool` (r:76 w:0)
88
+ /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(1790), added: 4265, mode: `MaxEncodedLen`)
89
+ /// Storage: `ParachainStaking::BlocksAuthored` (r:75 w:0)
90
+ /// Proof: `ParachainStaking::BlocksAuthored` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
91
+ /// Storage: `ParachainStaking::BlocksRewarded` (r:2700 w:2700)
92
+ /// Proof: `ParachainStaking::BlocksRewarded` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
93
+ /// Storage: `ParachainStaking::Rewards` (r:2700 w:2700)
94
+ /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
95
+ /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:0)
96
+ /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
97
+ /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
98
+ /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`)
99
+ /// The range of component `n` is `[0, 75]`.
100
+ /// The range of component `m` is `[0, 35]`.
99
101
fn set_inflation ( n : u32 , m : u32 , ) -> Weight {
100
- Weight :: from_parts ( 663_557_000 as u64 , 0 )
101
- // Standard Error: 4_566_075
102
- . saturating_add ( Weight :: from_parts ( 143_112_464 as u64 , 0 ) . saturating_mul ( n as u64 ) )
103
- // Standard Error: 9_803_263
104
- . saturating_add ( Weight :: from_parts ( 269_841_967 as u64 , 0 ) . saturating_mul ( m as u64 ) )
105
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 152 as u64 ) )
106
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( ( 27 as u64 ) . saturating_mul ( n as u64 ) ) )
107
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( ( 51 as u64 ) . saturating_mul ( m as u64 ) ) )
108
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 145 as u64 ) )
109
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( ( 25 as u64 ) . saturating_mul ( n as u64 ) ) )
110
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( ( 51 as u64 ) . saturating_mul ( m as u64 ) ) )
102
+ // Proof Size summary in bytes:
103
+ // Measured: `0 + m * (7573 ±0) + n * (3709 ±0)`
104
+ // Estimated: `183222 + m * (64823 ±2_167) + n * (31965 ±1_009)`
105
+ // Minimum execution time: 704_611_000 picoseconds.
106
+ Weight :: from_parts ( 707_105_000 , 0 )
107
+ . saturating_add ( Weight :: from_parts ( 0 , 183222 ) )
108
+ // Standard Error: 4_876_636
109
+ . saturating_add ( Weight :: from_parts ( 150_694_630 , 0 ) . saturating_mul ( n. into ( ) ) )
110
+ // Standard Error: 10_470_032
111
+ . saturating_add ( Weight :: from_parts ( 290_425_882 , 0 ) . saturating_mul ( m. into ( ) ) )
112
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 152 ) )
113
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( ( 27_u64 ) . saturating_mul ( n. into ( ) ) ) )
114
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( ( 51_u64 ) . saturating_mul ( m. into ( ) ) ) )
115
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 145 ) )
116
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( ( 25_u64 ) . saturating_mul ( n. into ( ) ) ) )
117
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( ( 51_u64 ) . saturating_mul ( m. into ( ) ) ) )
118
+ . saturating_add ( Weight :: from_parts ( 0 , 64823 ) . saturating_mul ( m. into ( ) ) )
119
+ . saturating_add ( Weight :: from_parts ( 0 , 31965 ) . saturating_mul ( n. into ( ) ) )
111
120
}
112
121
// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:1)
113
122
// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -523,33 +532,310 @@ impl<T: frame_system::Config> parachain_staking::WeightInfo for WeightInfo<T> {
523
532
. saturating_add ( T :: DbWeight :: get ( ) . reads ( 2 as u64 ) )
524
533
. saturating_add ( T :: DbWeight :: get ( ) . writes ( 2 as u64 ) )
525
534
}
526
- // Storage: ParachainStaking LastRewardReduction (r:1 w:1)
527
- // Proof: ParachainStaking LastRewardReduction (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
528
- // Storage: ParachainStaking InflationConfig (r:1 w:1)
529
- // Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen)
530
- // Storage: ParachainStaking CandidatePool (r:76 w:0)
531
- // Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(1790), added: 4265, mode: MaxEncodedLen)
532
- // Storage: ParachainStaking BlocksAuthored (r:75 w:0)
533
- // Proof: ParachainStaking BlocksAuthored (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
534
- // Storage: ParachainStaking BlocksRewarded (r:2700 w:2700)
535
- // Proof: ParachainStaking BlocksRewarded (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
536
- // Storage: ParachainStaking Rewards (r:2700 w:2700)
537
- // Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
538
- // Storage: ParachainStaking TotalCollatorStake (r:1 w:0)
539
- // Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
540
- // Storage: ParachainStaking CounterForCandidatePool (r:1 w:0)
541
- // Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
535
+ /// Storage: `ParachainStaking::CounterForCandidatePool` (r:1 w:0)
536
+ /// Proof: `ParachainStaking::CounterForCandidatePool` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
537
+ /// Storage: `ParachainStaking::LastRewardReduction` (r:1 w:1)
538
+ /// Proof: `ParachainStaking::LastRewardReduction` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
539
+ /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
540
+ /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`)
541
+ /// Storage: `ParachainStaking::CandidatePool` (r:76 w:0)
542
+ /// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(1790), added: 4265, mode: `MaxEncodedLen`)
543
+ /// Storage: `ParachainStaking::BlocksAuthored` (r:75 w:0)
544
+ /// Proof: `ParachainStaking::BlocksAuthored` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
545
+ /// Storage: `ParachainStaking::BlocksRewarded` (r:2700 w:2700)
546
+ /// Proof: `ParachainStaking::BlocksRewarded` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
547
+ /// Storage: `ParachainStaking::Rewards` (r:2700 w:2700)
548
+ /// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
549
+ /// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:0)
550
+ /// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
551
+ /// The range of component `n` is `[0, 75]`.
552
+ /// The range of component `m` is `[0, 35]`.
542
553
fn execute_scheduled_reward_change ( n : u32 , m : u32 , ) -> Weight {
543
- Weight :: from_parts ( 657_155_000 as u64 , 0 )
544
- // Standard Error: 4_390_482
545
- . saturating_add ( Weight :: from_parts ( 136_436_522 as u64 , 0 ) . saturating_mul ( n as u64 ) )
546
- // Standard Error: 9_426_268
547
- . saturating_add ( Weight :: from_parts ( 263_946_048 as u64 , 0 ) . saturating_mul ( m as u64 ) )
548
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 153 as u64 ) )
549
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( ( 27 as u64 ) . saturating_mul ( n as u64 ) ) )
550
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( ( 51 as u64 ) . saturating_mul ( m as u64 ) ) )
551
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 146 as u64 ) )
552
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( ( 25 as u64 ) . saturating_mul ( n as u64 ) ) )
553
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( ( 51 as u64 ) . saturating_mul ( m as u64 ) ) )
554
+ // Proof Size summary in bytes:
555
+ // Measured: `0 + m * (7573 ±0) + n * (3647 ±0)`
556
+ // Estimated: `183222 + m * (64823 ±2_167) + n * (31965 ±1_009)`
557
+ // Minimum execution time: 683_160_000 picoseconds.
558
+ Weight :: from_parts ( 687_351_000 , 0 )
559
+ . saturating_add ( Weight :: from_parts ( 0 , 183222 ) )
560
+ // Standard Error: 4_643_820
561
+ . saturating_add ( Weight :: from_parts ( 141_740_256 , 0 ) . saturating_mul ( n. into ( ) ) )
562
+ // Standard Error: 9_970_180
563
+ . saturating_add ( Weight :: from_parts ( 280_674_034 , 0 ) . saturating_mul ( m. into ( ) ) )
564
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 153 ) )
565
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( ( 27_u64 ) . saturating_mul ( n. into ( ) ) ) )
566
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( ( 51_u64 ) . saturating_mul ( m. into ( ) ) ) )
567
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 146 ) )
568
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( ( 25_u64 ) . saturating_mul ( n. into ( ) ) ) )
569
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( ( 51_u64 ) . saturating_mul ( m. into ( ) ) ) )
570
+ . saturating_add ( Weight :: from_parts ( 0 , 64823 ) . saturating_mul ( m. into ( ) ) )
571
+ . saturating_add ( Weight :: from_parts ( 0 , 31965 ) . saturating_mul ( n. into ( ) ) )
572
+ }
573
+ }
574
+
575
+ #[ cfg( test) ]
576
+ mod tests {
577
+ #[ test]
578
+ fn test_on_initialize_no_action ( ) {
579
+ assert ! (
580
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
581
+ . per_class
582
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
583
+ . max_extrinsic
584
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
585
+ . proof_size( )
586
+ > 515
587
+ ) ;
588
+ }
589
+ #[ test]
590
+ fn test_on_initialize_round_update ( ) {
591
+ assert ! (
592
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
593
+ . per_class
594
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
595
+ . max_extrinsic
596
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
597
+ . proof_size( )
598
+ > 515
599
+ ) ;
600
+ }
601
+ #[ test]
602
+ fn test_on_initialize_network_rewards ( ) {
603
+ assert ! (
604
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
605
+ . per_class
606
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
607
+ . max_extrinsic
608
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
609
+ . proof_size( )
610
+ > 4723
611
+ ) ;
612
+ }
613
+ #[ test]
614
+ fn test_set_inflation ( ) {
615
+ assert ! (
616
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
617
+ . per_class
618
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
619
+ . max_extrinsic
620
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
621
+ . proof_size( )
622
+ > 183222
623
+ ) ;
624
+ }
625
+ #[ test]
626
+ fn test_set_max_selected_candidates ( ) {
627
+ assert ! (
628
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
629
+ . per_class
630
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
631
+ . max_extrinsic
632
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
633
+ . proof_size( )
634
+ > 5168
635
+ ) ;
636
+ }
637
+ #[ test]
638
+ fn test_set_blocks_per_round ( ) {
639
+ assert ! (
640
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
641
+ . per_class
642
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
643
+ . max_extrinsic
644
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
645
+ . proof_size( )
646
+ > 515
647
+ ) ;
648
+ }
649
+ #[ test]
650
+ fn test_force_remove_candidate ( ) {
651
+ assert ! (
652
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
653
+ . per_class
654
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
655
+ . max_extrinsic
656
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
657
+ . proof_size( )
658
+ > 116721
659
+ ) ;
660
+ }
661
+ #[ test]
662
+ fn test_join_candidates ( ) {
663
+ assert ! (
664
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
665
+ . per_class
666
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
667
+ . max_extrinsic
668
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
669
+ . proof_size( )
670
+ > 22098
671
+ ) ;
672
+ }
673
+ #[ test]
674
+ fn test_init_leave_candidates ( ) {
675
+ assert ! (
676
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
677
+ . per_class
678
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
679
+ . max_extrinsic
680
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
681
+ . proof_size( )
682
+ > 78143
683
+ ) ;
684
+ }
685
+ #[ test]
686
+ fn test_cancel_leave_candidates ( ) {
687
+ assert ! (
688
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
689
+ . per_class
690
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
691
+ . max_extrinsic
692
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
693
+ . proof_size( )
694
+ > 13653
695
+ ) ;
696
+ }
697
+ #[ test]
698
+ fn test_execute_leave_candidates ( ) {
699
+ assert ! (
700
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
701
+ . per_class
702
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
703
+ . max_extrinsic
704
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
705
+ . proof_size( )
706
+ > 25299
707
+ ) ;
708
+ }
709
+ #[ test]
710
+ fn test_candidate_stake_more ( ) {
711
+ assert ! (
712
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
713
+ . per_class
714
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
715
+ . max_extrinsic
716
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
717
+ . proof_size( )
718
+ > 27204
719
+ ) ;
720
+ }
721
+ #[ test]
722
+ fn test_candidate_stake_less ( ) {
723
+ assert ! (
724
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
725
+ . per_class
726
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
727
+ . max_extrinsic
728
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
729
+ . proof_size( )
730
+ > 20312
731
+ ) ;
732
+ }
733
+ #[ test]
734
+ fn test_join_delegators ( ) {
735
+ assert ! (
736
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
737
+ . per_class
738
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
739
+ . max_extrinsic
740
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
741
+ . proof_size( )
742
+ > 30914
743
+ ) ;
744
+ }
745
+ #[ test]
746
+ fn test_delegator_stake_more ( ) {
747
+ assert ! (
748
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
749
+ . per_class
750
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
751
+ . max_extrinsic
752
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
753
+ . proof_size( )
754
+ > 29256
755
+ ) ;
756
+ }
757
+ #[ test]
758
+ fn test_delegator_stake_less ( ) {
759
+ assert ! (
760
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
761
+ . per_class
762
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
763
+ . max_extrinsic
764
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
765
+ . proof_size( )
766
+ > 22875
767
+ ) ;
768
+ }
769
+ #[ test]
770
+ fn test_leave_delegators ( ) {
771
+ assert ! (
772
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
773
+ . per_class
774
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
775
+ . max_extrinsic
776
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
777
+ . proof_size( )
778
+ > 22875
779
+ ) ;
780
+ }
781
+ #[ test]
782
+ fn test_unlock_unstaked ( ) {
783
+ assert ! (
784
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
785
+ . per_class
786
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
787
+ . max_extrinsic
788
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
789
+ . proof_size( )
790
+ > 9137
791
+ ) ;
792
+ }
793
+ #[ test]
794
+ fn test_increment_delegator_rewards ( ) {
795
+ assert ! (
796
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
797
+ . per_class
798
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
799
+ . max_extrinsic
800
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
801
+ . proof_size( )
802
+ > 11258
803
+ ) ;
804
+ }
805
+ #[ test]
806
+ fn test_increment_collator_rewards ( ) {
807
+ assert ! (
808
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
809
+ . per_class
810
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
811
+ . max_extrinsic
812
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
813
+ . proof_size( )
814
+ > 12960
815
+ ) ;
816
+ }
817
+ #[ test]
818
+ fn test_claim_rewards ( ) {
819
+ assert ! (
820
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
821
+ . per_class
822
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
823
+ . max_extrinsic
824
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
825
+ . proof_size( )
826
+ > 5138
827
+ ) ;
828
+ }
829
+ #[ test]
830
+ fn test_execute_scheduled_reward_change ( ) {
831
+ assert ! (
832
+ <crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
833
+ . per_class
834
+ . get( frame_support:: dispatch:: DispatchClass :: Normal )
835
+ . max_extrinsic
836
+ . unwrap_or_else( <sp_weights:: Weight as sp_runtime:: traits:: Bounded >:: max_value)
837
+ . proof_size( )
838
+ > 183222
839
+ ) ;
554
840
}
555
841
}
0 commit comments