Skip to content
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
100 changes: 99 additions & 1 deletion Cargo.lock

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

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ ed25519-zebra = { version = "4.0.3" }
ed25519 = { version = "2.2.2" }
figment = { version = "0.10.19", features = ["env", "test"] }
fraction = { version = "0.15.3", default-features = false }
futures = { version = "0.3.30", features = ["thread-pool"] }
futures = { version = "0.3.31", features = ["thread-pool"] }
hex = { version = "0.4.3", features = ["alloc"], default-features = false }
hex-literal = "1.0.0"
itertools = "0.14.0"
Expand Down Expand Up @@ -185,6 +185,9 @@ derive-where = { version = "1.2.7", default-features = false }
once_cell = { version = "1.21.3", default-features = false }
paste = { version = "1.0.15" }
fork-tree = { version = "13.0.1" }
ureq = { version = "3.1.2", default-features = false }
url = { version = "2.5.7", default-features = false }
blockfrost-openapi = { version = "0.1.75", default-features = false }

# substrate dependencies
frame-benchmarking = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2509" }
Expand Down
1 change: 1 addition & 0 deletions dev/envs/ci-preview/.envrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ export BRIDGE_TOKEN_ASSET_NAME=$(echo $NATIVE_TOKEN_ASSET_NAME)

# Operational parameters allowing to run node after sourcing this file
export DB_SYNC_POSTGRES_CONNECTION_STRING="postgres://postgres:password123@localhost/cexplorer"
export DOLOS_MINIBF_URL: "localhost:3000"
export CARDANO_DATA_SOURCE="db-sync"
export BLOCK_STABILITY_MARGIN=0
1 change: 1 addition & 0 deletions dev/envs/devnet/.envrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ export BRIDGE_TOKEN_ASSET_NAME=$(echo $NATIVE_TOKEN_ASSET_NAME)

# Operational parameters allowing to run node after sourcing this file
export DB_SYNC_POSTGRES_CONNECTION_STRING="postgres://postgres:password123@localhost/cexplorer"
export DOLOS_MINIBF_URL="localhost:3000"
export CARDANO_DATA_SOURCE="db-sync"
export BLOCK_STABILITY_MARGIN=0
1 change: 1 addition & 0 deletions dev/envs/staging-preview/.envrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ export BRIDGE_TOKEN_ASSET_NAME=$(echo $NATIVE_TOKEN_ASSET_NAME)

# Operational parameters allowing to run node after sourcing this file
export DB_SYNC_POSTGRES_CONNECTION_STRING="postgres://postgres:password123@localhost/cexplorer"
export DOLOS_MINIBF_URL="localhost:3000"
export CARDANO_DATA_SOURCE="db-sync"
export BLOCK_STABILITY_MARGIN=0
1 change: 1 addition & 0 deletions dev/local-environment/envrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ DOT_ENV="$SCRIPT_DIR/.env"
if [ -f "$DOT_ENV" ]; then
source "$DOT_ENV"
export DB_SYNC_POSTGRES_CONNECTION_STRING="postgres://postgres:$POSTGRES_PASSWORD@localhost:$POSTGRES_PORT/cexplorer"
export DOLOS_MINIBF_URL="localhost:$DOLOS_MINIBF_PORT"
else
echo "$DOT_ENV file missing!"
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
environment:
CARDANO_DATA_SOURCE: "db-sync"
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@127.0.0.1:${POSTGRES_PORT}/cexplorer"
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
CARDANO_SECURITY_PARAMETER: "5"
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
MC__FIRST_EPOCH_NUMBER: "0"
Expand Down
5 changes: 5 additions & 0 deletions dev/local-environment/modules/partner-chains-nodes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- ./configurations/partner-chains-nodes/partner-chains-node-1/keystore:/keystore
environment:
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
CARDANO_DATA_SOURCE: "db-sync"
CARDANO_SECURITY_PARAMETER: "5"
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
Expand Down Expand Up @@ -40,6 +41,7 @@
- ./configurations/partner-chains-nodes/partner-chains-node-2/keystore:/keystore
environment:
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
CARDANO_DATA_SOURCE: "db-sync"
CARDANO_SECURITY_PARAMETER: "5"
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
Expand Down Expand Up @@ -70,6 +72,7 @@
- ./configurations/partner-chains-nodes/partner-chains-node-3/keystore:/keystore
environment:
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
CARDANO_DATA_SOURCE: "db-sync"
CARDANO_SECURITY_PARAMETER: "5"
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
Expand Down Expand Up @@ -101,6 +104,7 @@
- ./configurations/partner-chains-nodes/partner-chains-node-4/network:/network
environment:
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
CARDANO_DATA_SOURCE: "db-sync"
CARDANO_SECURITY_PARAMETER: "5"
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
Expand Down Expand Up @@ -132,6 +136,7 @@
- ./configurations/partner-chains-nodes/partner-chains-node-5/network:/network
environment:
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
CARDANO_DATA_SOURCE: "db-sync"
CARDANO_SECURITY_PARAMETER: "5"
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
Expand Down
1 change: 1 addition & 0 deletions dev/local-environment/modules/partner-chains-wizard.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
CARDANO_DATA_SOURCE: "db-sync"
GOVERNANCE_AUTHORITY: "e8c300330fe315531ca89d4a2e7d0c80211bc70b473b1ed4979dff2b"
CARDANO_SECURITY_PARAMETER: "5"
Expand Down
2 changes: 1 addition & 1 deletion dev/local-environment/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PARTNER_CHAINS_NODE_IMAGE="ghcr.io/input-output-hk/partner-chains/partner-chains-node-unstable:latest"
CARDANO_IMAGE="ghcr.io/intersectmbo/cardano-node:10.5.1"
DBSYNC_IMAGE="ghcr.io/intersectmbo/cardano-db-sync:13.6.0.4"
DOLOS_IMAGE="ghcr.io/txpipe/dolos:1.0.0-beta.5"
DOLOS_IMAGE="ghcr.io/txpipe/dolos:1.0.0-beta.7"
OGMIOS_IMAGE="cardanosolutions/ogmios:v6.13.0"
POSTGRES_IMAGE="postgres:17.2"
TESTS_IMAGE="python:3.12-slim"
Expand Down
13 changes: 13 additions & 0 deletions toolkit/data-sources/dolos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@ sp-block-participation = { workspace = true, features = [
sp-partner-chains-bridge = { workspace = true, optional = true, features = [
"std",
] }
serde = { workspace = true }
serde_json = { workspace = true }
log = { workspace = true }
blockfrost-openapi = { workspace = true }
ureq = { workspace = true, features = ["json"] }
url = { workspace = true }
thiserror = { workspace = true }
partner-chains-plutus-data = { workspace = true }
futures = { workspace = true }
cardano-serialization-lib = { workspace = true }
itertools = { workspace = true }
figment = { workspace = true }
tokio = { workspace = true }

[features]
default = []
Expand Down
Loading
Loading