ledger-core
|
Namespaces | |
api | |
endianness | |
hex | |
Typedefs | |
template<typename T > | |
using | FuturePtr = Future< std::shared_ptr< T > > |
template<typename T > | |
using | PromisePtr = Promise< std::shared_ptr< T > > |
using | BitcoinExtendedPublicKey = AbstractExtendedPublicKey< api::BitcoinLikeNetworkParameters > |
using | rlp_tuple = std::tuple< int, int, RLP_TYPES > |
template<typename K , typename V > | |
using | Map = MapLike< K, V, std::unordered_map< K, V > > |
template<typename T > | |
using | Array = Sequence< T, std::vector< T > > |
template<typename T > | |
using | List = Sequence< T, std::vector< T > > |
using | String = CharSequence< char, std::string > |
using | EthereumExtendedPublicKey = AbstractExtendedPublicKey< api::EthereumLikeNetworkParameters > |
typedef std::function< bool(const std::shared_ptr< api::Event > &)> | EventFilter |
using | ProgressHandler = std::function< void(const std::string &, double)> |
using | WebSocketEventHandler = std::function< void(WebSocketEventType, const std::shared_ptr< WebSocketConnection > &connection, const Option< std::string > &message, Option< api::ErrorCode >)> |
using | RippleExtendedPublicKey = AbstractExtendedPublicKey< api::RippleLikeNetworkParameters > |
using | TezosExtendedPublicKey = AbstractExtendedPublicKey< api::TezosLikeNetworkParameters > |
template<typename T > | |
using | OptionPtr = Option< std::shared_ptr< T > > |
template<typename T > | |
using | optional = std::experimental::optional< T > |
template<typename T > | |
using | TryPtr = Try< std::shared_ptr< T > > |
using | LedgerApiBlockchainExplorer = AbstractLedgerApiBlockchainExplorer< BitcoinLikeBlockchainExplorerTransaction, BitcoinLikeBlockchainExplorer::TransactionsBulk, TransactionsParser, TransactionsBulkParser, BlockParser, api::BitcoinLikeNetworkParameters > |
using | BitcoinBlockchainObserver = AbstractBlockchainObserver< BitcoinLikeAccount, BitcoinLikeBlockchainExplorerTransaction, BitcoinLikeBlockchainExplorer::Block > |
using | BitcoinLikeScriptOpCode = btccore::opcodetype |
using | BlockchainAccountSynchronizer = AbstractBlockchainExplorerAccountSynchronizer< BitcoinLikeAccount, BitcoinLikeAddress, BitcoinLikeKeychain, BitcoinLikeBlockchainExplorer > |
using | BitcoinLikeTransactionBuildFunction = std::function< Future< std::shared_ptr< api::BitcoinLikeTransaction > >(const BitcoinLikeTransactionBuildRequest &)> |
using | BitcoinLikeGetUtxoFunction = std::function< Future< std::vector< std::shared_ptr< api::BitcoinLikeOutput > >>()> |
using | BitcoinLikeGetTxFunction = std::function< FuturePtr< BitcoinLikeBlockchainExplorerTransaction >(const std::string &)> |
using | BitcoinLikeApiUtxoVector = std::vector< std::shared_ptr< api::BitcoinLikeOutput > > |
using | BitcoinLikeApiOutputVector = BitcoinLikeApiUtxoVector |
using | LedgerApiEthBlockchainExplorer = AbstractLedgerApiBlockchainExplorer< EthereumLikeBlockchainExplorerTransaction, EthereumLikeBlockchainExplorer::TransactionsBulk, EthereumLikeTransactionsParser, EthereumLikeTransactionsBulkParser, EthereumLikeBlockParser, api::EthereumLikeNetworkParameters > |
using | EthereumLikeAccountSynchronizerFactory = std::function< std::shared_ptr< EthereumLikeAccountSynchronizer >()> |
using | EthereumBlockchainObserver = AbstractBlockchainObserver< EthereumLikeAccount, EthereumLikeBlockchainExplorerTransaction, EthereumLikeBlockchainExplorer::Block > |
using | EthereumBlockchainAccountSynchronizer = AbstractBlockchainExplorerAccountSynchronizer< EthereumLikeAccount, EthereumLikeAddress, EthereumLikeKeychain, EthereumLikeBlockchainExplorer > |
using | EthereumLikeTransactionBuildFunction = std::function< Future< std::shared_ptr< api::EthereumLikeTransaction > >(const EthereumLikeTransactionBuildRequest &, const std::shared_ptr< EthereumLikeBlockchainExplorer > &)> |
using | RippleLikeAccountSynchronizerFactory = std::function< std::shared_ptr< RippleLikeAccountSynchronizer >()> |
using | RippleBlockchainObserver = AbstractBlockchainObserver< RippleLikeAccount, RippleLikeBlockchainExplorerTransaction, RippleLikeBlockchainExplorer::Block > |
using | RippleBlockchainAccountSynchronizer = AbstractBlockchainExplorerAccountSynchronizer< RippleLikeAccount, RippleLikeAddress, RippleLikeKeychain, RippleLikeBlockchainExplorer > |
using | RippleLikeTransactionBuildFunction = std::function< Future< std::shared_ptr< api::RippleLikeTransaction > >(const RippleLikeTransactionBuildRequest &, const std::shared_ptr< RippleLikeBlockchainExplorer > &)> |
using | ExternalApiBlockchainExplorer = AbstractLedgerApiBlockchainExplorer< TezosLikeBlockchainExplorerTransaction, TezosLikeBlockchainExplorer::TransactionsBulk, TezosLikeTransactionsParser, TezosLikeTransactionsBulkParser, TezosLikeBlockParser, api::TezosLikeNetworkParameters > |
using | TezosLikeAccountSynchronizerFactory = std::function< std::shared_ptr< TezosLikeAccountSynchronizer >()> |
using | TezosBlockchainObserver = AbstractBlockchainObserver< TezosLikeAccount, TezosLikeBlockchainExplorerTransaction, TezosLikeBlockchainExplorer::Block > |
using | TezosBlockchainAccountSynchronizer = AbstractBlockchainExplorerAccountSynchronizer< TezosLikeAccount, TezosLikeAddress, TezosLikeKeychain, TezosLikeBlockchainExplorer > |
using | TezosLikeTransactionBuildFunction = std::function< Future< std::shared_ptr< api::TezosLikeTransaction > >(const TezosLikeTransactionBuildRequest &, const std::shared_ptr< TezosLikeBlockchainExplorer > &)> |
Functions | |
template<typename T , class Class > | |
std::shared_ptr< CompletionBlock< T, Class, has_complete_method< Class, void(const std::shared_ptr< T > &, const std::experimental::optional< api::Error > &)>::value > > | make_api_completion_block () |
template<typename T > | |
Future< std::vector< T > > | executeAll (const std::shared_ptr< api::ExecutionContext > &context, std::vector< Future< T >> &futures) |
std::string | toBech32Helper (const std::string &keychainEngine, const std::vector< uint8_t > &hash160, const api::BitcoinLikeNetworkParameters ¶ms) |
template<> | |
void | DynamicValue::serialize< cereal::PortableBinaryOutputArchive > (cereal::PortableBinaryOutputArchive &ar) |
template<> | |
void | DynamicValue::serialize< cereal::PortableBinaryInputArchive > (cereal::PortableBinaryInputArchive &ar) |
template<> | |
void | DynamicValue::serialize< cereal::BinaryOutputArchive > (cereal::BinaryOutputArchive &ar) |
template<> | |
void | DynamicValue::serialize< cereal::BinaryInputArchive > (cereal::BinaryInputArchive &ar) |
String | operator"" _S (const char *str, size_t size) |
int | getDatabaseMigrationVersion (soci::session &sql) |
Get the current database migration version. | |
template<> | |
bool | migrate<-1 > (soci::session &sql, int currentVersion) |
template<> | |
void | rollback<-1 > (soci::session &sql, int currentVersion) |
template<> | |
void | migrate< 0 > (soci::session &sql) |
template<> | |
void | rollback< 0 > (soci::session &sql) |
template<> | |
void | migrate< 1 > (soci::session &sql) |
template<> | |
void | rollback< 1 > (soci::session &sql) |
template<> | |
void | migrate< 2 > (soci::session &sql) |
template<> | |
void | rollback< 2 > (soci::session &sql) |
template<> | |
void | migrate< 3 > (soci::session &sql) |
template<> | |
void | rollback< 3 > (soci::session &sql) |
template<> | |
void | migrate< 4 > (soci::session &sql) |
template<> | |
void | rollback< 4 > (soci::session &sql) |
template<> | |
void | migrate< 5 > (soci::session &sql) |
template<> | |
void | rollback< 5 > (soci::session &sql) |
template<> | |
void | migrate< 6 > (soci::session &sql) |
template<> | |
void | rollback< 6 > (soci::session &sql) |
template<> | |
void | migrate< 7 > (soci::session &sql) |
template<> | |
void | rollback< 7 > (soci::session &sql) |
template<> | |
void | migrate< 8 > (soci::session &sql) |
template<> | |
void | rollback< 8 > (soci::session &sql) |
template<> | |
void | migrate< 9 > (soci::session &sql) |
template<> | |
void | rollback< 9 > (soci::session &sql) |
template<> | |
void | migrate< 10 > (soci::session &sql) |
template<> | |
void | rollback< 10 > (soci::session &sql) |
template<> | |
void | migrate< 11 > (soci::session &sql) |
template<> | |
void | rollback< 11 > (soci::session &sql) |
template<> | |
void | migrate< 12 > (soci::session &sql) |
template<> | |
void | rollback< 12 > (soci::session &sql) |
template<> | |
void | migrate< 13 > (soci::session &sql) |
template<> | |
void | rollback< 13 > (soci::session &sql) |
template<> | |
void | migrate< 14 > (soci::session &sql) |
template<> | |
void | rollback< 14 > (soci::session &sql) |
template<> | |
void | migrate< 15 > (soci::session &sql) |
template<> | |
void | rollback< 15 > (soci::session &sql) |
template<> | |
void | migrate< 16 > (soci::session &sql) |
template<> | |
void | rollback< 16 > (soci::session &sql) |
template<> | |
void | migrate< 17 > (soci::session &sql) |
template<> | |
void | rollback< 17 > (soci::session &sql) |
template<int migrationNumber> | |
void | migrate (soci::session &sql) |
template<int version> | |
bool | migrate (soci::session &sql, int currentVersion) |
template<int version> | |
void | rollback (soci::session &sql) |
template<int version> | |
void | rollback (soci::session &sql, int currentVersion) |
std::shared_ptr< api::Event > | make_event (api::EventCode code, const std::shared_ptr< api::DynamicObject > &payload) |
std::shared_ptr< LambdaEventReceiver > | make_receiver (std::function< void(const std::shared_ptr< api::Event > &)> f) |
template<typename... Args> | |
Exception | make_exception (api::ErrorCode code, const std::string &format, const Args &... args) |
template<typename... Args> | |
Exception | make_exception (api::ErrorCode code, std::shared_ptr< void > userData, const std::string &format, const Args &... args) |
std::shared_ptr< api::Runnable > | make_runnable (std::function< void()> func) |
template<typename T > | |
Option< std::shared_ptr< T > > | make_option (const std::shared_ptr< T > &ptr) |
template<typename T > | |
Try< T > | make_try (std::function< T()> lambda) |
template<> | |
std::shared_ptr< AbstractWalletFactory > | make_factory< api::WalletType::BITCOIN > (const api::Currency ¤cy, const std::shared_ptr< WalletPool > &pool) |
template<> | |
std::shared_ptr< AbstractWalletFactory > | make_factory< api::WalletType::ETHEREUM > (const api::Currency ¤cy, const std::shared_ptr< WalletPool > &pool) |
template<> | |
std::shared_ptr< AbstractWalletFactory > | make_factory< api::WalletType::RIPPLE > (const api::Currency ¤cy, const std::shared_ptr< WalletPool > &pool) |
template<> | |
std::shared_ptr< AbstractWalletFactory > | make_factory< api::WalletType::TEZOS > (const api::Currency ¤cy, const std::shared_ptr< WalletPool > &pool) |
template<> | |
std::shared_ptr< AbstractWalletFactory > | make_factory< api::WalletType::MONERO > (const api::Currency ¤cy, const std::shared_ptr< WalletPool > &pool) |
template<api::WalletType > | |
std::shared_ptr< AbstractWalletFactory > | make_factory (const api::Currency ¤cy, const std::shared_ptr< WalletPool > &pool) |
CurrencyBuilder | Currency (const std::string &name) |
bool | writeLengthPrefix (BytesWriter &writer, uint64_t size) |
uint64_t | readLengthPrefix (BytesReader &reader) |
Variables | |
const char * | charset = "qpzry9x8gf2tvdw0s3jn54khce6mua7l" |
const int8_t | charsetRev [128] |
const int | LIB_VERSION = LIB_VERSION_MAJOR << 16 | LIB_VERSION_MINOR << 8 | LIB_VERSION_PATCH |
const int | VERSION_MAJOR = LIB_VERSION_MAJOR |
const int | VERSION_MINOR = LIB_VERSION_MINOR |
const int | VERSION_PATCH = LIB_VERSION_PATCH |
const std::string | LIB_STRING_VERSION |
const Unit | unit {} |
const uint64_t | XRP_EPOCH_SECONDS_FROM_UNIX_EPOCH = 946684800 |
Ledger core root namespace
void ledger::core::rollback | ( | soci::session & | sql, |
int | currentVersion | ||
) |
Rollback all migrations down.
This is a bit like dropping the content of the database, but does it in a more correct and portable way. Also, it enables possible partial rollbacks, even though the current implementation doesn’t.
const int8_t ledger::core::charsetRev[128] |
LIBCORE_EXPORT const std::string ledger::core::LIB_STRING_VERSION |