Trait ergo_headless_dapp_framework::box_traits::SpecifiedBox[][src]

pub trait SpecifiedBox: WrappedBox {
    fn box_spec() -> BoxSpec;

    fn get_utxo_scan_json_string() -> String { ... }
fn verify_box(ergo_box: &ErgoBox) -> Result<()> { ... }
fn explorer_endpoint(explorer_api_url: &str) -> Result<String> { ... } }

Required methods

Loading content...

Provided methods

fn get_utxo_scan_json_string() -> String[src]

fn verify_box(ergo_box: &ErgoBox) -> Result<()>[src]

Verify that a provided ErgoBox matches the BoxSpec tied to your SpecifiedBox

fn explorer_endpoint(explorer_api_url: &str) -> Result<String>[src]

Generates a URL for the Ergo Explorer Backend API to find boxes which may match your BoxSpec. This method uses the explorer_api_url you provide as input which must be formatted as such: https://api.ergoplatform.com/api This method is intended to be used in tandem with process_explorer_response()

Loading content...

Implementors

impl SpecifiedBox for AdaUsdOraclePoolBox[src]

SpecifiedBox impl

fn box_spec() -> BoxSpec[src]

A box spec for an Oracle Pool Box with the correct NFT + a Long value in R4

impl SpecifiedBox for ErgUsdOraclePoolBox[src]

SpecifiedBox impl

fn box_spec() -> BoxSpec[src]

A box spec for an Oracle Pool Box with the correct NFT + a Long value in R4

impl SpecifiedBox for ErgsBox[src]

SpecifiedBox impl

fn box_spec() -> BoxSpec[src]

A simple BoxSpec that just checks the value of nanoErgs is above 1000000

Loading content...