INNER CODE UNIT · Rust
from
gemwalletcom/wallet · core/crates/block_explorers/src/lib.rs:19
fn from(hash: T) -> Self {
Self {
hash: hash.into(),
recipient: None,
memo: None,
}
}
}
pub trait BlockExplorer: Send + Sync {
fn name(&self) -> String;
fn get_tx_url(&self, hash: &str) -> String;
fn get_address_url(&self, address: &str) -> String;
fn get_token_url(&self, _asset_id: &AssetId) -> Option<String> {
None
}
fn get_nft_url(&self, _contract: &str, _token_id: &str) -> Option<String> {
None