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

feat: Block cheat codes in anvil #8277

Merged
merged 3 commits into from
Aug 29, 2024
Merged

feat: Block cheat codes in anvil #8277

merged 3 commits into from
Aug 29, 2024

Commits on Aug 29, 2024

  1. feat: Block cheat codes in anvil

    Adds a second api to the mainnet-fork, located at
    `public-PUBLIC_API_KEY`, in which all cheat codes are blocked. We define
    a cheat code as a method in the evm, hardhat, or anvil namespaces. We
    use njs for parsing the JSON RPC request body and testing the method
    namespace.
    
    The PUBLIC_API_KEY is only set for provernet, for other networks, we
    load the same API_KEY secret as always.
    
    This PR also enables logging for anvil, including a logrotate config to
    ensure we don't fill up the disk just with logs.
    spalladino committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    32c1589 View commit details
    Browse the repository at this point in the history
  2. fix comment

    spalladino committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    d7e164d View commit details
    Browse the repository at this point in the history
  3. handle deployment

    spalladino committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    363f7c4 View commit details
    Browse the repository at this point in the history