Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitoring properties that expand over multipe contracts; #63

Open
mojtaba-eshghie opened this issue Oct 30, 2023 · 0 comments
Open

Monitoring properties that expand over multipe contracts; #63

mojtaba-eshghie opened this issue Oct 30, 2023 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested

Comments

@mojtaba-eshghie
Copy link
Owner

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);
            }
            }
        });
@mojtaba-eshghie mojtaba-eshghie added help wanted Extra attention is needed good first issue Good for newcomers question Further information is requested labels Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant