AI prompts
base on A monorepo containing all the custom components of the Astria network, a decentralized system that replaces traditional sequencers, offering a shared, permissionless sequencer network. # 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](https://github.com/astriaorg) organization.
To run locally, we utilize a dev-cluster which can be found at
[astriaorg/astria/charts](https://github.com/astriaorg/astria/tree/main/charts).
To learn more about Astria, please visit [astria.org](https://astria.org).
## Components
* [conductor](https://github.com/astriaorg/astria/tree/main/crates/astria-conductor):
conducts blocks from the data availability layer to the execution layer.
* [proto](https://github.com/astriaorg/astria/tree/main/proto):
the protobuf spec to interact with Astria services.
* [sequencer](https://github.com/astriaorg/astria/tree/main/crates/astria-sequencer):
ABCI application that defines the sequencer state transition logic.
* [sequencer-relayer](https://github.com/astriaorg/astria/tree/main/crates/astria-sequencer-relayer):
relays blocks from the sequencer chain to the data availability layer.
## Build
To build the relevant Astria binaries, you only need
[Rust](https://www.rust-lang.org/tools/install) installed.
Then:
```sh
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:
```sh
# 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](https://github.com/astriaorg/dev-cluster).
## Testing
To run unit tests:
```sh
cargo test
```
## Formatting
This project uses [rustfmt](https://github.com/rust-lang/rustfmt) to format rust
sources, [taplo](https://github.com/tamasfe/taplo) to format toml files, and
[markdownlint-cli2](https://github.com/DavidAnson/markdownlint-cli2) for
markdown.
### Rust
```sh
# Install rustfmt
rustup +nightly-2024-02-07 component add rustfmt
# Run rustfmt
just fmt rust
```
### Toml
```sh
# Install for macOS
brew install taplo
# Install for Arch Linux
sudo pacman -S taplo
# Run
just fmt toml
```
### Markdown
```sh
# 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](https://github.com/astriaorg/astria/issues).
", Assign "at most 3 tags" to the expected json: {"id":"6238","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"