[][src]Struct lnpbp::bp::chain::AssetParams

pub struct AssetParams {
    pub ticker: String,
    pub unit_of_accounting: String,
    pub indivisible_unit: String,
    pub divisibility: u64,
    pub asset_id: AssetId,
    pub asset_system: AssetSystem,
}

Parameters for a given asset, which are shared between different types of Layer 1, 2 and 3 assets.

Fields

ticker: String

Short asset name, or ticker, like BTC for bitcoin. Case-sensitive with default use of uppercase.

unit_of_accounting: String

Full name for a given asset as a unit of accounting, for instance "Bitcoin". Also case-sensitive.

indivisible_unit: String

Full name for the smallest indivisible unit, like "satoshi" for Bitcoin network

divisibility: u64

Number of smallest indivisible units inside the unit of accounting

asset_id: AssetId

Identifier of the asset; for native chain assets matches to the genesis block hash of the chain itself (i.e. ChainParams::genesis_hash), for other assets are specific to a given asset system: for confidential assets this is an AssetId, for RGB – hash of asset genesis transition, i.e. ContractId.

asset_system: AssetSystem

AssetSystem in which asset is defined

Trait Implementations

impl Clone for AssetParams[src]

impl Debug for AssetParams[src]

impl Display for AssetParams[src]

impl Eq for AssetParams[src]

impl Hash for AssetParams[src]

impl Ord for AssetParams[src]

impl PartialEq<AssetParams> for AssetParams[src]

impl PartialOrd<AssetParams> for AssetParams[src]

impl StrictDecode for AssetParams[src]

type Error = Error

Implementation-dependent error type

impl StrictEncode for AssetParams[src]

type Error = Error

Implementation-dependent error type

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<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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>,