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

Report gas usage, balances and cost outcomes for TASK_RUN #195

Open
cgewecke opened this issue Mar 3, 2024 · 0 comments
Open

Report gas usage, balances and cost outcomes for TASK_RUN #195

cgewecke opened this issue Mar 3, 2024 · 0 comments
Labels

Comments

@cgewecke
Copy link
Owner

cgewecke commented Mar 3, 2024

It would be really useful to be able to quickly configure and see the complete cost outcome of a script - gas usage per operation plus national currency value of all native and token balance changes.

Was planned for the initial release of V2 but it has some complexity and will defer for a subsequent minor bump...

A common use case will be to install third-party contracts as dependencies and simulate their use. In principle there might not be any top-level artifacts to query for contract info.

We should get as much info as possible from Etherscan...

Options might look something like:

gasReporter: {
  ...
  ...
  etherscan: <apikey>
  remoteContracts: RemoteContracts[],
  scripts: {
    enabled: boolean,
    accounts: UserAddress[],
    tokens: TokenAddress[] | TokenSymbolNames[],
    interfaces?: DependencyPaths[] | (abis fetched from Etherscan via resolver)
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant