Skip to content

Commit

Permalink
add settlement status to data transfer session
Browse files Browse the repository at this point in the history
marking wether the transfer session can have it's DC burned immediately,
or needs to wait for manual intervention and settlement.
  • Loading branch information
michaeldjeffrey committed Aug 27, 2024
1 parent 0bc1587 commit ab41ba7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 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 @@ -801,4 +809,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;
}
}

0 comments on commit ab41ba7

Please sign in to comment.