[−][src]Struct ergo_headless_dapp_framework::specified_boxes::ErgUsdOraclePoolBox
A specified box which is an Oracle Pool box that stores a Long integer
datapoint inside of R4 that represents how many nanoErgs can be bought
for 1 USD.
Implementations
impl ErgUsdOraclePoolBox[src]
pub fn new(b: &ErgoBox) -> Result<ErgUsdOraclePoolBox, HeadlessDappError>[src]
impl ErgUsdOraclePoolBox[src]
WASM-compatible ErgUsdOraclePoolBox Methods
pub fn w_new(wb: WErgoBox) -> Result<ErgUsdOraclePoolBox, JsValue>[src]
pub fn datapoint(&self) -> u64[src]
Extracts the Long datapoint out of register R4.
pub fn datapoint_in_cents(&self) -> u64[src]
Extracts the Long datapoint out of register R4.
Trait Implementations
impl Clone for ErgUsdOraclePoolBox[src]
pub fn clone(&self) -> ErgUsdOraclePoolBox[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ErgUsdOraclePoolBox[src]
impl ExplorerFindable for ErgUsdOraclePoolBox[src]
pub fn process_explorer_response(
explorer_response_body: &str
) -> Result<Vec<ErgUsdOraclePoolBox>, HeadlessDappError>[src]
explorer_response_body: &str
) -> Result<Vec<ErgUsdOraclePoolBox>, HeadlessDappError>
pub fn process_explorer_response_custom(
explorer_response_body: &str,
box_spec: BoxSpec
) -> Result<Vec<ErgUsdOraclePoolBox>, HeadlessDappError>[src]
explorer_response_body: &str,
box_spec: BoxSpec
) -> Result<Vec<ErgUsdOraclePoolBox>, HeadlessDappError>
impl From<ErgUsdOraclePoolBox> for JsValue[src]
pub fn from(value: ErgUsdOraclePoolBox) -> Self[src]
impl FromWasmAbi for ErgUsdOraclePoolBox[src]
type Abi = u32
The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more
pub unsafe fn from_abi(js: u32) -> Self[src]
impl IntoWasmAbi for ErgUsdOraclePoolBox[src]
type Abi = u32
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
pub fn into_abi(self) -> u32[src]
impl OptionFromWasmAbi for ErgUsdOraclePoolBox[src]
impl OptionIntoWasmAbi for ErgUsdOraclePoolBox[src]
impl RefFromWasmAbi for ErgUsdOraclePoolBox[src]
type Abi = u32
The wasm ABI type references to Self are recovered from.
type Anchor = Ref<'static, ErgUsdOraclePoolBox>
The type that holds the reference to Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don't persist beyond one function
call, and so that they remain anonymous. Read more
pub unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor[src]
impl RefMutFromWasmAbi for ErgUsdOraclePoolBox[src]
type Abi = u32
Same as RefFromWasmAbi::Abi
type Anchor = RefMut<'static, ErgUsdOraclePoolBox>
Same as RefFromWasmAbi::Anchor
pub unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor[src]
impl SpecifiedBox for ErgUsdOraclePoolBox[src]
SpecifiedBox impl
pub fn box_spec() -> BoxSpec[src]
A box spec for an Oracle Pool Box with the correct NFT + a Long value in R4
pub fn get_utxo_scan_json_string() -> String[src]
pub fn verify_box(ergo_box: &ErgoBox) -> Result<()>[src]
pub fn explorer_endpoint(explorer_api_url: &str) -> Result<String>[src]
impl WasmDescribe for ErgUsdOraclePoolBox[src]
impl WrappedBox for ErgUsdOraclePoolBox[src]
pub fn get_box(&self) -> ErgoBox[src]
pub fn as_data_input(&self) -> DataInput[src]
pub fn as_unsigned_input(&self) -> UnsignedInput[src]
pub fn box_id(&self) -> String[src]
pub fn nano_ergs(&self) -> NanoErg[src]
pub fn p2s_address(&self) -> P2SAddressString[src]
pub fn registers(&self) -> Vec<Constant>[src]
pub fn tokens(&self) -> Vec<Token>[src]
pub fn creation_height(&self) -> u64[src]
Auto Trait Implementations
impl !RefUnwindSafe for ErgUsdOraclePoolBox
impl !Send for ErgUsdOraclePoolBox
impl !Sync for ErgUsdOraclePoolBox
impl Unpin for ErgUsdOraclePoolBox
impl !UnwindSafe for ErgUsdOraclePoolBox
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi, [src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
pub fn return_abi(self) -> <T as ReturnWasmAbi>::Abi[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,