CatapultServer
v0.5.0.1 (Elephant)
|
Classes | |
struct | AccountAddressNotification |
Notification of use of an account address. More... | |
struct | AccountLinkTransactionBody |
Binary layout for an account link transaction body. More... | |
struct | AccountPublicKeyNotification |
Notification of use of an account public key. More... | |
struct | AccountRestrictionModification |
Binary layout for an account restriction modification. More... | |
struct | AccountRestrictionTypeNotification |
Notification of an account restriction type. More... | |
struct | AddressAliasTransactionBody |
Binary layout for an address alias transaction body. More... | |
struct | AddressInteractionNotification |
struct | AggregateCosignaturesNotification |
struct | AggregateEmbeddedTransactionNotification |
Notification of an embedded aggregate transaction with cosignatures. More... | |
struct | AggregateTransaction |
Binary layout for an aggregate transaction. More... | |
struct | AggregateTransactionHeader |
Binary layout for an aggregate transaction header. More... | |
struct | AliasedDataNotification |
Notification of aliased data. More... | |
struct | AliasOwnerNotification |
Notification of alias owner. More... | |
struct | AnnotatedEntityRange |
Combination of an entity range and optional context. More... | |
struct | ArtifactExpiryReceipt |
Binary layout for an artifact expiry receipt. More... | |
struct | BalanceChangeReceipt |
Binary layout for a balance change receipt. More... | |
struct | BalanceDebitNotification |
Notifies a balance debit by sender. More... | |
struct | BalanceTransferNotification |
Notifies a balance transfer from sender to recipient. More... | |
struct | BalanceTransferReceipt |
Binary layout for a balance transfer receipt. More... | |
struct | BaseAliasNotification |
Base alias notification. More... | |
struct | BaseLockDurationNotification |
Base for lock duration notification. More... | |
struct | BaseLockNotification |
Base for lock transaction notification. More... | |
struct | BasicAccountRestrictionTransactionBody |
Binary layout for a basic account restriction transaction body. More... | |
struct | BasicAggregateNotification |
A basic aggregate notification. More... | |
struct | BasicBalanceNotification |
A basic balance notification. More... | |
class | BasicContiguousEntityContainer |
struct | Block |
Binary layout for a block. More... | |
struct | BlockChainConfiguration |
Block chain configuration settings. More... | |
struct | BlockElement |
Processing element for a block composed of a block and metadata. More... | |
struct | BlockHeader |
Binary layout for a block header. More... | |
struct | BlockNotification |
Notifies the arrival of a block. More... | |
struct | BlockStatement |
Collection of statements scoped to a block. More... | |
class | BlockStatementBuilder |
Collection of receipts scoped to a block. More... | |
struct | BlockTransactionsInfo |
Information about transactions stored in a block. More... | |
struct | CacheEntryInfo |
Cache entry info. More... | |
class | ChainScore |
struct | ChildNamespaceNotification |
Notification of a child namespace registration. More... | |
struct | CosignatoryModification |
Binary layout for cosignatory modification. More... | |
struct | Cosignature |
A cosignature. More... | |
struct | CosignedTransactionInfo |
struct | DetachedCosignature |
A detached cosignature. More... | |
struct | DetachedTransactionInfo |
struct | DiagnosticCounterValue |
A diagnostic counter value. More... | |
struct | EmbeddedTransaction |
Binary layout for an embedded transaction (non-verifiable). More... | |
class | EmbeddedTransactionPlugin |
An embedded transaction plugin. More... | |
struct | EntityBody |
Binary layout for an entity body. More... | |
struct | EntityInfo |
Tuple composed of an entity and its associated metadata. More... | |
struct | EntityInfoComparer |
Comparer object for an EntityInfo. More... | |
struct | EntityInfoHasher |
Hasher object for an EntityInfo. More... | |
struct | EntityNotification |
Notifies the arrival of an entity. More... | |
class | EntityRange |
Represents a range of entities. More... | |
struct | HashLockDurationNotification |
Notification of a hash lock duration. More... | |
struct | HashLockMosaicNotification |
Notification of a hash lock mosaic. More... | |
struct | HashLockNotification |
Notification of a hash lock. More... | |
struct | HashLockTransactionBody |
Binary layout for a hash lock transaction body. More... | |
struct | ImportanceHeight_tag |
class | InflationCalculator |
Calculator for calculating the inflation at a given height and the total inflation up to a given height. More... | |
struct | InflationReceipt |
Binary layout for an inflation receipt. More... | |
struct | ModifyAccountRestrictionNotification |
Notification of an account restriction modification. More... | |
struct | ModifyAccountRestrictionValueNotification |
Notification of an account restriction value modification. More... | |
struct | ModifyMultisigAccountTransactionBody |
Binary layout for a modify multisig account transaction body. More... | |
struct | ModifyMultisigCosignersNotification |
Notification of a multisig cosigners modification. More... | |
struct | ModifyMultisigNewCosignerNotification |
Notification of a new cosigner. More... | |
struct | ModifyMultisigSettingsNotification |
Notification of a multisig settings modification. More... | |
struct | MosaicAliasTransactionBody |
Binary layout for a mosaic alias transaction body. More... | |
struct | MosaicDefinitionNotification |
Notification of a mosaic definition. More... | |
struct | MosaicDefinitionTransactionBody |
Binary layout for a mosaic definition transaction body. More... | |
struct | MosaicNonceNotification |
Notification of a mosaic nonce and id. More... | |
class | MosaicProperties |
Container for mosaic properties. More... | |
struct | MosaicPropertiesHeader |
Mosaic properties header. More... | |
struct | MosaicPropertiesNotification |
struct | MosaicProperty |
Mosaic property composed of an id and a value. More... | |
struct | MosaicRentalFeeNotification |
Notification of a mosaic rental fee. More... | |
struct | MosaicRequiredNotification |
Notification of a required mosaic. More... | |
struct | MosaicSupplyChangeNotification |
Notification of a mosaic supply change. More... | |
struct | MosaicSupplyChangeTransactionBody |
Binary layout for a mosaic supply change transaction body. More... | |
struct | MosaicT |
Binary layout for a mosaic. More... | |
struct | NamespaceLifetimeConstraints |
Constraints for a namespace's lifetime. More... | |
struct | NamespaceNameNotification |
Notification of a namespace name. More... | |
struct | NamespaceNotification |
Notification of a namespace registration. More... | |
struct | NamespaceRentalFeeNotification |
Notification of a namespace rental fee. More... | |
struct | NetworkInfo |
Information about a network. More... | |
struct | NewRemoteAccountNotification |
Notification of a new remote account. More... | |
struct | Notification |
A basic notification. More... | |
class | NotificationPublisher |
A notification publisher. More... | |
class | NotificationSubscriber |
A notification subscriber. More... | |
class | PluginRegistry |
A registry of plugins. More... | |
struct | PreviousBlockContext |
Context passed when creating new block. More... | |
struct | ProofPublicationNotification |
Notification of a proof publication. More... | |
struct | ProofSecretNotification |
Notification of a secret and its proof. More... | |
struct | RawAccountRestrictionModification |
Raw account restriction modification. More... | |
struct | Receipt |
Binary layout for a receipt entity. More... | |
struct | ReceiptSource |
Receipt source (unique within a block). More... | |
struct | RegisterNamespaceTransactionBody |
Binary layout for a register namespace transaction body. More... | |
struct | RemoteAccountLinkNotification |
Notification of a remote account link. More... | |
class | ResolutionStatement |
Collection of receipts scoped to a unresolved value. More... | |
class | ResolverContext |
Context used to resolve unresolved types. More... | |
struct | RootNamespaceNotification |
Notification of a root namespace registration. More... | |
struct | SecretLockDurationNotification |
Notification of a secret lock duration. More... | |
struct | SecretLockHashAlgorithmNotification |
Notification of a secret lock hash algorithm. More... | |
struct | SecretLockNotification |
Notification of a secret lock. More... | |
struct | SecretLockTransactionBody |
Binary layout for a secret lock transaction body. More... | |
struct | SecretProofTransactionBody |
Binary layout for a secret proof transaction body. More... | |
struct | SharedAliasBody |
Binary layout for an alias transaction body. More... | |
struct | SignatureNotification |
Notifies the presence of a signature. More... | |
struct | SizePrefixedEntity |
Binary layout for a size prefixed entity. More... | |
struct | SourceChangeNotification |
Notification of a source change. More... | |
struct | TrailingVariableDataLayout |
struct | Transaction |
Binary layout for a transaction. More... | |
struct | TransactionAttributes |
Transaction dependent attributes. More... | |
class | TransactionChangeTracker |
Tracks transaction changes and keeps track of net changes. More... | |
struct | TransactionContainer |
struct | TransactionDeadlineNotification |
Notifies the arrival of a transaction deadline. More... | |
struct | TransactionElement |
Processing element for a transaction composed of a transaction and metadata. More... | |
struct | TransactionFeeNotification |
Notifies the arrival of a transaction fee. More... | |
struct | TransactionInfo |
A transaction and its associated metadata. More... | |
struct | TransactionNotification |
Notifies the arrival of a transaction. More... | |
class | TransactionPlugin |
A transaction plugin. More... | |
class | TransactionPluginFactory |
Factory for creating transaction plugins. More... | |
class | TransactionPluginT |
A typed transaction plugin. More... | |
class | TransactionRegistry |
A registry of transaction plugins. More... | |
class | TransactionRegistryT |
A registry of transaction plugins. More... | |
class | TransactionStatement |
Collection of receipts scoped to a transaction. More... | |
struct | TransactionStatus |
A transaction status. More... | |
struct | TransferMessageNotification |
Notification of a transfer transaction with a message. More... | |
struct | TransferMosaicsNotification |
Notification of a transfer transaction with mosaics. More... | |
struct | TransferTransactionBody |
Binary layout for a transfer transaction body. More... | |
struct | VerifiableEntity |
Binary layout for a verifiable (with signature) entity. More... | |
struct | VerifiableEntityHeader |
Binary layout for a verifiable entity header. More... | |
class | WeakCosignedTransactionInfo |
Wrapper around a transaction and its cosignatures. More... | |
class | WeakEntityInfoT |
Wrapper around a strongly typed entity and its associated metadata. More... | |
Functions | |
DEFINE_TRANSACTION_TYPE (AccountLink, Account_Link, 0x1) | |
Account link transaction. More... | |
DEFINE_ACCOUNT_LINK_NOTIFICATION (Remote, 0x001, All) | |
Remote account was un/linked. More... | |
DEFINE_ACCOUNT_LINK_NOTIFICATION (New_Remote_Account, 0x002, Validator) | |
New remote account was created. More... | |
DEFINE_TRANSACTION_TYPE (Aggregate, Aggregate_Complete, 0x1) | |
Fully complete aggregate transaction. More... | |
DEFINE_TRANSACTION_TYPE (Aggregate, Aggregate_Bonded, 0x2) | |
Bonded aggregate transaction. More... | |
DEFINE_AGGREGATE_NOTIFICATION (Cosignatures, 0x001, Validator) | |
Aggregate was received with cosignatures. More... | |
DEFINE_AGGREGATE_NOTIFICATION (EmbeddedTransaction, 0x002, Validator) | |
Aggregate was received with an embedded transaction. More... | |
size_t | GetTransactionPayloadSize (const AggregateTransactionHeader &header) |
Gets the number of bytes containing transaction data according to header. More... | |
bool | IsSizeValid (const AggregateTransaction &aggregate, const TransactionRegistry ®istry) |
DEFINE_TRANSACTION_TYPE (LockHash, Hash_Lock, 0x1) | |
Hash lock transaction. More... | |
DEFINE_HASH_LOCK_NOTIFICATION (Hash_Duration, 0x0001, Validator) | |
Hash lock duration. More... | |
DEFINE_HASH_LOCK_NOTIFICATION (Mosaic, 0x0002, Validator) | |
Hash lock mosaic. More... | |
DEFINE_HASH_LOCK_NOTIFICATION (Hash, 0x0003, All) | |
Hash lock creation. More... | |
DEFINE_RECEIPT_TYPE (BalanceDebit, LockHash, LockHash_Created, 1) | |
Hash lock creation. More... | |
DEFINE_RECEIPT_TYPE (BalanceCredit, LockHash, LockHash_Completed, 2) | |
Hash lock completion. More... | |
DEFINE_RECEIPT_TYPE (BalanceCredit, LockHash, LockHash_Expired, 3) | |
Hash lock expiration. More... | |
Hash256 | CalculateHash (LockHashAlgorithm hashAlgorithm, const RawBuffer &data) |
Calculates hashAlgorithm hash of data. More... | |
Hash256 | CalculateSecretLockInfoHash (const Hash256 &secret, const Address &recipient) |
Calculates the secret lock info hash from secret and recipient. More... | |
DEFINE_TRANSACTION_TYPE (LockSecret, Secret_Lock, 0x1) | |
Secret lock transaction. More... | |
DEFINE_TRANSACTION_TYPE (LockSecret, Secret_Proof, 0x2) | |
Secret proof transaction. More... | |
DEFINE_SECRET_LOCK_NOTIFICATION (Secret_Duration, 0x0001, Validator) | |
Secret lock duration. More... | |
DEFINE_SECRET_LOCK_NOTIFICATION (Hash_Algorithm, 0x0002, Validator) | |
Secret lock hash algorithm. More... | |
DEFINE_SECRET_LOCK_NOTIFICATION (Secret, 0x0003, All) | |
Secret lock creation. More... | |
DEFINE_SECRET_LOCK_NOTIFICATION (Proof_Secret, 0x0004, Validator) | |
Proof and secret. More... | |
DEFINE_SECRET_LOCK_NOTIFICATION (Proof_Publication, 0x0005, All) | |
Proof publication. More... | |
DEFINE_RECEIPT_TYPE (BalanceDebit, LockSecret, LockSecret_Created, 1) | |
Secret lock creation. More... | |
DEFINE_RECEIPT_TYPE (BalanceCredit, LockSecret, LockSecret_Completed, 2) | |
Secret lock completion. More... | |
DEFINE_RECEIPT_TYPE (BalanceCredit, LockSecret, LockSecret_Expired, 3) | |
Secret lock expiration. More... | |
DEFINE_TRANSACTION_TYPE (Mosaic, Mosaic_Definition, 0x1) | |
Mosaic definition transaction. More... | |
DEFINE_TRANSACTION_TYPE (Mosaic, Mosaic_Supply_Change, 0x2) | |
Mosaic supply change transaction. More... | |
MosaicId | GenerateMosaicId (const Key &owner, MosaicNonce nonce) noexcept |
Generates a mosaic id given owner and nonce. More... | |
DEFINE_MOSAIC_NOTIFICATION (Properties, 0x0012, Validator) | |
Mosaic properties were provided. More... | |
DEFINE_MOSAIC_NOTIFICATION (Definition, 0x0013, All) | |
Mosaic was defined. More... | |
DEFINE_MOSAIC_NOTIFICATION (Nonce, 0x0014, Validator) | |
Mosaic nonce and id were provided. More... | |
DEFINE_MOSAIC_NOTIFICATION (Supply_Change, 0x0022, All) | |
Mosaic supply was changed. More... | |
DEFINE_MOSAIC_NOTIFICATION (Rental_Fee, 0x0030, Observer) | |
Mosaic rental fee has been sent. More... | |
MosaicProperties | ExtractAllProperties (const MosaicPropertiesHeader &header, const MosaicProperty *pProperties) |
Extracts all properties from header and pProperties. More... | |
DEFINE_RECEIPT_TYPE (ArtifactExpiry, Mosaic, Mosaic_Expired, 1) | |
Mosaic expiry. More... | |
DEFINE_RECEIPT_TYPE (BalanceTransfer, Mosaic, Mosaic_Rental_Fee, 2) | |
Mosaic rental fee. More... | |
DEFINE_TRANSACTION_TYPE (Multisig, Modify_Multisig_Account, 0x1) | |
Modify multisig account transaction. More... | |
DEFINE_MULTISIG_NOTIFICATION (Modify_Cosigners, 0x0001, All) | |
Multisig account cosigners were modified. More... | |
DEFINE_MULTISIG_NOTIFICATION (Modify_New_Cosigner, 0x0002, Validator) | |
A cosigner was added to a multisig account. More... | |
DEFINE_MULTISIG_NOTIFICATION (Modify_Settings, 0x1001, All) | |
Multisig account settings were modified. More... | |
DEFINE_NAMESPACE_NOTIFICATION (Alias_Owner, 0x0081, Validator) | |
Alias owner was provided. More... | |
DEFINE_NAMESPACE_NOTIFICATION (Aliased_Address, 0x0091, All) | |
Address alias was un/linked. More... | |
DEFINE_NAMESPACE_NOTIFICATION (Aliased_MosaicId, 0x0092, All) | |
Mosaic alias was un/linked. More... | |
bool | IsValidName (const uint8_t *pName, size_t nameSize) |
Returns true if pName with size nameSize points to a valid name. More... | |
DEFINE_TRANSACTION_TYPE (Namespace, Register_Namespace, 0x1) | |
Register namespace transaction. More... | |
DEFINE_TRANSACTION_TYPE (Namespace, Alias_Address, 0x2) | |
Address alias transaction. More... | |
DEFINE_TRANSACTION_TYPE (Namespace, Alias_Mosaic, 0x3) | |
Mosaic alias transaction. More... | |
NamespaceId | GenerateRootNamespaceId (const RawString &name) noexcept |
Generates a root namespace id given name. More... | |
NamespaceId | GenerateNamespaceId (NamespaceId parentId, const RawString &name) noexcept |
Generates a namespace id given parentId and namespace name. More... | |
DEFINE_NAMESPACE_NOTIFICATION (Name, 0x0011, Validator) | |
Namespace name was provided. More... | |
DEFINE_NAMESPACE_NOTIFICATION (Registration, 0x0012, Validator) | |
Namespace was registered. More... | |
DEFINE_NAMESPACE_NOTIFICATION (Root_Registration, 0x0021, All) | |
Root namespace was registered. More... | |
DEFINE_NAMESPACE_NOTIFICATION (Child_Registration, 0x0022, All) | |
Child namespace was registered. More... | |
DEFINE_NAMESPACE_NOTIFICATION (Rental_Fee, 0x0030, Observer) | |
Namespace rental fee has been sent. More... | |
DEFINE_RECEIPT_TYPE (ArtifactExpiry, Namespace, Namespace_Expired, 1) | |
Namespace expiry. More... | |
DEFINE_RECEIPT_TYPE (BalanceTransfer, Namespace, Namespace_Rental_Fee, 2) | |
Namespace rental fee. More... | |
DEFINE_TRANSACTION_TYPE (RestrictionAccount, Account_Address_Restriction, 0x1) | |
Address account restriction transaction. More... | |
DEFINE_TRANSACTION_TYPE (RestrictionAccount, Account_Mosaic_Restriction, 0x2) | |
Mosaic account restriction transaction. More... | |
DEFINE_TRANSACTION_TYPE (RestrictionAccount, Account_Operation_Restriction, 0x3) | |
Operation account restriction transaction. More... | |
DEFINE_ACCOUNT_RESTRICTION_NOTIFICATION (Type, 0x0001, Validator) | |
Account restriction type. More... | |
DEFINE_ACCOUNT_RESTRICTION_NOTIFICATION (Address_Modification, 0x0010, All) | |
Account address restriction modification. More... | |
DEFINE_ACCOUNT_RESTRICTION_NOTIFICATION (Mosaic_Modification, 0x0011, All) | |
Account mosaic restriction modification. More... | |
DEFINE_ACCOUNT_RESTRICTION_NOTIFICATION (Operation_Modification, 0x0012, All) | |
Account operation restriction modification. More... | |
DEFINE_ACCOUNT_RESTRICTION_NOTIFICATION (Address_Modifications, 0x0020, Validator) | |
Account address restriction modifications. More... | |
DEFINE_ACCOUNT_RESTRICTION_NOTIFICATION (Mosaic_Modifications, 0x0021, Validator) | |
Account mosaic restriction modifications. More... | |
DEFINE_ACCOUNT_RESTRICTION_NOTIFICATION (Operation_Modifications, 0x0022, Validator) | |
Account operation restriction modifications. More... | |
DEFINE_TRANSACTION_TYPE (Transfer, Transfer, 0x1) | |
Transfer transaction. More... | |
DEFINE_TRANSFER_NOTIFICATION (Message, 0x001, Validator) | |
Transfer was received with a message. More... | |
DEFINE_TRANSFER_NOTIFICATION (Mosaics, 0x002, Validator) | |
Transfer was received with at least one mosaic. More... | |
Address | StringToAddress (const std::string &encoded) |
Creates an address from an encoded address (encoded). More... | |
std::string | AddressToString (const Address &address) |
Creates an encoded address from an address. More... | |
Address | PublicKeyToAddress (const Key &publicKey, NetworkIdentifier networkIdentifier) |
Creates an address from a public key (publicKey) for the network identified by networkIdentifier. More... | |
bool | IsValidAddress (const Address &address, NetworkIdentifier networkIdentifier) |
Returns a value indicating whether or not the given address is valid for the network identified by networkIdentifier. More... | |
bool | IsValidEncodedAddress (const std::string &encoded, NetworkIdentifier networkIdentifier) |
size_t | GetTransactionPayloadSize (const BlockHeader &header) |
Gets the number of bytes containing transaction data according to header. More... | |
bool | IsSizeValid (const Block &block, const TransactionRegistry ®istry) |
UnresolvedMosaicId | GetUnresolvedCurrencyMosaicId (const BlockChainConfiguration &config) |
Gets unresolved currency mosaic id from config. More... | |
utils::TimeSpan | CalculateFullRollbackDuration (const BlockChainConfiguration &config) |
Calculates the duration of a full rollback for the block chain described by config. More... | |
utils::TimeSpan | CalculateRollbackVariabilityBufferDuration (const BlockChainConfiguration &config) |
Calculates the duration of the rollback variability buffer for the block chain described by config. More... | |
utils::TimeSpan | CalculateTransactionCacheDuration (const BlockChainConfiguration &config) |
Calculates the duration of time that expired transactions should be cached for the block chain described by config. More... | |
uint64_t | CalculateDifficultyHistorySize (const BlockChainConfiguration &config) |
Calculates the number of historical difficulties to cache in memory for the block chain described by config. More... | |
template<typename T > | |
T | LoadPluginConfiguration (const BlockChainConfiguration &config, const std::string &pluginName) |
Loads plugin configuration for plugin named pluginName from config. More... | |
Hash256 | CalculateMerkleHash (const BlockStatement &statement) |
Calculates the merkle hash for statement. More... | |
std::vector< Hash256 > | CalculateMerkleTree (const BlockStatement &statement) |
Calculates the merkle tree for statement. More... | |
size_t | CountTotalStatements (const BlockStatement &statement) |
Counts the total number of statements in statement. More... | |
void | DeepCopyTo (BlockStatement &destination, const BlockStatement &source) |
Creates a deep copy of source into destination. More... | |
void | DeepCopyTo (BlockStatement &destination, const BlockStatement &source, uint32_t maxSourcePrimaryId) |
Creates a deep copy of source into destination excluding receipts with primary source id greater than maxSourcePrimaryId. More... | |
void | CalculateBlockTransactionsHash (const std::vector< const TransactionInfo * > &transactionInfos, Hash256 &blockTransactionsHash) |
Calculates the block transactions hash of transactionInfos into blockTransactionsHash. More... | |
GenerationHash | CalculateGenerationHash (const GenerationHash &previousGenerationHash, const Key &publicKey) |
void | SignBlockHeader (const crypto::KeyPair &signer, Block &block) |
bool | VerifyBlockHeaderSignature (const Block &block) |
Validates signature of block header. More... | |
BlockTransactionsInfo | CalculateBlockTransactionsInfo (const Block &block) |
Calculates information about transactions stored in block. More... | |
std::unique_ptr< Block > | CreateBlock (const PreviousBlockContext &context, NetworkIdentifier networkIdentifier, const Key &signerPublicKey, const Transactions &transactions) |
std::unique_ptr< Block > | StitchBlock (const BlockHeader &blockHeader, const Transactions &transactions) |
Creates a new block by stitching together blockHeader and transactions. More... | |
template<typename TEntity > | |
constexpr BasicContiguousEntityContainer< TEntity > | MakeContiguousEntityContainer (TEntity *pEntity, size_t size, EntityContainerErrorPolicy errorPolicy=EntityContainerErrorPolicy::Throw) |
void | ExtractMatchingEntityInfos (const std::vector< BlockElement > &elements, WeakEntityInfos &entityInfos, const MatchingEntityPredicate &predicate) |
Extracts all entity infos for which predicate returns true from elements into entityInfos. More... | |
void | ExtractEntityInfos (const BlockElement &element, WeakEntityInfos &entityInfos) |
Extracts all entity infos from element into entityInfos. More... | |
void | ExtractTransactionInfos (std::vector< TransactionInfo > &transactionInfos, const std::shared_ptr< const BlockElement > &pBlockElement) |
TransactionInfo | MakeTransactionInfo (const std::shared_ptr< const Transaction > &pTransaction, const TransactionElement &transactionElement) |
Makes a transaction info by merging pTransaction and transactionElement. More... | |
std::ostream & | operator<< (std::ostream &out, const EmbeddedTransaction &transaction) |
Insertion operator for outputting transaction to out. More... | |
bool | IsSizeValid (const EmbeddedTransaction &transaction, const TransactionRegistry ®istry) |
void | PublishNotifications (const EmbeddedTransaction &transaction, NotificationSubscriber &sub) |
Sends all notifications from transaction to sub. More... | |
constexpr uint16_t | MakeVersion (NetworkIdentifier networkIdentifier, uint8_t version) noexcept |
Creates a version field out of given entity version and networkIdentifier. More... | |
Hash256 | CalculateHash (const Block &block) |
Calculates the hash for the given block header. More... | |
Hash256 | CalculateHash (const Transaction &transaction, const GenerationHash &generationHash) |
Calculates the hash for the given transaction for the network with the specified generation hash (generationHash). More... | |
Hash256 | CalculateHash (const Transaction &transaction, const GenerationHash &generationHash, const RawBuffer &buffer) |
Hash256 | CalculateMerkleComponentHash (const Transaction &transaction, const Hash256 &transactionHash, const TransactionRegistry &transactionRegistry) |
std::vector< Hash256 > | CalculateMerkleTree (const std::vector< TransactionElement > &transactionElements) |
Calculates the merkle tree from transactionElements. More... | |
void | UpdateHashes (const TransactionRegistry &transactionRegistry, const GenerationHash &generationHash, TransactionElement &transactionElement) |
template<typename TEntity > | |
size_t | FindFirstDifferenceIndex (const EntityRange< TEntity > &lhs, const EntityRange< TEntity > &rhs) |
Compares two entity ranges (lhs and rhs) and returns the index of the first non-equal element. More... | |
std::ostream & | operator<< (std::ostream &out, EntityType entityType) |
Insertion operator for outputting entityType to out. More... | |
constexpr EntityType | MakeEntityType (BasicEntityType basicEntityType, FacilityCode facilityCode, uint8_t code) |
Makes entity type given basicEntityType, facilityCode and code. More... | |
DEFINE_ENTITY_TYPE (Block, Core, Nemesis_Block, 0) | |
Nemesis block. More... | |
DEFINE_ENTITY_TYPE (Block, Core, Block, 1) | |
Block. More... | |
constexpr BasicEntityType | ToBasicEntityType (EntityType type) |
Converts an entity type into a basic entity type. More... | |
Amount | CalculateTransactionFee (BlockFeeMultiplier feeMultiplier, const Transaction &transaction) |
Calculates the fee for transaction contained in block with feeMultiplier. More... | |
BlockFeeMultiplier | CalculateTransactionMaxFeeMultiplier (const Transaction &transaction) |
Calculates the maximum fee multiplier for transaction. More... | |
ImportanceHeight | ConvertToImportanceHeight (Height height, Height::ValueType grouping) |
bool | TryParseValue (const std::string &networkName, NetworkIdentifier &networkIdentifier) |
Tries to parse networkName into a network identifier (networkIdentifier). More... | |
std::ostream & | operator<< (std::ostream &out, NetworkIdentifier value) |
Insertion operator for outputting value to out. More... | |
std::unique_ptr< NotificationPublisher > | CreateNotificationPublisher (const TransactionRegistry &transactionRegistry, UnresolvedMosaicId feeMosaicId, PublicationMode mode) |
constexpr NotificationType | MakeNotificationType (NotificationChannel channel, FacilityCode facility, uint16_t code) |
Makes a notification type given channel, facility and code. More... | |
constexpr bool | IsSet (NotificationType type, NotificationChannel channel) |
Checks if type has channel set. More... | |
constexpr NotificationChannel | GetNotificationChannel (NotificationType type) |
Gets the notification channel set in type. More... | |
constexpr void | SetNotificationChannel (NotificationType &type, NotificationChannel channel) |
Sets the notification channel in type to channel. More... | |
constexpr bool | AreEqualExcludingChannel (NotificationType lhs, NotificationType rhs) |
Returns true if lhs and rhs have the same source (facility and code). More... | |
DEFINE_CORE_NOTIFICATION (Register_Account_Address, 0x0001, All) | |
Account was used with specified address. More... | |
DEFINE_CORE_NOTIFICATION (Register_Account_Public_Key, 0x0002, Observer) | |
Account was used with specified public key. More... | |
DEFINE_CORE_NOTIFICATION (Balance_Transfer, 0x0003, All) | |
Mosaic was transferred between two accounts. More... | |
DEFINE_CORE_NOTIFICATION (Entity, 0x0004, Validator) | |
Entity was received. More... | |
DEFINE_CORE_NOTIFICATION (Block, 0x0005, All) | |
Block was received. More... | |
DEFINE_CORE_NOTIFICATION (Transaction, 0x0006, All) | |
Transaction was received. More... | |
DEFINE_CORE_NOTIFICATION (Signature, 0x0007, Validator) | |
Signature was received. More... | |
DEFINE_CORE_NOTIFICATION (Balance_Debit, 0x0008, All) | |
Mosaic was debited from account. More... | |
DEFINE_CORE_NOTIFICATION (Address_Interaction, 0x0009, Validator) | |
Source address interacts with destination addresses. More... | |
DEFINE_CORE_NOTIFICATION (Mosaic_Required, 0x000A, Validator) | |
Mosaic is required. More... | |
DEFINE_CORE_NOTIFICATION (Source_Change, 0x000B, Observer) | |
Source has changed. More... | |
DEFINE_CORE_NOTIFICATION (Transaction_Fee, 0x000C, All) | |
Transaction fee was received. More... | |
DEFINE_CORE_NOTIFICATION (Transaction_Deadline, 0x000D, Validator) | |
Transaction deadline was received. More... | |
std::ostream & | operator<< (std::ostream &out, ReceiptType receiptType) |
Insertion operator for outputting receiptType to out. More... | |
constexpr ReceiptType | MakeReceiptType (BasicReceiptType basicReceiptType, FacilityCode facilityCode, uint8_t code) |
Makes receipt type given basicReceiptType, facilityCode and code. More... | |
DEFINE_RECEIPT_TYPE (BalanceCredit, Core, Harvest_Fee, 1) | |
Harvest fee credit. More... | |
DEFINE_RECEIPT_TYPE (Inflation, Core, Inflation, 1) | |
Inflation. More... | |
DEFINE_RECEIPT_TYPE (Aggregate, Core, Transaction_Group, 1) | |
Transaction group. More... | |
DEFINE_RECEIPT_TYPE (AliasResolution, Core, Address_Alias_Resolution, 1) | |
Address alias resolution. More... | |
DEFINE_RECEIPT_TYPE (AliasResolution, Core, Mosaic_Alias_Resolution, 2) | |
Mosaic alias resolution. More... | |
bool | IsSizeValid (const Transaction &transaction, const TransactionRegistry ®istry) |
bool | TryParseValue (const std::string &strategyName, TransactionSelectionStrategy &strategy) |
Tries to parse strategyName into a transaction selection strategy. More... | |
UnresolvedAddressSet | ExtractAddresses (const Transaction &transaction, const NotificationPublisher ¬ificationPublisher) |
Extracts all addresses that are involved in transaction using notificationPublisher. More... | |
std::ostream & | operator<< (std::ostream &out, const VerifiableEntity &entity) |
Insertion operator for outputting entity to out. More... | |
bool | IsSizeValid (const VerifiableEntity &entity, const TransactionRegistry ®istry) |
VerifiableEntityPredicate | NeverFilter () |
Creates a predicate that always returns true . More... | |
VerifiableEntityPredicate | HasTypeFilter (EntityType type) |
Creates a predicate that returns true when an entity has a matching entity type. More... | |
VerifiableEntityPredicate | HasBasicTypeFilter (BasicEntityType type) |
Creates a predicate that returns true when an entity has a matching basic entity type. More... | |
template<typename TEntity > | |
std::ostream & | operator<< (std::ostream &out, const WeakEntityInfoT< TEntity > &entityInfo) |
Insertion operator for outputting entityInfo to out. More... | |
Variables | |
constexpr size_t | Num_Mosaic_Properties = utils::to_underlying_type(MosaicPropertyId::Sentinel_Property_Id) |
Number of available properties. More... | |
constexpr size_t | First_Optional_Property = utils::to_underlying_type(MosaicPropertyId::Duration) |
Index of first optional property. More... | |
const uint8_t | Checksum_Size = 4 |
using catapult::model::AccountAddressRestrictionModification = typedef AccountRestrictionModification<UnresolvedAddress> |
Modification type used with account address restriction transaction.
using catapult::model::AccountMosaicRestrictionModification = typedef AccountRestrictionModification<UnresolvedMosaicId> |
Modification type used with account mosaic restriction transaction.
using catapult::model::AccountOperationRestrictionModification = typedef AccountRestrictionModification<EntityType> |
Modification type used with account operation restriction transaction.
using catapult::model::AddressRange = typedef EntityRange<Address> |
An entity range composed of addresses.
using catapult::model::AddressResolutionStatement = typedef ResolutionStatement<UnresolvedAddress, Address, Receipt_Type_Address_Alias_Resolution> |
Address resolution statement.
using catapult::model::AddressSet = typedef std::unordered_set<Address, utils::ArrayHasher<Address> > |
Unordered set of addresses.
using catapult::model::AliasedAddressNotification = typedef AliasedDataNotification<Address, Namespace_Aliased_Address_Notification> |
Notification of an aliased address.
using catapult::model::AliasedMosaicIdNotification = typedef AliasedDataNotification<MosaicId, Namespace_Aliased_MosaicId_Notification> |
Notification of an aliased mosaic id.
using catapult::model::AnnotatedBlockRange = typedef AnnotatedEntityRange<Block> |
An annotated entity range composed of blocks.
using catapult::model::AnnotatedTransactionRange = typedef AnnotatedEntityRange<Transaction> |
An annotated entity range composed of transactions.
using catapult::model::BlockRange = typedef EntityRange<Block> |
An entity range composed of blocks.
using catapult::model::ChainScoreSupplier = typedef supplier<ChainScore> |
Prototype for a function that returns a chain score.
using catapult::model::HashRange = typedef EntityRange<Hash256> |
An entity range composed of hashes.
using catapult::model::ImportanceHeight = typedef utils::BaseValue<Height::ValueType, ImportanceHeight_tag> |
Represents a height at which importance is calculated.
using catapult::model::MatchingEntityPredicate = typedef predicate<BasicEntityType, Timestamp, const Hash256&> |
Predicate for evaluating a timestamp, a hash and an entity type.
using catapult::model::ModifyAccountAddressRestrictionNotification = typedef ModifyAccountRestrictionNotification< UnresolvedAddress, RestrictionAccount_Address_Modifications_Notification> |
using catapult::model::ModifyAccountAddressRestrictionValueNotification = typedef ModifyAccountRestrictionValueNotification<UnresolvedAddress, RestrictionAccount_Address_Modification_Notification> |
using catapult::model::ModifyAccountMosaicRestrictionNotification = typedef ModifyAccountRestrictionNotification< UnresolvedMosaicId, RestrictionAccount_Mosaic_Modifications_Notification> |
using catapult::model::ModifyAccountMosaicRestrictionValueNotification = typedef ModifyAccountRestrictionValueNotification<UnresolvedMosaicId, RestrictionAccount_Mosaic_Modification_Notification> |
using catapult::model::ModifyAccountOperationRestrictionNotification = typedef ModifyAccountRestrictionNotification< EntityType, RestrictionAccount_Operation_Modifications_Notification> |
using catapult::model::ModifyAccountOperationRestrictionValueNotification = typedef ModifyAccountRestrictionValueNotification<EntityType, RestrictionAccount_Operation_Modification_Notification> |
using catapult::model::Mosaic = typedef MosaicT<MosaicId> |
using catapult::model::MosaicResolutionStatement = typedef ResolutionStatement<UnresolvedMosaicId, MosaicId, Receipt_Type_Mosaic_Alias_Resolution> |
Mosaic resolution statement.
using catapult::model::ShortHashRange = typedef EntityRange<utils::ShortHash> |
An entity range composed of short hashes.
using catapult::model::TransactionInfosSet = typedef std::unordered_set< TransactionInfo, EntityInfoHasher<const Transaction>, EntityInfoComparer<const Transaction> > |
Unordered set of transaction infos.
using catapult::model::TransactionRange = typedef EntityRange<Transaction> |
An entity range composed of transactions.
using catapult::model::Transactions = typedef std::vector<std::shared_ptr<const Transaction> > |
Container of transactions.
using catapult::model::UnresolvedAddressSet = typedef std::unordered_set<UnresolvedAddress, utils::ArrayHasher<UnresolvedAddress> > |
Unordered set of unresolved addresses.
using catapult::model::UnresolvedMosaic = typedef MosaicT<UnresolvedMosaicId> |
using catapult::model::VerifiableEntityPredicate = typedef predicate<const VerifiableEntity&> |
Prototype for a verifiable entity predicate.
using catapult::model::WeakEntityInfo = typedef WeakEntityInfoT<VerifiableEntity> |
using catapult::model::WeakEntityInfos = typedef std::vector<WeakEntityInfo> |
A container of weak entity infos.
|
strong |
|
strong |
|
strong |
Account restriction types.
|
strong |
|
strong |
Enumeration of basic entity types.
Enumerator | |
---|---|
Other | Some other type. |
Transaction | Transaction type. |
Block | Block type. |
|
strong |
Enumeration of basic receipt types.
|
strong |
|
strong |
|
strong |
Enumeration of entity types.
|
strong |
Possible facility codes.
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
Notification channel.
Enumerator | |
---|---|
None | Publish notification on no channels. |
Validator | Publish notification on validator channel. |
Observer | Publish notification on observer channel. |
All | Publish notification on all channels. |
|
strong |
Enumeration of all possible notification types.
|
strong |
|
strong |
Enumeration of receipt types.
|
strong |
Transaction plugin factory options.
Enumerator | |
---|---|
Default | Transaction supports both top-level and embedding. |
Only_Embeddable | Transaction only supports embedding. |
|
strong |
std::string catapult::model::AddressToString | ( | const Address & | address | ) |
Creates an encoded address from an address.
|
constexpr |
Returns true if lhs and rhs have the same source (facility and code).
void catapult::model::CalculateBlockTransactionsHash | ( | const std::vector< const TransactionInfo * > & | transactionInfos, |
Hash256 & | blockTransactionsHash | ||
) |
Calculates the block transactions hash of transactionInfos into blockTransactionsHash.
BlockTransactionsInfo catapult::model::CalculateBlockTransactionsInfo | ( | const Block & | block | ) |
Calculates information about transactions stored in block.
uint64_t catapult::model::CalculateDifficultyHistorySize | ( | const BlockChainConfiguration & | config | ) |
Calculates the number of historical difficulties to cache in memory for the block chain described by config.
utils::TimeSpan catapult::model::CalculateFullRollbackDuration | ( | const BlockChainConfiguration & | config | ) |
Calculates the duration of a full rollback for the block chain described by config.
GenerationHash catapult::model::CalculateGenerationHash | ( | const GenerationHash & | previousGenerationHash, |
const Key & | publicKey | ||
) |
Calculates the generation hash from a previous generation hash (previousGenerationHash) and a public key (publicKey).
Calculates the hash for the given block header.
Hash256 catapult::model::CalculateHash | ( | const Transaction & | transaction, |
const GenerationHash & | generationHash | ||
) |
Calculates the hash for the given transaction for the network with the specified generation hash (generationHash).
Hash256 catapult::model::CalculateHash | ( | const Transaction & | transaction, |
const GenerationHash & | generationHash, | ||
const RawBuffer & | buffer | ||
) |
Calculates the hash for the given transaction with data buffer for the network with the specified generation hash (generationHash).
Hash256 catapult::model::CalculateHash | ( | LockHashAlgorithm | hashAlgorithm, |
const RawBuffer & | data | ||
) |
Calculates hashAlgorithm hash of data.
Hash256 catapult::model::CalculateMerkleComponentHash | ( | const Transaction & | transaction, |
const Hash256 & | transactionHash, | ||
const TransactionRegistry & | transactionRegistry | ||
) |
Calculates the merkle component hash for the given transaction with transactionHash using transaction information from transactionRegistry.
Hash256 catapult::model::CalculateMerkleHash | ( | const BlockStatement & | statement | ) |
Calculates the merkle hash for statement.
std::vector< Hash256 > catapult::model::CalculateMerkleTree | ( | const BlockStatement & | statement | ) |
Calculates the merkle tree for statement.
std::vector< Hash256 > catapult::model::CalculateMerkleTree | ( | const std::vector< TransactionElement > & | transactionElements | ) |
Calculates the merkle tree from transactionElements.
utils::TimeSpan catapult::model::CalculateRollbackVariabilityBufferDuration | ( | const BlockChainConfiguration & | config | ) |
Calculates the duration of the rollback variability buffer for the block chain described by config.
Hash256 catapult::model::CalculateSecretLockInfoHash | ( | const Hash256 & | secret, |
const Address & | recipient | ||
) |
Calculates the secret lock info hash from secret and recipient.
utils::TimeSpan catapult::model::CalculateTransactionCacheDuration | ( | const BlockChainConfiguration & | config | ) |
Calculates the duration of time that expired transactions should be cached for the block chain described by config.
Amount catapult::model::CalculateTransactionFee | ( | BlockFeeMultiplier | feeMultiplier, |
const Transaction & | transaction | ||
) |
Calculates the fee for transaction contained in block with feeMultiplier.
BlockFeeMultiplier catapult::model::CalculateTransactionMaxFeeMultiplier | ( | const Transaction & | transaction | ) |
Calculates the maximum fee multiplier for transaction.
ImportanceHeight catapult::model::ConvertToImportanceHeight | ( | Height | height, |
Height::ValueType | grouping | ||
) |
Calculates the importance height from the supplied height and grouping (the number of blocks that should be treated as a group for importance purposes).
size_t catapult::model::CountTotalStatements | ( | const BlockStatement & | statement | ) |
Counts the total number of statements in statement.
std::unique_ptr< Block > catapult::model::CreateBlock | ( | const PreviousBlockContext & | context, |
NetworkIdentifier | networkIdentifier, | ||
const Key & | signerPublicKey, | ||
const Transactions & | transactions | ||
) |
Creates an unsigned Block given a context, signer public key (signerPublicKey) and transactions for a network with identifier networkIdentifier.
std::unique_ptr< NotificationPublisher > catapult::model::CreateNotificationPublisher | ( | const TransactionRegistry & | transactionRegistry, |
UnresolvedMosaicId | feeMosaicId, | ||
PublicationMode | mode = PublicationMode::All |
||
) |
Creates a notification publisher around transactionRegistry for the specified mode given specified fee mosaic id (feeMosaicId).
void catapult::model::DeepCopyTo | ( | BlockStatement & | destination, |
const BlockStatement & | source | ||
) |
Creates a deep copy of source into destination.
void catapult::model::DeepCopyTo | ( | BlockStatement & | destination, |
const BlockStatement & | source, | ||
uint32_t | maxSourcePrimaryId | ||
) |
Creates a deep copy of source into destination excluding receipts with primary source id greater than maxSourcePrimaryId.
catapult::model::DEFINE_ACCOUNT_LINK_NOTIFICATION | ( | New_Remote_Account | , |
0x002 | , | ||
Validator | |||
) |
New remote account was created.
catapult::model::DEFINE_ACCOUNT_LINK_NOTIFICATION | ( | Remote | , |
0x001 | , | ||
All | |||
) |
Remote account was un/linked.
catapult::model::DEFINE_ACCOUNT_RESTRICTION_NOTIFICATION | ( | Address_Modification | , |
0x0010 | , | ||
All | |||
) |
Account address restriction modification.
catapult::model::DEFINE_ACCOUNT_RESTRICTION_NOTIFICATION | ( | Address_Modifications | , |
0x0020 | , | ||
Validator | |||
) |
Account address restriction modifications.
catapult::model::DEFINE_ACCOUNT_RESTRICTION_NOTIFICATION | ( | Mosaic_Modification | , |
0x0011 | , | ||
All | |||
) |
Account mosaic restriction modification.
catapult::model::DEFINE_ACCOUNT_RESTRICTION_NOTIFICATION | ( | Mosaic_Modifications | , |
0x0021 | , | ||
Validator | |||
) |
Account mosaic restriction modifications.
catapult::model::DEFINE_ACCOUNT_RESTRICTION_NOTIFICATION | ( | Operation_Modification | , |
0x0012 | , | ||
All | |||
) |
Account operation restriction modification.
catapult::model::DEFINE_ACCOUNT_RESTRICTION_NOTIFICATION | ( | Operation_Modifications | , |
0x0022 | , | ||
Validator | |||
) |
Account operation restriction modifications.
catapult::model::DEFINE_ACCOUNT_RESTRICTION_NOTIFICATION | ( | Type | , |
0x0001 | , | ||
Validator | |||
) |
Account restriction type.
catapult::model::DEFINE_AGGREGATE_NOTIFICATION | ( | Cosignatures | , |
0x001 | , | ||
Validator | |||
) |
Aggregate was received with cosignatures.
catapult::model::DEFINE_AGGREGATE_NOTIFICATION | ( | EmbeddedTransaction | , |
0x002 | , | ||
Validator | |||
) |
Aggregate was received with an embedded transaction.
catapult::model::DEFINE_CORE_NOTIFICATION | ( | Address_Interaction | , |
0x0009 | , | ||
Validator | |||
) |
Source address interacts with destination addresses.
catapult::model::DEFINE_CORE_NOTIFICATION | ( | Balance_Debit | , |
0x0008 | , | ||
All | |||
) |
Mosaic was debited from account.
catapult::model::DEFINE_CORE_NOTIFICATION | ( | Balance_Transfer | , |
0x0003 | , | ||
All | |||
) |
Mosaic was transferred between two accounts.
catapult::model::DEFINE_CORE_NOTIFICATION | ( | Entity | , |
0x0004 | , | ||
Validator | |||
) |
Entity was received.
catapult::model::DEFINE_CORE_NOTIFICATION | ( | Mosaic_Required | , |
0x000A | , | ||
Validator | |||
) |
Mosaic is required.
catapult::model::DEFINE_CORE_NOTIFICATION | ( | Register_Account_Address | , |
0x0001 | , | ||
All | |||
) |
Account was used with specified address.
catapult::model::DEFINE_CORE_NOTIFICATION | ( | Register_Account_Public_Key | , |
0x0002 | , | ||
Observer | |||
) |
Account was used with specified public key.
catapult::model::DEFINE_CORE_NOTIFICATION | ( | Signature | , |
0x0007 | , | ||
Validator | |||
) |
Signature was received.
catapult::model::DEFINE_CORE_NOTIFICATION | ( | Source_Change | , |
0x000B | , | ||
Observer | |||
) |
Source has changed.
catapult::model::DEFINE_CORE_NOTIFICATION | ( | Transaction | , |
0x0006 | , | ||
All | |||
) |
Transaction was received.
catapult::model::DEFINE_CORE_NOTIFICATION | ( | Transaction_Deadline | , |
0x000D | , | ||
Validator | |||
) |
Transaction deadline was received.
catapult::model::DEFINE_CORE_NOTIFICATION | ( | Transaction_Fee | , |
0x000C | , | ||
All | |||
) |
Transaction fee was received.
catapult::model::DEFINE_ENTITY_TYPE | ( | Block | , |
Core | , | ||
Nemesis_Block | , | ||
0 | |||
) |
Nemesis block.
catapult::model::DEFINE_HASH_LOCK_NOTIFICATION | ( | Hash | , |
0x0003 | , | ||
All | |||
) |
Hash lock creation.
catapult::model::DEFINE_HASH_LOCK_NOTIFICATION | ( | Hash_Duration | , |
0x0001 | , | ||
Validator | |||
) |
Hash lock duration.
catapult::model::DEFINE_HASH_LOCK_NOTIFICATION | ( | Mosaic | , |
0x0002 | , | ||
Validator | |||
) |
Hash lock mosaic.
catapult::model::DEFINE_MOSAIC_NOTIFICATION | ( | Definition | , |
0x0013 | , | ||
All | |||
) |
Mosaic was defined.
catapult::model::DEFINE_MOSAIC_NOTIFICATION | ( | Nonce | , |
0x0014 | , | ||
Validator | |||
) |
Mosaic nonce and id were provided.
catapult::model::DEFINE_MOSAIC_NOTIFICATION | ( | Properties | , |
0x0012 | , | ||
Validator | |||
) |
Mosaic properties were provided.
catapult::model::DEFINE_MOSAIC_NOTIFICATION | ( | Rental_Fee | , |
0x0030 | , | ||
Observer | |||
) |
Mosaic rental fee has been sent.
catapult::model::DEFINE_MOSAIC_NOTIFICATION | ( | Supply_Change | , |
0x0022 | , | ||
All | |||
) |
Mosaic supply was changed.
catapult::model::DEFINE_MULTISIG_NOTIFICATION | ( | Modify_Cosigners | , |
0x0001 | , | ||
All | |||
) |
Multisig account cosigners were modified.
catapult::model::DEFINE_MULTISIG_NOTIFICATION | ( | Modify_New_Cosigner | , |
0x0002 | , | ||
Validator | |||
) |
A cosigner was added to a multisig account.
catapult::model::DEFINE_MULTISIG_NOTIFICATION | ( | Modify_Settings | , |
0x1001 | , | ||
All | |||
) |
Multisig account settings were modified.
catapult::model::DEFINE_NAMESPACE_NOTIFICATION | ( | Alias_Owner | , |
0x0081 | , | ||
Validator | |||
) |
Alias owner was provided.
catapult::model::DEFINE_NAMESPACE_NOTIFICATION | ( | Aliased_Address | , |
0x0091 | , | ||
All | |||
) |
Address alias was un/linked.
catapult::model::DEFINE_NAMESPACE_NOTIFICATION | ( | Aliased_MosaicId | , |
0x0092 | , | ||
All | |||
) |
Mosaic alias was un/linked.
catapult::model::DEFINE_NAMESPACE_NOTIFICATION | ( | Child_Registration | , |
0x0022 | , | ||
All | |||
) |
Child namespace was registered.
catapult::model::DEFINE_NAMESPACE_NOTIFICATION | ( | Name | , |
0x0011 | , | ||
Validator | |||
) |
Namespace name was provided.
catapult::model::DEFINE_NAMESPACE_NOTIFICATION | ( | Registration | , |
0x0012 | , | ||
Validator | |||
) |
Namespace was registered.
catapult::model::DEFINE_NAMESPACE_NOTIFICATION | ( | Rental_Fee | , |
0x0030 | , | ||
Observer | |||
) |
Namespace rental fee has been sent.
catapult::model::DEFINE_NAMESPACE_NOTIFICATION | ( | Root_Registration | , |
0x0021 | , | ||
All | |||
) |
Root namespace was registered.
catapult::model::DEFINE_RECEIPT_TYPE | ( | Aggregate | , |
Core | , | ||
Transaction_Group | , | ||
1 | |||
) |
Transaction group.
catapult::model::DEFINE_RECEIPT_TYPE | ( | AliasResolution | , |
Core | , | ||
Address_Alias_Resolution | , | ||
1 | |||
) |
Address alias resolution.
catapult::model::DEFINE_RECEIPT_TYPE | ( | AliasResolution | , |
Core | , | ||
Mosaic_Alias_Resolution | , | ||
2 | |||
) |
Mosaic alias resolution.
catapult::model::DEFINE_RECEIPT_TYPE | ( | ArtifactExpiry | , |
Mosaic | , | ||
Mosaic_Expired | , | ||
1 | |||
) |
Mosaic expiry.
catapult::model::DEFINE_RECEIPT_TYPE | ( | ArtifactExpiry | , |
Namespace | , | ||
Namespace_Expired | , | ||
1 | |||
) |
Namespace expiry.
catapult::model::DEFINE_RECEIPT_TYPE | ( | BalanceCredit | , |
Core | , | ||
Harvest_Fee | , | ||
1 | |||
) |
Harvest fee credit.
catapult::model::DEFINE_RECEIPT_TYPE | ( | BalanceCredit | , |
LockHash | , | ||
LockHash_Completed | , | ||
2 | |||
) |
Hash lock completion.
catapult::model::DEFINE_RECEIPT_TYPE | ( | BalanceCredit | , |
LockHash | , | ||
LockHash_Expired | , | ||
3 | |||
) |
Hash lock expiration.
catapult::model::DEFINE_RECEIPT_TYPE | ( | BalanceCredit | , |
LockSecret | , | ||
LockSecret_Completed | , | ||
2 | |||
) |
Secret lock completion.
catapult::model::DEFINE_RECEIPT_TYPE | ( | BalanceCredit | , |
LockSecret | , | ||
LockSecret_Expired | , | ||
3 | |||
) |
Secret lock expiration.
catapult::model::DEFINE_RECEIPT_TYPE | ( | BalanceDebit | , |
LockHash | , | ||
LockHash_Created | , | ||
1 | |||
) |
Hash lock creation.
catapult::model::DEFINE_RECEIPT_TYPE | ( | BalanceDebit | , |
LockSecret | , | ||
LockSecret_Created | , | ||
1 | |||
) |
Secret lock creation.
catapult::model::DEFINE_RECEIPT_TYPE | ( | BalanceTransfer | , |
Mosaic | , | ||
Mosaic_Rental_Fee | , | ||
2 | |||
) |
Mosaic rental fee.
catapult::model::DEFINE_RECEIPT_TYPE | ( | BalanceTransfer | , |
Namespace | , | ||
Namespace_Rental_Fee | , | ||
2 | |||
) |
Namespace rental fee.
catapult::model::DEFINE_RECEIPT_TYPE | ( | Inflation | , |
Core | , | ||
Inflation | , | ||
1 | |||
) |
Inflation.
catapult::model::DEFINE_SECRET_LOCK_NOTIFICATION | ( | Hash_Algorithm | , |
0x0002 | , | ||
Validator | |||
) |
Secret lock hash algorithm.
catapult::model::DEFINE_SECRET_LOCK_NOTIFICATION | ( | Proof_Publication | , |
0x0005 | , | ||
All | |||
) |
Proof publication.
catapult::model::DEFINE_SECRET_LOCK_NOTIFICATION | ( | Proof_Secret | , |
0x0004 | , | ||
Validator | |||
) |
Proof and secret.
catapult::model::DEFINE_SECRET_LOCK_NOTIFICATION | ( | Secret | , |
0x0003 | , | ||
All | |||
) |
Secret lock creation.
catapult::model::DEFINE_SECRET_LOCK_NOTIFICATION | ( | Secret_Duration | , |
0x0001 | , | ||
Validator | |||
) |
Secret lock duration.
catapult::model::DEFINE_TRANSACTION_TYPE | ( | AccountLink | , |
Account_Link | , | ||
0x1 | |||
) |
Account link transaction.
catapult::model::DEFINE_TRANSACTION_TYPE | ( | Aggregate | , |
Aggregate_Bonded | , | ||
0x2 | |||
) |
Bonded aggregate transaction.
catapult::model::DEFINE_TRANSACTION_TYPE | ( | Aggregate | , |
Aggregate_Complete | , | ||
0x1 | |||
) |
Fully complete aggregate transaction.
catapult::model::DEFINE_TRANSACTION_TYPE | ( | LockHash | , |
Hash_Lock | , | ||
0x1 | |||
) |
Hash lock transaction.
catapult::model::DEFINE_TRANSACTION_TYPE | ( | LockSecret | , |
Secret_Lock | , | ||
0x1 | |||
) |
Secret lock transaction.
catapult::model::DEFINE_TRANSACTION_TYPE | ( | LockSecret | , |
Secret_Proof | , | ||
0x2 | |||
) |
Secret proof transaction.
catapult::model::DEFINE_TRANSACTION_TYPE | ( | Mosaic | , |
Mosaic_Definition | , | ||
0x1 | |||
) |
Mosaic definition transaction.
catapult::model::DEFINE_TRANSACTION_TYPE | ( | Mosaic | , |
Mosaic_Supply_Change | , | ||
0x2 | |||
) |
Mosaic supply change transaction.
catapult::model::DEFINE_TRANSACTION_TYPE | ( | Multisig | , |
Modify_Multisig_Account | , | ||
0x1 | |||
) |
Modify multisig account transaction.
catapult::model::DEFINE_TRANSACTION_TYPE | ( | Namespace | , |
Alias_Address | , | ||
0x2 | |||
) |
Address alias transaction.
catapult::model::DEFINE_TRANSACTION_TYPE | ( | Namespace | , |
Alias_Mosaic | , | ||
0x3 | |||
) |
Mosaic alias transaction.
catapult::model::DEFINE_TRANSACTION_TYPE | ( | Namespace | , |
Register_Namespace | , | ||
0x1 | |||
) |
Register namespace transaction.
catapult::model::DEFINE_TRANSACTION_TYPE | ( | RestrictionAccount | , |
Account_Address_Restriction | , | ||
0x1 | |||
) |
Address account restriction transaction.
catapult::model::DEFINE_TRANSACTION_TYPE | ( | RestrictionAccount | , |
Account_Mosaic_Restriction | , | ||
0x2 | |||
) |
Mosaic account restriction transaction.
catapult::model::DEFINE_TRANSACTION_TYPE | ( | RestrictionAccount | , |
Account_Operation_Restriction | , | ||
0x3 | |||
) |
Operation account restriction transaction.
catapult::model::DEFINE_TRANSACTION_TYPE | ( | Transfer | , |
Transfer | , | ||
0x1 | |||
) |
Transfer transaction.
catapult::model::DEFINE_TRANSFER_NOTIFICATION | ( | Message | , |
0x001 | , | ||
Validator | |||
) |
Transfer was received with a message.
catapult::model::DEFINE_TRANSFER_NOTIFICATION | ( | Mosaics | , |
0x002 | , | ||
Validator | |||
) |
Transfer was received with at least one mosaic.
UnresolvedAddressSet catapult::model::ExtractAddresses | ( | const Transaction & | transaction, |
const NotificationPublisher & | notificationPublisher | ||
) |
Extracts all addresses that are involved in transaction using notificationPublisher.
MosaicProperties catapult::model::ExtractAllProperties | ( | const MosaicPropertiesHeader & | header, |
const MosaicProperty * | pProperties | ||
) |
Extracts all properties from header and pProperties.
void catapult::model::ExtractEntityInfos | ( | const BlockElement & | element, |
WeakEntityInfos & | entityInfos | ||
) |
Extracts all entity infos from element into entityInfos.
void catapult::model::ExtractMatchingEntityInfos | ( | const std::vector< BlockElement > & | elements, |
WeakEntityInfos & | entityInfos, | ||
const MatchingEntityPredicate & | predicate | ||
) |
Extracts all entity infos for which predicate returns true
from elements into entityInfos.
void catapult::model::ExtractTransactionInfos | ( | std::vector< TransactionInfo > & | transactionInfos, |
const std::shared_ptr< const BlockElement > & | pBlockElement | ||
) |
Extracts transaction infos from a block element (pBlockElement) into transactionInfos such that each transaction will extend the lifetime of the owning block element.
size_t catapult::model::FindFirstDifferenceIndex | ( | const EntityRange< TEntity > & | lhs, |
const EntityRange< TEntity > & | rhs | ||
) |
Compares two entity ranges (lhs and rhs) and returns the index of the first non-equal element.
|
noexcept |
Generates a mosaic id given owner and nonce.
|
noexcept |
Generates a namespace id given parentId and namespace name.
|
noexcept |
Generates a root namespace id given name.
|
constexpr |
Gets the notification channel set in type.
size_t catapult::model::GetTransactionPayloadSize | ( | const AggregateTransactionHeader & | header | ) |
Gets the number of bytes containing transaction data according to header.
size_t catapult::model::GetTransactionPayloadSize | ( | const BlockHeader & | header | ) |
Gets the number of bytes containing transaction data according to header.
UnresolvedMosaicId catapult::model::GetUnresolvedCurrencyMosaicId | ( | const BlockChainConfiguration & | config | ) |
Gets unresolved currency mosaic id from config.
|
inline |
Creates a predicate that returns true
when an entity has a matching basic entity type.
|
inline |
Creates a predicate that returns true
when an entity has a matching entity type.
|
constexpr |
Checks if type has channel set.
bool catapult::model::IsSizeValid | ( | const AggregateTransaction & | aggregate, |
const TransactionRegistry & | registry | ||
) |
Checks the real size of aggregate against its reported size and returns true
if the sizes match. registry contains all known transaction types.
bool catapult::model::IsSizeValid | ( | const Block & | block, |
const TransactionRegistry & | registry | ||
) |
Checks the real size of block against its reported size and returns true
if the sizes match. registry contains all known transaction types.
bool catapult::model::IsSizeValid | ( | const EmbeddedTransaction & | transaction, |
const TransactionRegistry & | registry | ||
) |
Checks the real size of transaction against its reported size and returns true
if the sizes match. registry contains all known transaction types.
bool catapult::model::IsSizeValid | ( | const Transaction & | transaction, |
const TransactionRegistry & | registry | ||
) |
Checks the real size of transaction against its reported size and returns true
if the sizes match. registry contains all known transaction types.
bool catapult::model::IsSizeValid | ( | const VerifiableEntity & | entity, |
const TransactionRegistry & | registry | ||
) |
Checks the real size of entity against its reported size and returns true
if the sizes match. registry contains all known transaction types.
bool catapult::model::IsValidAddress | ( | const Address & | address, |
NetworkIdentifier | networkIdentifier | ||
) |
Returns a value indicating whether or not the given address is valid for the network identified by networkIdentifier.
bool catapult::model::IsValidEncodedAddress | ( | const std::string & | encoded, |
NetworkIdentifier | networkIdentifier | ||
) |
Returns a value indicating whether or not the given encoded address is valid for the network identified by networkIdentifier.
bool catapult::model::IsValidName | ( | const uint8_t * | pName, |
size_t | nameSize | ||
) |
Returns true
if pName with size nameSize points to a valid name.
T catapult::model::LoadPluginConfiguration | ( | const BlockChainConfiguration & | config, |
const std::string & | pluginName | ||
) |
Loads plugin configuration for plugin named pluginName from config.
|
constexpr |
Creates a container over memory pointed to by pEntity spanning across size bytes with the desired error policy (errorPolicy).
|
constexpr |
Makes entity type given basicEntityType, facilityCode and code.
|
constexpr |
Makes a notification type given channel, facility and code.
|
constexpr |
Makes receipt type given basicReceiptType, facilityCode and code.
TransactionInfo catapult::model::MakeTransactionInfo | ( | const std::shared_ptr< const Transaction > & | pTransaction, |
const TransactionElement & | transactionElement | ||
) |
Makes a transaction info by merging pTransaction and transactionElement.
|
constexprnoexcept |
Creates a version field out of given entity version and networkIdentifier.
|
inline |
Creates a predicate that always returns true
.
std::ostream & catapult::model::operator<< | ( | std::ostream & | out, |
const EmbeddedTransaction & | transaction | ||
) |
Insertion operator for outputting transaction to out.
std::ostream & catapult::model::operator<< | ( | std::ostream & | out, |
const VerifiableEntity & | entity | ||
) |
Insertion operator for outputting entity to out.
std::ostream& catapult::model::operator<< | ( | std::ostream & | out, |
const WeakEntityInfoT< TEntity > & | entityInfo | ||
) |
Insertion operator for outputting entityInfo to out.
std::ostream & catapult::model::operator<< | ( | std::ostream & | out, |
EntityType | entityType | ||
) |
Insertion operator for outputting entityType to out.
std::ostream& catapult::model::operator<< | ( | std::ostream & | out, |
NetworkIdentifier | value | ||
) |
Insertion operator for outputting value to out.
std::ostream & catapult::model::operator<< | ( | std::ostream & | out, |
ReceiptType | receiptType | ||
) |
Insertion operator for outputting receiptType to out.
Address catapult::model::PublicKeyToAddress | ( | const Key & | publicKey, |
NetworkIdentifier | networkIdentifier | ||
) |
Creates an address from a public key (publicKey) for the network identified by networkIdentifier.
void catapult::model::PublishNotifications | ( | const EmbeddedTransaction & | transaction, |
NotificationSubscriber & | sub | ||
) |
Sends all notifications from transaction to sub.
|
constexpr |
Sets the notification channel in type to channel.
void catapult::model::SignBlockHeader | ( | const crypto::KeyPair & | signer, |
Block & | block | ||
) |
Signs block header as signer.
std::unique_ptr< Block > catapult::model::StitchBlock | ( | const BlockHeader & | blockHeader, |
const Transactions & | transactions | ||
) |
Creates a new block by stitching together blockHeader and transactions.
Address catapult::model::StringToAddress | ( | const std::string & | str | ) |
Creates an address from an encoded address (encoded).
|
constexpr |
Converts an entity type into a basic entity type.
bool catapult::model::TryParseValue | ( | const std::string & | networkName, |
NetworkIdentifier & | networkIdentifier | ||
) |
Tries to parse networkName into a network identifier (networkIdentifier).
bool catapult::model::TryParseValue | ( | const std::string & | strategyName, |
TransactionSelectionStrategy & | strategy | ||
) |
Tries to parse strategyName into a transaction selection strategy.
void catapult::model::UpdateHashes | ( | const TransactionRegistry & | transactionRegistry, |
const GenerationHash & | generationHash, | ||
TransactionElement & | transactionElement | ||
) |
Calculates the hashes for transactionElement in place for the network with the specified generation hash (generationHash) using transaction information from transactionRegistry.
bool catapult::model::VerifyBlockHeaderSignature | ( | const Block & | block | ) |
Validates signature of block header.
const uint8_t catapult::model::Checksum_Size = 4 |
|
constexpr |
Index of first optional property.
|
constexpr |
Number of available properties.