Skip to content

docs: reflect the deprecated endpoint in docs#1571

Merged
jcstein merged 2 commits intomainfrom
new-proofs-endpoints
May 14, 2024
Merged

docs: reflect the deprecated endpoint in docs#1571
jcstein merged 2 commits intomainfrom
new-proofs-endpoints

Conversation

@rach-id
Copy link
Copy Markdown
Member

@rach-id rach-id commented May 14, 2024

Overview

Summary by CodeRabbit

  • Deprecations

    • Deprecated prove_shares endpoint in favor of prove_shares_v2.
    • Deprecated ProveShares method in favor of ProveSharesV2.
  • User Guidance

    • Users should switch to the new prove_shares_v2 endpoint and ProveSharesV2 method starting from Celestia-app v1.10.0.

@rach-id rach-id requested a review from jcstein May 14, 2024 09:40
@rach-id rach-id self-assigned this May 14, 2024
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented May 14, 2024

Walkthrough

Celestia-app v1.10.0 bids farewell to the old prove_shares endpoint and ProveShares method, ushering in the new era of prove_shares_v2 and ProveSharesV2. Users are encouraged to embrace these updates as the legacy counterparts face retirement in upcoming releases. The verify function's documentation now emphasizes the shift to ProveSharesV2 starting from v1.10.0.

Changes

Files/Paths Change Summary
developers/blobstream-proof-queries.md Added summary and advised the use of prove_shares_v2 and ProveSharesV2 from v1.10.0 onwards.
.../Celestia-core/interface.go Deprecated ProveShares method in favor of ProveSharesV2.
.../Celestia-core/... Deprecated prove_shares endpoint in favor of prove_shares_v2.

In the land of code, where changes flow,
A new v2 begins to grow.
With endpoints fresh and methods bright,
Celestia's future shines in light.
So heed the call, update your ways,
And code will sing in joyful praise.


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:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @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.

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 as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration 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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented May 14, 2024

PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-05-14 16:32 UTC

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

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 44523ea and 0a83bb1.
Files selected for processing (1)
  • developers/blobstream-proof-queries.md (3 hunks)
Additional Context Used
LanguageTool (15)
developers/blobstream-proof-queries.md (15)

Near line 53: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...wo are split into shares, which are the low level constructs of a Celestia block, and sav...


Near line 62: In American English, abbreviations like “etc.” require a period.
Context: ...are is highlighted in green. R0, R1 etc, represent the respective row and colum...


Near line 86: Possible missing comma found.
Context: ...data root tuple root. Check the above diagram which shows: - 0: those are the shares...


Near line 99: Consider a shorter alternative to avoid wordiness.
Context: ...lished to the corresponding block. - 3: in order to batch multiple blocks into the same com...


Near line 161: Unpaired symbol: ‘]’ seems to be missing
Context: ...he data commitment defined by the range [10, 20). Example response: <div style...


Near line 581: The comma may be misplaced. Try moving it before ‘and’, or removing it altogether.
Context: ...tion hash of the PFB containing the blob and, the <blob_index> being the index of t...


Near line 610: Unpaired symbol: ‘]’ seems to be missing
Context: ...e=1 Which queries the proof of shares[0,1)in block15`. Example response: ...


Near line 687: Possible missing comma found.
Context: ...L89). Please use the new method for the queries as the old one will be removed in upcom...


Near line 751: It seems likely that a singular genitive (’s) apostrophe is missing.
Context: ...(...). ### shareProofs` This is the shares proof to the row roots. These can conta...


Near line 1015: Loose punctuation mark.
Context: ...leProof proof; } ``` - tupleRootNonce: the nonce at which Blobstream X committ...


Near line 1017: Loose punctuation mark.
Context: ...the block containing the data. - tuple: the DataRootTuple of the block: ```s...


Near line 1034: Possible typo: you repeated a word
Context: ..., i.e. the block containing the Rollup data data root, and the heightwhich is thehe...


Near line 1037: Loose punctuation mark.
Context: ...s the height of that block. - proof: the BinaryMerkleProof of the data roo...


Near line 1089: Loose punctuation mark.
Context: ...n during the verification: - dataRoot: can be queried using the `/block?height...


Near line 1092: Loose punctuation mark.
Context: ...ld from the response. - tupleRootNonce: can be retried via querying the `Blob...

Additional comments not posted (3)
developers/blobstream-proof-queries.md (3)

663-669: Deprecation warning for prove_shares endpoint is clear and informative.


682-688: Deprecation warning for ProveShares method is clear and informative.


1304-1305: Note about switching to ProveSharesV2 is clear and informative.

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

Out of diff range and nitpick comments (48)
developers/blobstream-proof-queries.md (48)

408-408: Remove trailing space.

There is an unnecessary trailing space at the end of this line.


408-409: Fix line length.

The line length exceeds the recommended limit of 80 characters. Consider breaking it into multiple lines for better readability.


409-409: Remove trailing space.

There is an unnecessary trailing space at the end of this line.


Line range hint 418-418: Remove trailing space.

There is an unnecessary trailing space at the end of this line.


532-532: Remove trailing space.

There is an unnecessary trailing space at the end of this line.


582-582: Fix misplaced comma.

The comma may be misplaced. Try moving it before ‘and’, or removing it altogether.


582-582: Fix line length.

The line length exceeds the recommended limit of 80 characters. Consider breaking it into multiple lines for better readability.


584-584: Fix line length.

The line length exceeds the recommended limit of 80 characters. Consider breaking it into multiple lines for better readability.


Line range hint 589-589: Fix line length.

The line length exceeds the recommended limit of 80 characters. Consider breaking it into multiple lines for better readability.


604-605: Fix line length.

The line length exceeds the recommended limit of 80 characters. Consider breaking it into multiple lines for better readability.


666-666: Fix line length.

The line length exceeds the recommended limit of 80 characters. Consider breaking it into multiple lines for better readability.


670-670: Fix line length.

The line length exceeds the recommended limit of 80 characters. Consider breaking it into multiple lines for better readability.


684-684: Fix line length.

The line length exceeds the recommended limit of 80 characters. Consider breaking it into multiple lines for better readability.


685-685: Fix line length.

The line length exceeds the recommended limit of 80 characters. Consider breaking it into multiple lines for better readability.


689-689: Fix line length.

The line length exceeds the recommended limit of 80 characters. Consider breaking it into multiple lines for better readability.


1305-1306: Fix line length.

The line length exceeds the recommended limit of 80 characters. Consider breaking it into multiple lines for better readability.


Line range hint 1492-1492: Remove trailing space.

There is an unnecessary trailing space at the end of this line.


Line range hint 35-35: Remove trailing space.

There is an unnecessary trailing space at the end of this line.


Line range hint 79-79: Remove trailing space.

There is an unnecessary trailing space at the end of this line.


Line range hint 161-161: Fix missing closing bracket.

Unpaired symbol: ‘]’ seems to be missing. Ensure the range is correctly closed.


Line range hint 612-612: Fix missing closing bracket.

Unpaired symbol: ‘]’ seems to be missing. Ensure the range is correctly closed.


Line range hint 53-53: Add hyphen for compound adjective.

If "low level" is a compound adjective modifying "constructs," use a hyphen: "low-level constructs."


Line range hint 62-62: Add period after abbreviation.

In American English, abbreviations like “etc.” require a period.


Line range hint 86-86: Add missing comma.

Possible missing comma found. Add a comma after "diagram."


Line range hint 99-99: Consider a shorter alternative.

Consider a shorter alternative to avoid wordiness. For example, "To batch multiple blocks into the same commitment, we create..."


582-582: Fix misplaced comma.

The comma may be misplaced. Try moving it before ‘and’, or removing it altogether.


689-689: Add missing comma.

Possible missing comma found. Add a comma after "queries."


Line range hint 800-800: Add missing comma.

Possible missing comma found. Add a comma after "type."


Line range hint 1016-1016: Fix loose punctuation.

Loose punctuation mark. Consider revising for clarity.


Line range hint 1018-1018: Fix loose punctuation.

Loose punctuation mark. Consider revising for clarity.


Line range hint 1035-1035: Fix repeated word.

Possible typo: you repeated the word "data." Consider removing one instance.


Line range hint 1038-1038: Fix loose punctuation.

Loose punctuation mark. Consider revising for clarity.


Line range hint 1090-1090: Fix loose punctuation.

Loose punctuation mark. Consider revising for clarity.


Line range hint 1093-1093: Fix loose punctuation.

Loose punctuation mark. Consider revising for clarity.


Line range hint 185-185: Add blank lines around fenced code blocks.

Fenced code blocks should be surrounded by blank lines for better readability.


Line range hint 227-227: Add blank lines around fenced code blocks.

Fenced code blocks should be surrounded by blank lines for better readability.


Line range hint 401-401: Add blank lines around fenced code blocks.

Fenced code blocks should be surrounded by blank lines for better readability.


Line range hint 499-499: Add blank lines around fenced code blocks.

Fenced code blocks should be surrounded by blank lines for better readability.


579-579: Add blank lines around fenced code blocks.

Fenced code blocks should be surrounded by blank lines for better readability.


Line range hint 658-658: Add blank lines around fenced code blocks.

Fenced code blocks should be surrounded by blank lines for better readability.


Line range hint 729-729: Add blank lines around fenced code blocks.

Fenced code blocks should be surrounded by blank lines for better readability.


Line range hint 876-876: Add blank lines around fenced code blocks.

Fenced code blocks should be surrounded by blank lines for better readability.


Line range hint 993-993: Add blank lines around fenced code blocks.

Fenced code blocks should be surrounded by blank lines for better readability.


Line range hint 1078-1078: Add blank lines around fenced code blocks.

Fenced code blocks should be surrounded by blank lines for better readability.


Line range hint 1161-1161: Add blank lines around fenced code blocks.

Fenced code blocks should be surrounded by blank lines for better readability.


Line range hint 1208-1208: Add blank lines around fenced code blocks.

Fenced code blocks should be surrounded by blank lines for better readability.


Line range hint 1245-1245: Add blank lines around fenced code blocks.

Fenced code blocks should be surrounded by blank lines for better readability.


Line range hint 1486-1486: Add blank lines around fenced code blocks.

Fenced code blocks should be surrounded by blank lines for better readability.

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 0a83bb1 and 309f755.
Files selected for processing (1)
  • developers/blobstream-proof-queries.md (7 hunks)
Additional Context Used
LanguageTool (15)
developers/blobstream-proof-queries.md (15)

Near line 53: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...wo are split into shares, which are the low level constructs of a Celestia block, and sav...


Near line 62: In American English, abbreviations like “etc.” require a period.
Context: ...are is highlighted in green. R0, R1 etc, represent the respective row and colum...


Near line 86: Possible missing comma found.
Context: ...data root tuple root. Check the above diagram which shows: - 0: those are the shares...


Near line 99: Consider a shorter alternative to avoid wordiness.
Context: ...lished to the corresponding block. - 3: in order to batch multiple blocks into the same com...


Near line 161: Unpaired symbol: ‘]’ seems to be missing
Context: ...he data commitment defined by the range [10, 20). Example response: <div style...


Near line 582: The comma may be misplaced. Try moving it before ‘and’, or removing it altogether.
Context: ...tion hash of the PFB containing the blob and, the <blob_index> being the index of t...


Near line 612: Unpaired symbol: ‘]’ seems to be missing
Context: ...e=1 Which queries the proof of shares[0,1)in block15`. Example response: ...


Near line 689: Possible missing comma found.
Context: ...L89). Please use the new method for the queries as the old one will be removed in upcom...


Near line 800: Possible missing comma found.
Context: ...ue The min and max are Namespace type which is: ```solidity /// @notice A re...


Near line 1016: Loose punctuation mark.
Context: ...leProof proof; } ``` - tupleRootNonce: the nonce at which Blobstream X committ...


Near line 1018: Loose punctuation mark.
Context: ...the block containing the data. - tuple: the DataRootTuple of the block: ```s...


Near line 1035: Possible typo: you repeated a word
Context: ..., i.e. the block containing the Rollup data data root, and the heightwhich is thehe...


Near line 1038: Loose punctuation mark.
Context: ...s the height of that block. - proof: the BinaryMerkleProof of the data roo...


Near line 1090: Loose punctuation mark.
Context: ...n during the verification: - dataRoot: can be queried using the `/block?height...


Near line 1093: Loose punctuation mark.
Context: ...ld from the response. - tupleRootNonce: can be retried via querying the `Blob...

@jcstein jcstein merged commit 394f697 into main May 14, 2024
@jcstein jcstein deleted the new-proofs-endpoints branch May 14, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants