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: implement an estimate gas method #192

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jinoosss
Copy link
Member

@jinoosss jinoosss commented Nov 26, 2024

Descriptions

Retrieve the estimated GasUsed by calling the simulate method of the ABCI query.

Send transaction data through the .app/simulate path to the ABCI query to extract GasUsed information from the executed result.

Related Issue

@jinoosss jinoosss marked this pull request as ready for review November 27, 2024 05:37
@jinoosss
Copy link
Member Author

gnolang/gno#1826 PR should be the first to be merged.

@zivkovicmilos zivkovicmilos marked this pull request as draft November 28, 2024 04:06
@@ -47,4 +47,12 @@ export interface ABCIAccount {
};
}

export interface ABCIResponseSimulateTx {
Copy link
Member

Choose a reason for hiding this comment

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

I think we have ResponseBase somewhere with these values?

Copy link
Member Author

@jinoosss jinoosss Nov 28, 2024

Choose a reason for hiding this comment

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

I found DeliverTx. 9efdbe7

@jinoosss jinoosss force-pushed the feat/implement-an-estimage-gas-method branch from e1ffd83 to 9e45d2c Compare November 28, 2024 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants