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
Implement Processors for 4 state changes:
Each processor will:
Extract relevant information from TokenTransferEvents or Operations.
Check if the associated accounts are relevant using relevantAcctService.
If relevant, update the in-memory maps (stateChangeMap, operationsMap, transactionMap).
Type-Specific Validation:
To ensure that each processor only handles the appropriate inputs, each processor should validate the input type before processing.
For example, a processor handling SetOptions operations should ignore Payment operations.
By defining a global list of processors, every TokenTransferEvent and Operation can be passed through each processor in the list. This would make adding new state change types easier - implement a new implementation of the interface and add it to the global list of processors
Implement Processors for 4 state changes:
Each processor will:
Extract relevant information from TokenTransferEvents or Operations.
Check if the associated accounts are relevant using relevantAcctService.
If relevant, update the in-memory maps (stateChangeMap, operationsMap, transactionMap).
Type-Specific Validation:
To ensure that each processor only handles the appropriate inputs, each processor should validate the input type before processing.
For example, a processor handling SetOptions operations should ignore Payment operations.
By defining a global list of processors, every TokenTransferEvent and Operation can be passed through each processor in the list. This would make adding new state change types easier - implement a new implementation of the interface and add it to the global list of processors
design: https://docs.google.com/document/d/10Z2Apl6gJYkJp0BXILWn5_vJL4MmZ0QZ4QrRqbW_EHw/edit?tab=t.0
The text was updated successfully, but these errors were encountered: