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

Add integration with Tenderly to improve debugging #62

Open
saltyfacu opened this issue Aug 2, 2021 · 2 comments
Open

Add integration with Tenderly to improve debugging #62

saltyfacu opened this issue Aug 2, 2021 · 2 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed p2 Important

Comments

@saltyfacu
Copy link

saltyfacu commented Aug 2, 2021

This has to be optional so anyone can choose if they want to use it or not.

Every time a test suite is run:

  • Create a new fork in Tenderly
  • Run every test
  • Print log messages that let you check Tenderly dashboard
  • Clean up: if everything was ok, delete the fork. Else, keep it for debugging.
@saltyfacu saltyfacu added help wanted Extra attention is needed p2 Important good first issue Good for newcomers labels Aug 2, 2021
@numan
Copy link

numan commented Nov 3, 2021

Hi @saltyfacu . I'm trying to help out with this but running into a few issues and would like your feedback:

Create a new fork in Tenderly

As far as I can tell, there is not programatic way to create a fork in Tenderly. You can use the CLI to upload a local transaction, but this ends up in the Local Transactions section of the website:

image

Looks like on any of their paid plans you can have unlimited projects. Would it make sense to create a new project for every test suite run?

image

Clean up: if everything was ok, delete the fork. Else, keep it for debugging.

I couldn't find a non-interactive way to delete a fork/project

I also couldn't get Tenderly to export ganache-cli transactions. I think it is due to the latest released version of ganache doesn't support the london hardfork. I am able to get it to work with the hardhat node though.

Not sure if I'm on the right track. Here is a very rough draft of what I have so far:

master...numan:feat/tenderly-integration

@saltyfacu
Copy link
Author

I'll check with Tenderly team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed p2 Important
Projects
None yet
Development

No branches or pull requests

2 participants