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 boosted_hex_device_type_v1 for HIP-109 #401

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
10 changes: 10 additions & 0 deletions src/hex_boosting.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ syntax = "proto3";

package helium;

enum boosted_hex_device_type_v1 {
all = 0;
cbrs_indoor = 1;
cbrs_outdoor = 2;
wifi_indoor = 3;
wifi_outdoor = 4;
}

message boosted_hex_info_v1 {
// The res12 h3 index of the boosted hex
uint64 location = 1;
Expand All @@ -23,6 +31,8 @@ message boosted_hex_info_v1 {
bytes boost_config_pubkey = 7;

uint32 version = 8;
// The device type(s) this boost applies to.
boosted_hex_device_type_v1 device_type = 9;
}

message boosted_hex_update_v1 {
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ pub use prost::{DecodeError, EncodeError, Message};
#[cfg(feature = "services")]
pub mod services {
use crate::{
BlockchainRegionParamsV1, BlockchainTokenTypeV1, BlockchainTxn, BoostedHexInfoV1, DataRate,
Decimal, EntropyReportV1, GatewayStakingMode, MapperAttach, Region, RoutingAddress,
ServiceProvider,
BlockchainRegionParamsV1, BlockchainTokenTypeV1, BlockchainTxn, BoostedHexDeviceTypeV1,
BoostedHexInfoV1, BoostedHexUpdateV1, DataRate, Decimal, EntropyReportV1,
GatewayStakingMode, MapperAttach, Region, RoutingAddress, ServiceProvider,
};

pub mod iot_config {
Expand Down
Loading