sui_json_rpc_api/
bridge.rsuse jsonrpsee::core::RpcResult;
use jsonrpsee::proc_macros::rpc;
use sui_open_rpc_macros::open_rpc;
use sui_types::bridge::BridgeSummary;
#[open_rpc(namespace = "suix", tag = "Bridge Read API")]
#[rpc(server, client, namespace = "suix")]
pub trait BridgeReadApi {
#[method(name = "getLatestBridge")]
async fn get_latest_bridge(&self) -> RpcResult<BridgeSummary>;
#[method(name = "getBridgeObjectInitialSharedVersion")]
async fn get_bridge_object_initial_shared_version(&self) -> RpcResult<u64>;
}