ledger-core
Public Member Functions | Public Attributes | List of all members
ledger::core::api::Currency Struct Referencefinal

#include <Currency.hpp>

+ Collaboration diagram for ledger::core::api::Currency:

Public Member Functions

 Currency (WalletType walletType_, std::string name_, int32_t bip44CoinType_, std::string paymentUriScheme_, std::vector< CurrencyUnit > units_, std::experimental::optional< BitcoinLikeNetworkParameters > bitcoinLikeNetworkParameters_, std::experimental::optional< EthereumLikeNetworkParameters > ethereumLikeNetworkParameters_, std::experimental::optional< RippleLikeNetworkParameters > rippleLikeNetworkParameters_, std::experimental::optional< TezosLikeNetworkParameters > tezosLikeNetworkParameters_)
 
 Currency (const Currency &cpy)
 
Currencyoperator= (const Currency &cpy)
 
template<class Archive >
void load (Archive &archive)
 
template<class Archive >
void save (Archive &archive) const
 

Public Attributes

WalletType walletType
 
std::string name
 
int32_t bip44CoinType
 
std::string paymentUriScheme
 
std::vector< CurrencyUnitunits
 
std::experimental::optional< BitcoinLikeNetworkParametersbitcoinLikeNetworkParameters
 
std::experimental::optional< EthereumLikeNetworkParametersethereumLikeNetworkParameters
 
std::experimental::optional< RippleLikeNetworkParametersrippleLikeNetworkParameters
 
std::experimental::optional< TezosLikeNetworkParameterstezosLikeNetworkParameters
 

Detailed Description

Structure of cryptocurrency.

Member Data Documentation

◆ bip44CoinType

int32_t ledger::core::api::Currency::bip44CoinType

Integer cointype, part of BIP32 path. One can refer to https://github.com/satoshilabs/slips/blob/master/slip-0044.md.

◆ bitcoinLikeNetworkParameters

std::experimental::optional<BitcoinLikeNetworkParameters> ledger::core::api::Currency::bitcoinLikeNetworkParameters

TODO: find a better solution to have only a networkParameters Optional BitcoinLikeNetworkParameters, for more details refer to BitcoinLikeNetworkParameters doc

◆ ethereumLikeNetworkParameters

std::experimental::optional<EthereumLikeNetworkParameters> ledger::core::api::Currency::ethereumLikeNetworkParameters

Optional EthereumLikeNetworkParameters, for more details refer to EthereumLikeNetworkParameters doc

◆ name

std::string ledger::core::api::Currency::name

String which represents currency name.

◆ paymentUriScheme

std::string ledger::core::api::Currency::paymentUriScheme

String representing schemes allowing to send money to a cryptocurrency address (e.g. bitcoin).

◆ rippleLikeNetworkParameters

std::experimental::optional<RippleLikeNetworkParameters> ledger::core::api::Currency::rippleLikeNetworkParameters

Optional RippleLikeNetworkParameters, for more details refer to RippleLikeNetworkParameters doc

◆ tezosLikeNetworkParameters

std::experimental::optional<TezosLikeNetworkParameters> ledger::core::api::Currency::tezosLikeNetworkParameters

Optional TezosLikeNetworkParameters, for more details refer to TezosLikeNetworkParameters doc

◆ units

std::vector<CurrencyUnit> ledger::core::api::Currency::units

List of CurrencyUnit objects (e.g. BTC, mBTC ...).

◆ walletType

WalletType ledger::core::api::Currency::walletType

WalletType object defining the type of wallet the currency belongs to.


The documentation for this struct was generated from the following file: