github.com/igggame/nebulas-go@v2.1.0+incompatible/core/pb/genesis.proto (about)

     1  // Copyright (C) 2017 go-nebulas authors
     2  //
     3  // This file is part of the go-nebulas library.
     4  //
     5  // the go-nebulas library is free software: you can redistribute it and/or modify
     6  // it under the terms of the GNU General Public License as published by
     7  // the Free Software Foundation, either version 3 of the License, or
     8  // (at your option) any later version.
     9  //
    10  // the go-nebulas library is distributed in the hope that it will be useful,
    11  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    12  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13  // GNU General Public License for more details.
    14  //
    15  // You should have received a copy of the GNU General Public License
    16  // along with the go-nebulas library.  If not, see <http://www.gnu.org/licenses/>.
    17  //
    18  syntax = "proto3";
    19  package corepb;
    20  
    21  message Genesis {
    22      // genesis meta
    23      GenesisMeta meta = 1;
    24  
    25      // genesis consensus config
    26      GenesisConsensus consensus = 2;
    27  
    28      // genesis token distribution address
    29      //map<string, string> token_distribution = 3;
    30      repeated GenesisTokenDistribution token_distribution = 3;
    31  }
    32  
    33  message GenesisMeta {
    34      // ChainID.
    35      uint32 chain_id = 1;
    36  }
    37  
    38  message GenesisConsensus {
    39      // ChainID.
    40      GenesisConsensusDpos dpos = 1;
    41  }
    42  
    43  message GenesisConsensusDpos {
    44      // dpos genesis dynasty address
    45      repeated string dynasty = 1;
    46  }
    47  
    48  message GenesisTokenDistribution {
    49      string address = 1;
    50      string value = 2;
    51  }