Skip to content

leonarddt05/availproject.github.io

 
 

Repository files navigation

Avail Project Developer Documentation

The Essential Base Layer for Modern Blockchains

Welcome to the Avail Project Developer Documentation, your go-to resource for all things related to data availability and modular blockchain development. Designed with a focus on community collaboration, this repository aims to provide the most accurate, comprehensive, and up-to-date information for anyone interested in learning about, contributing to, or maintaining projects within the Avail ecosystem.

Avail Overview

Avail aims to revolutionize the blockchain space by providing a trust-minimized and secure base layer focused on data availability. This base layer serves as the foundation for next-generation, trust-minimized applications and blockchains.

The Evolution from Monolithic to Modular Blockchains

Traditional monolithic blockchains like Ethereum have faced scaling challenges due to handling multiple operations like Execution, Settlement, Ordering, and Data Availability on a single chain. Avail adopts a modular approach, separating these core operations into different layers for greater scalability and flexibility.

The Avail Solution

Avail is a blockchain-based platform focused on creating a general-purpose data availability layer, addressing key challenges such as scalability, governance, and decentralization. By enabling technologies like Validiums and Sovereign Rollups, Avail allows for off-chain data availability, which significantly reduces costs and enhances efficiency.

Key Features

  • Data Blob Indexing: Avail simplifies data indexing by tying all transaction data to an application ID.
  • Erasure Encoding: Adds redundancy to the data, making it harder for nodes to suppress information.
  • KZG Polynomial Commitments: Ensures that the data has a footprint in the Avail block header.
  • Decentralized Network of Validators: Avail aims to support up to 1,000 external validators to reduce centralization risks.
  • Validity Proofs: Allows light clients to guarantee state correctness and data availability immediately after finalizing.

Benefits for Validiums and Sovereign Rollups

  • Trust-Minimized Data Availability: Avail provides a secure and decentralized solution for data availability.
  • Data Attestation Bridge: Allows for attestation to Ethereum and other EVM-compatible chains, proving that data is available.

High Availability and Scalability

Avail's light client network ensures high data availability through Data Availability Sampling. As more light clients join the network, Avail can support bigger blocks, unlocking significant scaling potential for blockchains.

Key Repositories under availproject

Below is a curated list of GitHub repositories that are actively tracking the various development efforts related to Avail.

Get Started

Repository Name & Link Description
Reference Document Comprehensive document outlining the rationale, design decisions, and theoretical foundations.
Avail Node Repository for the Avail node implementation, built using Substrate.
Light Client Light client designed for verifying data availability proofs on Avail.
Explorer Implementation repository for the Avail explorer, built using PolkadotJS Apps.
Tests Repository for end-to-end tests designed to validate Avail's functionalities.

Full List

Category Repository Name Description
Core Components Avail Main DA (Data Availability) Node for the Avail project.
Avail Core Core components for Avail's data availability layer.
Light Clients Avail Light Light client for Avail.
Avail Light Bootstrap Bootstrap for Avail Light client.
Avail Light Relay Relay for Avail Light client.
Applications Avail Apps Repository for applications built on Avail.
Substrate (now part of Polkadot SDK) Integration Go Substrate RPC Client RPC client for Substrate integration.
Substrate Fork of Substrate for Avail.
Explorations Avail Explorations Experimental features and research.
Avail Sovereign DA Adapter Data availability adapter for Sovereign Rollups.
Tooling Availup CLI tool for Avail.
Avail JS JavaScript library for Avail; Fork of PolkadotJS
Contracts and Proofs Op EVM Contracts EVM contracts for Avail.
Poly Multiproof Multiproof contracts for Avail.
SDKs Sovereign SDK SDK for Sovereign Rollups on Avail.
Proposals RFCs Repository for Avail Request for Comments and proposals.

Repository Overview

Configuration Guide

Static-Site Generator

The Avail Developer Documentation is built using Docusaurus, making it easy to serve and host its static files.

Deployments

The Avail Documentation is deployed across two distinct environments: staging and prod. Both are configured to operate from the main branch of the repository.

  • Staging: Hosted on Digital Ocean, this environment serves as the testing ground for new changes. It allows for quality assurance and verification before updates are pushed to Production. You can view the staging site here.

  • Production (Prod): This is the live environment, hosted on GitHub Pages, and is manually deployed by the Avail Documentation team. It is accessible to end-users and receives updates only after they have been successfully validated in the Staging environment.

Algolia DocSearch

The documentation utilizes Algolia's DocSearch to provide a powerful and user-friendly search experience. DocSearch is specifically designed to improve navigation in documentation websites, making it easier for users to find the information they need.

Plausible Analytics

Plausible Analytics is integrated into the platform to monitor user interactions. This helps in understanding user engagement and behavior, thereby aiding in the continuous improvement of the documentation.

Translations

❗ The documentation is currently undergoing reorganization and frequent updates in preparation for the Avail mainnet launch. Translation efforts will be prioritized once this is complete.

Files and Folders

This section provides an overview of the various files and folders in the Avail Documentation repository, explaining the purpose of each.

Name Purpose
LICENSE Contains the license information for the project.
README.md The main introduction file for the Avail Docs repository.
babel.config.js Configuration file for Babel, a JavaScript compiler.
build/ Contains static content generated for deployment.
docusaurus.config.js Configuration file for website layout and other Docusaurus settings.
docs/ Contains the Markdown files that make up the content of the documentation.
node_modules/ Contains all the npm packages and dependencies.
package.json Specifies dependencies and scripts for the project.
sidebars.js Used to modify the sidebar navigation.
src/ Contains source files for the project.
static/ Contains static assets like images, CSS, and fonts.
yarn.lock Yarn lock file to keep track of all package versions.

How to Contribute to the Avail Documentation

The Documentation team at Avail are the primary maintainers of the Avail Documentation and will review all issues and pull requests created in this repository. If you spot typos or grammar mistakes, please go ahead and submit a pull request with the fixes. For more significant changes, it's advisable to start with a GitHub issue to discuss it with the maintainers. We generally prefer pull requests over issues for suggesting changes to the Docs.

❗ We are in the process of setting guidelines to ensure all new contributions continue to improve the Docs without compromising its quality. Please stay tuned.

Before making a contribution, please consult any existing issues or initiate a new discussion to ensure alignment with the documentation's objectives. Your contributions can significantly enrich the Docs in the following ways:

  1. General Overviews: Introductory articles that provide a comprehensive understanding of Avail's data availability layer and modular approach to blockchains.

  2. Technical Deep Dives: Detailed explorations into specific components of Avail's architecture, such as its data availability layer, modularity, and consensus algorithms.

  3. Use-Case Scenarios: Articles that showcase real-world applications of Avail in solutions like Validiums, app-chains, and Sovereign Rollups.

  4. Tooling: Documentation or guides on tools that facilitate development, testing, or deployment on Avail. This could include IDE plugins, testing frameworks, or monitoring tools.

  5. Third-Party Services and Deployments: Information on external services, deployments, and implementations that integrate with Avail. This could include oracles, data analytics platforms, liquidity providers, as well as infrastructure solutions that provide Avail-based infrastructure.

  6. Community Contributions: Lists of active Avail communities, educational resources, or upcoming events that enrich the ecosystem.

  7. Governance & Economics: Insights into the governance model and tokenomics that underpin Avail's network.

  8. Security Practices: Guidelines and resources for ensuring the security and integrity of applications, smart contracts, and general infrastructure on Avail.

  9. Troubleshooting Guides: Solutions to common challenges, FAQs, and other resources that assist both newcomers and experienced users.

  10. Emerging Technologies: Articles on upcoming features, advancements, or experimental technologies in the Avail pipeline. For instance, contributions could explore the impact of "Dank Sharding" on Avail's scalability, transaction costs, and its enablement of new decentralized applications.

Note: This is a general overview and the actual repository may contain additional files and folders for specific functionalities.

How to Contribute Changes via the Avail Documentation Website

Contributing to the Avail Documentation is simple. You'll need a GitHub account and a basic understanding of Markdown syntax to get started.

  1. Locate the Page: Visit the Avail Documentation page you wish to edit.
  2. Navigate to the Bottom: Scroll to the bottom of the page.
  3. Edit Link: Click on the Edit this page link. This will redirect you to the corresponding Markdown file on GitHub.
  4. Edit Mode: Once on GitHub, click the pencil icon located in the upper-right corner to enter edit mode.
  5. Make Edits: Modify the Markdown file as needed.
  6. Initiate Pull Request: Scroll to the bottom and click on Create pull request.
  7. Title Your PR: Give your pull request a descriptive title. For example, if you're editing the "Getting Started" page, you could title it Update /docs/getting-started.md.
  8. Describe Changes: In the pull request description, specify the issue your changes resolve.

    See GitHub Docs on Linking a Pull Request to an Issue for guidance.

  9. Additional Information: Provide a concise summary of the changes you've made. Include screenshots or references if applicable.
  10. Submit: Click Propose changes to finalize your pull request. This will create a new branch in your fork.

How to Locally Run the Avail Documentation

Quick Run

For those who want to quickly install and start the Avail Documentation locally, you can follow these steps:

yarn
yarn start

Setup Steps

Prerequisites:

  • Node.js (version >= 16.14.1)
  • Yarn (version >= 1.22)
    Note for macOS Users: Xcode and Command Line Tools are required.
  1. Fork the Repository

    See GitHub Docs: Fork a repo for guidance.

  2. Clone Your Fork

    git clone [email protected]:availproject/availproject.github.io.git
  3. Navigate to the Repository

    cd availproject.github.io
  4. Add Upstream Remote

    Refer to GitHub Docs: Configuring a remote for a fork.

    git remote add upstream https://github.com/availproject/avail-docs
  5. Sync Your Fork

    See GitHub Docs: Syncing a fork.

    git checkout master
    git fetch upstream
    git merge upstream/master
  6. Install Dependencies

    yarn install

    The site is built using Docusaurus. You may need to install Docusaurus before running the documentation locally.

    yarn add docusaurus

    Alternatively, you can upgrade Docusaurus.

    yarn upgrade @docusaurus/core@latest @docusaurus/preset-classic@latest
  7. Run the Docs Locally

    yarn start

License

The Avail Project Developer Documentation is licensed under the MIT License free software license.

About

Official Documentation for the Avail Project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 54.8%
  • JavaScript 43.0%
  • HTML 1.1%
  • Other 1.1%