Skip to main content

Module statement

Module statement 

Source
Expand description

ブロックのステートメントとレシート。catbuffer の receipts.cats と statements/、 catapult の model/TransactionStatement.cpp、model/ResolutionStatement.cpp、model/BlockStatement.cpp、 io/BlockStatementSerializer.cpp。

ブロックを実行して起きたこと(手数料の受け取り、ロックの払い戻し、期限切れ、ネームスペースの解決など)を、 ブロックごとにまとめたもの。ブロックには入っておらず、ブロックのヘッダーの ReceiptsHash が、 ステートメントから求めた Merkle の根になっている。

BlockStatement
  u32 数  TransactionStatement(ReceiptSource 8、u32 数、レシートを並べたもの)
  u32 数  AddressResolutionStatement(UnresolvedAddress 24、u32 数、(ReceiptSource 8、Address 24) を並べたもの)
  u32 数  MosaicResolutionStatement(UnresolvedMosaicId 8、u32 数、(ReceiptSource 8、MosaicId 8) を並べたもの)

Receipt
  u32 Size  u16 Version  u16 Type  種類ごとの本体

レシートはどれも8の倍数の大きさなので、並べるときにパディングは入らない。

Structs§

BalanceChange
あるアカウントのモザイクが増えたか減った。catbuffer の BalanceChangeReceipt。
BalanceTransfer
あるアカウントから別のアカウントにモザイクが動いた。catbuffer の BalanceTransferReceipt。
BlockStatement
ブロックのステートメント。catapult の model::BlockStatement。
Mosaic
解決したあとのモザイクの ID と量。catbuffer の Mosaic。
Receipt
レシート。catbuffer の Receipt を継ぐ13種類。
ReceiptSource
レシートやステートメントの元になったもの。catapult の model::ReceiptSource。
ResolutionEntry
解決の1件。どのトランザクションで、何に解決したか。
ResolutionStatement
1つのネームスペースを、ブロックの中でどう解決したか。catapult の model::ResolutionStatement。
TransactionStatement
1件のトランザクション(またはブロックそのもの)から出たレシートの並び。catapult の model::TransactionStatement。

Enums§

ReceiptBody
種類ごとのレシートの本体。
StatementDecodeError

Traits§

Resolved
ネームスペースを解決した値。アドレスかモザイクの ID。

Type Aliases§

AddressResolutionStatement
アドレスのネームスペースの解決。catbuffer の AddressResolutionStatement。
MosaicResolutionStatement
モザイクのネームスペースの解決。catbuffer の MosaicResolutionStatement。