CatapultServer
v0.5.0.1 (Elephant)
|
const Receipt & receiptAt(size_t index) const
Gets the receipt at index.
Definition: TransactionStatement.cpp:38
Hash256 hash() const
Calculates a unique hash for this statement.
Definition: TransactionStatement.cpp:42
Binary layout for a receipt entity.
Definition: Receipt.h:31
Collection of receipts scoped to a transaction.
Definition: TransactionStatement.h:28
const ReceiptSource & source() const
Gets statement source.
Definition: TransactionStatement.cpp:30
Builder for building a hash.
Definition: Hashes.h:61
ReceiptType Type
Receipt type.
Definition: Receipt.h:36
size_t size() const
Gets the number of attached receipts.
Definition: TransactionStatement.cpp:34
ReceiptType
Enumeration of receipt types.
Definition: ReceiptType.h:58
std::vector< std::unique_ptr< Receipt > > m_receipts
Definition: TransactionStatement.h:52
void final(OutputType &output) noexcept
Finalize hash calculation. Returns result in output.
Definition: Hashes.cpp:145
void update(const RawBuffer &dataBuffer) noexcept
Updates the state of hash with data inside dataBuffer.
Definition: Hashes.cpp:134
Receipt source (unique within a block).
Definition: ReceiptSource.h:29
void addReceipt(const Receipt &receipt)
Adds receipt to this transaction statement.
Definition: TransactionStatement.cpp:65
ReceiptSource m_source
Definition: TransactionStatement.h:51
Definition: AddressExtractionExtension.cpp:28
TransactionStatement(const ReceiptSource &source)
Creates a statement around source.
Definition: TransactionStatement.cpp:27
uint32_t Size
Entity size.
Definition: SizePrefixedEntity.h:33