mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 19:21:03 +00:00
Add AtLeast32BitUnsigned for MessageLance::SourceChainBalance (#1207)
This commit is contained in:
@@ -19,3 +19,5 @@ parking_lot = "0.11.0"
|
|||||||
bp-messages = { path = "../../primitives/messages" }
|
bp-messages = { path = "../../primitives/messages" }
|
||||||
bp-runtime = { path = "../../primitives/runtime" }
|
bp-runtime = { path = "../../primitives/runtime" }
|
||||||
relay-utils = { path = "../utils" }
|
relay-utils = { path = "../utils" }
|
||||||
|
|
||||||
|
sp-arithmetic = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
use num_traits::{SaturatingAdd, Zero};
|
use num_traits::{SaturatingAdd, Zero};
|
||||||
use relay_utils::{BlockNumberBase, HeaderId};
|
use relay_utils::{BlockNumberBase, HeaderId};
|
||||||
|
use sp_arithmetic::traits::AtLeast32BitUnsigned;
|
||||||
use std::{fmt::Debug, ops::Sub};
|
use std::{fmt::Debug, ops::Sub};
|
||||||
|
|
||||||
/// One-way message lane.
|
/// One-way message lane.
|
||||||
@@ -40,7 +41,8 @@ pub trait MessageLane: 'static + Clone + Send + Sync {
|
|||||||
/// 1) pay transaction fees;
|
/// 1) pay transaction fees;
|
||||||
/// 2) pay message delivery and dispatch fee;
|
/// 2) pay message delivery and dispatch fee;
|
||||||
/// 3) pay relayer rewards.
|
/// 3) pay relayer rewards.
|
||||||
type SourceChainBalance: Clone
|
type SourceChainBalance: AtLeast32BitUnsigned
|
||||||
|
+ Clone
|
||||||
+ Copy
|
+ Copy
|
||||||
+ Debug
|
+ Debug
|
||||||
+ PartialOrd
|
+ PartialOrd
|
||||||
|
|||||||
Reference in New Issue
Block a user