referrerpolicy=no-referrer-when-downgrade

snowbridge_pallet_system_frontend/
weights.rs

1
2//! Autogenerated weights for `snowbridge_system`
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
5//! DATE: 2023-10-09, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `crake.local`, CPU: `<UNKNOWN>`
8//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("bridge-hub-rococo-dev")`, DB CACHE: `1024`
9
10// Executed Command:
11// target/release/polkadot-parachain
12// benchmark
13// pallet
14// --chain
15// bridge-hub-rococo-dev
16// --pallet=snowbridge_system
17// --extrinsic=*
18// --execution=wasm
19// --wasm-execution=compiled
20// --template
21// ../parachain/templates/module-weight-template.hbs
22// --output
23// ../parachain/pallets/control/src/weights.rs
24
25#![cfg_attr(rustfmt, rustfmt_skip)]
26#![allow(unused_parens)]
27#![allow(unused_imports)]
28#![allow(missing_docs)]
29
30use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
31use core::marker::PhantomData;
32
33/// Weight functions needed for `snowbridge_system`.
34pub trait WeightInfo {
35	fn register_token() -> Weight;
36	fn add_tip() -> Weight;
37}
38
39// For backwards compatibility and tests.
40impl WeightInfo for () {
41	fn register_token() -> Weight {
42		// Proof Size summary in bytes:
43		//  Measured:  `256`
44		//  Estimated: `6044`
45		// Minimum execution time: 45_000_000 picoseconds.
46		Weight::from_parts(45_000_000, 6044)
47			.saturating_add(RocksDbWeight::get().reads(5_u64))
48			.saturating_add(RocksDbWeight::get().writes(3_u64))
49	}
50
51	fn add_tip() -> Weight {
52		// Proof Size summary in bytes:
53		//  Measured:  `256`
54		//  Estimated: `6044`
55		// Minimum execution time: 45_000_000 picoseconds.
56		Weight::from_parts(45_000_000, 6044)
57			.saturating_add(RocksDbWeight::get().reads(5_u64))
58			.saturating_add(RocksDbWeight::get().writes(3_u64))
59	}
60}