Skip to content

Commit

Permalink
Add oracle boosting report (#392)
Browse files Browse the repository at this point in the history
* Add oracle boosting report

* rename uuid to coverage_object

* Assignment, multiplier, and timestamp

* Address criticisms

* Fmt

* Change assignment from vec to 3 fields with 2 oneofs

* Maybe this is better, idk

* revert

* Maybe this?

* Nope

* Get rid of footfall and landtype
  • Loading branch information
Matthew Plant authored Mar 1, 2024
1 parent 94757fd commit 9605fd4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/service/poc_mobile.proto
Original file line number Diff line number Diff line change
Expand Up @@ -489,3 +489,28 @@ message invalid_data_transfer_ingest_report_v1 {
// epoch
uint64 timestamp = 3;
}

message oracle_boosting_report_v1 {
// UUID of the coverage object for the given hex
bytes coverage_object = 1;
// Assignments of the hexes
repeated oracle_boosting_hex_assignment assignments = 2;
// Timestamp of when the oracle boosting report was made in seconds since the
// epoch
uint64 timestamp = 3;
}

message oracle_boosting_hex_assignment {
enum assignment {
a = 0;
b = 1;
c = 2;
}
// H3 resolution 12 hex tile
string location = 1;
// Multiplier derived from the assignment, value is 0.0 to 1.0 multiplied by
// 1000
uint32 assignment_multiplier = 2;
// Urbanized assignment
assignment urbanized = 3;
}

0 comments on commit 9605fd4

Please sign in to comment.