@@ -35,13 +35,6 @@ impl Input {
35
35
. map ( |ad_view| Value :: Bool ( ad_view. has_custom_preferences ) )
36
36
. ok_or ( Error :: UnknownVariable ) ,
37
37
"adSlotId" => Ok ( Value :: String ( self . global . ad_slot_id . clone ( ) ) ) ,
38
- // "adUnitType" => Ok(Value::String(self.global.ad_unit_type.clone())),
39
- // "publisherId" => Ok(Value::String(self.global.publisher_id.clone())),
40
- // "advertiserId" => Ok(Value::String(self.global.advertiser_id.clone())),
41
- // "country" => Ok(Value::String(self.global.country.clone())),
42
- // "eventType" => Ok(Value::String(self.global.event_type.clone())),
43
- // "campaignId" => Ok(Value::String(self.global.campaign_id.clone())),
44
- // "campaignTotalSpent" => Ok(Value::String(self.global.campaign_total_spent.clone())),
45
38
"adSlotType" => Ok ( Value :: String ( self . global . ad_slot_type . clone ( ) ) ) ,
46
39
"publisherId" => Ok ( Value :: String ( self . global . publisher_id . to_checksum ( ) ) ) ,
47
40
"secondsSinceEpoch" => Ok ( Value :: Number ( self . global . seconds_since_epoch . into ( ) ) ) ,
@@ -99,17 +92,6 @@ impl Input {
99
92
100
93
Ok ( Value :: Number ( seconds. into ( ) ) )
101
94
}
102
- // "campaignBudget" => Ok(Value::BigNum(self.global.campaign_budget.clone())),
103
- // "depositAsset" => Ok(Value::String(self.global.deposit_asset.clone())),
104
- // "eventMinPrice" => Ok(Value::BigNum(self.global.event_min_price.clone())),
105
- // "eventMaxPrice" => Ok(Value::BigNum(self.global.event_max_price.clone())),
106
- // "publisherEarnedFromCampaign" => Ok(Value::BigNum(
107
- // self.global.publisher_earned_from_campaign.clone(),
108
- // )),
109
- // "secondsSinceEpoch" => Ok(Value::Number(self.global.seconds_since_epoch.into())),
110
- // "userAgentOS" => Ok(Value::String(self.global.user_agent_os.clone())),
111
- // "userAgentBrowserFamily" => {
112
- // Ok(Value::String(self.global.user_agent_browser_family.clone()))
113
95
"campaignBudget" => Ok ( Value :: BigNum ( self . global . channel . deposit_amount . clone ( ) ) ) ,
114
96
"eventMinPrice" => {
115
97
let min = get_pricing_bounds ( & self . global . channel , & self . global . event_type ) . min ;
@@ -198,18 +180,6 @@ pub struct Global {
198
180
pub publisher_id : ValidatorId ,
199
181
pub country : Option < String > ,
200
182
pub event_type : String ,
201
- // <<<<<<< HEAD
202
- // pub campaign_id: String,
203
- // pub campaign_total_spent: String,
204
- // pub campaign_seconds_active: u64,
205
- // pub campaign_seconds_duration: u64,
206
- // pub campaign_budget: BigNum,
207
- // pub deposit_asset: String,
208
- // pub event_min_price: BigNum,
209
- // pub event_max_price: BigNum,
210
- // pub publisher_earned_from_campaign: BigNum,
211
- // =======
212
- // >>>>>>> 1af13803ab7d990dc29f65a848c4fb8bc22a3368
213
183
pub seconds_since_epoch : u64 ,
214
184
pub user_agent_os : Option < String > ,
215
185
pub user_agent_browser_family : Option < String > ,
0 commit comments