Skip to main content

MPTokenIssuance

Struct MPTokenIssuance 

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

Implementations§

Source§

impl MPTokenIssuance

Source

pub fn new(slot_num: i32) -> Self

Binds this handle to a host-managed slot holding a MPTokenIssuance ledger object.

Trait Implementations§

Source§

impl Clone for MPTokenIssuance

Source§

fn clone(&self) -> MPTokenIssuance

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for MPTokenIssuance

Source§

impl Debug for MPTokenIssuance

Source§

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

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

impl Eq for MPTokenIssuance

Source§

impl LedgerObjectCommonFields for MPTokenIssuance

Source§

fn get_slot_num(&self) -> i32

Returns the slot number (register number) where the ledger object is stored. Read more
Source§

fn path(&self) -> LedgerPathBuilder

Starts a nested-field path rooted at this ledger object, read through its slot. Read more
Source§

fn get_flags(&self) -> Result<u32>

Retrieves the flags field of the ledger object. Read more
Source§

fn get_ledger_entry_type(&self) -> Result<u16>

Retrieves the ledger entry type of the object. Read more
Source§

impl MPTokenIssuanceFields for MPTokenIssuance

Source§

fn issuer(&self) -> Result<AccountID>

The address of the account that controls both the issuance amounts and characteristics of a particular fungible token.
Source§

fn sequence(&self) -> Result<u32>

The Sequence (or Ticket) number of the transaction that created this issuance. This helps to uniquely identify the issuance and distinguish it from any other later MPT issuances created by this account.
Source§

fn transfer_fee(&self) -> Result<Option<u16>>

This value specifies the fee, in tenths of a basis point, charged by the issuer for secondary sales of the token, if such sales are allowed at all. Valid values for this field are between 0 and 50,000 inclusive. A value of 1 is equivalent to 1/10 of a basis point or 0.001%, allowing transfer rates between 0% and 50%. A TransferFee of 50,000 corresponds to 50%. The default value for this field is 0. Any decimals in the transfer fee are rounded down. The fee can be rounded down to zero if the payment is small. Issuers should make sure that their MPT’s AssetScale is large enough.

This field is mutable by default, but can be made immutable.
Source§

fn owner_node(&self) -> Result<u64>

A hint indicating which page of the owner directory links to this entry, in case the directory consists of multiple pages.
Source§

fn asset_scale(&self) -> Result<Option<u8>>

Where to put the decimal place when displaying amounts of this MPT. More formally, the asset scale is a non-negative integer (0, 1, 2, …) such that one standard unit equals 10^(-scale) of a corresponding fractional unit. For example, if a US Dollar Stablecoin has an asset scale of 2, then 1 unit of that MPT would equal 0.01 US Dollars. This indicates to how many decimal places the MPT can be subdivided. The default is 0, meaning that the MPT cannot be divided into smaller than 1 unit.
Source§

fn maximum_amount(&self) -> Result<Option<u64>>

The maximum number of MPTs that can exist at one time. If omitted, the maximum is currently limited to 2^63-1.
Source§

fn outstanding_amount(&self) -> Result<u64>

The total amount of MPTs of this issuance currently in circulation. This value increases when the issuer sends MPTs to a non-issuer, and decreases whenever the issuer receives MPTs.
Source§

fn locked_amount(&self) -> Result<Option<u64>>

The amount of tokens currently locked up (for example, in escrow). This amount is already included in the OutstandingAmount.
Source§

fn mptoken_metadata(&self) -> Result<Option<StandardBlob>>

Arbitrary metadata about this issuance, in hex format. The limit for this field is 1024 bytes.

This field is mutable by default, but can be made immutable.
Source§

fn previous_txn_id(&self) -> Result<Hash256>

The identifying hash of the transaction that most recently modified this entry.
Source§

fn previous_txn_lgr_seq(&self) -> Result<u32>

The index of the ledger that contains the transaction that most recently modified this object.
Source§

fn domain_id(&self) -> Result<Option<Hash256>>

The ledger entry ID of a permissioned domain that grants access to the MPT. This field is always mutable.
Source§

fn immutable_flags(&self) -> Result<Option<u32>>

Indicates which fields and flags are immutable for this MPT issuance. Any field or flag not represented here remains mutable. See MPTokenIssuance Immutable Flags.
Source§

fn reference_holding(&self) -> Result<Option<Hash256>>

The ReferenceHolding field (Optional).
Source§

fn issuer_encryption_key(&self) -> Result<Option<StandardBlob>>

A 33-byte compressed ElGamal public key for the issuer.
Source§

fn auditor_encryption_key(&self) -> Result<Option<StandardBlob>>

A 33-byte compressed ElGamal public key for an optional on-chain auditor.
Source§

fn confidential_outstanding_amount(&self) -> Result<Option<u64>>

The total amount of this token that is currently held in confidential balances.
Source§

impl PartialEq for MPTokenIssuance

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for MPTokenIssuance

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
§

impl<T> Any for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

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> 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> 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.