Skip to content

Commit 6717c73

Browse files
authored
Merge pull request #237 from AdExNetwork/issue-9-get-event-aggregates
Issue #9 GET Channel's Event Aggregates remove EarnerAddress
2 parents bb04134 + 26cb61e commit 6717c73

File tree

3 files changed

+1
-35
lines changed

3 files changed

+1
-35
lines changed

primitives/src/sentry.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ pub struct Earner {
6262
pub promilles: u64,
6363
}
6464

65-
pub type EarnerAddress = ValidatorId;
66-
6765
#[derive(Debug, Serialize, Deserialize)]
6866
#[serde(rename_all = "camelCase")]
6967
pub struct EventAggregate {

sentry/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ pub mod middleware {
2525
pub mod auth;
2626
pub mod channel;
2727
pub mod cors;
28-
pub mod event_aggregate;
2928
}
3029

3130
pub mod routes {
@@ -48,8 +47,7 @@ lazy_static! {
4847
static ref CHANNEL_STATUS_BY_CHANNEL_ID: Regex = Regex::new(r"^/channel/0x([a-zA-Z0-9]{64})/status/?$").expect("The regex should be valid");
4948
// Only the initial Regex to be matched.
5049
static ref CHANNEL_VALIDATOR_MESSAGES: Regex = Regex::new(r"^/channel/0x([a-zA-Z0-9]{64})/validator-messages(/.*)?$").expect("The regex should be valid");
51-
static ref CHANNEL_EVENTS_AGGREGATES: Regex = Regex::new(r"^/channel/0x([a-zA-Z0-9]{64})/events-aggregates(/|/0x[a-zA-Z0-9]{40}/?)?$").expect("The regex should be valid");
52-
// @TODO define other regex routes
50+
static ref CHANNEL_EVENTS_AGGREGATES: Regex = Regex::new(r"^/channel/0x([a-zA-Z0-9]{64})/events-aggregates/?$").expect("The regex should be valid");
5351
static ref ANALYTICS_BY_CHANNEL_ID: Regex = Regex::new(r"^/analytics/0x([a-zA-Z0-9]{64})/?$").expect("The regex should be valid");
5452
static ref ADVERTISER_ANALYTICS_BY_CHANNEL_ID: Regex = Regex::new(r"^/analytics/for-advertiser/0x([a-zA-Z0-9]{64})/?$").expect("The regex should be valid");
5553
}

sentry/src/middleware/event_aggregate.rs

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

0 commit comments

Comments
 (0)