Shadow
  • 🌗Overview
  • 🏁Quickstart
  • 🎯Use cases
  • ⛓️Supported chains
  • MODIFY CONTRACTS
    • Versioning
    • How to's
      • Proxy contracts
      • Using oracles
      • Factory contracts
      • Interdependent shadow contracts
  • GETTING DATA
    • Shadow RPC
    • Database syncs
    • Recurring exports
    • One-off exports
    • API Keys
  • Integrations
    • Postgres
    • GCS / S3
    • Dune
  • Product Guide
    • Catalog
    • Test runs
    • Subgraphs
  • Tips
    • Proxy contracts
    • Solidity beginners
      • Recommended tools
  • Resources
    • 📚Concepts
    • ❓FAQs
Powered by GitBook
On this page
Export as PDF
  1. MODIFY CONTRACTS

How to's

PreviousVersioningNextProxy contracts

Last updated 8 months ago

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

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. that delegate call to implementation contracts.

  2. to get token prices in USD, without using offchain price APIs.

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

  4. that call new functions from another shadow contract.

Quickstart
Shadowing proxy contracts
Using oracles on your shadow fork
Shadowing a factory contracts
Writing interdependent shadow contracts
Proxy contracts
Using oracles
Factory contracts
Interdependent shadow contracts