-
Notifications
You must be signed in to change notification settings - Fork 203
/
genesis.pb.go
174 lines (147 loc) · 6.46 KB
/
genesis.pb.go
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: genesis.proto
/*
Package corepb is a generated protocol buffer package.
It is generated from these files:
genesis.proto
It has these top-level messages:
Genesis
GenesisMeta
GenesisConsensus
GenesisConsensusDpos
GenesisTokenDistribution
*/
package corepb
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
type Genesis struct {
// genesis meta
Meta *GenesisMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"`
// genesis consensus config
Consensus *GenesisConsensus `protobuf:"bytes,2,opt,name=consensus" json:"consensus,omitempty"`
// genesis token distribution address
// map<string, string> token_distribution = 3;
TokenDistribution []*GenesisTokenDistribution `protobuf:"bytes,3,rep,name=token_distribution,json=tokenDistribution" json:"token_distribution,omitempty"`
}
func (m *Genesis) Reset() { *m = Genesis{} }
func (m *Genesis) String() string { return proto.CompactTextString(m) }
func (*Genesis) ProtoMessage() {}
func (*Genesis) Descriptor() ([]byte, []int) { return fileDescriptorGenesis, []int{0} }
func (m *Genesis) GetMeta() *GenesisMeta {
if m != nil {
return m.Meta
}
return nil
}
func (m *Genesis) GetConsensus() *GenesisConsensus {
if m != nil {
return m.Consensus
}
return nil
}
func (m *Genesis) GetTokenDistribution() []*GenesisTokenDistribution {
if m != nil {
return m.TokenDistribution
}
return nil
}
type GenesisMeta struct {
// ChainID.
ChainId uint32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}
func (m *GenesisMeta) Reset() { *m = GenesisMeta{} }
func (m *GenesisMeta) String() string { return proto.CompactTextString(m) }
func (*GenesisMeta) ProtoMessage() {}
func (*GenesisMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenesis, []int{1} }
func (m *GenesisMeta) GetChainId() uint32 {
if m != nil {
return m.ChainId
}
return 0
}
type GenesisConsensus struct {
// ChainID.
Dpos *GenesisConsensusDpos `protobuf:"bytes,1,opt,name=dpos" json:"dpos,omitempty"`
}
func (m *GenesisConsensus) Reset() { *m = GenesisConsensus{} }
func (m *GenesisConsensus) String() string { return proto.CompactTextString(m) }
func (*GenesisConsensus) ProtoMessage() {}
func (*GenesisConsensus) Descriptor() ([]byte, []int) { return fileDescriptorGenesis, []int{2} }
func (m *GenesisConsensus) GetDpos() *GenesisConsensusDpos {
if m != nil {
return m.Dpos
}
return nil
}
type GenesisConsensusDpos struct {
// dpos genesis dynasty address
Dynasty []string `protobuf:"bytes,1,rep,name=dynasty" json:"dynasty,omitempty"`
}
func (m *GenesisConsensusDpos) Reset() { *m = GenesisConsensusDpos{} }
func (m *GenesisConsensusDpos) String() string { return proto.CompactTextString(m) }
func (*GenesisConsensusDpos) ProtoMessage() {}
func (*GenesisConsensusDpos) Descriptor() ([]byte, []int) { return fileDescriptorGenesis, []int{3} }
func (m *GenesisConsensusDpos) GetDynasty() []string {
if m != nil {
return m.Dynasty
}
return nil
}
type GenesisTokenDistribution struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}
func (m *GenesisTokenDistribution) Reset() { *m = GenesisTokenDistribution{} }
func (m *GenesisTokenDistribution) String() string { return proto.CompactTextString(m) }
func (*GenesisTokenDistribution) ProtoMessage() {}
func (*GenesisTokenDistribution) Descriptor() ([]byte, []int) { return fileDescriptorGenesis, []int{4} }
func (m *GenesisTokenDistribution) GetAddress() string {
if m != nil {
return m.Address
}
return ""
}
func (m *GenesisTokenDistribution) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func init() {
proto.RegisterType((*Genesis)(nil), "corepb.Genesis")
proto.RegisterType((*GenesisMeta)(nil), "corepb.GenesisMeta")
proto.RegisterType((*GenesisConsensus)(nil), "corepb.GenesisConsensus")
proto.RegisterType((*GenesisConsensusDpos)(nil), "corepb.GenesisConsensusDpos")
proto.RegisterType((*GenesisTokenDistribution)(nil), "corepb.GenesisTokenDistribution")
}
func init() { proto.RegisterFile("genesis.proto", fileDescriptorGenesis) }
var fileDescriptorGenesis = []byte{
// 264 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x51, 0x4b, 0xc3, 0x30,
0x14, 0x85, 0xa9, 0x9d, 0xab, 0xbd, 0x65, 0xa0, 0x71, 0x0f, 0x11, 0x7c, 0x28, 0x79, 0xb1, 0x4f,
0x65, 0x4c, 0xf0, 0x0f, 0x58, 0x10, 0x05, 0x11, 0x82, 0xef, 0x23, 0x6d, 0x2e, 0x1a, 0xd4, 0xa4,
0xf4, 0xa6, 0xc2, 0x7e, 0x9b, 0x7f, 0x4e, 0x96, 0xae, 0x38, 0x8a, 0x7b, 0x3c, 0x39, 0x5f, 0x2e,
0xe7, 0xdc, 0x0b, 0x8b, 0x37, 0xb4, 0x48, 0x86, 0xca, 0xb6, 0x73, 0xde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