Skip to content

Commit 2660869

Browse files
committed
Merge branch 'main' into 2091-map-proposal-elements-for-testing
2 parents 8d32010 + d5d7d04 commit 2660869

File tree

699 files changed

+8942
-6877
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

699 files changed

+8942
-6877
lines changed

.config/dictionaries/project.dic

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ minicbor
206206
minijinja
207207
mithril
208208
mitigations
209+
mitmdump
209210
mocktail
210211
moderations
211212
moka
@@ -258,6 +259,7 @@ pubkey
258259
PUBLICKEY
259260
pubspec
260261
pycardano
262+
pyright
261263
pytest
262264
qrcode
263265
rapidoc

.vscode/settings.recommended.json

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,19 @@
99
},
1010
"files.autoSave": "afterDelay",
1111
"editor.formatOnType": true,
12-
"editor.rulers": [100],
12+
"editor.rulers": [
13+
100
14+
],
1315
"editor.tabSize": 4,
1416
"debug.openDebug": "openOnDebugBreak",
1517
"debug.internalConsoleOptions": "openOnSessionStart",
18+
"dart.lineLength": 100,
1619
"[dart]": {
1720
"editor.formatOnSave": true,
1821
"editor.formatOnType": true,
19-
"editor.rulers": [80],
22+
"editor.rulers": [
23+
100
24+
],
2025
"editor.codeActionsOnSave": {
2126
"source.fixAll": "explicit",
2227
"source.organizeImports": "explicit",
@@ -54,8 +59,14 @@
5459
".pages": "yaml",
5560
".earthlyignore": "ignore"
5661
},
57-
"rust-analyzer.linkedProjects": ["./catalyst-gateway/Cargo.toml"],
58-
"rust-analyzer.check.overrideCommand": ["bash", "-c", "cargo lint-vscode"],
62+
"rust-analyzer.linkedProjects": [
63+
"./catalyst-gateway/Cargo.toml"
64+
],
65+
"rust-analyzer.check.overrideCommand": [
66+
"bash",
67+
"-c",
68+
"cargo lint-vscode"
69+
],
5970
"yaml.schemas": {
6071
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
6172
},
@@ -83,7 +94,9 @@
8394
"files.trimTrailingWhitespace": true,
8495
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
8596
},
86-
"rust-analyzer.rustfmt.extraArgs": ["+nightly"],
97+
"rust-analyzer.rustfmt.extraArgs": [
98+
"+nightly"
99+
],
87100
"rust-analyzer.lens.enable": true,
88101
"vs-kubernetes": {
89102
"vs-kubernetes.kubeconfig": "utilities/local-cluster/shared/k3s.yaml"
@@ -94,4 +107,4 @@
94107
"languageToolLinter.external.url": "https://api.languagetoolplus.com",
95108
"languageToolLinter.languageTool.language": "en-US",
96109
"languageToolLinter.languageTool.motherTongue": "en-US"
97-
}
110+
}

catalyst-gateway/bin/Cargo.toml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ repository.workspace = true
1515
workspace = true
1616

1717
[dependencies]
18-
cardano-chain-follower = { version = "0.0.8", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "r20250512-00" }
19-
rbac-registration = { version = "0.0.4", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "r20250512-00" }
20-
catalyst-types = { version = "0.0.3", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "r20250512-00" }
21-
cardano-blockchain-types = { version = "0.0.3", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "r20250512-00" }
22-
catalyst-signed-doc = { version = "0.0.4", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "r20250512-00" }
23-
c509-certificate = { version = "0.0.3", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "r20250512-00" }
18+
cardano-chain-follower = { version = "0.0.8", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "r20250526-00" }
19+
rbac-registration = { version = "0.0.4", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "r20250526-00" }
20+
catalyst-types = { version = "0.0.3", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "r20250526-00" }
21+
cardano-blockchain-types = { version = "0.0.3", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "r20250526-00" }
22+
catalyst-signed-doc = { version = "0.0.4", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "r20250526-00" }
23+
c509-certificate = { version = "0.0.3", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "r20250526-00" }
2424

2525
pallas = { version = "0.30.1", git = "https://github.com/input-output-hk/catalyst-pallas.git", rev = "9b5183c8b90b90fe2cc319d986e933e9518957b3" }
2626
pallas-traverse = { version = "0.30.1", git = "https://github.com/input-output-hk/catalyst-pallas.git", rev = "9b5183c8b90b90fe2cc319d986e933e9518957b3" }
@@ -35,7 +35,6 @@ tracing-subscriber = { version = "0.3.18", features = [
3535
"time",
3636
"env-filter",
3737
] }
38-
serde = { version = "1.0.214", features = ["derive"] }
3938
serde_json = { version = "1.0.132", features = ["arbitrary_precision"] }
4039
thiserror = "1.0.68"
4140
chrono = "0.4.38"
@@ -109,9 +108,6 @@ poem-openapi-derive = { version = "=5.1.4" }
109108
# Its a transitive dependency of the "poem-openapi-derive" crate,
110109
# but its breaks API after version "0.20.11".
111110
darling = { version = "=0.20.10" }
112-
# Its a transitive dependency of the "orx-concurrent-vec" crate,
113-
# but its breaks API after version "1.3.0".
114-
orx-iterable = { version = "=1.2.0" }
115111

116112
[dev-dependencies]
117113

@@ -120,4 +116,4 @@ build-info-build = "0.0.39"
120116

121117
[package.metadata.cargo-machete]
122118
# remove that after fixing issues with latest crates
123-
ignored = ["poem-openapi-derive", "darling", "orx-iterable"]
119+
ignored = ["poem-openapi-derive", "darling"]

catalyst-gateway/bin/src/build_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ build time: {}
1919
$.timestamp
2020
);
2121

22-
build_info_crate::build_info!(fn build_info);
22+
build_info_crate::build_info!(pub(crate) fn build_info);
2323

2424
/// Log Build Info to our logs.
2525
pub(crate) fn log_build_info() {

catalyst-gateway/bin/src/cardano/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ use crate::{
2727
settings::{chain_follower, Settings},
2828
};
2929

30-
// pub(crate) mod cip36_registration_obsolete;
3130
pub(crate) mod event;
32-
pub(crate) mod util;
3331

3432
/// How long we wait between checks for connection to the indexing DB to be ready.
3533
pub(crate) const INDEXING_DB_READY_WAIT_INTERVAL: Duration = Duration::from_secs(1);

catalyst-gateway/bin/src/cardano/util.rs

Lines changed: 0 additions & 137 deletions
This file was deleted.

catalyst-gateway/bin/src/cli.rs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
use std::{io::Write, path::PathBuf, time::Duration};
33

44
use clap::Parser;
5-
use tracing::{error, info};
5+
use tracing::{debug, error, info};
66

77
use crate::{
88
cardano::start_followers,
9-
db::{self, index::session::CassandraSession},
9+
db::{self, event::EventDB, index::session::CassandraSession},
1010
service::{
1111
self,
1212
utilities::health::{
13-
condition_for_started, is_live, live_counter_reset, service_has_started, set_to_started,
13+
condition_for_started, is_live, live_counter_reset, service_has_started,
14+
set_event_db_liveness, set_to_started,
1415
},
1516
},
1617
settings::{ServiceSettings, Settings},
@@ -54,7 +55,15 @@ impl Cli {
5455
// Start the DB's.
5556
CassandraSession::init();
5657

57-
db::event::establish_connection();
58+
// Initialize Event DB connection pool
59+
db::event::establish_connection_pool().await;
60+
// Test that connection is available
61+
if EventDB::connection_is_ok().await {
62+
set_event_db_liveness(true);
63+
debug!("Event DB is connected. Liveness set to true");
64+
} else {
65+
error!("Event DB connection failed");
66+
}
5867

5968
// Start the chain indexing follower.
6069
start_followers().await?;

0 commit comments

Comments
 (0)