Skip to content

Monitoring properties that expand over multipe contracts; #63

@mojtaba-eshghie

Description

@mojtaba-eshghie

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

No one assigned

    Labels

    good first issueGood for newcomershelp wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions