pub trait WeightInfo {
    // Required methods
    fn transfer_to_sidechain() -> Weight;
    fn request_from_sidechain() -> Weight;
    fn register_incoming_request() -> Weight;
    fn finalize_incoming_request() -> Weight;
    fn approve_request() -> Weight;
    fn approve_request_finalize() -> Weight;
    fn abort_request() -> Weight;
}
Expand description

Weight functions needed for eth_bridge.

Required Methods§

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn transfer_to_sidechain() -> Weight

Storage: System Account (r:2 w:2) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: EthBridge BridgeStatuses (r:1 w:0) Proof Skipped: EthBridge BridgeStatuses (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RequestStatuses (r:1 w:1) Proof Skipped: EthBridge RequestStatuses (max_values: None, max_size: None, mode: Measured) Storage: EthBridge Requests (r:1 w:1) Proof Skipped: EthBridge Requests (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RegisteredAsset (r:1 w:0) Proof Skipped: EthBridge RegisteredAsset (max_values: None, max_size: None, mode: Measured) Storage: EthBridge BridgeAccount (r:1 w:0) Proof Skipped: EthBridge BridgeAccount (max_values: None, max_size: None, mode: Measured) Storage: EthBridge AccountRequests (r:1 w:1) Proof Skipped: EthBridge AccountRequests (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RequestsQueue (r:1 w:1) Proof Skipped: EthBridge RequestsQueue (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RequestSubmissionHeight (r:0 w:1) Proof Skipped: EthBridge RequestSubmissionHeight (max_values: None, max_size: None, mode: Measured)

source§

fn request_from_sidechain() -> Weight

Storage: EthBridge BridgeStatuses (r:1 w:0) Proof Skipped: EthBridge BridgeStatuses (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RequestStatuses (r:1 w:1) Proof Skipped: EthBridge RequestStatuses (max_values: None, max_size: None, mode: Measured) Storage: EthBridge Requests (r:1 w:1) Proof Skipped: EthBridge Requests (max_values: None, max_size: None, mode: Measured) Storage: EthBridge AccountRequests (r:1 w:1) Proof Skipped: EthBridge AccountRequests (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RequestsQueue (r:1 w:1) Proof Skipped: EthBridge RequestsQueue (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RequestSubmissionHeight (r:0 w:1) Proof Skipped: EthBridge RequestSubmissionHeight (max_values: None, max_size: None, mode: Measured)

source§

fn register_incoming_request() -> Weight

Storage: EthBridge BridgeAccount (r:1 w:0) Proof Skipped: EthBridge BridgeAccount (max_values: None, max_size: None, mode: Measured) Storage: EthBridge Requests (r:1 w:1) Proof Skipped: EthBridge Requests (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RequestsQueue (r:1 w:1) Proof Skipped: EthBridge RequestsQueue (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: EthBridge AccountRequests (r:1 w:1) Proof Skipped: EthBridge AccountRequests (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RequestStatuses (r:0 w:2) Proof Skipped: EthBridge RequestStatuses (max_values: None, max_size: None, mode: Measured) Storage: EthBridge LoadToIncomingRequestHash (r:0 w:1) Proof Skipped: EthBridge LoadToIncomingRequestHash (max_values: None, max_size: None, mode: Measured)

source§

fn finalize_incoming_request() -> Weight

Storage: EthBridge BridgeAccount (r:1 w:0) Proof Skipped: EthBridge BridgeAccount (max_values: None, max_size: None, mode: Measured) Storage: EthBridge Requests (r:1 w:0) Proof Skipped: EthBridge Requests (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RequestStatuses (r:1 w:1) Proof Skipped: EthBridge RequestStatuses (max_values: None, max_size: None, mode: Measured) Storage: XorFee Multiplier (r:1 w:0) Proof Skipped: XorFee Multiplier (max_values: Some(1), max_size: None, mode: Measured) Storage: System Account (r:2 w:2) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: EthBridge RequestsQueue (r:1 w:1) Proof Skipped: EthBridge RequestsQueue (max_values: None, max_size: None, mode: Measured)

source§

fn approve_request() -> Weight

Storage: EthBridge Peers (r:1 w:0) Proof Skipped: EthBridge Peers (max_values: None, max_size: None, mode: Measured) Storage: EthBridge Requests (r:1 w:0) Proof Skipped: EthBridge Requests (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RegisteredSidechainToken (r:1 w:0) Proof Skipped: EthBridge RegisteredSidechainToken (max_values: None, max_size: None, mode: Measured) Storage: EthBridge SidechainAssetPrecision (r:1 w:0) Proof Skipped: EthBridge SidechainAssetPrecision (max_values: None, max_size: None, mode: Measured) Storage: Assets AssetInfos (r:1 w:0) Proof Skipped: Assets AssetInfos (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RequestApprovals (r:1 w:1) Proof Skipped: EthBridge RequestApprovals (max_values: None, max_size: None, mode: Measured) Storage: EthBridge PendingPeer (r:1 w:0) Proof Skipped: EthBridge PendingPeer (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RequestStatuses (r:1 w:0) Proof Skipped: EthBridge RequestStatuses (max_values: None, max_size: None, mode: Measured)

source§

fn approve_request_finalize() -> Weight

Storage: EthBridge Peers (r:1 w:0) Proof Skipped: EthBridge Peers (max_values: None, max_size: None, mode: Measured) Storage: EthBridge Requests (r:1 w:0) Proof Skipped: EthBridge Requests (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RegisteredSidechainToken (r:1 w:0) Proof Skipped: EthBridge RegisteredSidechainToken (max_values: None, max_size: None, mode: Measured) Storage: EthBridge SidechainAssetPrecision (r:1 w:0) Proof Skipped: EthBridge SidechainAssetPrecision (max_values: None, max_size: None, mode: Measured) Storage: Assets AssetInfos (r:1 w:0) Proof Skipped: Assets AssetInfos (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RequestApprovals (r:1 w:1) Proof Skipped: EthBridge RequestApprovals (max_values: None, max_size: None, mode: Measured) Storage: EthBridge PendingPeer (r:1 w:0) Proof Skipped: EthBridge PendingPeer (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RequestStatuses (r:1 w:1) Proof Skipped: EthBridge RequestStatuses (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RegisteredAsset (r:1 w:0) Proof Skipped: EthBridge RegisteredAsset (max_values: None, max_size: None, mode: Measured) Storage: EthBridge BridgeAccount (r:1 w:0) Proof Skipped: EthBridge BridgeAccount (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: EthBridge RequestsQueue (r:1 w:1) Proof Skipped: EthBridge RequestsQueue (max_values: None, max_size: None, mode: Measured)

source§

fn abort_request() -> Weight

Storage: EthBridge BridgeAccount (r:1 w:0) Proof Skipped: EthBridge BridgeAccount (max_values: None, max_size: None, mode: Measured) Storage: EthBridge Requests (r:1 w:0) Proof Skipped: EthBridge Requests (max_values: None, max_size: None, mode: Measured) Storage: EthBridge RequestStatuses (r:1 w:1) Proof Skipped: EthBridge RequestStatuses (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: EthBridge RequestsQueue (r:1 w:1) Proof Skipped: EthBridge RequestsQueue (max_values: None, max_size: None, mode: Measured)

Implementors§

source§

impl<T: Config> WeightInfo for SubstrateWeight<T>