Skip to content

Commit

Permalink
Update proto
Browse files Browse the repository at this point in the history
  • Loading branch information
macpie committed Jul 18, 2024
1 parent 64e7ba7 commit 58465ac
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions src/service/poc_mobile.proto
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ service poc_mobile {
rpc submit_sp_boosted_rewards_banned_radio(
service_provider_boosted_rewards_banned_radio_req_v1)
returns (service_provider_boosted_rewards_banned_radio_resp_v1);
rpc submit_subscriber_mapping_event(subscriber_mapping_event_req_v1)
returns (subscriber_mapping_event_res_v1);
rpc submit_subscriber_mapping_event(verified_subscriber_mapping_event_req_v1)
returns (verified_subscriber_mapping_event_res_v1);
}

message file_info {
Expand Down Expand Up @@ -667,26 +667,23 @@ verified_service_provider_boosted_rewards_banned_radio_ingest_report_v1 {
uint64 timestamp = 3;
}

message subscriber_mapping_event_req_v1 {
message verified_subscriber_mapping_event_req_v1 {
/// The id of the discovery mapping enabled subscriber
bytes subscriber_id = 1;
/// The accumulated mapping points the subscriber has earned this epoch
uint64 total_reward_points = 2;
/// Unix timestamp in seconds of when the mapping event was generated
uint64 timestamp = 3;
/// Pubkey of verification mapping event service
bytes pub_key = 6;
bytes verification_mapping_pubkey = 4;
/// Signed payload of the verification mapping event service
bytes signature = 7;
bytes signature = 5;
}

message subscriber_mapping_event_res_v1 { string id = 1; }
message verified_subscriber_mapping_event_res_v1 { string id = 1; }

message verified_subscriber_mapping_event_v1 {
/// The id of the discovery mapping enabled subscriber
bytes subscriber_id = 1;
/// The accumulated mapping points the subscriber has earned this epoch
uint64 total_reward_points = 2;
/// Unix timestamp in seconds of when the mapping event was generated
uint64 timestamp = 3;
message verified_subscriber_mapping_event_ingest_report_v1 {
// Timestamp in milliseconds since unix epoch
uint64 received_timestamp = 1;
verified_subscriber_mapping_event_req_v1 report = 2;
}

0 comments on commit 58465ac

Please sign in to comment.