-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Description
As events in business processes (high-level events) might have properties that expand over multiple contracts; we can look at multiple contracts during the interactions:
The following lines of the lib/monitor/watchpost.js could for instance be replaced by something that looks over any transaction (not just incoming), to monitor properties over transactions that spread over multiple contracts (tx.origin is our contract and msg.sender is a EOA if I'm not wrong).
// Iterate over all transactions in the block
block.transactions.forEach((tx) => {
// Check if the transaction involves the specified contract contractAddress
if (tx.to && tx.to.toLowerCase() === contractAddress.toLowerCase()) {
let dcrEvents = getDCREvents(tx);
if (dcrEvents) {
monitorQueue.push(dcrEvents);
}
}
});
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested