From f7b68c095f86afdf904f6a38db8af03af99c9a86 Mon Sep 17 00:00:00 2001 From: Michael Jeffrey Date: Fri, 3 Jan 2025 11:43:19 -0700 Subject: [PATCH] Add rewarded token type enum to {subdao}_reward_data in reward manifest 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. --- src/reward_manifest.proto | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/reward_manifest.proto b/src/reward_manifest.proto index 2f56a821..c093496b 100644 --- a/src/reward_manifest.proto +++ b/src/reward_manifest.proto @@ -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 { @@ -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 {