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: update gno dependency and add EstimateGas API function #195

Merged
merged 12 commits into from
Apr 4, 2025

Conversation

D4ryl00
Copy link
Contributor

@D4ryl00 D4ryl00 commented Jan 22, 2025

fixes #9

The gno's EstimateGas function takes a signed transaction as a parameter. So we created a utility function in gnonative to temporarily sign a transaction to estimate the gas wanted value, then update the transaction's GasWanted field if asked by the front, with the given security margin.

In this PR, I also removed the Buf's registry dependency for the expo code. Instead, we copy API files locally in a vendor directory.

This PR updates our Gno dependency, which only compiles on 64-bit architecture.

In this PR, I bumped goland to 1.23.x, so don't forget to do asdf install.

Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
@D4ryl00 D4ryl00 self-assigned this Jan 22, 2025
@D4ryl00 D4ryl00 marked this pull request as draft January 22, 2025 15:55
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
@D4ryl00 D4ryl00 requested a review from jefft0 April 1, 2025 12:18
@D4ryl00 D4ryl00 marked this pull request as ready for review April 1, 2025 12:18
Signed-off-by: D4ryl00 <d4ryl00@gmail.com>
Copy link
Contributor

@jefft0 jefft0 left a comment

Choose a reason for hiding this comment

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

Tested on iOS simulator. (Will test Android later.)

D4ryl00 and others added 2 commits April 4, 2025 13:51
Co-authored-by: Jeff Thompson <jeff@berty.tech>
Co-authored-by: Jeff Thompson <jeff@berty.tech>
@D4ryl00 D4ryl00 merged commit 2a8de83 into gnolang:main Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Support EstimateGas
2 participants