|
48 | 48 | #![allow(dead_code)] |
49 | 49 |
|
50 | 50 | use core::marker::PhantomData; |
| 51 | +use frame_support::weights::constants::RocksDbWeight; |
51 | 52 | use frame_support::{traits::Get, weights::Weight}; |
52 | 53 |
|
53 | 54 | /// Weight info trait. |
@@ -122,3 +123,76 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> { |
122 | 123 | .saturating_add(T::DbWeight::get().writes(1)) |
123 | 124 | } |
124 | 125 | } |
| 126 | +// For backwards compatibility and tests |
| 127 | +impl WeightInfo for () { |
| 128 | + // Storage: XcAssetConfig AssetIdToLocation (r:1 w:1) |
| 129 | + // Proof Skipped: XcAssetConfig AssetIdToLocation (max_values: None, max_size: None, mode: Measured) |
| 130 | + // Storage: EVM AccountCodes (r:0 w:1) |
| 131 | + // Proof Skipped: EVM AccountCodes (max_values: None, max_size: None, mode: Measured) |
| 132 | + // Storage: XcAssetConfig AssetLocationToId (r:0 w:1) |
| 133 | + // Proof Skipped: XcAssetConfig AssetLocationToId (max_values: None, max_size: None, mode: Measured) |
| 134 | + fn register_asset_location() -> Weight { |
| 135 | + // Minimum execution time: 15_540 nanoseconds. |
| 136 | + Weight::from_parts(16_114_000, 0) |
| 137 | + .saturating_add(Weight::from_parts(0, 2493)) |
| 138 | + .saturating_add(RocksDbWeight::get().reads(1_u64)) |
| 139 | + .saturating_add(RocksDbWeight::get().writes(3_u64)) |
| 140 | + } |
| 141 | + // Storage: XcAssetConfig AssetLocationToId (r:1 w:0) |
| 142 | + // Proof Skipped: XcAssetConfig AssetLocationToId (max_values: None, max_size: None, mode: Measured) |
| 143 | + // Storage: XcAssetConfig AssetLocationUnitsPerSecond (r:0 w:1) |
| 144 | + // Proof Skipped: XcAssetConfig AssetLocationUnitsPerSecond (max_values: None, max_size: None, mode: Measured) |
| 145 | + fn set_asset_units_per_second() -> Weight { |
| 146 | + // Minimum execution time: 15_297 nanoseconds. |
| 147 | + Weight::from_parts(15_551_000, 0) |
| 148 | + .saturating_add(Weight::from_parts(0, 2661)) |
| 149 | + .saturating_add(RocksDbWeight::get().reads(1_u64)) |
| 150 | + .saturating_add(RocksDbWeight::get().writes(1_u64)) |
| 151 | + } |
| 152 | + // Storage: XcAssetConfig AssetIdToLocation (r:1 w:1) |
| 153 | + // Proof Skipped: XcAssetConfig AssetIdToLocation (max_values: None, max_size: None, mode: Measured) |
| 154 | + // Storage: XcAssetConfig AssetLocationUnitsPerSecond (r:1 w:2) |
| 155 | + // Proof Skipped: XcAssetConfig AssetLocationUnitsPerSecond (max_values: None, max_size: None, mode: Measured) |
| 156 | + // Storage: XcAssetConfig AssetLocationToId (r:0 w:2) |
| 157 | + // Proof Skipped: XcAssetConfig AssetLocationToId (max_values: None, max_size: None, mode: Measured) |
| 158 | + fn change_existing_asset_location() -> Weight { |
| 159 | + // Minimum execution time: 22_357 nanoseconds. |
| 160 | + Weight::from_parts(22_572_000, 0) |
| 161 | + .saturating_add(Weight::from_parts(0, 5373)) |
| 162 | + .saturating_add(RocksDbWeight::get().reads(2_u64)) |
| 163 | + .saturating_add(RocksDbWeight::get().writes(5_u64)) |
| 164 | + } |
| 165 | + // Storage: XcAssetConfig AssetLocationUnitsPerSecond (r:0 w:1) |
| 166 | + // Proof Skipped: XcAssetConfig AssetLocationUnitsPerSecond (max_values: None, max_size: None, mode: Measured) |
| 167 | + fn remove_payment_asset() -> Weight { |
| 168 | + // Minimum execution time: 9_707 nanoseconds. |
| 169 | + Weight::from_parts(10_005_000, 0) |
| 170 | + .saturating_add(Weight::from_parts(0, 0)) |
| 171 | + .saturating_add(RocksDbWeight::get().writes(1_u64)) |
| 172 | + } |
| 173 | + // Storage: XcAssetConfig AssetIdToLocation (r:1 w:1) |
| 174 | + // Proof Skipped: XcAssetConfig AssetIdToLocation (max_values: None, max_size: None, mode: Measured) |
| 175 | + // Storage: EVM AccountCodes (r:0 w:1) |
| 176 | + // Proof Skipped: EVM AccountCodes (max_values: None, max_size: None, mode: Measured) |
| 177 | + // Storage: XcAssetConfig AssetLocationUnitsPerSecond (r:0 w:1) |
| 178 | + // Proof Skipped: XcAssetConfig AssetLocationUnitsPerSecond (max_values: None, max_size: None, mode: Measured) |
| 179 | + // Storage: XcAssetConfig AssetLocationToId (r:0 w:1) |
| 180 | + // Proof Skipped: XcAssetConfig AssetLocationToId (max_values: None, max_size: None, mode: Measured) |
| 181 | + fn remove_asset() -> Weight { |
| 182 | + // Minimum execution time: 18_645 nanoseconds. |
| 183 | + Weight::from_parts(18_878_000, 0) |
| 184 | + .saturating_add(Weight::from_parts(0, 2987)) |
| 185 | + .saturating_add(RocksDbWeight::get().reads(1_u64)) |
| 186 | + .saturating_add(RocksDbWeight::get().writes(4_u64)) |
| 187 | + } |
| 188 | + |
| 189 | + fn update_migration_step() -> Weight { |
| 190 | + // Proof Size summary in bytes: |
| 191 | + // Measured: `0` |
| 192 | + // Estimated: `0` |
| 193 | + // Minimum execution time: 6_537_000 picoseconds. |
| 194 | + Weight::from_parts(6_730_000, 0) |
| 195 | + .saturating_add(Weight::from_parts(0, 0)) |
| 196 | + .saturating_add(RocksDbWeight::get().writes(1)) |
| 197 | + } |
| 198 | +} |
0 commit comments