|
| BitcoinLikeAccount (const std::shared_ptr< AbstractWallet > &wallet, int32_t index, const std::shared_ptr< BitcoinLikeBlockchainExplorer > &explorer, const std::shared_ptr< BitcoinLikeBlockchainObserver > &observer, const std::shared_ptr< BitcoinLikeAccountSynchronizer > &synchronizer, const std::shared_ptr< BitcoinLikeKeychain > &keychain) |
|
std::shared_ptr< api::BitcoinLikeAccount > | asBitcoinLikeAccount () override |
|
int | putTransaction (soci::session &sql, const BitcoinLikeBlockchainExplorerTransaction &transaction) |
|
bool | putBlock (soci::session &sql, const BitcoinLikeBlockchainExplorer::Block &block) |
|
std::shared_ptr< BitcoinLikeKeychain > | getKeychain () const |
|
void | startBlockchainObservation () override |
|
void | stopBlockchainObservation () override |
|
bool | isObservingBlockchain () override |
|
bool | isSynchronizing () override |
|
FuturePtr< ledger::core::Amount > | getBalance () override |
|
Future< std::vector< std::shared_ptr< api::Amount > > > | getBalanceHistory (const std::string &start, const std::string &end, api::TimePeriod precision) override |
|
FuturePtr< BitcoinLikeBlockchainExplorerTransaction > | getTransaction (const std::string &hash) |
|
std::shared_ptr< api::EventBus > | synchronize () override |
|
void | broadcastRawTransaction (const std::vector< uint8_t > &transaction, const std::shared_ptr< api::StringCallback > &callback) override |
|
void | broadcastTransaction (const std::shared_ptr< api::BitcoinLikeTransaction > &transaction, const std::shared_ptr< api::StringCallback > &callback) override |
|
std::shared_ptr< api::BitcoinLikeTransactionBuilder > | buildTransaction (std::experimental::optional< bool > partial) override |
|
std::shared_ptr< api::OperationQuery > | queryOperations () override |
|
void | getUTXO (int32_t from, int32_t to, const std::shared_ptr< api::BitcoinLikeOutputListCallback > &callback) override |
|
Future< std::vector< std::shared_ptr< api::BitcoinLikeOutput > > > | getUTXO () |
|
Future< std::vector< std::shared_ptr< api::BitcoinLikeOutput > > > | getUTXO (int32_t from, int32_t to) |
|
void | getUTXOCount (const std::shared_ptr< api::I32Callback > &callback) override |
|
Future< int32_t > | getUTXOCount () |
|
Future< AddressList > | getFreshPublicAddresses () override |
|
Future< std::string > | broadcastTransaction (const std::vector< uint8_t > &transaction) |
|
std::string | getRestoreKey () override |
|
const std::shared_ptr< BitcoinLikeBlockchainExplorer > & | getExplorer () const |
|
Future< api::ErrorCode > | eraseDataSince (const std::chrono::system_clock::time_point &date) override |
|
void | getFees (const std::shared_ptr< api::BigIntListCallback > &callback) override |
|
virtual void | getUTXO (int32_t from, int32_t to, const std::shared_ptr< BitcoinLikeOutputListCallback > &callback)=0 |
|
virtual void | getUTXOCount (const std::shared_ptr< I32Callback > &callback)=0 |
|
virtual void | broadcastRawTransaction (const std::vector< uint8_t > &transaction, const std::shared_ptr< StringCallback > &callback)=0 |
|
virtual void | broadcastTransaction (const std::shared_ptr< BitcoinLikeTransaction > &transaction, const std::shared_ptr< StringCallback > &callback)=0 |
|
virtual void | getFees (const std::shared_ptr< BigIntListCallback > &callback)=0 |
|
| AbstractAccount (const std::shared_ptr< AbstractWallet > &wallet, int32_t index) |
|
int32_t | getIndex () override |
|
std::shared_ptr< api::Preferences > | getPreferences () override |
|
std::shared_ptr< api::Logger > | getLogger () override |
|
bool | isInstanceOfBitcoinLikeAccount () override |
|
bool | isInstanceOfEthereumLikeAccount () override |
|
bool | isInstanceOfRippleLikeAccount () override |
|
api::WalletType | getWalletType () override |
|
std::shared_ptr< api::Preferences > | getOperationPreferences (const std::string &uid) override |
|
std::shared_ptr< api::BitcoinLikeAccount > | asBitcoinLikeAccount () override |
|
std::shared_ptr< api::EthereumLikeAccount > | asEthereumLikeAccount () override |
|
std::shared_ptr< api::RippleLikeAccount > | asRippleLikeAccount () override |
|
std::shared_ptr< api::TezosLikeAccount > | asTezosLikeAccount () override |
|
virtual std::shared_ptr< Preferences > | getOperationExternalPreferences (const std::string &uid) |
|
virtual std::shared_ptr< Preferences > | getOperationInternalPreferences (const std::string &uid) |
|
virtual std::shared_ptr< Preferences > | getInternalPreferences () const |
|
virtual std::shared_ptr< Preferences > | getExternalPreferences () const |
|
virtual std::shared_ptr< spdlog::logger > | logger () const |
|
virtual const std::string & | getAccountUid () const |
|
virtual std::shared_ptr< AbstractWallet > | getWallet () const |
|
virtual std::shared_ptr< AbstractWallet > | getWallet () |
|
const std::shared_ptr< api::ExecutionContext > | getMainExecutionContext () const |
|
void | getLastBlock (const std::shared_ptr< api::BlockCallback > &callback) override |
|
Future< api::Block > | getLastBlock () |
|
void | getBalance (const std::shared_ptr< api::AmountCallback > &callback) override |
|
void | getFreshPublicAddresses (const std::shared_ptr< api::AddressListCallback > &callback) override |
|
void | getBalanceHistory (const std::string &start, const std::string &end, api::TimePeriod precision, const std::shared_ptr< api::AmountListCallback > &callback) override |
|
std::shared_ptr< api::OperationQuery > | queryOperations () override |
|
std::shared_ptr< api::EventBus > | getEventBus () override |
|
void | emitEventsNow () |
|
void | eraseDataSince (const std::chrono::system_clock::time_point &date, const std::shared_ptr< api::ErrorCodeCallback > &callback) override |
|
| DedicatedContext (const std::shared_ptr< api::ExecutionContext > &context) |
|
template<typename T > |
Future< T > | async (std::function< T()> f) |
|
template<typename T > |
Future< T > | async (std::function< T()> f) const |
|
Future< Unit > | run (std::function< void()> f) |
|
std::shared_ptr< api::ExecutionContext > | getContext () const |
|
virtual void | getBalance (const std::shared_ptr< AmountCallback > &callback)=0 |
|
virtual void | getBalanceHistory (const std::string &start, const std::string &end, TimePeriod period, const std::shared_ptr< AmountListCallback > &callback)=0 |
|
virtual void | getFreshPublicAddresses (const std::shared_ptr< AddressListCallback > &callback)=0 |
|
virtual void | getLastBlock (const std::shared_ptr< BlockCallback > &callback)=0 |
|
virtual void | eraseDataSince (const std::chrono::system_clock::time_point &date, const std::shared_ptr< ErrorCodeCallback > &callback)=0 |
|
|
static const int | FLAG_NEW_TRANSACTION = 0x01 |
|
static const int | FLAG_TRANSACTION_UPDATED = 0x01 << 1 |
|
static const int | FLAG_TRANSACTION_IGNORED = 0x00 |
|
static const int | FLAG_TRANSACTION_ON_PREVIOUSLY_EMPTY_ADDRESS = 0x01 << 2 |
|
static const int | FLAG_TRANSACTION_ON_USED_ADDRESS = 0x01 << 3 |
|
static const int | FLAG_TRANSACTION_CREATED_SENDING_OPERATION = 0x01 << 4 |
|
static const int | FLAG_TRANSACTION_CREATED_RECEPTION_OPERATION = 0x01 << 5 |
|
static std::string const | EV_SYNC_DURATION_MS = {"EV_SYNC_DURATION_MS"} |
|
static std::string const | EV_SYNC_ERROR_CODE = {"EV_SYNC_ERROR_CODE"} |
|
static std::string const | EV_SYNC_ERROR_CODE_INT = {"EV_SYNC_ERROR_CODE_INT"} |
|
static std::string const | EV_SYNC_ERROR_MESSAGE = {"EV_SYNC_ERROR_MESSAGE"} |
|
static std::string const | EV_NEW_BLOCK_CURRENCY_NAME = {"EV_NEW_BLOCK_CURRENCY_NAME"} |
|
static std::string const | EV_NEW_BLOCK_HASH = {"EV_NEW_BLOCK_HASH"} |
|
static std::string const | EV_NEW_BLOCK_HEIGHT = {"EV_NEW_BLOCK_HEIGHT"} |
|
static std::string const | EV_NEW_OP_WALLET_NAME = {"EV_NEW_OP_WALLET_NAME"} |
|
static std::string const | EV_NEW_OP_ACCOUNT_INDEX = {"EV_NEW_OP_ACCOUNT_INDEX"} |
|
static std::string const | EV_NEW_OP_UID = {"EV_NEW_OP_UID"} |
|