Skip to content

Commit

Permalink
Prune legacy code
Browse files Browse the repository at this point in the history
  • Loading branch information
bryzettler committed Dec 6, 2024
1 parent 1250d4d commit 0d86e81
Showing 1 changed file with 3 additions and 72 deletions.
75 changes: 3 additions & 72 deletions src/service/iot_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ message org_v1 {
string escrow_key = 3;
// List of keys allowed some specific actions, see services.
repeated bytes delegate_keys = 4;
// Is org approved on chain
bool approved = 5;
// Is org locked because of no payment
bool locked = 5;
bool locked = 6;
}

// Device address range, ex: 16#00000001 to 16#0000000A
Expand Down Expand Up @@ -149,69 +151,6 @@ message org_list_res_v1 {

message org_get_req_v1 { uint64 oui = 1; }

message org_create_helium_req_v1 {
enum helium_net_id {
type0_0x00003c = 0;
type3_0x60002d = 1;
type6_0xc00053 = 2;
}

bytes owner = 1;
string escrow_key = 2;
// Number of device address needed
// Even number required, minimum of 8
uint64 devaddrs = 3;
// in milliseconds since unix epoch
uint64 timestamp = 4;
bytes signature = 5;
repeated bytes delegate_keys = 6;
// pubkey binary of the signing keypair
bytes signer = 7;
helium_net_id net_id = 8;
}

message org_create_roamer_req_v1 {
bytes owner = 1;
string escrow_key = 2;
uint32 net_id = 3;
// in milliseconds since unix epoch
uint64 timestamp = 4;
bytes signature = 5;
repeated bytes delegate_keys = 6;
// pubkey binary of the signing keypair
bytes signer = 7;
}

message org_update_req_v1 {
message delegate_key_update_v1 {
bytes delegate_key = 1;
action_v1 action = 2;
}

message devaddr_constraint_update_v1 {
devaddr_constraint_v1 constraint = 1;
action_v1 action = 2;
}

message update_v1 {
oneof update {
bytes owner = 1;
string escrow_key = 2;
delegate_key_update_v1 delegate_key = 3;
// count of devaddrs to add, in even numbers
uint64 devaddrs = 4;
// devaddr constraints to explicitly add or remove
devaddr_constraint_update_v1 constraint = 5;
}
}

uint64 oui = 1;
repeated update_v1 updates = 2;
uint64 timestamp = 3;
bytes signer = 4;
bytes signature = 5;
}

message org_res_v1 {
org_v1 org = 1;
uint32 net_id = 2;
Expand Down Expand Up @@ -648,14 +587,6 @@ service org {
rpc list(org_list_req_v1) returns (org_list_res_v1);
// Get Org (no auth)
rpc get(org_get_req_v1) returns (org_res_v1);
// Create Org on Helium Network (auth admin only)
rpc create_helium(org_create_helium_req_v1) returns (org_res_v1);
// Create Org on any network (auth admin only)
rpc create_roamer(org_create_roamer_req_v1) returns (org_res_v1);
// Update any Org (Helium or Roaming)
// Modify escrow_key and add/remove delegate keys (owner/admin)
// Modify owner and add/remove devaddr constraints (auth admin only)
rpc update(org_update_req_v1) returns (org_res_v1);
// Disable an org, this sends a stream route delete update to HPR
// for all associated routes (auth admin only)
rpc disable(org_disable_req_v1) returns (org_disable_res_v1);
Expand Down

0 comments on commit 0d86e81

Please sign in to comment.