Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
d77ec38
fix: enable peer discovery by default.
Oct 2, 2025
7cff2c3
chore: disable peer discovery by default
Oct 28, 2025
ea5a95e
fix: add Ouroboros Genesis support for Cardano Node 10.5.1+ (#637)
matiwinnetou Oct 30, 2025
de6ce72
chore: upgrade to version 2.0.0-beta with yaci-store 2.0.0-beta4
matiwinnetou Oct 29, 2025
0702298
refactor: cardano-rosetta schema instead of network specific schema (…
matiwinnetou Oct 29, 2025
98f0a34
chore: upgrade PostgreSQL from 14.11 to 18.0 (#426)
matiwinnetou Oct 29, 2025
c56e490
refactor: finalize single Docker deployment removal (#635)
matiwinnetou Oct 29, 2025
1832fe3
fix: adjust pool retirement epoch to work with fresh devkit chains
Oct 30, 2025
6ce3f00
docs: add H2 database connection documentation for test data
Oct 30, 2025
4f68b11
feat: limit and randomize peer discovery to 25 peers
Nov 4, 2025
fb888ff
chore: disable PEER_DISCOVERY by default for mainnet
Nov 4, 2025
8fc598c
chore: bump version to 2.0.0
Nov 4, 2025
67b091d
fix: grant schema privileges to database user for PostgreSQL 15+
matiwinnetou Nov 4, 2025
e15720c
chore: revert version to 2.0.0-beta
Nov 4, 2025
e9c364d
chore: regenerate JOOQ classes from database schema (#643)
matiwinnetou Nov 5, 2025
3b85f7e
fix: removal of specific db schema
Nov 5, 2025
d6bdffa
feat: update search indices to use tx_index for proper transaction or…
Nov 5, 2025
99d2e4c
refactor: remove duplicate transaction index on block_hash and tx_index
Nov 6, 2025
38d1b52
Merge remote-tracking branch 'origin/main' into develop3
Nov 25, 2025
512799d
chore: yaci-store beta5 upgrade.
Nov 25, 2025
121b0ee
tests: disabled tests for postman collection as we now have tests fro…
Nov 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .env.IntegrationTest
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ NETWORK=devkit
PROTOCOL_MAGIC=42

## Postgres image
PG_VERSION_TAG=REL_14_11
PG_VERSION_TAG=REL_18_0

## Yaci image
YACI_VERSION=0.10.5
Expand All @@ -16,10 +16,10 @@ DB_SECRET=weakpwd#123_d
DB_HOST=db
# Service name in docker-compose or local db
DB_PORT=5432
DB_SCHEMA=${NETWORK}
DB_SCHEMA=public
DB_PATH=data
UPDATE_GENESIS_BLOCK_QUERY="UPDATE devkit.block SET number = 0 WHERE number = -1; UPDATE devkit.block SET prev_hash = 'Genesis' WHERE number = 1"
#UPDATE_GENESIS_BLOCK_QUERY="UPDATE devkit.block SET prev_hash = 'Genesis' WHERE number = 1"
UPDATE_GENESIS_BLOCK_QUERY="UPDATE \"public\".block SET number = 0 WHERE number = -1; UPDATE \"public\".block SET prev_hash = 'Genesis' WHERE number = 1"
#UPDATE_GENESIS_BLOCK_QUERY="UPDATE \"public\".block SET prev_hash = 'Genesis' WHERE number = 1"

## Cardano Node variables
CARDANO_NODE_HOST=yaci-cli
Expand Down
4 changes: 2 additions & 2 deletions .env.docker-compose
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PROTOCOL_MAGIC=764824073
# mainnet 764824073, preprod 1, preview 2, devkit 42

## Postgres image
PG_VERSION_TAG=REL_14_11
PG_VERSION_TAG=REL_18_0

## Postgres variables
DB_NAME=rosetta-java
Expand All @@ -16,7 +16,7 @@ DB_SECRET=weakpwd#123_d
DB_HOST=db
# Service name in docker-compose or local db
DB_PORT=5432
DB_SCHEMA=${NETWORK}
DB_SCHEMA=public
DB_PATH=data

## Cardano Node variables
Expand Down
4 changes: 2 additions & 2 deletions .env.docker-compose-preprod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PROTOCOL_MAGIC=1
# mainnet 764824073, preprod 1, preview 2, devkit 42

## Postgres image
PG_VERSION_TAG=REL_14_11
PG_VERSION_TAG=REL_18_0

## Postgres variables
DB_NAME=rosetta-java
Expand All @@ -16,7 +16,7 @@ DB_SECRET=weakpwd#123_d
DB_HOST=db
# Service name in docker-compose or local db
DB_PORT=5432
DB_SCHEMA=${NETWORK}
DB_SCHEMA=public
DB_PATH=/opt/rosetta-java-preprod/sql_data

## Cardano Node variables
Expand Down
10 changes: 5 additions & 5 deletions .env.h2
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ API_PORT=8082
PRINT_EXCEPTION=true

ROSETTA_VERSION=1.4.13
TOPOLOGY_FILEPATH=./config/${NETWORK}/topology.json
GENESIS_SHELLEY_PATH=./config/${NETWORK}/shelley-genesis.json
GENESIS_BYRON_PATH=./config/${NETWORK}/byron-genesis.json
GENESIS_ALONZO_PATH=./config/${NETWORK}/alonzo-genesis.json
GENESIS_CONWAY_PATH=./config/${NETWORK}/conway-genesis.json
TOPOLOGY_FILEPATH=./config/node/${NETWORK}/topology.json
GENESIS_SHELLEY_PATH=./config/node/${NETWORK}/shelley-genesis.json
GENESIS_BYRON_PATH=./config/node/${NETWORK}/byron-genesis.json
GENESIS_ALONZO_PATH=./config/node/${NETWORK}/alonzo-genesis.json
GENESIS_CONWAY_PATH=./config/node/${NETWORK}/conway-genesis.json
SEARCH_LIMIT=100

## Yaci Indexer env
Expand Down
10 changes: 5 additions & 5 deletions .env.h2-testdata
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ API_PORT=8082
PRINT_EXCEPTION=true

ROSETTA_VERSION=1.4.13
TOPOLOGY_FILEPATH=./config/${NETWORK}/topology.json
GENESIS_SHELLEY_PATH=./config/${NETWORK}/shelley-genesis.json
GENESIS_BYRON_PATH=./config/${NETWORK}/byron-genesis.json
GENESIS_ALONZO_PATH=./config/${NETWORK}/alonzo-genesis.json
GENESIS_CONWAY_PATH=./config/${NETWORK}/conway-genesis.json
TOPOLOGY_FILEPATH=./config/node/${NETWORK}/topology.json
GENESIS_SHELLEY_PATH=./config/node/${NETWORK}/shelley-genesis.json
GENESIS_BYRON_PATH=./config/node/${NETWORK}/byron-genesis.json
GENESIS_ALONZO_PATH=./config/node/${NETWORK}/alonzo-genesis.json
GENESIS_CONWAY_PATH=./config/node/${NETWORK}/conway-genesis.json
SEARCH_LIMIT=100

## Yaci Indexer env
Expand Down
14 changes: 3 additions & 11 deletions .github/actions/build_docker_images/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,11 @@ runs:
tags: cardanofoundation/cardano-rosetta-java-mithril:${{ steps.envver.outputs.mithril_version }}
push: true

- name: All-in-one - Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./docker/Dockerfile
tags: cardanofoundation/cardano-rosetta-java:${{ inputs.tag }}
push: true

- name: All-in-one - Build and push Docker latest image
- name: Mithril - Build and push Docker latest image
uses: docker/build-push-action@v4
if: ${{ inputs.isRelease == 'true' }}
with:
context: .
file: ./docker/Dockerfile
tags: cardanofoundation/cardano-rosetta-java:latest
file: ./docker/dockerfiles/mithril/Dockerfile
tags: cardanofoundation/cardano-rosetta-java-mithril:latest
push: true
8 changes: 6 additions & 2 deletions .github/workflows/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,27 @@ jobs:
python-version: '3.12'
- name: "Install uv"
run: curl -LsSf https://astral.sh/uv/install.sh | sh

# - name: "Install mesh-cli"
# run: curl -sSfL https://raw.githubusercontent.com/coinbase/mesh-cli/master/scripts/install.sh | sh -s

# https://github.com/coinbase/mesh-cli/issues/422
- name: "Install mesh-cli"
run: curl -sSfL https://raw.githubusercontent.com/coinbase/mesh-cli/v0.10.3/scripts/install.sh | sed -e 's/^REPO=.*/REPO=mesh-cli/' | sh -s

- name: "Run tests"
run: newman run ./postmanTests/rosetta-java.postman_collection.json -e postmanTests/Rosetta-java-env.postman_environment.json -r cli
# - name: "Run tests"
# run: newman run ./postmanTests/rosetta-java.postman_collection.json -e postmanTests/Rosetta-java-env.postman_environment.json -r cli

- name: "Run construction API tests with schema validation"
run: |
cd ./tests/integration
~/.local/bin/uv run test_construction_api.py \
-u http://localhost:8082 \
--network-id devkit \
--openapi ../../api/src/main/resources/rosetta-specifications-1.4.15/api.yaml

- name: "Run rosetta check:data tests"
run: ./bin/rosetta-cli check:data --configuration-file ./rosetta-cli-tests/data/byron_sample.json

- name: "Tear down environment"
run: docker compose --env-file .env.IntegrationTest -f docker-integration-test-environment.yaml down
26 changes: 15 additions & 11 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,25 @@ cd api && mvn spring-boot:run
mvn clean package
```

### Docker Commands
### Docker Compose Commands
```bash
# Build from source
docker build -t rosetta-java -f ./docker/Dockerfile .
# Start all services (full stack)
docker compose --env-file .env.docker-compose --env-file .env.docker-compose-profile-mid-level up -d

# Run with docker-compose (full stack)
docker-compose up -d

# Run specific services
docker-compose up -d api indexer postgres
# Start specific services
docker compose up -d cardano-node db
docker compose up -d api yaci-indexer

# View logs
docker logs rosetta -f
docker exec rosetta tail -f /logs/node.log
docker exec rosetta tail -f /logs/indexer.log
docker compose logs -f api
docker compose logs -f yaci-indexer
docker compose logs -f cardano-node

# Stop all services
docker compose down

# Restart a service
docker compose restart api
```

## Architecture Overview
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading