Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Dolos package #204

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
36 changes: 36 additions & 0 deletions packages/dolos/dolos-0.7.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: dolos
version: 0.7.0
description: Description of dolos package
dependencies:
- cardano-node >= 8.9.1
installSteps:
- docker:
containerName: dolos
image: ghcr.io/txpipe/dolos:v0.7.0
command:
- dolos
- daemon
binds:
- '{{ .Paths.DataDir }}/:/etc/dolos/'
- '{{ .Paths.ContextDir }}/config/{{ .Context.Network }}:/config'
ports:
- "30013"
- "50051"
pullOnly: false
- file:
binary: true
filename: daemon.toml
source: files/daemon.toml.gotmpl
outputs:
- name: dolos-grpc
description: Dolos grpc service
value: 'http://localhost:{{ index (index .Ports "dolos") "50051" }}'
- name: dolos-ouroboros
description: Dolos ouroboros service
value: 'http://localhost:{{ index (index .Ports "dolos") "30013" }}'
tags:
- docker
- linux
- darwin
- amd64
- arm64
33 changes: 33 additions & 0 deletions packages/dolos/files/daemon.toml.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# https://dolos.txpipe.io/configuration
[upstream]
peer_address = "{{ .Context.Network }}-node.world.dev.cardano.org:30000"
network_magic = {{ .Context.NetworkMagic }}
is_testnet = true

[storage]
path = "./tmp/data"
wal_size = 1000

[genesis]
byron_path = "/config/byron-genesis.json"
shelley_path = "/config/shelley-genesis.json"
alonzo_path = "/config/alonzo-genesis.json"

[sync]
pull_batch_size = 200

[submit]
prune_height = 10000
# validate_phase_1 = false
# validate_phase_2 = false

[serve.grpc]
listen_address = "[::]:50051"

[serve.ouroboros]
listen_address = "localhost:30013"
# https://github.com/txpipe/dolos/blob/main/examples/sync-mainnet/dolos.toml#L26
magic = 0

[logging]
max_level = "debug"