Skip to content

Commit

Permalink
Make events a list of lists so we can associate events with their ope…
Browse files Browse the repository at this point in the history
…ration (#59)

* Make events a list of lists so we can associate events with their operation

* Add a OperationEvents struct
  • Loading branch information
paulbellamy authored Nov 28, 2022
1 parent d4ac75d commit 026c9cd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Stellar-ledger.x
Original file line number Diff line number Diff line change
Expand Up @@ -412,15 +412,20 @@ struct ContractEvent
body;
};

struct OperationEvents
{
ContractEvent events<>;
};

struct TransactionMetaV3
{
LedgerEntryChanges txChangesBefore; // tx level changes before operations
// are applied if any
OperationMeta operations<>; // meta for each operation
LedgerEntryChanges txChangesAfter; // tx level changes after operations are
// applied if any
ContractEvent events<>; // custom events populated by the
// contracts themselves
OperationEvents events<>; // custom events populated by the
// contracts themselves. One list per operation.
TransactionResult txResult;

Hash hashes[3]; // stores sha256(txChangesBefore, operations, txChangesAfter),
Expand Down

0 comments on commit 026c9cd

Please sign in to comment.