Skip to content

Commit

Permalink
Pick up changes incorrectly committed to rs-stellar-xdr (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon authored Aug 24, 2022
1 parent 6e8ac4e commit 35f1e4e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Stellar-ledger.x
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,33 @@ struct TransactionMetaV2
// applied if any
};

enum ContractEventType
{
SYSTEM = 0,
CONTRACT = 1
};

struct ContractEvent
{
// We can use this to add more fields, or because it
// is first, to change ContractEvent into a union.
ExtensionPoint ext;

Hash* contractID;
ContractEventType type;

union switch (int v)
{
case 0:
struct
{
SCVec topics;
SCVal data;
} v0;
}
body;
};

// this is the meta produced when applying transactions
// it does not include pre-apply updates such as fees
union TransactionMeta switch (int v)
Expand Down

0 comments on commit 35f1e4e

Please sign in to comment.