github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/rewarding/rewardingpb/rewarding.proto (about)

     1  // Copyright (c) 2019 IoTeX
     2  // This source code is provided 'as is' and no warranties are given as to title or non-infringement, merchantability
     3  // or fitness for purpose and, to the extent permitted by law, all liability for your use of the code is disclaimed.
     4  // This source code is governed by Apache License 2.0 that can be found in the LICENSE file.
     5  
     6  // To compile the proto, run:
     7  //      protoc --go_out=plugins=grpc:. *.proto
     8  syntax = "proto3";
     9  package rewardingpb;
    10  
    11  message Admin {
    12      string blockReward = 1;
    13      string epochReward = 2;
    14      uint64 numDelegatesForEpochReward = 3;
    15      string foundationBonus = 4;
    16      uint64 numDelegatesForFoundationBonus = 5;
    17      uint64 foundationBonusLastEpoch = 6;
    18      uint64 productivityThreshold = 7;
    19  }
    20  
    21  message Fund {
    22      string totalBalance = 1;
    23      string unclaimedBalance = 2;
    24  }
    25  
    26  message RewardHistory {
    27  }
    28  
    29  message Account {
    30      string balance = 1;
    31  }
    32  
    33  message Exempt {
    34      repeated bytes addrs = 1;
    35  }
    36  
    37  message RewardLog {
    38      enum RewardType {
    39          BLOCK_REWARD = 0;
    40          EPOCH_REWARD = 1;
    41          FOUNDATION_BONUS= 2;
    42      }
    43      RewardType type = 1;
    44      string addr = 2;
    45      string amount = 3;
    46  }