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: update readme with new protocol contract directories #3011

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

lumtis
Copy link
Member

@lumtis lumtis commented Oct 16, 2024

Description

Update the readme to add link to Solana and TON contracts

Summary by CodeRabbit

  • Documentation
    • Restructured and enhanced the readme.md for improved clarity on ZetaChain's capabilities.
    • Added a new section on "Protocol Contracts" detailing smart contracts for various networks.
    • Organized components into distinct sections, including descriptions of ZetaCore and ZetaClient.
    • Included additional resources for users on testing, releases, and node deployment.

Copy link
Contributor

coderabbitai bot commented Oct 16, 2024

📝 Walkthrough

Walkthrough

The readme.md file for ZetaChain has been significantly restructured and enhanced to improve clarity and organization. Key updates include an emphasized introduction on ZetaChain's EVM compatibility and omnichain functionality, a reorganized components section detailing ZetaCore and ZetaClient, and the addition of a "Protocol Contracts" section outlining relevant smart contracts. Instructions for building binaries and making source code changes remain intact, while additional resources for further reading have been included.

Changes

File Change Summary
readme.md Restructured content, enhanced introduction, reorganized components, added "Protocol Contracts" section, preserved build instructions and source code change guidelines, included additional resources for further reading.

Possibly related PRs

  • chore: sync v20 changelog #2872: The changes in the changelog.md regarding the integration of Protocol Contracts V2 and enhancements related to the ZetaChain protocol are relevant as they may relate to the new "Protocol Contracts" section added in the readme.md of the main PR, which outlines smart contracts facilitating interaction with the blockchain.

Suggested labels

no-changelog

Suggested reviewers

  • swift1337
  • skosito
  • kingpinXD
  • brewmaster012
  • fbac

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>, 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 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.

@lumtis lumtis added the no-changelog Skip changelog CI check label Oct 16, 2024
Copy link
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

🧹 Outside diff range and nitpick comments (3)
readme.md (3)

22-28: Enhance markdown formatting and clarity.

The content provides a clear overview of ZetaChain's core components. However, there are two areas for improvement:

  1. Unordered list style: Use consistent list markers for better markdown formatting.
  2. Wording: Consider a minor adjustment to enhance clarity.

Please apply the following changes:

 This repository contains the core components:

-* [Blockchain Modules (ZetaCore)](x):
+- [Blockchain Modules (ZetaCore)](x):
 This section contains the core logic of the ZetaChain blockchain, built using Cosmos SDK modules. These modules are responsible for managing the state, state transitions, and overall functionality of the ZetaChain network.
-* [ZetaClient](zetaclient):
-The ZetaClient is a specialized client designed to act as an observer and signer for the ZetaChain network. It is responsible for communicating with the blockchain, relaying messages, and performing signature tasks to ensure the network operates cross-chain transactions.
+- [ZetaClient](zetaclient):
+The ZetaClient is a specialized client designed to act as an observer and signer for the ZetaChain network. It is responsible for communicating with the blockchain, relaying messages, and performing signature tasks to facilitate cross-chain transactions.
🧰 Tools
🪛 Markdownlint

24-24: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


26-26: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


29-37: Refine markdown formatting and enhance conciseness.

The new "Protocol Contracts" section provides valuable information about ZetaChain's smart contract repositories. To improve this section:

  1. Unordered list style: Use consistent list markers for better markdown formatting.
  2. Conciseness: The last paragraph can be more succinct.

Please apply the following changes:

 ### Protocol Contracts

 In addition to the blockchain codebase, ZetaChain's architecture includes a set of protocol contracts that serve as an interface for developers to interact with the blockchain. These smart contracts are deployed across various blockchain networks. The smart contract source code is maintained in separate repositories, depending on the network they are deployed on:

-* [ZetaChain EVM and EVM connected chains](https://github.com/zeta-chain/protocol-contracts)
-* [Solana connected chains (SVM)](https://github.com/zeta-chain/protocol-contracts-solana)
-* [TON connected chains (TVM)](https://github.com/zeta-chain/protocol-contracts-ton)
+- [ZetaChain EVM and EVM connected chains](https://github.com/zeta-chain/protocol-contracts)
+- [Solana connected chains (SVM)](https://github.com/zeta-chain/protocol-contracts-solana)
+- [TON connected chains (TVM)](https://github.com/zeta-chain/protocol-contracts-ton)

-These repositories contain the necessary code and tools to deploy, interact with, and extend the functionality of ZetaChain's cross-chain protocol on each respective blockchain network.
+These repositories contain the code and tools for deploying, interacting with, and extending ZetaChain's cross-chain protocol on respective blockchain networks.
🧰 Tools
🪛 Markdownlint

33-33: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


34-34: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


35-35: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


Line range hint 38-93: Approve unchanged sections and enhance "Further Reading".

The unchanged sections on building binaries and making source code changes provide valuable information for developers. The new "Further Reading" section is a welcome addition, offering links to additional documentation.

Consider enhancing the "Further Reading" section by adding a brief description for each link:

 ## Further Reading

 Find below further documentation for development and running your own ZetaChain node:

-- [Run the E2E tests and interact with the localnet](docs/development/LOCAL_TESTING.md)
-- [Make a new ZetaChain release](docs/development/RELEASES.md)
-- [Deploy your own ZetaChain or Bitcoin node](docs/development/DEPLOY_NODES.md)
+- [Run the E2E tests and interact with the localnet](docs/development/LOCAL_TESTING.md): Learn how to set up and test ZetaChain in a local environment.
+- [Make a new ZetaChain release](docs/development/RELEASES.md): Understand the process of creating and managing ZetaChain releases.
+- [Deploy your own ZetaChain or Bitcoin node](docs/development/DEPLOY_NODES.md): Step-by-step guide for deploying ZetaChain or Bitcoin nodes.
🧰 Tools
🪛 Markdownlint

24-24: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


26-26: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


33-33: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


34-34: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


35-35: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between ae6ab23 and d447ad0.

📒 Files selected for processing (1)
  • readme.md (1 hunks)
🧰 Additional context used
🪛 Markdownlint
readme.md

24-24: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


26-26: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


33-33: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


34-34: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


35-35: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)

🔇 Additional comments (1)
readme.md (1)

Line range hint 1-93: Approve README changes with commendation.

The restructuring and content enhancements in this README significantly improve its clarity and usefulness for developers. Key improvements include:

  1. Enhanced introduction emphasizing ZetaChain's capabilities.
  2. Clear organization of ZetaChain components.
  3. New "Protocol Contracts" section providing valuable links to smart contract repositories.
  4. Addition of a "Further Reading" section with links to additional documentation.

These changes offer a more comprehensive overview of ZetaChain and its development ecosystem. The minor suggestions provided in previous comments will further refine the document's formatting and conciseness.

Overall, excellent work on improving the README. These changes will greatly benefit developers working with ZetaChain.

🧰 Tools
🪛 Markdownlint

24-24: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


26-26: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


33-33: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


34-34: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)


35-35: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)

@lumtis lumtis added this pull request to the merge queue Oct 16, 2024
Merged via the queue into develop with commit 7b2bbe7 Oct 16, 2024
37 of 38 checks passed
@lumtis lumtis deleted the docs/readme-protocol-contracts branch October 16, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Skip changelog CI check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants