Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add settlement status to data transfer session #415

Merged
merged 4 commits into from
Aug 29, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion src/service/poc_mobile.proto
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,13 @@ enum cell_type {
nova_generic_wifi_outdoor = 7;
}

enum data_transfer_session_settlement_status {
// The Session is able to be burned immediately
settled = 0;
// The Session is pending settlement, do not burn
pending = 1;
}

message data_transfer_session_req_v1 {
/// data_transfer_event represents traffic usage happening on a hotspot
/// it is traffic quota or timer based
Expand All @@ -643,6 +650,7 @@ message data_transfer_session_req_v1 {
bytes pub_key = 3;
bytes signature = 4;
uint64 rewardable_bytes = 5;
data_transfer_session_settlement_status status = 6;
}

message data_transfer_event {
Expand Down Expand Up @@ -692,6 +700,24 @@ message invalid_data_transfer_ingest_report_v1 {
uint64 timestamp = 3;
}

message pending_data_transfer_session_v1 {
// Public Key of the Hotspot
bytes pub_key = 1;
michaeldjeffrey marked this conversation as resolved.
Show resolved Hide resolved
// Public Key of the Payer
bytes payer = 2;

uint64 upload_bytes = 3;
uint64 download_bytes = 4;
uint64 rewardable_bytes = 5;

// Timestamp in seconds since the epoch
// From the DataTransferEvent
uint64 event_timestamp = 6;
// Timestamp in milliseconds since the epoch
// From the file the transfer session was processed
uint64 received_timestamp = 7;
michaeldjeffrey marked this conversation as resolved.
Show resolved Hide resolved
}

message oracle_boosting_report_v1 {
// UUID of the coverage object for the given hex
bytes coverage_object = 1;
Expand Down Expand Up @@ -801,4 +827,4 @@ message verified_subscriber_verified_mapping_event_ingest_report_v1 {
subscriber_verified_mapping_event_verification_status status = 2;
// Timestamp in milliseconds since unix epoch
uint64 timestamp = 3;
}
}
Loading