github.com/igggame/nebulas-go@v2.1.0+incompatible/core/pb/genesis.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: genesis.proto 3 4 /* 5 Package corepb is a generated protocol buffer package. 6 7 It is generated from these files: 8 genesis.proto 9 10 It has these top-level messages: 11 Genesis 12 GenesisMeta 13 GenesisConsensus 14 GenesisConsensusDpos 15 GenesisTokenDistribution 16 */ 17 package corepb 18 19 import proto "github.com/gogo/protobuf/proto" 20 import fmt "fmt" 21 import math "math" 22 23 // Reference imports to suppress errors if they are not otherwise used. 24 var _ = proto.Marshal 25 var _ = fmt.Errorf 26 var _ = math.Inf 27 28 // This is a compile-time assertion to ensure that this generated file 29 // is compatible with the proto package it is being compiled against. 30 // A compilation error at this line likely means your copy of the 31 // proto package needs to be updated. 32 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 33 34 type Genesis struct { 35 // genesis meta 36 Meta *GenesisMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` 37 // genesis consensus config 38 Consensus *GenesisConsensus `protobuf:"bytes,2,opt,name=consensus" json:"consensus,omitempty"` 39 // genesis token distribution address 40 // map<string, string> token_distribution = 3; 41 TokenDistribution []*GenesisTokenDistribution `protobuf:"bytes,3,rep,name=token_distribution,json=tokenDistribution" json:"token_distribution,omitempty"` 42 } 43 44 func (m *Genesis) Reset() { *m = Genesis{} } 45 func (m *Genesis) String() string { return proto.CompactTextString(m) } 46 func (*Genesis) ProtoMessage() {} 47 func (*Genesis) Descriptor() ([]byte, []int) { return fileDescriptorGenesis, []int{0} } 48 49 func (m *Genesis) GetMeta() *GenesisMeta { 50 if m != nil { 51 return m.Meta 52 } 53 return nil 54 } 55 56 func (m *Genesis) GetConsensus() *GenesisConsensus { 57 if m != nil { 58 return m.Consensus 59 } 60 return nil 61 } 62 63 func (m *Genesis) GetTokenDistribution() []*GenesisTokenDistribution { 64 if m != nil { 65 return m.TokenDistribution 66 } 67 return nil 68 } 69 70 type GenesisMeta struct { 71 // ChainID. 72 ChainId uint32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` 73 } 74 75 func (m *GenesisMeta) Reset() { *m = GenesisMeta{} } 76 func (m *GenesisMeta) String() string { return proto.CompactTextString(m) } 77 func (*GenesisMeta) ProtoMessage() {} 78 func (*GenesisMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenesis, []int{1} } 79 80 func (m *GenesisMeta) GetChainId() uint32 { 81 if m != nil { 82 return m.ChainId 83 } 84 return 0 85 } 86 87 type GenesisConsensus struct { 88 // ChainID. 89 Dpos *GenesisConsensusDpos `protobuf:"bytes,1,opt,name=dpos" json:"dpos,omitempty"` 90 } 91 92 func (m *GenesisConsensus) Reset() { *m = GenesisConsensus{} } 93 func (m *GenesisConsensus) String() string { return proto.CompactTextString(m) } 94 func (*GenesisConsensus) ProtoMessage() {} 95 func (*GenesisConsensus) Descriptor() ([]byte, []int) { return fileDescriptorGenesis, []int{2} } 96 97 func (m *GenesisConsensus) GetDpos() *GenesisConsensusDpos { 98 if m != nil { 99 return m.Dpos 100 } 101 return nil 102 } 103 104 type GenesisConsensusDpos struct { 105 // dpos genesis dynasty address 106 Dynasty []string `protobuf:"bytes,1,rep,name=dynasty" json:"dynasty,omitempty"` 107 } 108 109 func (m *GenesisConsensusDpos) Reset() { *m = GenesisConsensusDpos{} } 110 func (m *GenesisConsensusDpos) String() string { return proto.CompactTextString(m) } 111 func (*GenesisConsensusDpos) ProtoMessage() {} 112 func (*GenesisConsensusDpos) Descriptor() ([]byte, []int) { return fileDescriptorGenesis, []int{3} } 113 114 func (m *GenesisConsensusDpos) GetDynasty() []string { 115 if m != nil { 116 return m.Dynasty 117 } 118 return nil 119 } 120 121 type GenesisTokenDistribution struct { 122 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 123 Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 124 } 125 126 func (m *GenesisTokenDistribution) Reset() { *m = GenesisTokenDistribution{} } 127 func (m *GenesisTokenDistribution) String() string { return proto.CompactTextString(m) } 128 func (*GenesisTokenDistribution) ProtoMessage() {} 129 func (*GenesisTokenDistribution) Descriptor() ([]byte, []int) { return fileDescriptorGenesis, []int{4} } 130 131 func (m *GenesisTokenDistribution) GetAddress() string { 132 if m != nil { 133 return m.Address 134 } 135 return "" 136 } 137 138 func (m *GenesisTokenDistribution) GetValue() string { 139 if m != nil { 140 return m.Value 141 } 142 return "" 143 } 144 145 func init() { 146 proto.RegisterType((*Genesis)(nil), "corepb.Genesis") 147 proto.RegisterType((*GenesisMeta)(nil), "corepb.GenesisMeta") 148 proto.RegisterType((*GenesisConsensus)(nil), "corepb.GenesisConsensus") 149 proto.RegisterType((*GenesisConsensusDpos)(nil), "corepb.GenesisConsensusDpos") 150 proto.RegisterType((*GenesisTokenDistribution)(nil), "corepb.GenesisTokenDistribution") 151 } 152 153 func init() { proto.RegisterFile("genesis.proto", fileDescriptorGenesis) } 154 155 var fileDescriptorGenesis = []byte{ 156 // 264 bytes of a gzipped FileDescriptorProto 157 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x51, 0x4b, 0xc3, 0x30, 158 0x14, 0x85, 0xa9, 0x9d, 0xab, 0xbd, 0x65, 0xa0, 0x71, 0x0f, 0x11, 0x7c, 0x28, 0x79, 0xb1, 0x4f, 159 0x65, 0x4c, 0xf0, 0x0f, 0x58, 0x10, 0x05, 0x11, 0x82, 0xef, 0x23, 0x6d, 0x2e, 0x1a, 0xd4, 0xa4, 160 0xf4, 0xa6, 0xc2, 0x7e, 0x9b, 0x7f, 0x4e, 0x96, 0xae, 0x38, 0x8a, 0x7b, 0x3c, 0x39, 0x5f, 0x2e, 161 0xe7, 0xdc, 0x0b, 0x8b, 0x37, 0xb4, 0x48, 0x86, 0xca, 0xb6, 0x73, 0xde, 0xb1, 0x79, 0xe3, 0x3a, 162 0x6c, 0x6b, 0xf1, 0x13, 0x41, 0xf2, 0x30, 0x38, 0xec, 0x06, 0x66, 0x5f, 0xe8, 0x15, 0x8f, 0xf2, 163 0xa8, 0xc8, 0xd6, 0x97, 0xe5, 0x80, 0x94, 0x7b, 0xfb, 0x19, 0xbd, 0x92, 0x01, 0x60, 0x77, 0x90, 164 0x36, 0xce, 0x12, 0x5a, 0xea, 0x89, 0x9f, 0x04, 0x9a, 0x4f, 0xe8, 0xfb, 0xd1, 0x97, 0x7f, 0x28, 165 0x7b, 0x01, 0xe6, 0xdd, 0x07, 0xda, 0x8d, 0x36, 0xe4, 0x3b, 0x53, 0xf7, 0xde, 0x38, 0xcb, 0xe3, 166 0x3c, 0x2e, 0xb2, 0x75, 0x3e, 0x19, 0xf0, 0xba, 0x03, 0xab, 0x03, 0x4e, 0x5e, 0xf8, 0xe9, 0x93, 167 0x28, 0x20, 0x3b, 0x48, 0xc7, 0xae, 0xe0, 0xac, 0x79, 0x57, 0xc6, 0x6e, 0x8c, 0x0e, 0x25, 0x16, 168 0x32, 0x09, 0xfa, 0x51, 0x8b, 0x0a, 0xce, 0xa7, 0xc9, 0xd8, 0x0a, 0x66, 0xba, 0x75, 0xb4, 0xef, 169 0x7b, 0x7d, 0xac, 0x41, 0xd5, 0x3a, 0x92, 0x81, 0x14, 0x2b, 0x58, 0xfe, 0xe7, 0x32, 0x0e, 0x89, 170 0xde, 0x5a, 0x45, 0x7e, 0xcb, 0xa3, 0x3c, 0x2e, 0x52, 0x39, 0x4a, 0xf1, 0x04, 0xfc, 0x58, 0xa1, 171 0xdd, 0x2f, 0xa5, 0x75, 0x87, 0x34, 0x44, 0x48, 0xe5, 0x28, 0xd9, 0x12, 0x4e, 0xbf, 0xd5, 0x67, 172 0x8f, 0x61, 0xb9, 0xa9, 0x1c, 0x44, 0x3d, 0x0f, 0xa7, 0xbb, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, 173 0xbe, 0xf4, 0x0e, 0x3f, 0xcb, 0x01, 0x00, 0x00, 174 }