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

configuration files to use ganache forks on mainnet #858

Closed
wants to merge 1 commit into from

Conversation

adjisb
Copy link
Contributor

@adjisb adjisb commented Dec 12, 2022

Description

Docker compose file to run two ganache instances and a node script:

  • The ganache instances fork from mumbai and goerli.
  • The script steals land, sand and basecoin from some accountes (see steal.json).

Configuration: Add the following to .env file

ETH_NODE_URI_GOERLI_DOCKER="http://goerli_endpoint_url@block_to_fork" ETH_NODE_URI_MUMBAI_DOCKER="http://mumbai_endpoint_url@block_to_fork" for the server

Configuration

For each network configured in hardhat.config another network is added with the postfix "_ganache".
To do a deploy on a mainnet fork run: yarn hardhat deploy --network mainnet_ganache --tags someTags . The deployments
in the directory deployments/mainnet are reused and the new deployments are sent to deployment/mainnet_ganache so everything works as expected (to start from scratch all the directories deployments/*_ganache must be deleted).

Copy link
Contributor

@atkinsonholly atkinsonholly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't generally like references in the main repo to contributors / contributor dependencies, eg
image: adjisb/ganache:latest
@adjisb let's discuss :)

@adjisb
Copy link
Contributor Author

adjisb commented Feb 22, 2023

I don't generally like references in the main repo to contributors / contributor dependencies, eg image: adjisb/ganache:latest @adjisb let's discuss :)

Right now ganache has an issue that makes it hang when used with our backend. I have a PR waiting for approval, in the meanwhile I created this docker to make it work.

I'm closing the PR because nobody is using it anyway.

@adjisb adjisb closed this Feb 22, 2023
@mvanmeerbeck mvanmeerbeck deleted the feat/ganache_forks branch December 19, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants