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

docs(blob): add links to inclusion and fraud proofs documentation #4298

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

Conversation

VolodymyrBg
Copy link

Added links to the Fraud Proofs specification and ADR-011 in the blob module README.
This provides readers with detailed information about blob inclusion proofs and
fraud proofs implementation.

Resolves TODO in x/blob/README.md

Also

Added verification of the initial total supply in TestGetCmdQueryAnnualProvisions.
This ensures that the total supply is exactly 500,000,000 utia before calculating
annual provisions, which is a critical assumption for the test.

Resolves TODO comment in x/mint/client/testutil/suite_test.go

Added verification of the initial total supply in TestGetCmdQueryAnnualProvisions.
This ensures that the total supply is exactly 500,000,000 utia before calculating
annual provisions, which is a critical assumption for the test.

Resolves TODO comment in x/mint/client/testutil/suite_test.go
Added links to the Fraud Proofs specification and ADR-011 in the blob module README.
This provides readers with detailed information about blob inclusion proofs and
fraud proofs implementation.

Resolves TODO in x/blob/README.md
@VolodymyrBg VolodymyrBg requested a review from a team as a code owner February 5, 2025 15:28
@VolodymyrBg VolodymyrBg requested review from cmwaters and rach-id and removed request for a team February 5, 2025 15:28
Copy link
Contributor

coderabbitai bot commented Feb 5, 2025

📝 Walkthrough

Walkthrough

This pull request updates documentation and testing components. The README now includes direct references to the "Fraud Proofs specification" and "ADR-011: Optimistic Blob Size Independent Inclusion Proofs and PFB Fraud Proofs" instead of a placeholder. Additionally, the mint test suite has been modified to import the context and bank/types packages and now verifies the initial total supply of "utia" as part of the annual provisions test.

Changes

File(s) Change Summary
x/blob/README.md Updated placeholder text by replacing it with specific references to the "Fraud Proofs specification" and "ADR-011: Optimistic Blob Size Independent Inclusion Proofs and PFB Fraud Proofs."
x/mint/client/testutil/suite_test.go Added imports for context and bank/types. Enhanced the test by creating a bank query client and verifying that the initial total supply of "utia" equals 500_000_000 utia before executing further test steps.

Sequence Diagram(s)

sequenceDiagram
    participant TS as Test Suite
    participant BC as Bank Query Client
    participant BS as Bank Service

    TS->>BC: Initialize with Context (s.cctx.Context)
    TS->>BC: Invoke TotalSupply(QueryTotalSupplyRequest)
    BC->>BS: Forward request for total supply data
    BS-->>BC: Respond with total supply value
    TS->>TS: Validate returned total supply matches expected (500_000_000 utia)
Loading

Possibly related PRs

  • docs: fix URL #4142: The changes in the main PR, which involve adding specific documentation links, are related to the retrieved PR's updates to documentation URLs, as both focus on enhancing the accessibility of relevant specifications.
  • chore: fix typo #4169: The changes in the main PR, which enhance documentation regarding fraud proofs and blob inclusion proofs, are related to the retrieved PR that also discusses fraud proofs, specifically in the context of clarifying and correcting documentation about them.
  • fix: broken links in markdown documentation #4240: The changes in the main PR, which involve updating links in the README.md for blob inclusion proofs and fraud proofs, are related to the retrieved PR that also focuses on fixing broken links in markdown documentation, specifically in the README.md. Both PRs modify the same file and aim to improve documentation clarity.

Suggested labels

backport:v2.x

Suggested reviewers

  • liamsi
  • evan-forbes
  • rootulp
  • ninabarbakadze
  • cmwaters

Tip

🌐 Web search-backed reviews and chat
  • We have enabled web search-based reviews and chat for all users. This feature allows CodeRabbit to access the latest documentation and information on the web.
  • You can disable this feature by setting web_search: false in the knowledge_base settings.
  • Please share any feedback in the Discord discussion.

📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 660b4ca and 688b75d.

📒 Files selected for processing (2)
  • x/blob/README.md (1 hunks)
  • x/mint/client/testutil/suite_test.go (3 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • x/blob/README.md
  • x/mint/client/testutil/suite_test.go
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Summary

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • 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. (Beta)
  • @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.

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.

x/blob/README.md Outdated Show resolved Hide resolved
x/mint/client/testutil/suite_test.go Outdated Show resolved Hide resolved
x/mint/client/testutil/suite_test.go Outdated Show resolved Hide resolved
x/mint/client/testutil/suite_test.go Show resolved Hide resolved
@rootulp
Copy link
Collaborator

rootulp commented Feb 5, 2025

In the future, you could split these into two separate PRs because they are unrelated TODOs.

@celestia-bot celestia-bot requested a review from rootulp February 5, 2025 20:28
bankClient := banktypes.NewQueryClient(s.cctx.Context)
resp, err := bankClient.TotalSupply(context.Background(), &banktypes.QueryTotalSupplyRequest{})
s.Require().NoError(err)
expectedTotalSupply := sdk.NewInt(500_000_000).Mul(sdk.NewInt(1_000_000)) // 500_000_000 utia
Copy link
Collaborator

Choose a reason for hiding this comment

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

This test fails for me

--- FAIL: TestMintIntegrationTestSuite (11.20s)
    /Users/rootulp/git/rootulp/celestiaorg/celestia-app/x/mint/client/testutil/suite_test.go:35: setting up x/mint integration test suite
    --- FAIL: TestMintIntegrationTestSuite/TestGetCmdQueryAnnualProvisions (0.00s)
        /Users/rootulp/git/rootulp/celestiaorg/celestia-app/x/mint/client/testutil/suite_test.go:92: 
            	Error Trace:	/Users/rootulp/git/rootulp/celestiaorg/celestia-app/x/mint/client/testutil/suite_test.go:92
            	Error:      	Not equal: 
            	            	expected: "500000000000000"
            	            	actual  : "1000000028176989"
            	            	
            	            	Diff:
            	            	--- Expected
            	            	+++ Actual
            	            	@@ -1 +1 @@
            	            	-500000000000000
            	            	+1000000028176989
            	Test:       	TestMintIntegrationTestSuite/TestGetCmdQueryAnnualProvisions
    /Users/rootulp/git/rootulp/celestiaorg/celestia-app/x/mint/client/testutil/network.go:48: tearing down testnode

@rootulp rootulp marked this pull request as draft February 5, 2025 21:37
@rach-id
Copy link
Member

rach-id commented Feb 6, 2025

@VolodymyrBg instead of wasting your time on this PR that doesn't have much added value, if any, you can check these issues:

And we will gladly review your PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants