Skip to content

docs: add fee estimation infos#1993

Merged
jcstein merged 3 commits intomainfrom
jcs/fee-estimation
Apr 17, 2025
Merged

docs: add fee estimation infos#1993
jcstein merged 3 commits intomainfrom
jcs/fee-estimation

Conversation

@jcstein
Copy link
Copy Markdown
Member

@jcstein jcstein commented Apr 17, 2025

Overview

Resolves #1942

Summary by CodeRabbit

  • Documentation
    • Added a new "Fee estimation" section detailing flexible fee estimation options for submitting transactions.
    • Documented three estimation modes, including default, third-party, and maximum gas price limit.
    • Updated CLI usage examples to include new flags for fee estimation.
    • Clarified fee estimation applicability and added a warning about third-party estimator requirements.

@jcstein jcstein requested a review from renaynay April 17, 2025 13:37
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 17, 2025

Walkthrough

The documentation for submitting data was updated to introduce and explain new fee estimation options for transaction submission via celestia-node. A new section details three modes of fee estimation: default consensus node estimation, third-party estimator via a CLI flag, and a user-defined maximum gas price limit. The document now also includes updated CLI usage examples and descriptions for the new flags. These changes are limited to documentation and do not affect any code or exported entities.

Changes

File(s) Change Summary
how-to-guides/submit-data.md Added a "Fee estimation" section detailing three estimation modes, CLI flag usage, and updated usage examples.

Assessment against linked issues

Objective Addressed Explanation
Document third-party fee estimation via core.estimator.address flag and update CLI usage (#1942)
Document max gas price option via max.gas.price flag and update CLI usage (#1942)
Clarify default, third-party, and max gas price estimation modes for transaction submission (#1942)
Note that PFB transactions use app's default gas estimation, not new estimator logic (#1942)

Poem

In docs we trust, new flags appear,
Fee estimation’s crystal clear!
Pick your node or endpoint wise,
Cap your gas, avoid surprise.
PFBs stay as they’ve been told—
The guide now shines in black and gold.
🐇✨


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@jcstein jcstein self-assigned this Apr 17, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 17, 2025

PR Preview Action v1.6.1
Preview removed because the pull request was closed.
2025-04-17 14:30 UTC

@jcstein jcstein requested review from Copilot and removed request for renaynay April 17, 2025 14:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances the documentation by adding a new "Fee estimation" section to clearly explain the available fee estimation options and CLI flags for transaction submissions. Key changes include:

  • Adding a dedicated "Fee estimation" section with descriptions for default, third-party, and maximum gas price modes.
  • Integrating tip and warning blocks to highlight important notes and requirements.
  • Updating the CLI usage example to include additional flags and their explanations.

Comment thread how-to-guides/submit-data.md
Comment thread how-to-guides/submit-data.md Outdated
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

♻️ Duplicate comments (1)
how-to-guides/submit-data.md (1)

43-43: Duplicate: Third‑party estimation flag description
This matches the earlier suggestion for using --core.estimator.address. Great clarity here.

🧹 Nitpick comments (1)
how-to-guides/submit-data.md (1)

45-46: Refine max gas price default formatting
Consider wrapping the default value in code formatting for consistency, e.g.:

Default maximum is `0.2 TIA` (100× the minimum gas price).

This makes the CLI example more uniform.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f09e0e1 and 2d97889.

📒 Files selected for processing (1)
  • how-to-guides/submit-data.md (2 hunks)
🧰 Additional context used
🪛 LanguageTool
how-to-guides/submit-data.md

[uncategorized] ~213-~213: Loose punctuation mark.
Context: ...s node will be used. - --max.gas.price: Sets the maximum gas price you're willi...

(UNLIKELY_OPENING_PUNCTUATION)

🔇 Additional comments (3)
how-to-guides/submit-data.md (3)

37-46: Well-structured fee estimation section added
The new "Fee estimation" section succinctly outlines the three available modes (default, third‑party, maximum gas price) and provides clear context on applicability. This greatly enhances the documentation.


208-209: Approve CLI usage example update
Adding [flags] to the celestia blob submit command prepares users to include the new fee estimation options and aligns with other docs.


211-214: Approve new CLI flags documentation
The --core.estimator.address and --max.gas.price flags are clearly documented, including syntax and behavior.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~213-~213: Loose punctuation mark.
Context: ...s node will be used. - --max.gas.price: Sets the maximum gas price you're willi...

(UNLIKELY_OPENING_PUNCTUATION)

@jcstein jcstein merged commit a45582c into main Apr 17, 2025
5 of 6 checks passed
@jcstein jcstein deleted the jcs/fee-estimation branch April 17, 2025 14:30
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (3)
how-to-guides/submit-data.md (3)

37-39: Suggest consistent naming for the node binary: The section header and bullets use “Celestia‑node” to refer to the software, but elsewhere (including CLI examples) you invoke the celestia binary. For clarity, pick one convention (e.g., consistently use celestia-node or celestia) and apply it throughout the guide.


45-45: Clarify gas price units in the default maximum description: The phrase “100 times the minimum gas price (0.2 TIA)” may be ambiguous without specifying “per gas unit.” Consider updating to something like:

Default maximum: 0.2 TIA per gas unit (100× the minimum gas price)
to make the unit context explicit.


213-213: Add explicit type for the --max.gas.price flag: To match the style used for the --core.estimator.address string flag, include a type annotation after the flag name. For example:

-   - `--max.gas.price`: Sets the maximum gas price you’re willing to pay…
+   - `--max.gas.price string`: Sets the maximum gas price you’re willing to pay…
🧰 Tools
🪛 LanguageTool

[uncategorized] ~213-~213: Loose punctuation mark.
Context: ...s node will be used. - --max.gas.price: Sets the maximum gas price you're willi...

(UNLIKELY_OPENING_PUNCTUATION)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2d97889 and 00cfa1d.

📒 Files selected for processing (1)
  • how-to-guides/submit-data.md (2 hunks)
🧰 Additional context used
🪛 LanguageTool
how-to-guides/submit-data.md

[uncategorized] ~213-~213: Loose punctuation mark.
Context: ...s node will be used. - --max.gas.price: Sets the maximum gas price you're willi...

(UNLIKELY_OPENING_PUNCTUATION)

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.

docs: update for fee estimator (4168 on celestia-node)

2 participants