MCPcopy Index your code
hub / github.com/astriaorg/astria

github.com/astriaorg/astria @sequencer-v4.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release sequencer-v4.0.0 ↗ · + Follow
6,272 symbols 18,737 edges 592 files 682 documented · 11%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Astria

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.

Components

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

Build

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

Docker build

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

Running locally

The entire stack consists of many different binaries. It's recommended to use the setup located in astriaorg/dev-cluster.

Testing

To run unit tests:

cargo test

Formatting

This project uses rustfmt to format rust sources, taplo to format toml files, and markdownlint-cli2 for markdown.

Rust

# Install rustfmt
rustup +nightly-2025-09-14 component add rustfmt
# Run rustfmt
just fmt rust

Toml

# Install for macOS
brew install taplo
# Install for Arch Linux
sudo pacman -S taplo

# Run
just fmt toml

Markdown

# 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

Contributing

Pull requests should be created against the main branch. In general, we follow the "fork-and-pull" Git workflow.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. 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!

Issues

If you encounter any issues while using this project or have any questions, please open an issue in this repository here.

Extension points exported contracts — how you extend this code

IntoF64 (Interface)
A trait to safely convert to `f64`. [12 implementers]
crates/astria-telemetry/src/metrics/into_f64.rs
Protobuf (Interface)
A trait to convert from raw decoded protobuf types to idiomatic astria types. The primary use of this trait is to conve [41 …
crates/astria-core/src/lib.rs
AssetTransfer (Interface)
A trait to be implemented on all checked actions, providing transfer details of the action. [18 implementers]
crates/astria-sequencer/src/checked_actions/mod.rs
Match (Interface)
Provides the method for determining whether a message matches the given matcher. It is implemented for the following ty [4 …
crates/astria-grpc-mock/src/mock.rs
GetSequencerHeight (Interface)
(no doc) [4 implementers]
crates/astria-conductor/src/block_cache.rs
ActionFromReceipt (Interface)
(no doc) [4 implementers]
crates/astria-bridge-withdrawer/tests/blackbox/main.rs
Format (Interface)
(no doc) [3 implementers]
crates/astria-core-address/src/lib.rs
Config (Interface)
A utility trait for easily creating a config from the environment. Works for types allowing serde deserialization. Envi
crates/astria-config/src/lib.rs

Core symbols most depended-on inside this repo

new
called by 2080
crates/astria-sequencer/src/grpc/optimistic.rs
clone
called by 725
crates/astria-sequencer/src/service/info/abci_query_router.rs
is_empty
called by 610
crates/astria-core/src/primitive/v1/asset/denom.rs
expect
called by 473
crates/astria-grpc-mock/src/mock.rs
as_ref
called by 370
crates/astria-core/src/primitive/v1/mod.rs
as_str
called by 250
crates/astria-core/src/upgrades/v1/change_name.rs
new_checked_action
called by 193
crates/astria-sequencer/src/test_utils/fixture.rs
state_mut
called by 175
crates/astria-sequencer/src/app/mod.rs

Shape

Method 3,059
Function 1,573
Class 1,293
Enum 271
Interface 76

Languages

Rust99%
Python1%

Modules by API surface

crates/astria-core/src/protocol/transaction/v1/action/mod.rs129 symbols
crates/astria-core/src/sequencerblock/v1/block/mod.rs127 symbols
crates/astria-bridge-contracts/src/generated/astria_bridgeable_erc20.rs78 symbols
crates/astria-sequencer/src/mempool/transactions_container.rs76 symbols
crates/astria-core/src/primitive/v1/asset/denom.rs68 symbols
crates/astria-bridge-contracts/src/lib.rs56 symbols
crates/astria-core/src/execution/v2/mod.rs53 symbols
crates/astria-core/src/generated/astria.sequencerblock.v1.rs52 symbols
crates/astria-sequencer/src/app/vote_extension.rs51 symbols
crates/astria-sequencer/src/app/mod.rs51 symbols
crates/astria-sequencer-relayer/src/relayer/submission.rs49 symbols
crates/astria-core/src/protocol/transaction/v1/mod.rs46 symbols

Datastores touched

blockscoutDatabase · 1 repos

For agents

$ claude mcp add astria \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page