Kagome
Polkadot Runtime Engine in C++17
kagome_db_editor.cpp File Reference
Include dependency graph for kagome_db_editor.cpp:

Go to the source code of this file.

Classes

struct  is_optional< T >
 
struct  is_optional< typename std::optional< T > >
 
class  Configurator
 

Typedefs

template<class T >
using sptr = std::shared_ptr< T >
 

Enumerations

enum  ArgNum : uint8_t { DB_PATH = 1, STATE_HASH, MODE }
 
enum  Command : uint8_t { COMPACT, DUMP }
 

Functions

template<typename T >
auto check (T &&res)
 
void usage ()
 
outcome::result< std::unique_ptr< PersistentTrieBatch > > persistent_batch (const std::unique_ptr< TrieStorageImpl > &trie, const RootHash &hash)
 
void child_storage_root_hashes (const std::unique_ptr< PersistentTrieBatch > &batch, std::set< RootHash > &hashes)
 
auto is_hash (const char *s)
 
int main (int argc, char *argv[])
 

Typedef Documentation

template<class T >
using sptr = std::shared_ptr<T>

Definition at line 43 of file kagome_db_editor.cpp.

Enumeration Type Documentation

enum ArgNum : uint8_t
Enumerator
DB_PATH 
STATE_HASH 
MODE 

Definition at line 94 of file kagome_db_editor.cpp.

enum Command : uint8_t
Enumerator
COMPACT 
DUMP 

Definition at line 95 of file kagome_db_editor.cpp.

Function Documentation

template<typename T >
auto check ( T &&  res)
inline

Definition at line 52 of file kagome_db_editor.cpp.

void child_storage_root_hashes ( const std::unique_ptr< PersistentTrieBatch > &  batch,
std::set< RootHash > &  hashes 
)

Definition at line 137 of file kagome_db_editor.cpp.

auto is_hash ( const char *  s)

Definition at line 161 of file kagome_db_editor.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 166 of file kagome_db_editor.cpp.

outcome::result<std::unique_ptr<PersistentTrieBatch> > persistent_batch ( const std::unique_ptr< TrieStorageImpl > &  trie,
const RootHash hash 
)

Definition at line 119 of file kagome_db_editor.cpp.

void usage ( )

Definition at line 97 of file kagome_db_editor.cpp.