Python-based ABCI server for CometBFT
Project description
xian-abci
xian-abci is the CometBFT-facing Xian node runtime. It owns deterministic
chain execution, ABCI request handling, state export and snapshot flows, and
the node-adjacent services (BDS indexing, metrics, the optional dashboard) that
run alongside a Xian validator or full node.
The published PyPI package is xian-tech-abci. Console entrypoints
(xian-abci, xian-dashboard, xian-configure-node, and the BDS / state
helpers) are installed by the package and used both directly and from the
operator-facing xian-cli.
Runtime Shape
flowchart LR
CometBFT["CometBFT"] --> ABCI["ABCI handlers"]
ABCI --> Executor["Transaction processor"]
Executor --> Contracting["xian-contracting runtime"]
Executor --> State["Chain state"]
State --> BDS["BDS indexer"]
State --> Snapshots["Export and snapshot tools"]
ABCI --> Metrics["Metrics"]
ABCI --> Dashboard["Optional dashboard"]
CLI["xian-cli and xian-stack"] --> Entrypoints["xian-abci entrypoints"]
Quick Start
Bootstrap the development environment with uv:
UV_CACHE_DIR=/tmp/uv-cache uv sync --group dev
Inspect the available command surface:
uv run xian-abci --help
uv run xian-dashboard --help
uv run xian-configure-node --help
uv run xian-export-state --help
uv run xian-state-snapshot --help
uv run xian-bds-reindex --help
uv run xian-bds-snapshot --help
uv run xian-bds-spool --help
Optional extras:
vm— enables thexian_vm_v1bindings.native— enables native admission helpers for development and release validation.
For a ready-made local network instead of wiring the node yourself, use
xian-stack. This repo focuses on the runtime and backend
tooling, not the full localnet UX.
Principles
- Deterministic chain execution. The ABCI handlers, transaction execution, rewards, validators, and query behavior live here and must be deterministic across nodes.
- Backend, not UX. Operator-facing lifecycle commands belong in
xian-cli. This repo exposes importable helpers and backend-oriented CLIs only. - Universal node runtime. No network-specific genesis files, seeds, or
snapshots. Committed chain assets live in
xian-configs. - Contract semantics live elsewhere. Changes to contract execution
semantics belong in
xian-contracting, not here. - No Compose / orchestration. Container lifecycle and local-stack
orchestration belong in
xian-stack.
Local uv development requires a sibling checkout of
../xian-contracting. Full validation also uses sibling checkouts of
../xian-contracts, ../xian-configs, and ../xian-stack.
Key Directories
src/xian/— repo-owned node runtime: ABCI handlers, services, utilities, and CLI entrypoints.methods/— ABCI request handlers (CheckTx, DeliverTx, Commit, …).services/— background services such as the simulator and BDS support.cli/— backend and developer entrypoints (configure-node, export-state, BDS helpers, …) wrapping importable helpers.tools/— one-off upgrade data and state-patch payloads. Treated as a transition area; new code should live as importable helpers undersrc/xian/.dashboard/— the optional operator dashboard.
src/abci/— lower-level ABCI server and protocol glue.protos/— vendored CometBFT schemas plus supporting protobuf dependencies.build_proto.py— regenerates checked-in protobuf Python stubs undersrc/.scripts/— repo-level validation and manual benchmark entrypoints.tests/— unit, ABCI-method, integration, governance, tools, and system coverage.docs/— architecture notes, API surface, safety invariants, snapshots / pruning model, governance, and backlog.
Validation
Preferred full validation entrypoint, used for releases:
./scripts/validate-release.sh
It defaults to Python 3.14 (override with XIAN_ABCI_VALIDATE_PYTHON) and
runs:
./scripts/validate-repo.sh- protobuf regeneration / stale-stub checks
- the Python-vs-native processor fuzz parity coverage
(
tests/integration/test_vm_processor_fuzz.py)
Faster local loops:
UV_CACHE_DIR=/tmp/uv-cache uv run ruff check .
UV_CACHE_DIR=/tmp/uv-cache uv run ruff format --check .
UV_CACHE_DIR=/tmp/uv-cache uv run pytest
UV_CACHE_DIR=/tmp/uv-cache uv run pytest tests/unit/test_node_setup.py
CI provisions Postgres for the BDS-backed paths. To mirror that locally, expose
Postgres at postgres://postgres:1234@localhost:5432/xian.
Related Docs
- AGENTS.md — repo-specific guidance for AI agents and contributors
- docs/README.md — index of internal design notes
- docs/ARCHITECTURE.md — major components and dependency direction
- docs/BACKLOG.md — open work and follow-ups
- docs/API.md — ABCI and helper API surface
- docs/SAFETY_INVARIANTS.md — invariants the runtime must preserve
- docs/SNAPSHOTS_AND_PRUNING.md — snapshot, pruning, and BDS retention model
- docs/CHAIN_ASSETS.md — split between this repo and
xian-configs - docs/TIME_SEMANTICS.md — block-time and timestamp rules
- docs/Governance.md — on-chain governance behavior
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xian_tech_abci-0.8.11.tar.gz.
File metadata
- Download URL: xian_tech_abci-0.8.11.tar.gz
- Upload date:
- Size: 183.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
122cf46dad29fc732c5827a9c4e6164810e532663b9f196bfda30d08716ab7a2
|
|
| MD5 |
4e630cae5b7c2a162c52ea9951b5f1e5
|
|
| BLAKE2b-256 |
e678f009c2dad41ed576f4f2085e1bffa18bc12fae4013111bc4e559b0e885f7
|
Provenance
The following attestation bundles were made for xian_tech_abci-0.8.11.tar.gz:
Publisher:
release.yml on xian-technology/xian-abci
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xian_tech_abci-0.8.11.tar.gz -
Subject digest:
122cf46dad29fc732c5827a9c4e6164810e532663b9f196bfda30d08716ab7a2 - Sigstore transparency entry: 1541777577
- Sigstore integration time:
-
Permalink:
xian-technology/xian-abci@81fbcf7091bcd8cc5017f5ead60355993f7e94cc -
Branch / Tag:
refs/tags/v0.8.11 - Owner: https://github.com/xian-technology
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@81fbcf7091bcd8cc5017f5ead60355993f7e94cc -
Trigger Event:
push
-
Statement type:
File details
Details for the file xian_tech_abci-0.8.11-py3-none-any.whl.
File metadata
- Download URL: xian_tech_abci-0.8.11-py3-none-any.whl
- Upload date:
- Size: 256.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60a80a5d3ece2de7515f02d9aca3bd02f258f071b3e05a680db8cc3d5589c4d9
|
|
| MD5 |
1aac9bb3e969e90ce3f8fde41568decf
|
|
| BLAKE2b-256 |
be940bf1ae2c371ab0e389406b941c9c5f76149c06785b8e7dd652d87b0c2f04
|
Provenance
The following attestation bundles were made for xian_tech_abci-0.8.11-py3-none-any.whl:
Publisher:
release.yml on xian-technology/xian-abci
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xian_tech_abci-0.8.11-py3-none-any.whl -
Subject digest:
60a80a5d3ece2de7515f02d9aca3bd02f258f071b3e05a680db8cc3d5589c4d9 - Sigstore transparency entry: 1541777743
- Sigstore integration time:
-
Permalink:
xian-technology/xian-abci@81fbcf7091bcd8cc5017f5ead60355993f7e94cc -
Branch / Tag:
refs/tags/v0.8.11 - Owner: https://github.com/xian-technology
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@81fbcf7091bcd8cc5017f5ead60355993f7e94cc -
Trigger Event:
push
-
Statement type: