[−][src]Struct ergo_headless_dapp_framework::output_builders::TokensChangeBox
A struct used while constructing txs to build a ErgoBoxCandidate
that holds various tokens from the input boxes which are not relevant
to the protocol at hand. In other words a "Tokens Change Box".
Implementations
impl TokensChangeBox
[src]
pub fn output_candidate(
input_boxes: &Vec<ErgoBox>,
value: NanoErg,
user_address: &P2PKAddressString,
current_height: u64
) -> Result<ErgoBoxCandidate>
[src]
input_boxes: &Vec<ErgoBox>,
value: NanoErg,
user_address: &P2PKAddressString,
current_height: u64
) -> Result<ErgoBoxCandidate>
Creates an ErgoBoxCandidate
which holds all of the tokens from the
the provided inputs. In other words creates a "TokensChange" box for
the tokens inside of the inputs.
Holds number of nanoErgs value as provided to method.
pub fn output_candidate_filtered(
filter_tokens: &Vec<Token>,
input_boxes: &Vec<ErgoBox>,
value: NanoErg,
user_address: &P2PKAddressString,
current_height: u64
) -> Result<ErgoBoxCandidate>
[src]
filter_tokens: &Vec<Token>,
input_boxes: &Vec<ErgoBox>,
value: NanoErg,
user_address: &P2PKAddressString,
current_height: u64
) -> Result<ErgoBoxCandidate>
Creates an ErgoBoxCandidate
which holds tokens from the
the provided inputs excluding the tokens provided in the filter list.
Holds number of nanoErgs value as provided to method.
pub fn output_candidate_with_registers_filtered(
filter_tokens: &Vec<Token>,
input_boxes: &Vec<ErgoBox>,
value: NanoErg,
registers: &Vec<Constant>,
user_address: &P2PKAddressString,
current_height: u64
) -> Result<ErgoBoxCandidate>
[src]
filter_tokens: &Vec<Token>,
input_boxes: &Vec<ErgoBox>,
value: NanoErg,
registers: &Vec<Constant>,
user_address: &P2PKAddressString,
current_height: u64
) -> Result<ErgoBoxCandidate>
Creates an ErgoBoxCandidate
which holds tokens from the
the provided inputs excluding the tokens provided in the filter list.
Holds number of nanoErgs value as provided to method and uses the
customized registers provided.
Auto Trait Implementations
impl RefUnwindSafe for TokensChangeBox
[src]
impl Send for TokensChangeBox
[src]
impl Sync for TokensChangeBox
[src]
impl Unpin for TokensChangeBox
[src]
impl UnwindSafe for TokensChangeBox
[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<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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>,