@@ -48,23 +48,93 @@ use core::marker::PhantomData;
48
48
49
49
/// Weight functions needed for pallet_evm.
50
50
pub trait WeightInfo {
51
+ fn runner_execute ( x : u32 , ) -> Weight ;
51
52
fn withdraw ( ) -> Weight ;
52
53
}
53
54
54
55
/// Weights for pallet_evm using the Substrate node and recommended hardware.
55
56
pub struct SubstrateWeight < T > ( PhantomData < T > ) ;
56
57
impl < T : frame_system:: Config > WeightInfo for SubstrateWeight < T > {
58
+ /// Storage: BaseFee BaseFeePerGas (r:1 w:0)
59
+ /// Proof: BaseFee BaseFeePerGas (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
60
+ /// Storage: System Account (r:2 w:1)
61
+ /// Proof: System Account (max_values: None, max_size: Some(116), added: 2591, mode: MaxEncodedLen)
62
+ /// Storage: EVMChainId ChainId (r:1 w:0)
63
+ /// Proof: EVMChainId ChainId (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
64
+ /// Storage: EVM AccountCodes (r:2 w:0)
65
+ /// Proof Skipped: EVM AccountCodes (max_values: None, max_size: None, mode: Measured)
66
+ /// Storage: System Number (r:1 w:0)
67
+ /// Proof: System Number (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
68
+ /// Storage: System ExecutionPhase (r:1 w:0)
69
+ /// Proof: System ExecutionPhase (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
70
+ /// Storage: System EventCount (r:1 w:1)
71
+ /// Proof: System EventCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
72
+ /// Storage: System Events (r:1 w:1)
73
+ /// Proof Skipped: System Events (max_values: Some(1), max_size: None, mode: Measured)
74
+ /// Storage: System Digest (r:1 w:0)
75
+ /// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
76
+ /// Storage: EVM AccountStorages (r:1 w:0)
77
+ /// Proof Skipped: EVM AccountStorages (max_values: None, max_size: None, mode: Measured)
78
+ /// Storage: Balances TotalIssuance (r:1 w:1)
79
+ /// Proof: Balances TotalIssuance (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
80
+ /// The range of component `x` is `[1, 10000000]`.
81
+ fn runner_execute ( x : u32 , ) -> Weight {
82
+ // Proof Size summary in bytes:
83
+ // Measured: `913`
84
+ // Estimated: `6853`
85
+ // Minimum execution time: 20_400_192_000 picoseconds.
86
+ Weight :: from_parts ( 20_767_272_339 , 6853 )
87
+ // Standard Error: 33
88
+ . saturating_add ( Weight :: from_parts ( 42 , 0 ) . saturating_mul ( x. into ( ) ) )
89
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 13_u64 ) )
90
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 4_u64 ) )
91
+ }
57
92
fn withdraw ( ) -> Weight {
58
93
// Proof Size summary in bytes:
59
94
// Measured: `0`
60
95
// Estimated: `0`
61
96
// Minimum execution time: 2_000_000 picoseconds.
62
97
Weight :: from_parts ( 2_000_000 , 0 )
63
98
}
99
+
64
100
}
65
101
66
102
// For backwards compatibility and tests
67
103
impl WeightInfo for ( ) {
104
+ /// Storage: BaseFee BaseFeePerGas (r:1 w:0)
105
+ /// Proof: BaseFee BaseFeePerGas (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
106
+ /// Storage: System Account (r:2 w:1)
107
+ /// Proof: System Account (max_values: None, max_size: Some(116), added: 2591, mode: MaxEncodedLen)
108
+ /// Storage: EVMChainId ChainId (r:1 w:0)
109
+ /// Proof: EVMChainId ChainId (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
110
+ /// Storage: EVM AccountCodes (r:2 w:0)
111
+ /// Proof Skipped: EVM AccountCodes (max_values: None, max_size: None, mode: Measured)
112
+ /// Storage: System Number (r:1 w:0)
113
+ /// Proof: System Number (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
114
+ /// Storage: System ExecutionPhase (r:1 w:0)
115
+ /// Proof: System ExecutionPhase (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
116
+ /// Storage: System EventCount (r:1 w:1)
117
+ /// Proof: System EventCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
118
+ /// Storage: System Events (r:1 w:1)
119
+ /// Proof Skipped: System Events (max_values: Some(1), max_size: None, mode: Measured)
120
+ /// Storage: System Digest (r:1 w:0)
121
+ /// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
122
+ /// Storage: EVM AccountStorages (r:1 w:0)
123
+ /// Proof Skipped: EVM AccountStorages (max_values: None, max_size: None, mode: Measured)
124
+ /// Storage: Balances TotalIssuance (r:1 w:1)
125
+ /// Proof: Balances TotalIssuance (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
126
+ /// The range of component `x` is `[1, 10000000]`.
127
+ fn runner_execute ( x : u32 , ) -> Weight {
128
+ // Proof Size summary in bytes:
129
+ // Measured: `913`
130
+ // Estimated: `6853`
131
+ // Minimum execution time: 20_400_192_000 picoseconds.
132
+ Weight :: from_parts ( 20_767_272_339 , 6853 )
133
+ // Standard Error: 33
134
+ . saturating_add ( Weight :: from_parts ( 42 , 0 ) . saturating_mul ( x. into ( ) ) )
135
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 13_u64 ) )
136
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 4_u64 ) )
137
+ }
68
138
fn withdraw ( ) -> Weight {
69
139
// Proof Size summary in bytes:
70
140
// Measured: `0`
0 commit comments