shuka 0.1.0

CLI tool for fetching verified smart contract source code from blockchain explorers
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::{
    error::ShukaError,
    types::{FetchRequest, RawExplorerResponse},
};

/// Common interface for explorer adapters that can fetch contract source data.
pub trait SourceExplorer {
    /// Fetches raw source-code data for the given request.
    fn fetch(&self, request: &FetchRequest) -> Result<RawExplorerResponse, ShukaError>;
}