github.com/igggame/nebulas-go@v2.1.0+incompatible/core/pb/access.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: access.proto 3 4 /* 5 Package corepb is a generated protocol buffer package. 6 7 It is generated from these files: 8 access.proto 9 10 It has these top-level messages: 11 Access 12 Whitelist 13 Blacklist 14 Contract 15 Nrc20List 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 Access struct { 35 // WhiteList of transactions, some of which are accepted only when conditions permit 36 Whitelist *Whitelist `protobuf:"bytes,1,opt,name=whitelist" json:"whitelist,omitempty"` 37 // Blacklists of transactions, some of which are not accepted on the blacklists 38 Blacklist *Blacklist `protobuf:"bytes,2,opt,name=blacklist" json:"blacklist,omitempty"` 39 // nrc20list of transactions, some of security check for this tx. 40 Nrc20List *Nrc20List `protobuf:"bytes,3,opt,name=nrc20list" json:"nrc20list,omitempty"` 41 } 42 43 func (m *Access) Reset() { *m = Access{} } 44 func (m *Access) String() string { return proto.CompactTextString(m) } 45 func (*Access) ProtoMessage() {} 46 func (*Access) Descriptor() ([]byte, []int) { return fileDescriptorAccess, []int{0} } 47 48 func (m *Access) GetWhitelist() *Whitelist { 49 if m != nil { 50 return m.Whitelist 51 } 52 return nil 53 } 54 55 func (m *Access) GetBlacklist() *Blacklist { 56 if m != nil { 57 return m.Blacklist 58 } 59 return nil 60 } 61 62 func (m *Access) GetNrc20List() *Nrc20List { 63 if m != nil { 64 return m.Nrc20List 65 } 66 return nil 67 } 68 69 type Whitelist struct { 70 // TODO(larry): later may change 71 NbrePublisher []string `protobuf:"bytes,1,rep,name=nbre_publisher,json=nbrePublisher" json:"nbre_publisher,omitempty"` 72 } 73 74 func (m *Whitelist) Reset() { *m = Whitelist{} } 75 func (m *Whitelist) String() string { return proto.CompactTextString(m) } 76 func (*Whitelist) ProtoMessage() {} 77 func (*Whitelist) Descriptor() ([]byte, []int) { return fileDescriptorAccess, []int{1} } 78 79 func (m *Whitelist) GetNbrePublisher() []string { 80 if m != nil { 81 return m.NbrePublisher 82 } 83 return nil 84 } 85 86 type Blacklist struct { 87 // Hex string of the transaction's from address. 88 From []string `protobuf:"bytes,1,rep,name=from" json:"from,omitempty"` 89 // Hex string of the transaction's to address. 90 To []string `protobuf:"bytes,2,rep,name=to" json:"to,omitempty"` 91 // contract access data 92 Contracts []*Contract `protobuf:"bytes,3,rep,name=contracts" json:"contracts,omitempty"` 93 } 94 95 func (m *Blacklist) Reset() { *m = Blacklist{} } 96 func (m *Blacklist) String() string { return proto.CompactTextString(m) } 97 func (*Blacklist) ProtoMessage() {} 98 func (*Blacklist) Descriptor() ([]byte, []int) { return fileDescriptorAccess, []int{2} } 99 100 func (m *Blacklist) GetFrom() []string { 101 if m != nil { 102 return m.From 103 } 104 return nil 105 } 106 107 func (m *Blacklist) GetTo() []string { 108 if m != nil { 109 return m.To 110 } 111 return nil 112 } 113 114 func (m *Blacklist) GetContracts() []*Contract { 115 if m != nil { 116 return m.Contracts 117 } 118 return nil 119 } 120 121 type Contract struct { 122 // Hex string of the call type transaction's to address. 123 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 124 // slice of call type transaction's function string. 125 Functions []string `protobuf:"bytes,2,rep,name=functions" json:"functions,omitempty"` 126 // slice of deploy type transaction's data keyword. 127 Keywords []string `protobuf:"bytes,3,rep,name=keywords" json:"keywords,omitempty"` 128 } 129 130 func (m *Contract) Reset() { *m = Contract{} } 131 func (m *Contract) String() string { return proto.CompactTextString(m) } 132 func (*Contract) ProtoMessage() {} 133 func (*Contract) Descriptor() ([]byte, []int) { return fileDescriptorAccess, []int{3} } 134 135 func (m *Contract) GetAddress() string { 136 if m != nil { 137 return m.Address 138 } 139 return "" 140 } 141 142 func (m *Contract) GetFunctions() []string { 143 if m != nil { 144 return m.Functions 145 } 146 return nil 147 } 148 149 func (m *Contract) GetKeywords() []string { 150 if m != nil { 151 return m.Keywords 152 } 153 return nil 154 } 155 156 type Nrc20List struct { 157 Contracts []string `protobuf:"bytes,1,rep,name=contracts" json:"contracts,omitempty"` 158 } 159 160 func (m *Nrc20List) Reset() { *m = Nrc20List{} } 161 func (m *Nrc20List) String() string { return proto.CompactTextString(m) } 162 func (*Nrc20List) ProtoMessage() {} 163 func (*Nrc20List) Descriptor() ([]byte, []int) { return fileDescriptorAccess, []int{4} } 164 165 func (m *Nrc20List) GetContracts() []string { 166 if m != nil { 167 return m.Contracts 168 } 169 return nil 170 } 171 172 func init() { 173 proto.RegisterType((*Access)(nil), "corepb.Access") 174 proto.RegisterType((*Whitelist)(nil), "corepb.Whitelist") 175 proto.RegisterType((*Blacklist)(nil), "corepb.Blacklist") 176 proto.RegisterType((*Contract)(nil), "corepb.Contract") 177 proto.RegisterType((*Nrc20List)(nil), "corepb.Nrc20list") 178 } 179 180 func init() { proto.RegisterFile("access.proto", fileDescriptorAccess) } 181 182 var fileDescriptorAccess = []byte{ 183 // 278 bytes of a gzipped FileDescriptorProto 184 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0x41, 0x4f, 0x84, 0x30, 185 0x10, 0x85, 0x03, 0x18, 0xdc, 0xce, 0xea, 0x46, 0xe7, 0x44, 0x8c, 0x07, 0x42, 0x62, 0x82, 0x17, 186 0x34, 0xf8, 0x0b, 0xd4, 0xbb, 0x31, 0xbd, 0x78, 0x73, 0x43, 0x4b, 0x37, 0x4b, 0x16, 0x5b, 0xd2, 187 0x76, 0xb3, 0xf1, 0xb7, 0xf8, 0x67, 0x0d, 0x85, 0xd2, 0xec, 0x8d, 0x79, 0xef, 0x7d, 0xbc, 0x61, 188 0x80, 0xab, 0x86, 0x73, 0x61, 0x4c, 0x35, 0x68, 0x65, 0x15, 0xa6, 0x5c, 0x69, 0x31, 0xb0, 0xe2, 189 0x2f, 0x82, 0xf4, 0xd5, 0x19, 0xf8, 0x04, 0xe4, 0xb4, 0xef, 0xac, 0xe8, 0x3b, 0x63, 0xb3, 0x28, 190 0x8f, 0xca, 0x75, 0x7d, 0x5b, 0x4d, 0xb1, 0xea, 0xcb, 0x1b, 0x34, 0x64, 0x46, 0x80, 0xf5, 0x0d, 191 0x3f, 0x38, 0x20, 0x3e, 0x07, 0xde, 0xbc, 0x41, 0x43, 0x66, 0x04, 0xa4, 0xe6, 0xf5, 0xb3, 0x03, 192 0x92, 0x73, 0xe0, 0xc3, 0x1b, 0x34, 0x64, 0x8a, 0x1a, 0xc8, 0xd2, 0x8c, 0x0f, 0xb0, 0x91, 0x4c, 193 0x8b, 0xed, 0x70, 0x64, 0x7d, 0x67, 0xf6, 0x42, 0x67, 0x51, 0x9e, 0x94, 0x84, 0x5e, 0x8f, 0xea, 194 0xa7, 0x17, 0x8b, 0x2d, 0x90, 0xa5, 0x1c, 0x11, 0x2e, 0x76, 0x5a, 0xfd, 0xcc, 0x49, 0xf7, 0x8c, 195 0x1b, 0x88, 0xad, 0xca, 0x62, 0xa7, 0xc4, 0x56, 0x61, 0x05, 0x84, 0x2b, 0x69, 0x75, 0xc3, 0xad, 196 0xc9, 0x92, 0x3c, 0x29, 0xd7, 0xf5, 0x8d, 0xdf, 0xea, 0x7d, 0x36, 0x68, 0x88, 0x14, 0xdf, 0xb0, 197 0xf2, 0x32, 0x66, 0x70, 0xd9, 0xb4, 0xad, 0x16, 0xc6, 0xb8, 0x8b, 0x11, 0xea, 0x47, 0xbc, 0x07, 198 0xb2, 0x3b, 0x4a, 0x6e, 0x3b, 0x25, 0xcd, 0x5c, 0x16, 0x04, 0xbc, 0x83, 0xd5, 0x41, 0xfc, 0x9e, 199 0x94, 0x6e, 0xa7, 0x4a, 0x42, 0x97, 0xb9, 0x78, 0x04, 0xb2, 0x1c, 0x63, 0x7c, 0x4d, 0x58, 0x6e, 200 0xfa, 0x8a, 0x20, 0xb0, 0xd4, 0xfd, 0xcc, 0x97, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdf, 0x64, 201 0x25, 0x1b, 0xdc, 0x01, 0x00, 0x00, 202 }