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: add gas estimator #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: add gas estimator #5

wants to merge 1 commit into from

Conversation

AmeanAsad
Copy link
Collaborator

Changes:

Adds a gas estimator that takes gas related inputs and computes the total gas burned for a given transaction. In turn, this can be turned into a dollar amount to how much a given transaction costs.

Apart from creating price models for transactions, this will be useful when testing meridian on filecoin testnets. The gas prices on testnets are usually independent the mainnet. Using this estimator, we can run mainnet gas estimates for any testnet transactions and store those values to get a better idea of actual costs associated with changes.

Copy link
Member

Choose a reason for hiding this comment

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

how are we running this file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good question, I have been manually running it but added it as a lib here that can be exported. I'll add some code to showcase how to run it.

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.

None yet

2 participants