Trait issue::WeightInfo

source ·
pub trait WeightInfo {
    // Required methods
    fn request_issue() -> Weight;
    fn execute_issue_exact(h: u32, i: u32, o: u32, b: u32) -> Weight;
    fn execute_issue_overpayment(h: u32, i: u32, o: u32, b: u32) -> Weight;
    fn execute_issue_underpayment(h: u32, i: u32, o: u32, b: u32) -> Weight;
    fn execute_expired_issue_exact(h: u32, i: u32, o: u32, b: u32) -> Weight;
    fn execute_expired_issue_overpayment(
        h: u32,
        i: u32,
        o: u32,
        b: u32
    ) -> Weight;
    fn execute_expired_issue_underpayment(
        h: u32,
        i: u32,
        o: u32,
        b: u32
    ) -> Weight;
    fn cancel_issue() -> Weight;
    fn set_issue_period() -> Weight;
}
Expand description

Weight functions needed for issue.

Required Methods§

source

fn request_issue() -> Weight

source

fn execute_issue_exact(h: u32, i: u32, o: u32, b: u32) -> Weight

source

fn execute_issue_overpayment(h: u32, i: u32, o: u32, b: u32) -> Weight

source

fn execute_issue_underpayment(h: u32, i: u32, o: u32, b: u32) -> Weight

source

fn execute_expired_issue_exact(h: u32, i: u32, o: u32, b: u32) -> Weight

source

fn execute_expired_issue_overpayment(h: u32, i: u32, o: u32, b: u32) -> Weight

source

fn execute_expired_issue_underpayment(h: u32, i: u32, o: u32, b: u32) -> Weight

source

fn cancel_issue() -> Weight

source

fn set_issue_period() -> Weight

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn request_issue() -> Weight

Storage: BTCRelay StartBlockHeight (r:1 w:0) Proof: BTCRelay StartBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay StableBitcoinConfirmations (r:1 w:0) Proof: BTCRelay StableBitcoinConfirmations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay BestBlockHeight (r:1 w:0) Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: VaultRegistry Vaults (r:1 w:1) Proof: VaultRegistry Vaults (max_values: None, max_size: Some(260), added: 2735, mode: MaxEncodedLen) Storage: Security ParachainStatus (r:1 w:0) Proof: Security ParachainStatus (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: Oracle Aggregate (r:2 w:0) Proof: Oracle Aggregate (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) Storage: Fee IssueGriefingCollateral (r:1 w:0) Proof: Fee IssueGriefingCollateral (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) Storage: Tokens Accounts (r:1 w:1) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: Issue IssueBtcDustValue (r:1 w:0) Proof: Issue IssueBtcDustValue (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) Proof: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) Storage: VaultStaking Nonce (r:1 w:0) Proof: VaultStaking Nonce (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) Storage: VaultStaking TotalCurrentStake (r:1 w:0) Proof: VaultStaking TotalCurrentStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) Storage: Fee IssueFee (r:1 w:0) Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) Storage: Security Nonce (r:1 w:1) Proof: Security Nonce (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) Storage: System ParentHash (r:1 w:0) Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) Storage: VaultRegistry VaultBitcoinPublicKey (r:1 w:0) Proof: VaultRegistry VaultBitcoinPublicKey (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen) Storage: Security ActiveBlockCount (r:1 w:0) Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Issue IssuePeriod (r:1 w:0) Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Issue IssueRequests (r:0 w:1) Proof: Issue IssueRequests (max_values: None, max_size: Some(261), added: 2736, mode: MaxEncodedLen)

source§

fn execute_issue_exact(h: u32, i: u32, o: u32, b: u32) -> Weight

Storage: Issue IssueRequests (r:1 w:1) Proof: Issue IssueRequests (max_values: None, max_size: Some(261), added: 2736, mode: MaxEncodedLen) Storage: BTCRelay DisableInclusionCheck (r:1 w:0) Proof: BTCRelay DisableInclusionCheck (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: BTCRelay BestBlockHeight (r:1 w:0) Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay Chains (r:1 w:0) Proof: BTCRelay Chains (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen) Storage: BTCRelay BlockHeaders (r:1 w:0) Proof: BTCRelay BlockHeaders (max_values: None, max_size: Some(200), added: 2675, mode: MaxEncodedLen) Storage: BTCRelay StableBitcoinConfirmations (r:1 w:0) Proof: BTCRelay StableBitcoinConfirmations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Security ActiveBlockCount (r:1 w:0) Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay StableParachainConfirmations (r:1 w:0) Proof: BTCRelay StableParachainConfirmations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: VaultRegistry Vaults (r:1 w:1) Proof: VaultRegistry Vaults (max_values: None, max_size: Some(260), added: 2735, mode: MaxEncodedLen) Storage: Tokens Accounts (r:1 w:1) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) The range of component h is [2, 10]. The range of component i is [1, 10]. The range of component o is [1, 10]. The range of component b is [770, 2048].

source§

fn execute_issue_overpayment(h: u32, _i: u32, _o: u32, b: u32) -> Weight

Storage: Issue IssueRequests (r:1 w:1) Proof: Issue IssueRequests (max_values: None, max_size: Some(261), added: 2736, mode: MaxEncodedLen) Storage: BTCRelay DisableInclusionCheck (r:1 w:0) Proof: BTCRelay DisableInclusionCheck (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: BTCRelay BestBlockHeight (r:1 w:0) Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay Chains (r:1 w:0) Proof: BTCRelay Chains (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen) Storage: BTCRelay BlockHeaders (r:1 w:0) Proof: BTCRelay BlockHeaders (max_values: None, max_size: Some(200), added: 2675, mode: MaxEncodedLen) Storage: BTCRelay StableBitcoinConfirmations (r:1 w:0) Proof: BTCRelay StableBitcoinConfirmations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Security ActiveBlockCount (r:1 w:0) Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay StableParachainConfirmations (r:1 w:0) Proof: BTCRelay StableParachainConfirmations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: VaultRegistry Vaults (r:1 w:1) Proof: VaultRegistry Vaults (max_values: None, max_size: Some(260), added: 2735, mode: MaxEncodedLen) Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) Proof: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) Storage: Security ParachainStatus (r:1 w:0) Proof: Security ParachainStatus (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: Oracle Aggregate (r:1 w:0) Proof: Oracle Aggregate (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) Storage: VaultStaking Nonce (r:1 w:0) Proof: VaultStaking Nonce (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) Storage: VaultStaking TotalCurrentStake (r:1 w:0) Proof: VaultStaking TotalCurrentStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) Storage: Fee IssueFee (r:1 w:0) Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) Storage: Tokens Accounts (r:1 w:1) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) The range of component h is [2, 10]. The range of component i is [1, 10]. The range of component o is [1, 10]. The range of component b is [770, 2048].

source§

fn execute_issue_underpayment(h: u32, i: u32, _o: u32, b: u32) -> Weight

Storage: Issue IssueRequests (r:1 w:1) Proof: Issue IssueRequests (max_values: None, max_size: Some(261), added: 2736, mode: MaxEncodedLen) Storage: BTCRelay DisableInclusionCheck (r:1 w:0) Proof: BTCRelay DisableInclusionCheck (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: BTCRelay BestBlockHeight (r:1 w:0) Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay Chains (r:1 w:0) Proof: BTCRelay Chains (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen) Storage: BTCRelay BlockHeaders (r:1 w:0) Proof: BTCRelay BlockHeaders (max_values: None, max_size: Some(200), added: 2675, mode: MaxEncodedLen) Storage: BTCRelay StableBitcoinConfirmations (r:1 w:0) Proof: BTCRelay StableBitcoinConfirmations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Security ActiveBlockCount (r:1 w:0) Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay StableParachainConfirmations (r:1 w:0) Proof: BTCRelay StableParachainConfirmations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: VaultRegistry Vaults (r:1 w:1) Proof: VaultRegistry Vaults (max_values: None, max_size: Some(260), added: 2735, mode: MaxEncodedLen) Storage: Fee IssueFee (r:1 w:0) Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) Storage: Tokens Accounts (r:1 w:1) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) The range of component h is [2, 10]. The range of component i is [1, 10]. The range of component o is [1, 10]. The range of component b is [770, 2048].

source§

fn execute_expired_issue_exact(h: u32, _i: u32, _o: u32, b: u32) -> Weight

Storage: Issue IssueRequests (r:1 w:1) Proof: Issue IssueRequests (max_values: None, max_size: Some(261), added: 2736, mode: MaxEncodedLen) Storage: BTCRelay DisableInclusionCheck (r:1 w:0) Proof: BTCRelay DisableInclusionCheck (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: BTCRelay BestBlockHeight (r:1 w:0) Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay Chains (r:1 w:0) Proof: BTCRelay Chains (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen) Storage: BTCRelay BlockHeaders (r:1 w:0) Proof: BTCRelay BlockHeaders (max_values: None, max_size: Some(200), added: 2675, mode: MaxEncodedLen) Storage: BTCRelay StableBitcoinConfirmations (r:1 w:0) Proof: BTCRelay StableBitcoinConfirmations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Security ActiveBlockCount (r:1 w:0) Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay StableParachainConfirmations (r:1 w:0) Proof: BTCRelay StableParachainConfirmations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: VaultRegistry Vaults (r:1 w:1) Proof: VaultRegistry Vaults (max_values: None, max_size: Some(260), added: 2735, mode: MaxEncodedLen) Storage: Tokens Accounts (r:1 w:1) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) The range of component h is [2, 10]. The range of component i is [1, 10]. The range of component o is [1, 10]. The range of component b is [770, 2048].

source§

fn execute_expired_issue_overpayment(h: u32, i: u32, o: u32, b: u32) -> Weight

Storage: Issue IssueRequests (r:1 w:1) Proof: Issue IssueRequests (max_values: None, max_size: Some(261), added: 2736, mode: MaxEncodedLen) Storage: BTCRelay DisableInclusionCheck (r:1 w:0) Proof: BTCRelay DisableInclusionCheck (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: BTCRelay BestBlockHeight (r:1 w:0) Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay Chains (r:1 w:0) Proof: BTCRelay Chains (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen) Storage: BTCRelay BlockHeaders (r:1 w:0) Proof: BTCRelay BlockHeaders (max_values: None, max_size: Some(200), added: 2675, mode: MaxEncodedLen) Storage: BTCRelay StableBitcoinConfirmations (r:1 w:0) Proof: BTCRelay StableBitcoinConfirmations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Security ActiveBlockCount (r:1 w:0) Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay StableParachainConfirmations (r:1 w:0) Proof: BTCRelay StableParachainConfirmations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: VaultRegistry Vaults (r:1 w:1) Proof: VaultRegistry Vaults (max_values: None, max_size: Some(260), added: 2735, mode: MaxEncodedLen) Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) Proof: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen) Storage: Security ParachainStatus (r:1 w:0) Proof: Security ParachainStatus (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: Oracle Aggregate (r:1 w:0) Proof: Oracle Aggregate (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) Storage: VaultStaking Nonce (r:1 w:0) Proof: VaultStaking Nonce (max_values: None, max_size: Some(74), added: 2549, mode: MaxEncodedLen) Storage: VaultStaking TotalCurrentStake (r:1 w:0) Proof: VaultStaking TotalCurrentStake (max_values: None, max_size: Some(106), added: 2581, mode: MaxEncodedLen) Storage: Fee IssueFee (r:1 w:0) Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) Storage: Tokens Accounts (r:1 w:1) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) The range of component h is [2, 10]. The range of component i is [1, 10]. The range of component o is [1, 10]. The range of component b is [770, 2048].

source§

fn execute_expired_issue_underpayment( _h: u32, _i: u32, _o: u32, b: u32 ) -> Weight

Storage: Issue IssueRequests (r:1 w:1) Proof: Issue IssueRequests (max_values: None, max_size: Some(261), added: 2736, mode: MaxEncodedLen) Storage: BTCRelay DisableInclusionCheck (r:1 w:0) Proof: BTCRelay DisableInclusionCheck (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) Storage: BTCRelay BestBlockHeight (r:1 w:0) Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay Chains (r:1 w:0) Proof: BTCRelay Chains (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen) Storage: BTCRelay BlockHeaders (r:1 w:0) Proof: BTCRelay BlockHeaders (max_values: None, max_size: Some(200), added: 2675, mode: MaxEncodedLen) Storage: BTCRelay StableBitcoinConfirmations (r:1 w:0) Proof: BTCRelay StableBitcoinConfirmations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Security ActiveBlockCount (r:1 w:0) Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay StableParachainConfirmations (r:1 w:0) Proof: BTCRelay StableParachainConfirmations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: VaultRegistry Vaults (r:1 w:1) Proof: VaultRegistry Vaults (max_values: None, max_size: Some(260), added: 2735, mode: MaxEncodedLen) Storage: Fee IssueFee (r:1 w:0) Proof: Fee IssueFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) Storage: Tokens Accounts (r:1 w:1) Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) Storage: Tokens TotalIssuance (r:1 w:1) Proof: Tokens TotalIssuance (max_values: None, max_size: Some(35), added: 2510, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) The range of component h is [2, 10]. The range of component i is [1, 10]. The range of component o is [1, 10]. The range of component b is [770, 2048].

source§

fn cancel_issue() -> Weight

Storage: Issue IssueRequests (r:1 w:1) Proof: Issue IssueRequests (max_values: None, max_size: Some(261), added: 2736, mode: MaxEncodedLen) Storage: Issue IssuePeriod (r:1 w:0) Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Security ActiveBlockCount (r:1 w:0) Proof: Security ActiveBlockCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BTCRelay BestBlockHeight (r:1 w:0) Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: VaultRegistry Vaults (r:1 w:1) Proof: VaultRegistry Vaults (max_values: None, max_size: Some(260), added: 2735, mode: MaxEncodedLen)

source§

fn set_issue_period() -> Weight

Storage: Issue IssuePeriod (r:0 w:1) Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

Implementors§