Skip to content

Feature: Local EVM Testing Environment with Foundry #234

@isSerge

Description

@isSerge

Describe the feature

The absence of a documented local testing strategy presents a significant hurdle. Without a documented local setup, relying on public testnets is less controllable, introduces potential costs, and slows down the feedback loop. A dedicated local testing environment would provide a faster, more controlled, and cost-effective way to iterate on monitor development and debugging.

I think it would be beneficial to add support and documentation for setting up a local EVM testing environment using Foundry, specifically:

  • Anvil to run local EVM node
  • Cast to send transactions to a local EVM node and trigger monitor conditions
  • Forge to compile and deploy test contracts

This feature would primarily involve:

  • Adding documentation describing setup and usage
  • Adding network configuration for Anvil
  • Adding monitor configuration adapted for a locally deployed contract
  • Solidity contract(s) for testing (can start with just an ERC-20)

This setup will greatly enhance the testability and reliability of monitors and filters before they are deployed to watch mainnet or testnet environments.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsUpdates or fixes to project documentationP-lowLow-priority or non-urgent tasksT-documentationIssues or PRs related to documentation updatescla: allowlist

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions