Skip to content

Commit

Permalink
Add rewarded token type enum to {subdao}_reward_data in reward manifest
Browse files Browse the repository at this point in the history
Two enum are needed so the default value for each reward_data type can be the corresponding subdao token for historical files that do not have these fields.

Ref: HIP-138 https://github.com/helium/HIP/blob/main/0138-return-to-hnt.md

Rewards will no longer be output in subdao tokens, only HNT.
  • Loading branch information
michaeldjeffrey committed Jan 3, 2025
1 parent 4085e00 commit b4e4bba
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/reward_manifest.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@ package helium;
import "decimal.proto";
import "service_provider.proto";

enum mobile_reward_token {
mobile_reward_token_mobile = 0;
mobile_reward_token_hnt = 1;
}

message mobile_reward_data {
Decimal poc_bones_per_reward_share = 1;
Decimal boosted_poc_bones_per_reward_share = 2;
repeated service_provider_promotions service_provider_promotions = 3;
// HIP-138: Reward output was changed from Subdao Tokens to HNT
mobile_reward_token token = 4;
}

message service_provider_promotions {
Expand All @@ -30,10 +37,17 @@ message service_provider_promotions {
repeated promotion promotions = 3;
}

enum iot_reward_token {
iot_reward_token_iot = 0;
iot_reward_token_hnt = 1;
}

message iot_reward_data {
Decimal poc_bones_per_beacon_reward_share = 1;
Decimal poc_bones_per_witness_reward_share = 2;
Decimal dc_bones_per_share = 3;
// HIP-138: Reward output was changed from Subdao Tokens to HNT
iot_reward_token token = 4;
}

message reward_manifest {
Expand Down

0 comments on commit b4e4bba

Please sign in to comment.