Skip to main content

Contribution guide

Amadeus code lives in the amadeusprotocol GitHub organization. Feature ideas go to community Discussions; bugs and code changes go to the repository they concern.

Propose a feature​

Feature requests are discussed in GitHub Discussions of the amadeusprotocol/Feature-Request repository (formerly amadeusprotocol/community). Search the existing discussions first to avoid duplicates. A good request includes:

  • A clear title.
  • The problem or opportunity.
  • A description of the proposed feature.
  • The expected benefits.
  • Relevant use cases or examples.
  • Any technical considerations.

Keep requests focused and constructive. Community feedback decides which proposals are explored further.

Report a bug​

Open an issue in the repository the bug belongs to:

For an HTTP API bug, include the full request (method, path, query and body), the network, and the response you got.

Node​

The node in amadeusprotocol/node is written in Elixir (ex/) with Rust native code in ex/native/rdb, which carries its own rustfmt.toml. Smart contract samples and the Rust contract SDK are in contract_samples/. The HTTP routes documented here are defined in ex/lib/http/multiserver.ex, with the handlers in ex/lib/api/.

TypeScript SDK​

The SDK in amadeusprotocol/amadeus-typescript-sdk requires Node.js 20 or later, and its CI tests on Node.js 20 and 22. CI runs these checks, so run them before opening a pull request:

npm ci
npm run lint
npm run prettier:check
npm run build
npm test
npx tsc --noEmit

Formatting follows the repository's .prettierrc, .editorconfig and eslint.config.js.

This HTTP API reference​

The endpoint pages under HTTP API are generated from the OpenAPI file openapi/amadeus.json in the docs repository by docusaurus-plugin-openapi-docs. The introduction page comes from the spec's info.description, and each tag page from its tag description, so edit the spec rather than the generated .mdx files. Then regenerate:

npx docusaurus clean-api-docs amadeus --plugin-id openapi
npx docusaurus gen-api-docs amadeus --plugin-id openapi

clean-api-docs removes pages of endpoints that were deleted from the spec. This page and Models and errors are written by hand and are not generated. When the node changes a route, check the spec against ex/lib/http/multiserver.ex and a live request to https://mainnet-rpc.ama.one/api.