[−][src]Struct ergo_headless_dapp_framework::specified_boxes::ErgsBox
A specified box which is intended to be spent for the Ergs inside.
The spec simply requires the box to simply have at least 1000000
nanoErgs inside.
Implementations
impl ErgsBox
[src]
impl ErgsBox
[src]
pub fn w_new(ergo_box: WErgoBox) -> Result<ErgsBox, JsValue>
[src]
pub fn w_box_spec(&self) -> BoxSpec
[src]
pub fn w_process_explorer_response(
explorer_response_body: &str
) -> Result<Vec<JsValue>, JsValue>
[src]
explorer_response_body: &str
) -> Result<Vec<JsValue>, JsValue>
pub fn w_explorer_endpoint(explorer_api_url: &str) -> Result<String, JsValue>
[src]
impl ErgsBox
[src]
Rust ErgsBox Methods
pub fn convert_from_ergo_boxes(ergo_boxes: &ErgoBoxes) -> Result<Vec<ErgsBox>>
[src]
Converts from the WASM wrapper ErgoBoxes
into a vector of
ErgsBox
es.
pub fn sum_ergs_boxes_value(boxes: &Vec<ErgsBox>) -> u64
[src]
Sums the nanoErg value of a list of ErgsBox
es
Trait Implementations
impl Clone for ErgsBox
[src]
impl Debug for ErgsBox
[src]
impl Eq for ErgsBox
[src]
impl ExplorerFindable for ErgsBox
[src]
pub fn process_explorer_response(
explorer_response_body: &str
) -> Result<Vec<ErgsBox>, HeadlessDappError>
[src]
explorer_response_body: &str
) -> Result<Vec<ErgsBox>, HeadlessDappError>
pub fn process_explorer_response_custom(
explorer_response_body: &str,
box_spec: BoxSpec
) -> Result<Vec<ErgsBox>, HeadlessDappError>
[src]
explorer_response_body: &str,
box_spec: BoxSpec
) -> Result<Vec<ErgsBox>, HeadlessDappError>
impl From<ErgsBox> for JsValue
[src]
impl FromWasmAbi for ErgsBox
[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 ErgsBox
[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 ErgsBox
[src]
impl OptionIntoWasmAbi for ErgsBox
[src]
impl PartialEq<ErgsBox> for ErgsBox
[src]
impl RefFromWasmAbi for ErgsBox
[src]
type Abi = u32
The wasm ABI type references to Self
are recovered from.
type Anchor = Ref<'static, ErgsBox>
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 ErgsBox
[src]
type Abi = u32
Same as RefFromWasmAbi::Abi
type Anchor = RefMut<'static, ErgsBox>
Same as RefFromWasmAbi::Anchor
pub unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
[src]
impl SpecifiedBox for ErgsBox
[src]
SpecifiedBox impl
pub fn box_spec() -> BoxSpec
[src]
A simple BoxSpec
that just checks the value of nanoErgs is
above 1000000
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 StructuralEq for ErgsBox
[src]
impl StructuralPartialEq for ErgsBox
[src]
impl WasmDescribe for ErgsBox
[src]
impl WrappedBox for ErgsBox
[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 ErgsBox
[src]
impl !Send for ErgsBox
[src]
impl !Sync for ErgsBox
[src]
impl Unpin for ErgsBox
[src]
impl !UnwindSafe for ErgsBox
[src]
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[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<F> TryExtractInto<F> for F
[src]
pub fn try_extract_into<T>(self) -> Result<T, TryExtractFromError> where
T: TryExtractFrom<F>,
[src]
T: TryExtractFrom<F>,
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>,