Astria replaces centralized sequencers, allowing many rollups to share a single decentralized network of sequencers that’s simple and permissionless to join. This shared sequencer network provides out-of-the-box censorship resistance, fast block confirmations, and atomic cross-rollup composability – all while retaining each rollup’s sovereignty.
This repository contains the custom Astria components that make up the Astria network. Other components of the Astria network can be found in the astriaorg organization.
To run locally, we utilize a dev-cluster which can be found at astriaorg/astria/charts.
To learn more about Astria, please visit astria.org.
- conductor: conducts blocks from the data availability layer to the execution layer.
- proto: the protobuf spec to interact with Astria services.
- sequencer: ABCI application that defines the sequencer state transition logic.
- sequencer-relayer: relays blocks from the sequencer chain to the data availability layer.
To build the relevant Astria binaries, you only need Rust installed.
Then:
git clone https://github.com/astriaorg/astria.git
cd astria
git submodule update --init
cargo build --release
To build a docker image locally you will first need docker installed. With docker installed you can use the following just command:
# Full command:
just docker-build <CRATE> <TAG=local>
#
# Replace CRATE with what the target binary is ie `astria-sequencer`
# TAG defaults to `local` but can be changed.
# this command will build a local image tagged as 'astria-sequencer:local'
just docker-build astria-sequencer
# this command will build a local image tagged as 'astria-sequencer:debug'
just docker-build astria-sequencer debug
The entire stack consists of many different binaries. It's recommended to use the setup located in astriaorg/dev-cluster.
To run unit tests:
cargo test
This project uses rustfmt to format rust sources, taplo to format toml files, and markdownlint-cli2 for markdown.
# Install rustfmt
rustup +nightly-2024-02-07 component add rustfmt
# Run rustfmt
just fmt rust
# Install for macOS
brew install taplo
# Install for Arch Linux
sudo pacman -S taplo
# Run
just fmt toml
# Install for macOS w/ homebrew
brew install markdownlint-cli2
# Install for Arch Linux
sudo pacman -S markdownlint-cli2
# Install with NPM
npm install markdownlint-cli2 --global
# Run
just lint md
# Run with docker
docker run -v $PWD:/workdir davidanson/markdownlint-cli2:v0.8.1
Pull requests should be created against the main
branch. In general, we follow
the "fork-and-pull" Git workflow.
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
NOTE: Be sure to merge the latest from upstream before making a pull request!
If you encounter any issues while using this project or have any questions, please open an issue in this repository here.