github.com/turingchain2020/turingchain@v1.1.21/types/proto/statistic.proto (about)

     1  syntax = "proto3";
     2  
     3  package types;
     4  option go_package = "github.com/turingchain2020/turingchain/types";
     5  
     6  //手续费
     7  message TotalFee {
     8      int64 fee     = 1;
     9      int64 txCount = 2;
    10  }
    11  
    12  //查询symbol代币总额
    13  message ReqGetTotalCoins {
    14      string symbol    = 1;
    15      bytes  stateHash = 2;
    16      bytes  startKey  = 3;
    17      int64  count     = 4;
    18      string execer    = 5;
    19  }
    20  
    21  //查询symbol代币总额应答
    22  message ReplyGetTotalCoins {
    23      int64 count   = 1;
    24      int64 num     = 2;
    25      int64 amount  = 3;
    26      bytes nextKey = 4;
    27  }
    28  
    29  //迭代查询symbol代币总额
    30  message IterateRangeByStateHash {
    31      bytes stateHash = 1;
    32      bytes start     = 2;
    33      bytes end       = 3;
    34      int64 count     = 4;
    35  }
    36  
    37  message TotalAmount {
    38      // 统计的总数
    39      int64 total = 1;
    40  }
    41  
    42  //查询symbol在合约中的代币总额,如果execAddr为空,则为查询symbol在所有合约中的代币总额
    43  message ReqGetExecBalance {
    44      string symbol    = 1;
    45      bytes  stateHash = 2;
    46      bytes  addr      = 3;
    47      bytes  execAddr  = 4;
    48      string execer    = 5;
    49      int64  count     = 6;
    50      bytes  nextKey   = 7;
    51  }
    52  
    53  message ExecBalanceItem {
    54      bytes execAddr = 1;
    55      int64 frozen   = 2;
    56      int64 active   = 3;
    57  }
    58  
    59  //查询symbol在合约中的代币总额应答
    60  message ReplyGetExecBalance {
    61      int64    amount                = 1;
    62      int64    amountFrozen          = 2;
    63      int64    amountActive          = 3;
    64      bytes    nextKey               = 4;
    65      repeated ExecBalanceItem items = 5;
    66  }