ledger-core
|
#include <Currency.hpp>
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) | |
Currency & | operator= (const Currency &cpy) |
template<class Archive > | |
void | load (Archive &archive) |
template<class Archive > | |
void | save (Archive &archive) const |
Structure of cryptocurrency.
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.
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
std::experimental::optional<EthereumLikeNetworkParameters> ledger::core::api::Currency::ethereumLikeNetworkParameters |
Optional EthereumLikeNetworkParameters, for more details refer to EthereumLikeNetworkParameters doc
std::string ledger::core::api::Currency::name |
String which represents currency name.
std::string ledger::core::api::Currency::paymentUriScheme |
String representing schemes allowing to send money to a cryptocurrency address (e.g. bitcoin).
std::experimental::optional<RippleLikeNetworkParameters> ledger::core::api::Currency::rippleLikeNetworkParameters |
Optional RippleLikeNetworkParameters, for more details refer to RippleLikeNetworkParameters doc
std::experimental::optional<TezosLikeNetworkParameters> ledger::core::api::Currency::tezosLikeNetworkParameters |
Optional TezosLikeNetworkParameters, for more details refer to TezosLikeNetworkParameters doc
std::vector<CurrencyUnit> ledger::core::api::Currency::units |
List of CurrencyUnit objects (e.g. BTC, mBTC ...).
WalletType ledger::core::api::Currency::walletType |
WalletType object defining the type of wallet the currency belongs to.