[][src]Struct ergo_headless_dapp_framework::output_builders::ChangeBox

pub struct ChangeBox {}

A struct used while constructing txs to build a ErgoBoxCandidate that holds any change Ergs & tokens from the input boxes which are not relevant to the protocol at hand

Implementations

impl ChangeBox[src]

pub fn output_candidate(
    tokens: &Vec<Token>,
    value: NanoErg,
    user_address: &P2PKAddressString,
    current_height: u64
) -> Result<ErgoBoxCandidate>
[src]

Creates an ErgoBoxCandidate which holds all of the tokens and Ergs provided as inputs to the method.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<F> TryExtractInto<F> for F[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,