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: prepare Morpho test env in Tenderly fork #533

Merged
merged 15 commits into from
Dec 13, 2023

Conversation

robercano
Copy link
Contributor

Ticket URL

https://app.shortcut.com/oazo-apps/story/12960/test-prepare-testing-environment-on-fork

Description of Changes

Please list the changes introduced by this PR:

  • Fixed Tenderly config to be able to verify deployed contracts automatically
  • Added new .env variable to enable Tenderly automatic verification TENDERLY_AUTOMATIC_VERIFICATION that can be set to true or false
  • Added yarn deploy:morphoblue:integration command to dma-contracts to deploy Morpho. It only works with --network tenderly for now
  • Separated internal test Morpho deployment from deployment for a mainnet fork, so it could be reused to deploy to Tenderly
  • Added Chainlink wrappers to act as Morpho oracles to get real prices on-chain
  • Added some minor optimizations to helper classes

How to Test

  • Install Tenderly command line tool
  • Login into Tenderly with the command line tool
  • Create a fork in Tenderly
  • Configure the Tenderly env variables in .env
## Tenderly config
TENDERLY_PROJECT=oasis
TENDERLY_FORK_URL=URL of the fork
TENDERLY_FORK_CHAIN_ID=Chain ID of the fork
TENDERLY_AUTOMATIC_VERIFICATION=true or false
  • Fund the deployer account in Tenderly
  • Go to packages/dma-contracts and run ``yarn deploy:morphoblue:integration --network tenderly`
  • Check that the system has been deployed to the fork and that the contracts have been verified

PR Definition of Done

  • [✔️] All checks are passing
  • [✔️] PR is linked to a corresponding ticket
  • [✔️] PR title is clear and concise
  • [✔️] Code has been self-reviewed and any fixes or improvements noted (See Code review standards in Notion)
  • [✔️] Documentation has been updated if necessary

Copy link

This pull request has been linked to Shortcut Story #12960: [test] Prepare testing environment on fork.

@robercano robercano requested a review from halaprix December 12, 2023 09:11
@robercano robercano merged commit be1423e into dev Dec 13, 2023
2 checks passed
@robercano robercano deleted the rc/sc-12960/test-prepare-testing-environment-on-fork branch December 13, 2023 10:35
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