Struct jormungandr_automation::jormungandr::explorer::Explorer
source · pub struct Explorer {
client: GraphQlClient,
print_log: bool,
}
Fields§
§client: GraphQlClient
§print_log: bool
Implementations§
source§impl Explorer
impl Explorer
pub fn new(explorer_listen_address: String) -> Explorer
pub fn uri(&self) -> String
pub fn disable_logs(&mut self)
pub fn enable_logs(&mut self)
pub fn print_request<T: Serialize>(&self, query: &QueryBody<T>)
pub fn address<S: Into<String>>( &self, bech32_address: S ) -> Result<Response<ResponseData>, ExplorerError>
pub fn stake_pools( &self, limit: i64 ) -> Result<Response<ResponseData>, ExplorerError>
pub fn block(&self, hash: Hash) -> Result<Response<ResponseData>, ExplorerError>
pub fn block_by_id( &self, id: String ) -> Result<Response<ResponseData>, ExplorerError>
pub fn blocks( &self, limit: i64 ) -> Result<Response<ResponseData>, ExplorerError>
pub fn last_block(&self) -> Result<LastBlockResponse, ExplorerError>
pub fn blocks_at_chain_length( &self, length: u32 ) -> Result<Response<ResponseData>, ExplorerError>
pub fn epoch( &self, epoch_number: u32, limit: i64 ) -> Result<Response<ResponseData>, ExplorerError>
pub fn stake_pool( &self, id: PoolId, limit: i64 ) -> Result<Response<ResponseData>, ExplorerError>
pub fn settings(&self) -> Result<Response<ResponseData>, ExplorerError>
pub fn vote_plans( &self, limit: i64 ) -> Result<Response<ResponseData>, ExplorerError>
pub fn vote_plan( &self, id: String ) -> Result<Response<ResponseData>, ExplorerError>
pub fn transaction( &self, hash: Hash ) -> Result<Response<ResponseData>, ExplorerError>
pub fn transaction_certificates( &self, hash: Hash ) -> Result<Response<ResponseData>, ExplorerError>
pub fn transactions_address<S: Into<String>>( &self, bech32_address: S ) -> Result<Response<ResponseData>, ExplorerError>
pub fn current_time(&self) -> BlockDate
pub fn run<T: Serialize>( &self, query: QueryBody<T> ) -> Result<Response, ExplorerError>
fn print_log<T: Debug>(&self, response: &T)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Explorer
impl Send for Explorer
impl Sync for Explorer
impl Unpin for Explorer
impl UnwindSafe for Explorer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request