You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* initial commit for sac event parsing
* break out code for parsing SAC v3 and v4
* Add unit tests for all stellar asset contract parsing
* Update horizon processors code and unit tests to read from the new horizon/internal/support/contractevents package
* Initial change to separate V3 events into their own function
* Rework the receiver function GetDiagnosticEvents on TransactionMeta to NOT return an error
* Rework diagnostic events completely. WIll fix failing tests later
* Unit tests for the new events functions
* Fix unit test fixtures to account for changes in getXXXEvents functionality in horizon and processors/
* make destinationMemo public
* Address code review comments
// GetTransactionEvents gives the breakdown of xdr.ContractEvent, xdr.TransactionEvent, xdr.Disgnostic event as they appea in the TxMeta
269
+
// In TransactionMetaV3, for soroban transactions, contract events and diagnostic events appear in the SorobanMeta struct in TransactionMetaV3, i.e. at the transaction level
270
+
// In TransactionMetaV4 and onwards, there is a more granular breakdown, because of CAP-67 unified events
271
+
// - Classic operations will also have contract events.
272
+
// - Contract events will now be present in the "operation []OperationMetaV2" in the TransactionMetaV4 structure, instead of at the transaction level as in TxMetaV3.
273
+
// This is true for soroban transactions as well, which will only have one operation and thus contract events will appear at index 0 in the []OperationMetaV2 structure
274
+
// - Additionally, if its a soroban transaction, the diagnostic events will also be included in the "DiagnosticEvents []DiagnosticEvent" structure
275
+
// - Non soroban transactions will have an empty list for DiagnosticEvents
276
+
//
277
+
// It is preferred to use this function in horizon and rpc
0 commit comments