Skip to content

Commit 5686762

Browse files
unify subscriber mapping rewardable activity submissions (#443)
add downstream reports reuse existing enum changed to include both disco and verification mapping shares in single message change to return type for subscriber mapping activity
1 parent ad23699 commit 5686762

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

src/service/poc_mobile.proto

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ service poc_mobile {
392392
returns (radio_usage_stats_res_v1);
393393
rpc submit_unique_connections(unique_connections_req_v1)
394394
returns (unique_connections_resp_v1);
395+
rpc submit_subscriber_mapping_activity(subscriber_mapping_activity_req_v1)
396+
returns (subscriber_mapping_activity_res_v1);
395397
}
396398

397399
message unique_connections_req_v1 {
@@ -985,3 +987,39 @@ message verified_subscriber_verified_mapping_event_ingest_report_v1 {
985987
// Timestamp in milliseconds since unix epoch
986988
uint64 timestamp = 3;
987989
}
990+
991+
message subscriber_mapping_activity_req_v1 {
992+
/// The id of the mapping subscriber
993+
bytes subscriber_id = 1;
994+
/// The discovery mapping shares the subscriber has earned this epoch
995+
uint64 discovery_reward_shares = 2;
996+
/// The verification mapping shares the subscriber has earned this epoch
997+
uint64 verification_reward_shares = 3;
998+
/// Unix timestamp in milliseconds of when the mapping activity
999+
/// request was generated
1000+
uint64 timestamp = 6;
1001+
/// Pubkey of mapping event service
1002+
bytes carrier_pub_key = 7;
1003+
/// Signed payload of the mapping activity request
1004+
bytes signature = 8;
1005+
}
1006+
1007+
message subscriber_mapping_activity_res_v1 {
1008+
// timestamp in milliseconds
1009+
uint64 timestamp = 1;
1010+
}
1011+
1012+
message subscriber_mapping_activity_ingest_report_v1 {
1013+
// Timestamp in milliseconds since unix epoch
1014+
uint64 received_timestamp = 1;
1015+
subscriber_mapping_activity_req_v1 report = 2;
1016+
}
1017+
1018+
message verified_subscriber_mapping_activity_report_v1 {
1019+
/// the verified report
1020+
subscriber_mapping_activity_ingest_report_v1 report = 1;
1021+
/// the status determined by report verification
1022+
subscriber_report_verification_status status = 2;
1023+
/// Timestamp in milliseconds of the verification
1024+
uint64 timestamp = 3;
1025+
}

0 commit comments

Comments
 (0)