iota_json_rpc_api/
bridge.rs1use iota_open_rpc_macros::open_rpc;
6use iota_types::bridge::BridgeSummary;
7use jsonrpsee::{core::RpcResult, proc_macros::rpc};
8
9#[open_rpc(namespace = "iotax", tag = "Bridge Read API")]
10#[rpc(server, client, namespace = "iotax")]
11pub trait BridgeReadApi {
12 #[method(name = "getLatestBridge")]
14 async fn get_latest_bridge(&self) -> RpcResult<BridgeSummary>;
15
16 #[method(name = "getBridgeObjectInitialSharedVersion")]
19 async fn get_bridge_object_initial_shared_version(&self) -> RpcResult<u64>;
20}