CatapultServer  v0.5.0.1 (Elephant)
catapult::mongo::plugins Namespace Reference

Classes

class  LockInfoMapper
 Traits based lock info mapper. More...
 
struct  MongoLockInfoCacheStorageTraits
 Mongo lock info cache storage traits. More...
 
struct  NamespaceDescriptor
 A namespace descriptor. More...
 

Functions

PLUGIN_API std::unique_ptr< MongoTransactionPluginCreateAccountLinkTransactionMongoPlugin ()
 Creates a mongo accoult link transaction plugin. More...
 
std::unique_ptr< MongoTransactionPluginCreateAggregateTransactionMongoPlugin (const MongoTransactionRegistry &transactionRegistry, model::EntityType transactionType)
 Creates a mongo aggregate transaction plugin around transactionRegistry for transactions with type transactionType. More...
 
PLUGIN_API std::unique_ptr< MongoTransactionPluginCreateHashLockTransactionMongoPlugin ()
 Creates a mongo hash lock transaction plugin. More...
 
bsoncxx::document::value ToDbModel (const state::HashLockInfo &hashLockInfo, const Address &accountAddress)
 Maps a hashLockInfo and accountAddress to the corresponding db model value. More...
 
 DECLARE_MONGO_CACHE_STORAGE (HashLockInfo)
 Creates a mongo hash lock info cache storage around database, bulkWriter and networkIdentifier. More...
 
bsoncxx::document::value ToDbModel (const state::SecretLockInfo &secretLockInfo, const Address &accountAddress)
 Maps a secretLockInfo and accountAddress to the corresponding db model value. More...
 
PLUGIN_API std::unique_ptr< MongoTransactionPluginCreateSecretLockTransactionMongoPlugin ()
 Creates a mongo secret lock transaction plugin. More...
 
PLUGIN_API std::unique_ptr< MongoTransactionPluginCreateSecretProofTransactionMongoPlugin ()
 Creates a mongo secret proof transaction plugin. More...
 
 DECLARE_MONGO_CACHE_STORAGE (SecretLockInfo)
 Creates a mongo secret lock info cache storage around database, bulkWriter and networkIdentifier. More...
 
bsoncxx::document::value ToDbModel (const state::MosaicEntry &entry)
 Maps a mosaic entry to the corresponding db model value. More...
 
PLUGIN_API std::unique_ptr< MongoTransactionPluginCreateMosaicDefinitionTransactionMongoPlugin ()
 Creates a mongo mosaic definition transaction plugin. More...
 
std::unique_ptr< MongoReceiptPluginCreateMosaicExpiryReceiptMongoPlugin ()
 Creates a mongo mosaic expiry receipt plugin. More...
 
PLUGIN_API std::unique_ptr< MongoTransactionPluginCreateMosaicSupplyChangeTransactionMongoPlugin ()
 Creates a mongo mosaic supply change transaction plugin. More...
 
 DECLARE_MONGO_CACHE_STORAGE (Mosaic)
 Creates a mongo mosaic cache storage around database, bulkWriter and networkIdentifier. More...
 
bsoncxx::document::value ToDbModel (const state::MultisigEntry &entry, const Address &accountAddress)
 Maps a multisig entry and accountAddress to the corresponding db model value. More...
 
PLUGIN_API std::unique_ptr< MongoTransactionPluginCreateModifyMultisigAccountTransactionMongoPlugin ()
 Creates a mongo modify multisig account transaction plugin. More...
 
 DECLARE_MONGO_CACHE_STORAGE (Multisig)
 Creates a mongo multisig cache storage around database, bulkWriter and networkIdentifier. More...
 
PLUGIN_API std::unique_ptr< MongoTransactionPluginCreateAddressAliasTransactionMongoPlugin ()
 Creates a mongo address alias transaction plugin. More...
 
bsoncxx::document::value ToDbModel (const NamespaceDescriptor &descriptor)
 Maps a namespace descriptor to the corresponding db model value. More...
 
PLUGIN_API std::unique_ptr< MongoTransactionPluginCreateMosaicAliasTransactionMongoPlugin ()
 Creates a mongo mosaic alias transaction plugin. More...
 
std::unique_ptr< MongoReceiptPluginCreateNamespaceExpiryReceiptMongoPlugin ()
 Creates a mongo namespace expiry receipt plugin. More...
 
PLUGIN_API std::unique_ptr< MongoTransactionPluginCreateRegisterNamespaceTransactionMongoPlugin ()
 Creates a mongo register namespace transaction plugin. More...
 
 DECLARE_MONGO_CACHE_STORAGE (Namespace)
 Creates a mongo namespace cache storage around database, bulkWriter and networkIdentifier. More...
 
std::vector< NamespaceDescriptorNamespaceDescriptorsFromHistory (const state::RootNamespaceHistory &history, model::NetworkIdentifier networkIdentifier)
 Converts the root namespace history into a vector of namespace descriptors using networkIdentifier for address conversions. More...
 
PLUGIN_API std::unique_ptr< MongoTransactionPluginCreateAccountAddressRestrictionTransactionMongoPlugin ()
 Creates a mongo account address restriction transaction plugin. More...
 
PLUGIN_API std::unique_ptr< MongoTransactionPluginCreateAccountMosaicRestrictionTransactionMongoPlugin ()
 Creates a mongo account mosaic restriction transaction plugin. More...
 
PLUGIN_API std::unique_ptr< MongoTransactionPluginCreateAccountOperationRestrictionTransactionMongoPlugin ()
 Creates a mongo account operation restriction transaction plugin. More...
 
bsoncxx::document::value ToDbModel (const state::AccountRestrictions &restrictions)
 Maps a restrictions to the corresponding db model value. More...
 
 DECLARE_MONGO_CACHE_STORAGE (AccountRestriction)
 Creates a mongo account restriction cache storage around database, bulkWriter and networkIdentifier. More...
 
PLUGIN_API std::unique_ptr< MongoTransactionPluginCreateTransferTransactionMongoPlugin ()
 Creates a mongo transfer transaction plugin. More...
 

Function Documentation

◆ CreateAccountAddressRestrictionTransactionMongoPlugin()

PLUGIN_API std::unique_ptr<MongoTransactionPlugin> catapult::mongo::plugins::CreateAccountAddressRestrictionTransactionMongoPlugin ( )

Creates a mongo account address restriction transaction plugin.

Here is the caller graph for this function:

◆ CreateAccountLinkTransactionMongoPlugin()

PLUGIN_API std::unique_ptr<MongoTransactionPlugin> catapult::mongo::plugins::CreateAccountLinkTransactionMongoPlugin ( )

Creates a mongo accoult link transaction plugin.

Here is the caller graph for this function:

◆ CreateAccountMosaicRestrictionTransactionMongoPlugin()

PLUGIN_API std::unique_ptr<MongoTransactionPlugin> catapult::mongo::plugins::CreateAccountMosaicRestrictionTransactionMongoPlugin ( )

Creates a mongo account mosaic restriction transaction plugin.

Here is the caller graph for this function:

◆ CreateAccountOperationRestrictionTransactionMongoPlugin()

PLUGIN_API std::unique_ptr<MongoTransactionPlugin> catapult::mongo::plugins::CreateAccountOperationRestrictionTransactionMongoPlugin ( )

Creates a mongo account operation restriction transaction plugin.

Here is the caller graph for this function:

◆ CreateAddressAliasTransactionMongoPlugin()

PLUGIN_API std::unique_ptr<MongoTransactionPlugin> catapult::mongo::plugins::CreateAddressAliasTransactionMongoPlugin ( )

Creates a mongo address alias transaction plugin.

Here is the caller graph for this function:

◆ CreateAggregateTransactionMongoPlugin()

PLUGIN_API std::unique_ptr< MongoTransactionPlugin > catapult::mongo::plugins::CreateAggregateTransactionMongoPlugin ( const MongoTransactionRegistry transactionRegistry,
model::EntityType  transactionType 
)

Creates a mongo aggregate transaction plugin around transactionRegistry for transactions with type transactionType.

Here is the caller graph for this function:

◆ CreateHashLockTransactionMongoPlugin()

PLUGIN_API std::unique_ptr<MongoTransactionPlugin> catapult::mongo::plugins::CreateHashLockTransactionMongoPlugin ( )

Creates a mongo hash lock transaction plugin.

Here is the caller graph for this function:

◆ CreateModifyMultisigAccountTransactionMongoPlugin()

PLUGIN_API std::unique_ptr<MongoTransactionPlugin> catapult::mongo::plugins::CreateModifyMultisigAccountTransactionMongoPlugin ( )

Creates a mongo modify multisig account transaction plugin.

Here is the caller graph for this function:

◆ CreateMosaicAliasTransactionMongoPlugin()

PLUGIN_API std::unique_ptr<MongoTransactionPlugin> catapult::mongo::plugins::CreateMosaicAliasTransactionMongoPlugin ( )

Creates a mongo mosaic alias transaction plugin.

Here is the caller graph for this function:

◆ CreateMosaicDefinitionTransactionMongoPlugin()

PLUGIN_API std::unique_ptr<MongoTransactionPlugin> catapult::mongo::plugins::CreateMosaicDefinitionTransactionMongoPlugin ( )

Creates a mongo mosaic definition transaction plugin.

Here is the caller graph for this function:

◆ CreateMosaicExpiryReceiptMongoPlugin()

PLUGIN_API std::unique_ptr< MongoReceiptPlugin > catapult::mongo::plugins::CreateMosaicExpiryReceiptMongoPlugin ( )

Creates a mongo mosaic expiry receipt plugin.

Here is the caller graph for this function:

◆ CreateMosaicSupplyChangeTransactionMongoPlugin()

PLUGIN_API std::unique_ptr<MongoTransactionPlugin> catapult::mongo::plugins::CreateMosaicSupplyChangeTransactionMongoPlugin ( )

Creates a mongo mosaic supply change transaction plugin.

Here is the caller graph for this function:

◆ CreateNamespaceExpiryReceiptMongoPlugin()

PLUGIN_API std::unique_ptr< MongoReceiptPlugin > catapult::mongo::plugins::CreateNamespaceExpiryReceiptMongoPlugin ( )

Creates a mongo namespace expiry receipt plugin.

Here is the caller graph for this function:

◆ CreateRegisterNamespaceTransactionMongoPlugin()

PLUGIN_API std::unique_ptr<MongoTransactionPlugin> catapult::mongo::plugins::CreateRegisterNamespaceTransactionMongoPlugin ( )

Creates a mongo register namespace transaction plugin.

Here is the caller graph for this function:

◆ CreateSecretLockTransactionMongoPlugin()

PLUGIN_API std::unique_ptr<MongoTransactionPlugin> catapult::mongo::plugins::CreateSecretLockTransactionMongoPlugin ( )

Creates a mongo secret lock transaction plugin.

Here is the caller graph for this function:

◆ CreateSecretProofTransactionMongoPlugin()

PLUGIN_API std::unique_ptr<MongoTransactionPlugin> catapult::mongo::plugins::CreateSecretProofTransactionMongoPlugin ( )

Creates a mongo secret proof transaction plugin.

Here is the caller graph for this function:

◆ CreateTransferTransactionMongoPlugin()

PLUGIN_API std::unique_ptr<MongoTransactionPlugin> catapult::mongo::plugins::CreateTransferTransactionMongoPlugin ( )

Creates a mongo transfer transaction plugin.

Here is the caller graph for this function:

◆ DECLARE_MONGO_CACHE_STORAGE() [1/6]

catapult::mongo::plugins::DECLARE_MONGO_CACHE_STORAGE ( AccountRestriction  )

Creates a mongo account restriction cache storage around database, bulkWriter and networkIdentifier.

◆ DECLARE_MONGO_CACHE_STORAGE() [2/6]

catapult::mongo::plugins::DECLARE_MONGO_CACHE_STORAGE ( HashLockInfo  )

Creates a mongo hash lock info cache storage around database, bulkWriter and networkIdentifier.

◆ DECLARE_MONGO_CACHE_STORAGE() [3/6]

catapult::mongo::plugins::DECLARE_MONGO_CACHE_STORAGE ( Mosaic  )

Creates a mongo mosaic cache storage around database, bulkWriter and networkIdentifier.

◆ DECLARE_MONGO_CACHE_STORAGE() [4/6]

catapult::mongo::plugins::DECLARE_MONGO_CACHE_STORAGE ( Multisig  )

Creates a mongo multisig cache storage around database, bulkWriter and networkIdentifier.

◆ DECLARE_MONGO_CACHE_STORAGE() [5/6]

catapult::mongo::plugins::DECLARE_MONGO_CACHE_STORAGE ( Namespace  )

Creates a mongo namespace cache storage around database, bulkWriter and networkIdentifier.

◆ DECLARE_MONGO_CACHE_STORAGE() [6/6]

catapult::mongo::plugins::DECLARE_MONGO_CACHE_STORAGE ( SecretLockInfo  )

Creates a mongo secret lock info cache storage around database, bulkWriter and networkIdentifier.

◆ NamespaceDescriptorsFromHistory()

std::vector< NamespaceDescriptor > catapult::mongo::plugins::NamespaceDescriptorsFromHistory ( const state::RootNamespaceHistory history,
model::NetworkIdentifier  networkIdentifier 
)

Converts the root namespace history into a vector of namespace descriptors using networkIdentifier for address conversions.

Here is the call graph for this function:

◆ ToDbModel() [1/6]

bsoncxx::document::value catapult::mongo::plugins::ToDbModel ( const NamespaceDescriptor descriptor)

Maps a namespace descriptor to the corresponding db model value.

Here is the call graph for this function:

◆ ToDbModel() [2/6]

bsoncxx::document::value catapult::mongo::plugins::ToDbModel ( const state::AccountRestrictions restrictions)

Maps a restrictions to the corresponding db model value.

Here is the call graph for this function:

◆ ToDbModel() [3/6]

bsoncxx::document::value catapult::mongo::plugins::ToDbModel ( const state::HashLockInfo hashLockInfo,
const Address accountAddress 
)

Maps a hashLockInfo and accountAddress to the corresponding db model value.

Here is the caller graph for this function:

◆ ToDbModel() [4/6]

bsoncxx::document::value catapult::mongo::plugins::ToDbModel ( const state::MosaicEntry entry)

Maps a mosaic entry to the corresponding db model value.

Here is the call graph for this function:

◆ ToDbModel() [5/6]

bsoncxx::document::value catapult::mongo::plugins::ToDbModel ( const state::MultisigEntry entry,
const Address accountAddress 
)

Maps a multisig entry and accountAddress to the corresponding db model value.

Here is the call graph for this function:

◆ ToDbModel() [6/6]

bsoncxx::document::value catapult::mongo::plugins::ToDbModel ( const state::SecretLockInfo secretLockInfo,
const Address accountAddress 
)

Maps a secretLockInfo and accountAddress to the corresponding db model value.