Skip to content

Commit 00abea5

Browse files
committed
primitives - sentry - remove Events:
- removed Update targeting, Close & Pay events - sentry - comment out channel::Insert_events - sentry - access - remove unnecessary checks & use Campaign instead of Channel
1 parent be47fe2 commit 00abea5

File tree

7 files changed

+400
-488
lines changed

7 files changed

+400
-488
lines changed

primitives/src/sentry.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -125,19 +125,6 @@ pub enum Event {
125125
ad_slot: Option<IPFS>,
126126
referrer: Option<String>,
127127
},
128-
/// only the creator can send this event
129-
#[serde(rename_all = "camelCase")]
130-
UpdateTargeting { targeting_rules: Rules },
131-
/// Closes the `Campaign`
132-
/// only the creator can send this event
133-
#[serde(rename_all = "camelCase")]
134-
Close,
135-
/// TODO: AIP#61 Check and explain who can send this event as well as when it can be received
136-
/// A map of earners which gets merged in the `spender::Aggregate`
137-
/// NOTE: Does **not** contain any fees!
138-
/// This even can be used to pay to yourself, but this is irrelevant as it's your funds you are paying yourself.
139-
#[serde(rename_all = "camelCase")]
140-
Pay { payout: BalancesMap },
141128
}
142129

143130
impl Event {
@@ -159,9 +146,6 @@ impl AsRef<str> for Event {
159146
match *self {
160147
Event::Impression { .. } => "IMPRESSION",
161148
Event::Click { .. } => "CLICK",
162-
Event::UpdateTargeting { .. } => "UPDATE_TARGETING",
163-
Event::Close => "CLOSE",
164-
Event::Pay { .. } => "PAY",
165149
}
166150
}
167151
}

0 commit comments

Comments
 (0)