|
ledger-core
|
#include <Wallet.hpp>
Inheritance diagram for ledger::core::api::Wallet:Public Member Functions | |
| virtual std::string | getName ()=0 |
| virtual void | getAccount (int32_t index, const std::shared_ptr< AccountCallback > &callback)=0 |
| virtual void | getAccountCount (const std::shared_ptr< I32Callback > &callback)=0 |
| virtual void | getAccounts (int32_t offset, int32_t count, const std::shared_ptr< AccountListCallback > &callback)=0 |
| virtual void | getNextAccountIndex (const std::shared_ptr< I32Callback > &callback)=0 |
| virtual std::shared_ptr< EventBus > | getEventBus ()=0 |
| virtual bool | isSynchronizing ()=0 |
| virtual std::shared_ptr< EventBus > | synchronize ()=0 |
| virtual std::shared_ptr< Preferences > | getPreferences ()=0 |
| virtual std::shared_ptr< Logger > | getLogger ()=0 |
| virtual std::shared_ptr< Preferences > | getAccountPreferences (int32_t index)=0 |
| virtual std::shared_ptr< BitcoinLikeWallet > | asBitcoinLikeWallet ()=0 |
| virtual Currency | getCurrency ()=0 |
| virtual bool | isInstanceOfBitcoinLikeWallet ()=0 |
| virtual bool | isInstanceOfEthereumLikeWallet ()=0 |
| virtual bool | isInstanceOfRippleLikeWallet ()=0 |
| virtual WalletType | getWalletType ()=0 |
| virtual void | getLastBlock (const std::shared_ptr< BlockCallback > &callback)=0 |
| virtual void | getAccountCreationInfo (int32_t accountIndex, const std::shared_ptr< AccountCreationInfoCallback > &callback)=0 |
| virtual void | getExtendedKeyAccountCreationInfo (int32_t accountIndex, const std::shared_ptr< ExtendedKeyAccountCreationInfoCallback > &callback)=0 |
| virtual void | getNextAccountCreationInfo (const std::shared_ptr< AccountCreationInfoCallback > &callback)=0 |
| virtual void | getNextExtendedKeyAccountCreationInfo (const std::shared_ptr< ExtendedKeyAccountCreationInfoCallback > &callback)=0 |
| virtual void | newAccountWithInfo (const AccountCreationInfo &accountCreationInfo, const std::shared_ptr< AccountCallback > &callback)=0 |
| virtual void | newAccountWithExtendedKeyInfo (const ExtendedKeyAccountCreationInfo &extendedKeyAccountCreationInfo, const std::shared_ptr< AccountCallback > &callback)=0 |
| virtual void | eraseDataSince (const std::chrono::system_clock::time_point &date, const std::shared_ptr< ErrorCodeCallback > &callback)=0 |
| virtual std::shared_ptr< DynamicObject > | getConfiguration ()=0 |
Class representing a wallet.
|
pure virtual |
Convert wallet to a Bitcoin one.
Implemented in ledger::core::AbstractWallet.
|
pure virtual |
Erase data (in user's DB) relative to wallet since given date.
| date,start | date of data deletion |
|
pure virtual |
|
pure virtual |
Get number of accounts instanciated under wallet.
| callback,Callback | returning, if getAccountCount succeed, a 32-bit integer representing number of accounts |
|
pure virtual |
Return infos about the creation of specific account.
| accountIndex,32-bit | account, index of account in wallet |
| callback,Callback | returning an AccountCreationInfo |
|
pure virtual |
Get preferences of specific account.
| index,32-bit | integer, account's index |
Implemented in ledger::core::AbstractWallet.
|
pure virtual |
Get list of accounts instanciated under wallet in a given range.
| offset,32-bit | integer from which we retrieve accounts |
| count,32-bit | integer, number of accounts to retrieve |
| callback,ListCallback | returning, if getAccounts succeed, list of Accounts object |
|
pure virtual |
Return wallet's configuration
Implemented in ledger::core::AbstractWallet.
|
pure virtual |
|
pure virtual |
Return event bus through which wallet synchronizes it's accounts and interact with blockchain.
Implemented in ledger::core::AbstractWallet.
|
pure virtual |
TODO
|
pure virtual |
|
pure virtual |
Return account's logger which provides all needed (e.g. database) logs.
Implemented in ledger::core::AbstractWallet.
|
pure virtual |
|
pure virtual |
Return infos about the next created account.
| callback,Callback | returning an AccountCreationInfo |
|
pure virtual |
Get index of next account to create.
|
pure virtual |
TODO
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Return synchronization status wallet, true if at least one of accounts is synchronizing.
Implemented in ledger::core::BitcoinLikeWallet, ledger::core::RippleLikeWallet, ledger::core::EthereumLikeWallet, and ledger::core::TezosLikeWallet.
|
pure virtual |
TODO
|
pure virtual |
Get account from given account creation infos.
| accountCreationInfo,AccountCreationInfo | object |
| callback,Callback | returning an Account object with given creation infos |
|
pure virtual |
Start synchronization of all accounts under wallet.
Implemented in ledger::core::BitcoinLikeWallet, ledger::core::RippleLikeWallet, ledger::core::TezosLikeWallet, and ledger::core::EthereumLikeWallet.
1.8.13