Skip to content

Commit ee125b2

Browse files
authored
ETCM-12351 add client for dolos minibf (#1063)
1 parent d68e868 commit ee125b2

File tree

17 files changed

+549
-3
lines changed

17 files changed

+549
-3
lines changed

Cargo.lock

Lines changed: 99 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ ed25519-zebra = { version = "4.0.3" }
118118
ed25519 = { version = "2.2.2" }
119119
figment = { version = "0.10.19", features = ["env", "test"] }
120120
fraction = { version = "0.15.3", default-features = false }
121-
futures = { version = "0.3.30", features = ["thread-pool"] }
121+
futures = { version = "0.3.31", features = ["thread-pool"] }
122122
hex = { version = "0.4.3", features = ["alloc"], default-features = false }
123123
hex-literal = "1.0.0"
124124
itertools = "0.14.0"
@@ -185,6 +185,9 @@ derive-where = { version = "1.2.7", default-features = false }
185185
once_cell = { version = "1.21.3", default-features = false }
186186
paste = { version = "1.0.15" }
187187
fork-tree = { version = "13.0.1" }
188+
ureq = { version = "3.1.2", default-features = false }
189+
url = { version = "2.5.7", default-features = false }
190+
blockfrost-openapi = { version = "0.1.75", default-features = false }
188191

189192
# substrate dependencies
190193
frame-benchmarking = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2509" }

dev/envs/ci-preview/.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ export BRIDGE_TOKEN_ASSET_NAME=$(echo $NATIVE_TOKEN_ASSET_NAME)
2020

2121
# Operational parameters allowing to run node after sourcing this file
2222
export DB_SYNC_POSTGRES_CONNECTION_STRING="postgres://postgres:password123@localhost/cexplorer"
23+
export DOLOS_MINIBF_URL: "localhost:3000"
2324
export CARDANO_DATA_SOURCE="db-sync"
2425
export BLOCK_STABILITY_MARGIN=0

dev/envs/devnet/.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ export BRIDGE_TOKEN_ASSET_NAME=$(echo $NATIVE_TOKEN_ASSET_NAME)
2020

2121
# Operational parameters allowing to run node after sourcing this file
2222
export DB_SYNC_POSTGRES_CONNECTION_STRING="postgres://postgres:password123@localhost/cexplorer"
23+
export DOLOS_MINIBF_URL="localhost:3000"
2324
export CARDANO_DATA_SOURCE="db-sync"
2425
export BLOCK_STABILITY_MARGIN=0

dev/envs/staging-preview/.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ export BRIDGE_TOKEN_ASSET_NAME=$(echo $NATIVE_TOKEN_ASSET_NAME)
2020

2121
# Operational parameters allowing to run node after sourcing this file
2222
export DB_SYNC_POSTGRES_CONNECTION_STRING="postgres://postgres:password123@localhost/cexplorer"
23+
export DOLOS_MINIBF_URL="localhost:3000"
2324
export CARDANO_DATA_SOURCE="db-sync"
2425
export BLOCK_STABILITY_MARGIN=0

dev/local-environment/envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ DOT_ENV="$SCRIPT_DIR/.env"
77
if [ -f "$DOT_ENV" ]; then
88
source "$DOT_ENV"
99
export DB_SYNC_POSTGRES_CONNECTION_STRING="postgres://postgres:$POSTGRES_PASSWORD@localhost:$POSTGRES_PORT/cexplorer"
10+
export DOLOS_MINIBF_URL="localhost:$DOLOS_MINIBF_PORT"
1011
else
1112
echo "$DOT_ENV file missing!"
1213
fi

dev/local-environment/modules/partner-chains-external-node.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
environment:
1111
CARDANO_DATA_SOURCE: "db-sync"
1212
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@127.0.0.1:${POSTGRES_PORT}/cexplorer"
13+
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
1314
CARDANO_SECURITY_PARAMETER: "5"
1415
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
1516
MC__FIRST_EPOCH_NUMBER: "0"

dev/local-environment/modules/partner-chains-nodes.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- ./configurations/partner-chains-nodes/partner-chains-node-1/keystore:/keystore
1111
environment:
1212
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
13+
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
1314
CARDANO_DATA_SOURCE: "db-sync"
1415
CARDANO_SECURITY_PARAMETER: "5"
1516
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
@@ -40,6 +41,7 @@
4041
- ./configurations/partner-chains-nodes/partner-chains-node-2/keystore:/keystore
4142
environment:
4243
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
44+
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
4345
CARDANO_DATA_SOURCE: "db-sync"
4446
CARDANO_SECURITY_PARAMETER: "5"
4547
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
@@ -70,6 +72,7 @@
7072
- ./configurations/partner-chains-nodes/partner-chains-node-3/keystore:/keystore
7173
environment:
7274
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
75+
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
7376
CARDANO_DATA_SOURCE: "db-sync"
7477
CARDANO_SECURITY_PARAMETER: "5"
7578
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
@@ -101,6 +104,7 @@
101104
- ./configurations/partner-chains-nodes/partner-chains-node-4/network:/network
102105
environment:
103106
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
107+
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
104108
CARDANO_DATA_SOURCE: "db-sync"
105109
CARDANO_SECURITY_PARAMETER: "5"
106110
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"
@@ -132,6 +136,7 @@
132136
- ./configurations/partner-chains-nodes/partner-chains-node-5/network:/network
133137
environment:
134138
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
139+
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
135140
CARDANO_DATA_SOURCE: "db-sync"
136141
CARDANO_SECURITY_PARAMETER: "5"
137142
CARDANO_ACTIVE_SLOTS_COEFF: "0.4"

dev/local-environment/modules/partner-chains-wizard.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
POSTGRES_PORT: ${POSTGRES_PORT}
1818
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
1919
DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer"
20+
DOLOS_MINIBF_URL: "http://dolos:${DOLOS_MINIBF_PORT}"
2021
CARDANO_DATA_SOURCE: "db-sync"
2122
GOVERNANCE_AUTHORITY: "e8c300330fe315531ca89d4a2e7d0c80211bc70b473b1ed4979dff2b"
2223
CARDANO_SECURITY_PARAMETER: "5"

dev/local-environment/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
PARTNER_CHAINS_NODE_IMAGE="ghcr.io/input-output-hk/partner-chains/partner-chains-node-unstable:latest"
44
CARDANO_IMAGE="ghcr.io/intersectmbo/cardano-node:10.5.1"
55
DBSYNC_IMAGE="ghcr.io/intersectmbo/cardano-db-sync:13.6.0.4"
6-
DOLOS_IMAGE="ghcr.io/txpipe/dolos:1.0.0-beta.5"
6+
DOLOS_IMAGE="ghcr.io/txpipe/dolos:1.0.0-beta.7"
77
OGMIOS_IMAGE="cardanosolutions/ogmios:v6.13.0"
88
POSTGRES_IMAGE="postgres:17.2"
99
TESTS_IMAGE="python:3.12-slim"

0 commit comments

Comments
 (0)