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

refactor(catalyst-gateway): Remove axum legacy service implementation #162

Merged
merged 5 commits into from
Nov 30, 2023
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
147 changes: 0 additions & 147 deletions catalyst-gateway/Cargo.lock

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

5 changes: 0 additions & 5 deletions catalyst-gateway/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ tracing-subscriber = "0.3.16"
serde = "1.0"
serde_json = "1.0"

axum = "0.6.9"

poem = "1.3.58"
poem-openapi = "3.0.4"
poem-extensions = "0.7.2"
Expand All @@ -37,13 +35,10 @@ cryptoxide = "0.4.4"
uuid = "1"
lazy_static = "1.4"
panic-message = "0.3"
bytes = "1.4"
cpu-time = "1.0"
ulid = "1.0.1"
rust-embed = "8"

tower-http = "0.4"
tower = "0.4"
hyper = "0.14"
url = "2.4.1"

Expand Down
7 changes: 1 addition & 6 deletions catalyst-gateway/bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,14 @@ tokio-postgres = { workspace = true, features = [
] }

clap = { workspace = true, features = ["derive", "env"] }
tracing = { workspace = true }
tracing = { workspace = true, features = ["log"] }
tracing-subscriber = { workspace = true, features = ["fmt", "json", "time"] }

serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }

tokio = { workspace = true, features = ["rt", "macros", "rt-multi-thread"] }
thiserror = { workspace = true }
axum = { workspace = true }

tower-http = { workspace = true, features = ["cors"] }

rust_decimal = { workspace = true, features = [
"serde-with-float",
Expand Down Expand Up @@ -73,9 +70,7 @@ lazy_static = { workspace = true }
url = { workspace = true }
dotenvy = { workspace = true }
panic-message = { workspace = true }
tower = { workspace = true, features = ["util"] }
hyper = { workspace = true }
bytes = { workspace = true }
cpu-time = { workspace = true }
ulid = { workspace = true, features = ["serde", "uuid"] }
rust-embed = { workspace = true }
10 changes: 0 additions & 10 deletions catalyst-gateway/bin/src/event_db/types/registration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,6 @@ impl RewardAddress {
reward_address,
}
}

/// Get the reward address
pub(crate) fn reward_address(&self) -> &str {
&self.reward_address
}

/// Get the reward payable
pub(crate) fn reward_payable(&self) -> bool {
self.reward_payable
}
}

#[derive(Debug, Clone, PartialEq, Eq)]
Expand Down
8 changes: 8 additions & 0 deletions catalyst-gateway/bin/src/event_db/types/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ use super::{event::EventSummary, objective::ObjectiveSummary, proposal::Proposal
/// The Table to search
pub(crate) enum SearchTable {
/// Search for events
#[allow(dead_code)]
Events,
/// Search for objectives
#[allow(dead_code)]
Objectives,
/// Search for proposals
#[allow(dead_code)]
Proposals,
}

Expand All @@ -18,14 +21,19 @@ pub(crate) enum SearchTable {
/// The column to search
pub(crate) enum SearchColumn {
/// Search for the Title
#[allow(dead_code)]
Title,
/// Search for the Type
#[allow(dead_code)]
Type,
/// Search for the Description
#[allow(dead_code)]
Description,
/// Search for the Author
#[allow(dead_code)]
Author,
/// Search for the Funds
#[allow(dead_code)]
Funds,
}

Expand Down
Loading