/
genesis.proto
59 lines (52 loc) · 1.75 KB
/
genesis.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Copyright (c) 2019 IoTeX
// This is an alpha (internal) release and is not suitable for production. This source code is provided 'as is' and no
// warranties are given as to title or non-infringement, merchantability or fitness for purpose and, to the extent
// permitted by law, all liability for your use of the code is disclaimed. This source code is governed by Apache
// License 2.0 that can be found in the LICENSE file.
// To compile the proto, run:
// protoc --go_out=plugins=grpc:$GOPATH/src *.proto
syntax = "proto3";
package iotextypes;
option go_package = "github.com/iotexproject/iotex-core/protogen/iotextypes";
message Genesis {
GenesisBlockchain blockchain = 1;
GenesisAccount account = 2;
GenesisPoll poll = 3;
GenesisRewarding rewarding = 4;
}
message GenesisBlockchain {
int64 timestamp = 1;
uint64 blockGasLimit = 2;
uint64 actionGasLimit = 3;
int64 blockInterval = 4;
uint64 numSubEpochs = 5;
uint64 numDelegates = 6;
uint64 numCandidateDelegates = 7;
bool timeBasedRotation = 8;
}
message GenesisAccount {
repeated string initBalanceAddrs = 1;
repeated string initBalances = 2;
}
message GenesisPoll {
bool enableGravityChainVoting = 1;
uint64 gravityChainStartHeight = 2;
string registerContractAddress = 3;
string stakingContractAddress = 4;
string voteThreshold = 5;
string scoreThreshold = 6;
string selfStakingThreshold = 7;
repeated GenesisDelegate delegates = 8;
}
message GenesisDelegate {
string operatorAddr = 1;
string rewardAddr = 2;
string votes = 3;
}
message GenesisRewarding {
string initAdminAddr = 1;
string initBalance = 2;
string blockReward = 3;
string epochReward = 4;
uint64 numDelegatesForEpochReward = 5;
}