How to's

For a 5 minute guide on how to modify a simple contract, see our Quickstart.

In this more advanced section, we'll go through how to modify contracts on your shadow fork that use design patterns that are commonly found in the wild:

  1. Shadowing proxy contracts that delegate call to implementation contracts.

  2. Using oracles on your shadow fork to get token prices in USD, without using offchain price APIs.

  3. Shadowing a factory contracts and applying modifications to all child contracts it has created.

  4. Writing interdependent shadow contracts that call new functions from another shadow contract.

Proxy contractsUsing oraclesFactory contractsInterdependent shadow contracts

Last updated