Struct ergo_headless_dapp_framework::tx_assembler::TxAssemblerSpecBuilder [−][src]
This is a struct which is used to generate Ergo Tx Assembler Spec String
s
from UnsignedTransaction
s.
Implementations
impl TxAssemblerSpecBuilder
[src]
pub fn w_new(wrapped_unsigned_tx: WUnsignedTransaction) -> Self
[src]
WASM wrapper for new()
pub fn create_placeholder_ergs_box(nano_ergs: NanoErg) -> Option<ErgsBox>
[src]
Create a placeholder box that holds an amount of nanoErgs equal to the
input nano_ergs
value and then wrap said box as a ErgsBox
.
This is useful for using with protocols as a placeholder so that
an assembler spec can be created (and this placeholder box thrown out
and replaced with the user's actual input box from the assembler)
pub fn build_assembler_spec(&self, transaction_fee: NanoErg) -> String
[src]
Builds a JSON String
which
is formatted as a transaction spec for working with the
Ergo Transaction Assembler Service.
impl TxAssemblerSpecBuilder
[src]
Non-WASM methods
pub fn new(unsigned_tx: UnsignedTransaction) -> Self
[src]
Create a new TxAssemblerSpecBuilder
Trait Implementations
impl FromWasmAbi for TxAssemblerSpecBuilder
[src]
type Abi = u32
The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more
unsafe fn from_abi(js: u32) -> Self
[src]
impl IntoWasmAbi for TxAssemblerSpecBuilder
[src]
type Abi = u32
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
fn into_abi(self) -> u32
[src]
impl OptionFromWasmAbi for TxAssemblerSpecBuilder
[src]
impl OptionIntoWasmAbi for TxAssemblerSpecBuilder
[src]
impl RefFromWasmAbi for TxAssemblerSpecBuilder
[src]
type Abi = u32
The wasm ABI type references to Self
are recovered from.
type Anchor = Ref<'static, TxAssemblerSpecBuilder>
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
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
[src]
impl RefMutFromWasmAbi for TxAssemblerSpecBuilder
[src]
type Abi = u32
Same as RefFromWasmAbi::Abi
type Anchor = RefMut<'static, TxAssemblerSpecBuilder>
Same as RefFromWasmAbi::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
[src]
impl WasmDescribe for TxAssemblerSpecBuilder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TxAssemblerSpecBuilder
[src]
impl !Send for TxAssemblerSpecBuilder
[src]
impl !Sync for TxAssemblerSpecBuilder
[src]
impl Unpin for TxAssemblerSpecBuilder
[src]
impl !UnwindSafe for TxAssemblerSpecBuilder
[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> 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<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>,