Astraea API Server 0.6.1
An XRP Ledger API server with history you can check.

Contributing

Astraea is general infrastructure for the XRP Ledger, and anyone who runs or uses a history server is welcome to improve it.

We assume you are familiar with the general practice of making contributions on GitHub. This file covers only what is specific to this project.

Improvements and fixes for ordinary bugs are welcome as pull requests.

Vulnerabilities are different. Send them privately to dev@xrpl-lending.network, and do not mention them in an issue, a pull request or a commit message, even when you already have the fix: follow SECURITY.md.

§Before you start

main is the only long-lived branch: it holds the latest released or releasable code, and releases are tagged on it.

Every commit on main is signed. GitHub must know your verifying key to sign a squashed commit built from your pull request, so please set up signature verification.

External contributions are developed in your own fork. Open a draft pull request soon after pushing your branch, so that others can see the work and comment early.

§Major contributions

For a new method, a change to an existing answer, a new storage format, or a change to the evidence package format, open an issue first and describe what you want to do and why. These choices are hard to undo once servers and clients depend on them.

Astraea answers like Clio 2.8, field for field. A change that makes an answer differ from Clio needs a reason in the pull request and a line in docs/api.md. The evidence package format is versioned (xrpl-witness/evidence/N, see docs/evidence-format.md): a change that an older witness-verify would read differently needs a new version.

§Before making a pull request

(Or marking a draft pull request as ready.)

Make sure the code builds and passes the same checks CI runs. The compiler version is pinned in rust-toolchain.toml.

cargo fmt --all --check
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo test --workspace --locked
cargo deny check

Please write tests for your code. Tests that run offline and finish in seconds belong in cargo test. A check against a live node or Clio belongs in scripts/, with a note in the pull request on what you ran and what came out.

Rules that the code follows, and that review will ask for:

Changes are usually squashed into a single commit. A larger change can be easier to review as a few logical commits. Either way:

§Good commit messages

See “How to Write a Git Commit Message”. In short: a subject of about 50 characters (72 at most), capitalized, in the imperative mood, without a final period; a blank line; then a body wrapped at 72 characters that explains what changed and why rather than how.

§Pull requests

Pull requests target main. While a pull request is a draft, rebase and reorganize it as you like. Once it is marked ready, add changes as new commits and don’t force-push, so reviewers can see what changed since their last review. To bring in newer main, merge it or use the “Update branch” button.

A pull request needs an approving review from a maintainer and green CI. It is merged with squash-and-merge, which keeps the history of main linear.

§Type of change

Start the pull request title with one of these, followed by a colon, a space, and a capitalized summary:

For example: feat: Add the validations stream.

§Maintainers

Maintainers review and merge pull requests and cut releases. Reach them through issues on this repository, or at dev@xrpl-lending.network. Vulnerabilities go only to that address.