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

[Foundation] Add constant gas fees #794

Open
6 tasks
Olshansk opened this issue Sep 4, 2024 · 4 comments
Open
6 tasks

[Foundation] Add constant gas fees #794

Olshansk opened this issue Sep 4, 2024 · 4 comments
Assignees
Labels
on-chain On-chain business logic

Comments

@Olshansk
Copy link
Member

Olshansk commented Sep 4, 2024

Objective

Add transaction/gas fees to poktroll.

Origin Document

https://docs.cosmos.network/main/learn/beginner/gas-fees

https://www.notion.so/buildwithgrove/Proof-submission-cost-Tx-fee-vs-Spend-coins-044bcab72c1d4aef8dba523bd9bdf42d?pvs=4

Screenshot 2024-09-04 at 3 03 48 PM

Screenshot 2024-09-04 at 3 01 53 PM

Goals

  • Parity with Morse w.r.t Tx Fees
  • Unblock poktscan from deserializing tx fees
  • Learning & understanding how cosmos gas fees work

Deliverables

  • Set a constant tx fee for all transactions
  • Ensure this is part of LocalNet and future TestNets

Non-goals / Non-deliverables

  • Using variable gas meter logic

General deliverables

  • Comments: Add/update TODOs and comments alongside the source code so it is easier to follow.
  • Testing: Add new tests (unit and/or E2E) to the test suite.
  • Makefile: Add new targets to the Makefile to make the new functionality easier to use.
  • Documentation: Update architectural or development READMEs; use mermaid diagrams where appropriate.

Creator: @Olshansk
Co-Owners: @okdas

@Olshansk Olshansk added the on-chain On-chain business logic label Sep 4, 2024
@Olshansk Olshansk added this to the Shannon Beta TestNet Launch milestone Sep 4, 2024
@okdas
Copy link
Member

okdas commented Sep 4, 2024

@Olshansk I've added the gas fees in #768. They're not constant, though. I can look into that to see if constant fees can be easily configured.

@okdas
Copy link
Member

okdas commented Sep 5, 2024

I flipped the config temporarily in TestNet, and

  • faucet broke as it required a fee configuration. Error:
    err: Error: Broadcasting transaction failed with code 13 (codespace: sdk). Log: insufficient fees; got:  required: 1upokt: insufficient fee
    
  • All CLI commands that we have in documentation also stopped working due to a similar issue. So we either need to change the documentation or CLI defaults.

Will take a look at both when I start working on the ticket.

@Olshansk
Copy link
Member Author

Olshansk commented Sep 6, 2024

@okdas Once you take a look at it, let's go with CLI defaults (if it's possible) and just document the flag in the user guide in one spot.

okdas added a commit that referenced this issue Sep 9, 2024
## Summary

`minimum-gas-prices` was increased to `0.000000001upokt` on LocalNet. We
are not ready for that yet. #794 will address the default fees values,
so all existing documentation and processes will continue working with
non-zero gas prices.

---------

Co-authored-by: Daniel Olshansky <[email protected]>
@okdas
Copy link
Member

okdas commented Sep 17, 2024

Related doc: https://www.notion.so/buildwithgrove/Proof-submission-cost-Tx-fee-vs-Spend-coins-044bcab72c1d4aef8dba523bd9bdf42d?pvs=4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on-chain On-chain business logic
Projects
Status: 🏗 In progress
Development

No branches or pull requests

2 participants