Struct TransactionBody

Source
pub struct TransactionBody { /* private fields */ }

Implementations§

Source§

impl TransactionBody

Source

pub fn to_bytes(&self) -> Vec<u8>

Source§

impl TransactionBody

Source§

impl TransactionBody

Source

pub fn to_hex(&self) -> String

Source§

impl TransactionBody

Source§

impl TransactionBody

Source§

impl TransactionBody

Source

pub fn inputs(&self) -> TransactionInputs

Source

pub fn outputs(&self) -> TransactionOutputs

Source

pub fn fee(&self) -> Coin

Source

pub fn ttl(&self) -> Result<Option<u32>, JsError>

👎Deprecated since 10.1.0: Possible boundary error. Use ttl_bignum instead

!!! DEPRECATED !!! Returns a Slot32 (u32) value in case the underlying original BigNum (u64) value is within the limits. Otherwise will just raise an error.

Source

pub fn ttl_bignum(&self) -> Option<BigNum>

Source

pub fn set_ttl(&mut self, ttl: &BigNum)

Source

pub fn remove_ttl(&mut self)

Source

pub fn set_certs(&mut self, certs: &Certificates)

Source

pub fn certs(&self) -> Option<Certificates>

Source

pub fn set_withdrawals(&mut self, withdrawals: &Withdrawals)

Source

pub fn withdrawals(&self) -> Option<Withdrawals>

Source

pub fn set_update(&mut self, update: &Update)

Source

pub fn update(&self) -> Option<Update>

Source

pub fn set_auxiliary_data_hash( &mut self, auxiliary_data_hash: &AuxiliaryDataHash, )

Source

pub fn auxiliary_data_hash(&self) -> Option<AuxiliaryDataHash>

Source

pub fn set_validity_start_interval(&mut self, validity_start_interval: u32)

👎Deprecated since 10.1.0: Underlying value capacity of slot (BigNum u64) bigger then Slot32. Use set_validity_start_interval_bignum instead.

!!! DEPRECATED !!! Uses outdated slot number format.

Source

pub fn set_validity_start_interval_bignum( &mut self, validity_start_interval: &BigNum, )

Source

pub fn validity_start_interval_bignum(&self) -> Option<BigNum>

Source

pub fn validity_start_interval(&self) -> Result<Option<u32>, JsError>

👎Deprecated since 10.1.0: Possible boundary error. Use validity_start_interval_bignum instead

!!! DEPRECATED !!! Returns a Option (u32) value in case the underlying original Option (u64) value is within the limits. Otherwise will just raise an error. Use .validity_start_interval_bignum instead.

Source

pub fn set_mint(&mut self, mint: &Mint)

Source

pub fn mint(&self) -> Option<Mint>

Source

pub fn set_reference_inputs(&mut self, reference_inputs: &TransactionInputs)

Source

pub fn reference_inputs(&self) -> Option<TransactionInputs>

Source

pub fn set_script_data_hash(&mut self, script_data_hash: &ScriptDataHash)

Source

pub fn script_data_hash(&self) -> Option<ScriptDataHash>

Source

pub fn set_collateral(&mut self, collateral: &TransactionInputs)

Source

pub fn collateral(&self) -> Option<TransactionInputs>

Source

pub fn set_required_signers(&mut self, required_signers: &Ed25519KeyHashes)

Source

pub fn required_signers(&self) -> Option<Ed25519KeyHashes>

Source

pub fn set_network_id(&mut self, network_id: &NetworkId)

Source

pub fn network_id(&self) -> Option<NetworkId>

Source

pub fn set_collateral_return(&mut self, collateral_return: &TransactionOutput)

Source

pub fn collateral_return(&self) -> Option<TransactionOutput>

Source

pub fn set_total_collateral(&mut self, total_collateral: &Coin)

Source

pub fn total_collateral(&self) -> Option<Coin>

Source

pub fn set_voting_procedures(&mut self, voting_procedures: &VotingProcedures)

Source

pub fn voting_procedures(&self) -> Option<VotingProcedures>

Source

pub fn set_voting_proposals(&mut self, voting_proposals: &VotingProposals)

Source

pub fn voting_proposals(&self) -> Option<VotingProposals>

Source

pub fn set_donation(&mut self, donation: &Coin)

Source

pub fn donation(&self) -> Option<Coin>

Source

pub fn set_current_treasury_value(&mut self, current_treasury_value: &Coin)

Source

pub fn current_treasury_value(&self) -> Option<Coin>

Source

pub fn new( inputs: &TransactionInputs, outputs: &TransactionOutputs, fee: &Coin, ttl: Option<u32>, ) -> Self

👎Deprecated since 10.1.0: Underlying value capacity of ttl (BigNum u64) bigger then Slot32. Use new_tx_body instead.

!!! DEPRECATED !!! This constructor uses outdated slot number format for the ttl value. Use .new_tx_body and then .set_ttl instead

Source

pub fn new_tx_body( inputs: &TransactionInputs, outputs: &TransactionOutputs, fee: &Coin, ) -> Self

Returns a new TransactionBody. In the new version of “new” we removed optional ttl for support it by wasm_bingen. Your can use “set_ttl” and “remove_ttl” to set a new value for ttl or set it as None.

Trait Implementations§

Source§

impl Clone for TransactionBody

Source§

fn clone(&self) -> TransactionBody

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TransactionBody

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TransactionBody

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl JsonSchema for TransactionBody

Source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for TransactionBody

Source§

fn eq(&self, other: &TransactionBody) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for TransactionBody

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Serialize for TransactionBody

Source§

fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W>, ) -> Result<&'se mut Serializer<W>>

Source§

impl Eq for TransactionBody

Source§

impl StructuralPartialEq for TransactionBody

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,