pub trait BridgeTrait {
// Required methods
fn bridge_version(&self) -> u64;
fn message_version(&self) -> u8;
fn chain_id(&self) -> u8;
fn sequence_nums(&self) -> &VecMap<u8, u64>;
fn committee(&self) -> &MoveTypeBridgeCommittee;
fn treasury(&self) -> &MoveTypeBridgeTreasury;
fn bridge_records(&self) -> &LinkedTable<MoveTypeBridgeMessageKey>;
fn frozen(&self) -> bool;
fn try_into_bridge_summary(self) -> SuiResult<BridgeSummary>;
}Expand description
This is the standard API that all bridge inner object type should implement.
Required Methods§
fn bridge_version(&self) -> u64
fn message_version(&self) -> u8
fn chain_id(&self) -> u8
fn sequence_nums(&self) -> &VecMap<u8, u64>
fn committee(&self) -> &MoveTypeBridgeCommittee
fn treasury(&self) -> &MoveTypeBridgeTreasury
fn bridge_records(&self) -> &LinkedTable<MoveTypeBridgeMessageKey>
fn frozen(&self) -> bool
fn try_into_bridge_summary(self) -> SuiResult<BridgeSummary>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".