github.com/Finschia/finschia-sdk@v0.48.1/x/bank/types/bank.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: cosmos/bank/v1beta1/bank.proto 3 4 package types 5 6 import ( 7 fmt "fmt" 8 github_com_Finschia_finschia_sdk_types "github.com/Finschia/finschia-sdk/types" 9 types "github.com/Finschia/finschia-sdk/types" 10 _ "github.com/gogo/protobuf/gogoproto" 11 proto "github.com/gogo/protobuf/proto" 12 _ "github.com/regen-network/cosmos-proto" 13 io "io" 14 math "math" 15 math_bits "math/bits" 16 ) 17 18 // Reference imports to suppress errors if they are not otherwise used. 19 var _ = proto.Marshal 20 var _ = fmt.Errorf 21 var _ = math.Inf 22 23 // This is a compile-time assertion to ensure that this generated file 24 // is compatible with the proto package it is being compiled against. 25 // A compilation error at this line likely means your copy of the 26 // proto package needs to be updated. 27 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 28 29 // Params defines the parameters for the bank module. 30 type Params struct { 31 SendEnabled []*SendEnabled `protobuf:"bytes,1,rep,name=send_enabled,json=sendEnabled,proto3" json:"send_enabled,omitempty" yaml:"send_enabled,omitempty"` 32 DefaultSendEnabled bool `protobuf:"varint,2,opt,name=default_send_enabled,json=defaultSendEnabled,proto3" json:"default_send_enabled,omitempty" yaml:"default_send_enabled,omitempty"` 33 } 34 35 func (m *Params) Reset() { *m = Params{} } 36 func (*Params) ProtoMessage() {} 37 func (*Params) Descriptor() ([]byte, []int) { 38 return fileDescriptor_dd052eee12edf988, []int{0} 39 } 40 func (m *Params) XXX_Unmarshal(b []byte) error { 41 return m.Unmarshal(b) 42 } 43 func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 44 if deterministic { 45 return xxx_messageInfo_Params.Marshal(b, m, deterministic) 46 } else { 47 b = b[:cap(b)] 48 n, err := m.MarshalToSizedBuffer(b) 49 if err != nil { 50 return nil, err 51 } 52 return b[:n], nil 53 } 54 } 55 func (m *Params) XXX_Merge(src proto.Message) { 56 xxx_messageInfo_Params.Merge(m, src) 57 } 58 func (m *Params) XXX_Size() int { 59 return m.Size() 60 } 61 func (m *Params) XXX_DiscardUnknown() { 62 xxx_messageInfo_Params.DiscardUnknown(m) 63 } 64 65 var xxx_messageInfo_Params proto.InternalMessageInfo 66 67 func (m *Params) GetSendEnabled() []*SendEnabled { 68 if m != nil { 69 return m.SendEnabled 70 } 71 return nil 72 } 73 74 func (m *Params) GetDefaultSendEnabled() bool { 75 if m != nil { 76 return m.DefaultSendEnabled 77 } 78 return false 79 } 80 81 // SendEnabled maps coin denom to a send_enabled status (whether a denom is 82 // sendable). 83 type SendEnabled struct { 84 Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` 85 Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` 86 } 87 88 func (m *SendEnabled) Reset() { *m = SendEnabled{} } 89 func (*SendEnabled) ProtoMessage() {} 90 func (*SendEnabled) Descriptor() ([]byte, []int) { 91 return fileDescriptor_dd052eee12edf988, []int{1} 92 } 93 func (m *SendEnabled) XXX_Unmarshal(b []byte) error { 94 return m.Unmarshal(b) 95 } 96 func (m *SendEnabled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 97 if deterministic { 98 return xxx_messageInfo_SendEnabled.Marshal(b, m, deterministic) 99 } else { 100 b = b[:cap(b)] 101 n, err := m.MarshalToSizedBuffer(b) 102 if err != nil { 103 return nil, err 104 } 105 return b[:n], nil 106 } 107 } 108 func (m *SendEnabled) XXX_Merge(src proto.Message) { 109 xxx_messageInfo_SendEnabled.Merge(m, src) 110 } 111 func (m *SendEnabled) XXX_Size() int { 112 return m.Size() 113 } 114 func (m *SendEnabled) XXX_DiscardUnknown() { 115 xxx_messageInfo_SendEnabled.DiscardUnknown(m) 116 } 117 118 var xxx_messageInfo_SendEnabled proto.InternalMessageInfo 119 120 func (m *SendEnabled) GetDenom() string { 121 if m != nil { 122 return m.Denom 123 } 124 return "" 125 } 126 127 func (m *SendEnabled) GetEnabled() bool { 128 if m != nil { 129 return m.Enabled 130 } 131 return false 132 } 133 134 // Input models transaction input. 135 type Input struct { 136 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 137 Coins github_com_Finschia_finschia_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/Finschia/finschia-sdk/types.Coins" json:"coins"` 138 } 139 140 func (m *Input) Reset() { *m = Input{} } 141 func (m *Input) String() string { return proto.CompactTextString(m) } 142 func (*Input) ProtoMessage() {} 143 func (*Input) Descriptor() ([]byte, []int) { 144 return fileDescriptor_dd052eee12edf988, []int{2} 145 } 146 func (m *Input) XXX_Unmarshal(b []byte) error { 147 return m.Unmarshal(b) 148 } 149 func (m *Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 150 if deterministic { 151 return xxx_messageInfo_Input.Marshal(b, m, deterministic) 152 } else { 153 b = b[:cap(b)] 154 n, err := m.MarshalToSizedBuffer(b) 155 if err != nil { 156 return nil, err 157 } 158 return b[:n], nil 159 } 160 } 161 func (m *Input) XXX_Merge(src proto.Message) { 162 xxx_messageInfo_Input.Merge(m, src) 163 } 164 func (m *Input) XXX_Size() int { 165 return m.Size() 166 } 167 func (m *Input) XXX_DiscardUnknown() { 168 xxx_messageInfo_Input.DiscardUnknown(m) 169 } 170 171 var xxx_messageInfo_Input proto.InternalMessageInfo 172 173 // Output models transaction outputs. 174 type Output struct { 175 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 176 Coins github_com_Finschia_finschia_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/Finschia/finschia-sdk/types.Coins" json:"coins"` 177 } 178 179 func (m *Output) Reset() { *m = Output{} } 180 func (m *Output) String() string { return proto.CompactTextString(m) } 181 func (*Output) ProtoMessage() {} 182 func (*Output) Descriptor() ([]byte, []int) { 183 return fileDescriptor_dd052eee12edf988, []int{3} 184 } 185 func (m *Output) XXX_Unmarshal(b []byte) error { 186 return m.Unmarshal(b) 187 } 188 func (m *Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 189 if deterministic { 190 return xxx_messageInfo_Output.Marshal(b, m, deterministic) 191 } else { 192 b = b[:cap(b)] 193 n, err := m.MarshalToSizedBuffer(b) 194 if err != nil { 195 return nil, err 196 } 197 return b[:n], nil 198 } 199 } 200 func (m *Output) XXX_Merge(src proto.Message) { 201 xxx_messageInfo_Output.Merge(m, src) 202 } 203 func (m *Output) XXX_Size() int { 204 return m.Size() 205 } 206 func (m *Output) XXX_DiscardUnknown() { 207 xxx_messageInfo_Output.DiscardUnknown(m) 208 } 209 210 var xxx_messageInfo_Output proto.InternalMessageInfo 211 212 // Supply represents a struct that passively keeps track of the total supply 213 // amounts in the network. 214 // This message is deprecated now that supply is indexed by denom. 215 // 216 // Deprecated: Do not use. 217 type Supply struct { 218 Total github_com_Finschia_finschia_sdk_types.Coins `protobuf:"bytes,1,rep,name=total,proto3,castrepeated=github.com/Finschia/finschia-sdk/types.Coins" json:"total"` 219 } 220 221 func (m *Supply) Reset() { *m = Supply{} } 222 func (m *Supply) String() string { return proto.CompactTextString(m) } 223 func (*Supply) ProtoMessage() {} 224 func (*Supply) Descriptor() ([]byte, []int) { 225 return fileDescriptor_dd052eee12edf988, []int{4} 226 } 227 func (m *Supply) XXX_Unmarshal(b []byte) error { 228 return m.Unmarshal(b) 229 } 230 func (m *Supply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 231 if deterministic { 232 return xxx_messageInfo_Supply.Marshal(b, m, deterministic) 233 } else { 234 b = b[:cap(b)] 235 n, err := m.MarshalToSizedBuffer(b) 236 if err != nil { 237 return nil, err 238 } 239 return b[:n], nil 240 } 241 } 242 func (m *Supply) XXX_Merge(src proto.Message) { 243 xxx_messageInfo_Supply.Merge(m, src) 244 } 245 func (m *Supply) XXX_Size() int { 246 return m.Size() 247 } 248 func (m *Supply) XXX_DiscardUnknown() { 249 xxx_messageInfo_Supply.DiscardUnknown(m) 250 } 251 252 var xxx_messageInfo_Supply proto.InternalMessageInfo 253 254 // DenomUnit represents a struct that describes a given 255 // denomination unit of the basic token. 256 type DenomUnit struct { 257 // denom represents the string name of the given denom unit (e.g uatom). 258 Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` 259 // exponent represents power of 10 exponent that one must 260 // raise the base_denom to in order to equal the given DenomUnit's denom 261 // 1 denom = 1^exponent base_denom 262 // (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with 263 // exponent = 6, thus: 1 atom = 10^6 uatom). 264 Exponent uint32 `protobuf:"varint,2,opt,name=exponent,proto3" json:"exponent,omitempty"` 265 // aliases is a list of string aliases for the given denom 266 Aliases []string `protobuf:"bytes,3,rep,name=aliases,proto3" json:"aliases,omitempty"` 267 } 268 269 func (m *DenomUnit) Reset() { *m = DenomUnit{} } 270 func (m *DenomUnit) String() string { return proto.CompactTextString(m) } 271 func (*DenomUnit) ProtoMessage() {} 272 func (*DenomUnit) Descriptor() ([]byte, []int) { 273 return fileDescriptor_dd052eee12edf988, []int{5} 274 } 275 func (m *DenomUnit) XXX_Unmarshal(b []byte) error { 276 return m.Unmarshal(b) 277 } 278 func (m *DenomUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 279 if deterministic { 280 return xxx_messageInfo_DenomUnit.Marshal(b, m, deterministic) 281 } else { 282 b = b[:cap(b)] 283 n, err := m.MarshalToSizedBuffer(b) 284 if err != nil { 285 return nil, err 286 } 287 return b[:n], nil 288 } 289 } 290 func (m *DenomUnit) XXX_Merge(src proto.Message) { 291 xxx_messageInfo_DenomUnit.Merge(m, src) 292 } 293 func (m *DenomUnit) XXX_Size() int { 294 return m.Size() 295 } 296 func (m *DenomUnit) XXX_DiscardUnknown() { 297 xxx_messageInfo_DenomUnit.DiscardUnknown(m) 298 } 299 300 var xxx_messageInfo_DenomUnit proto.InternalMessageInfo 301 302 func (m *DenomUnit) GetDenom() string { 303 if m != nil { 304 return m.Denom 305 } 306 return "" 307 } 308 309 func (m *DenomUnit) GetExponent() uint32 { 310 if m != nil { 311 return m.Exponent 312 } 313 return 0 314 } 315 316 func (m *DenomUnit) GetAliases() []string { 317 if m != nil { 318 return m.Aliases 319 } 320 return nil 321 } 322 323 // Metadata represents a struct that describes 324 // a basic token. 325 type Metadata struct { 326 Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` 327 // denom_units represents the list of DenomUnit's for a given coin 328 DenomUnits []*DenomUnit `protobuf:"bytes,2,rep,name=denom_units,json=denomUnits,proto3" json:"denom_units,omitempty"` 329 // base represents the base denom (should be the DenomUnit with exponent = 0). 330 Base string `protobuf:"bytes,3,opt,name=base,proto3" json:"base,omitempty"` 331 // display indicates the suggested denom that should be 332 // displayed in clients. 333 Display string `protobuf:"bytes,4,opt,name=display,proto3" json:"display,omitempty"` 334 // name defines the name of the token (eg: Cosmos Atom) 335 // 336 // Since: cosmos-sdk 0.43 337 Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` 338 // symbol is the token symbol usually shown on exchanges (eg: ATOM). This can 339 // be the same as the display. 340 // 341 // Since: cosmos-sdk 0.43 342 Symbol string `protobuf:"bytes,6,opt,name=symbol,proto3" json:"symbol,omitempty"` 343 } 344 345 func (m *Metadata) Reset() { *m = Metadata{} } 346 func (m *Metadata) String() string { return proto.CompactTextString(m) } 347 func (*Metadata) ProtoMessage() {} 348 func (*Metadata) Descriptor() ([]byte, []int) { 349 return fileDescriptor_dd052eee12edf988, []int{6} 350 } 351 func (m *Metadata) XXX_Unmarshal(b []byte) error { 352 return m.Unmarshal(b) 353 } 354 func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 355 if deterministic { 356 return xxx_messageInfo_Metadata.Marshal(b, m, deterministic) 357 } else { 358 b = b[:cap(b)] 359 n, err := m.MarshalToSizedBuffer(b) 360 if err != nil { 361 return nil, err 362 } 363 return b[:n], nil 364 } 365 } 366 func (m *Metadata) XXX_Merge(src proto.Message) { 367 xxx_messageInfo_Metadata.Merge(m, src) 368 } 369 func (m *Metadata) XXX_Size() int { 370 return m.Size() 371 } 372 func (m *Metadata) XXX_DiscardUnknown() { 373 xxx_messageInfo_Metadata.DiscardUnknown(m) 374 } 375 376 var xxx_messageInfo_Metadata proto.InternalMessageInfo 377 378 func (m *Metadata) GetDescription() string { 379 if m != nil { 380 return m.Description 381 } 382 return "" 383 } 384 385 func (m *Metadata) GetDenomUnits() []*DenomUnit { 386 if m != nil { 387 return m.DenomUnits 388 } 389 return nil 390 } 391 392 func (m *Metadata) GetBase() string { 393 if m != nil { 394 return m.Base 395 } 396 return "" 397 } 398 399 func (m *Metadata) GetDisplay() string { 400 if m != nil { 401 return m.Display 402 } 403 return "" 404 } 405 406 func (m *Metadata) GetName() string { 407 if m != nil { 408 return m.Name 409 } 410 return "" 411 } 412 413 func (m *Metadata) GetSymbol() string { 414 if m != nil { 415 return m.Symbol 416 } 417 return "" 418 } 419 420 func init() { 421 proto.RegisterType((*Params)(nil), "cosmos.bank.v1beta1.Params") 422 proto.RegisterType((*SendEnabled)(nil), "cosmos.bank.v1beta1.SendEnabled") 423 proto.RegisterType((*Input)(nil), "cosmos.bank.v1beta1.Input") 424 proto.RegisterType((*Output)(nil), "cosmos.bank.v1beta1.Output") 425 proto.RegisterType((*Supply)(nil), "cosmos.bank.v1beta1.Supply") 426 proto.RegisterType((*DenomUnit)(nil), "cosmos.bank.v1beta1.DenomUnit") 427 proto.RegisterType((*Metadata)(nil), "cosmos.bank.v1beta1.Metadata") 428 } 429 430 func init() { proto.RegisterFile("cosmos/bank/v1beta1/bank.proto", fileDescriptor_dd052eee12edf988) } 431 432 var fileDescriptor_dd052eee12edf988 = []byte{ 433 // 602 bytes of a gzipped FileDescriptorProto 434 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x54, 0xcf, 0x6b, 0xd4, 0x4e, 435 0x14, 0xdf, 0xe9, 0x76, 0xf3, 0xdd, 0xce, 0x7e, 0xbd, 0x8c, 0x45, 0xd2, 0x82, 0x49, 0x0c, 0x08, 436 0x55, 0xda, 0xa4, 0xd5, 0x9e, 0x16, 0x41, 0x58, 0x7f, 0x94, 0x0a, 0xa2, 0xa4, 0x88, 0xa0, 0x87, 437 0x65, 0x92, 0x99, 0x6e, 0x87, 0x26, 0x33, 0x61, 0x67, 0x52, 0x9a, 0xff, 0xc0, 0xa3, 0xe8, 0xc5, 438 0x63, 0xcf, 0x9e, 0xbd, 0xf9, 0x07, 0xd8, 0x63, 0xd1, 0x8b, 0xa7, 0x2a, 0xed, 0xc5, 0x73, 0xff, 439 0x02, 0xc9, 0x4c, 0x76, 0xbb, 0x85, 0x15, 0x3d, 0x78, 0xf0, 0xf6, 0x3e, 0xef, 0x7d, 0xe6, 0xf3, 440 0x3e, 0xbc, 0xf7, 0x12, 0xe8, 0x24, 0x42, 0x66, 0x42, 0x86, 0x31, 0xe6, 0xbb, 0xe1, 0xde, 0x5a, 441 0x4c, 0x15, 0x5e, 0xd3, 0x20, 0xc8, 0x87, 0x42, 0x09, 0x74, 0xd9, 0xd4, 0x03, 0x9d, 0xaa, 0xeb, 442 0x8b, 0xf3, 0x03, 0x31, 0x10, 0xba, 0x1e, 0x56, 0x91, 0xa1, 0x2e, 0x2e, 0x18, 0x6a, 0xdf, 0x14, 443 0xea, 0x77, 0xa6, 0x74, 0xde, 0x45, 0xd2, 0x71, 0x97, 0x44, 0x30, 0x6e, 0xea, 0xfe, 0x17, 0x00, 444 0xad, 0xa7, 0x78, 0x88, 0x33, 0x89, 0xb6, 0xe1, 0xff, 0x92, 0x72, 0xd2, 0xa7, 0x1c, 0xc7, 0x29, 445 0x25, 0x36, 0xf0, 0x9a, 0x4b, 0x9d, 0x5b, 0x5e, 0x30, 0xc5, 0x47, 0xb0, 0x45, 0x39, 0x79, 0x60, 446 0x78, 0xbd, 0x6b, 0x67, 0xc7, 0xee, 0xd5, 0x12, 0x67, 0x69, 0xd7, 0x9f, 0x7c, 0xbf, 0x2c, 0x32, 447 0xa6, 0x68, 0x96, 0xab, 0xd2, 0x8f, 0x3a, 0xf2, 0x9c, 0x8f, 0x5e, 0xc2, 0x79, 0x42, 0xb7, 0x71, 448 0x91, 0xaa, 0xfe, 0x85, 0x7e, 0x33, 0x1e, 0x58, 0x6a, 0xf7, 0x6e, 0x9c, 0x1d, 0xbb, 0xd7, 0x8d, 449 0xda, 0x34, 0xd6, 0xa4, 0x2a, 0xaa, 0x09, 0x13, 0x66, 0xba, 0xb3, 0xef, 0x0e, 0xdc, 0x86, 0xbf, 450 0x01, 0x3b, 0x13, 0x49, 0x34, 0x0f, 0x5b, 0x84, 0x72, 0x91, 0xd9, 0xc0, 0x03, 0x4b, 0x73, 0x91, 451 0x01, 0xc8, 0x86, 0xff, 0x5d, 0x68, 0x1d, 0x8d, 0x60, 0xb7, 0x5d, 0x89, 0xfc, 0x38, 0x70, 0x81, 452 0xff, 0x06, 0xc0, 0xd6, 0x26, 0xcf, 0x0b, 0x55, 0xb1, 0x31, 0x21, 0x43, 0x2a, 0x65, 0xad, 0x32, 453 0x82, 0x88, 0xc2, 0x56, 0x35, 0x50, 0x69, 0xcf, 0xe8, 0x81, 0x2d, 0x9c, 0x0f, 0x4c, 0xd2, 0xf1, 454 0xc0, 0xee, 0x09, 0xc6, 0x7b, 0xeb, 0x87, 0xc7, 0x6e, 0xe3, 0xfd, 0x37, 0x77, 0x79, 0xc0, 0xd4, 455 0x4e, 0x11, 0x07, 0x89, 0xc8, 0xc2, 0x87, 0x8c, 0xcb, 0x64, 0x87, 0xe1, 0x70, 0xbb, 0x0e, 0x56, 456 0x24, 0xd9, 0x0d, 0x55, 0x99, 0x53, 0xa9, 0x1f, 0xc9, 0xc8, 0xa8, 0x77, 0xdb, 0xaf, 0x8c, 0xa9, 457 0x86, 0xff, 0x16, 0x40, 0xeb, 0x49, 0xa1, 0xfe, 0x31, 0x57, 0x1f, 0x01, 0xb4, 0xb6, 0x8a, 0x3c, 458 0x4f, 0xcb, 0xaa, 0xb7, 0x12, 0x0a, 0xa7, 0xf5, 0x09, 0xfd, 0xfd, 0xde, 0x5a, 0xbd, 0xfb, 0xa8, 459 0xee, 0x0d, 0x3e, 0x7f, 0x58, 0xb9, 0x73, 0xf3, 0xb7, 0x0a, 0xfb, 0xe6, 0x53, 0x4b, 0xe9, 0x00, 460 0x27, 0x65, 0xb8, 0xb7, 0xba, 0xbe, 0x1a, 0x18, 0xbf, 0x9b, 0x36, 0xf0, 0x9f, 0xc3, 0xb9, 0xfb, 461 0xd5, 0x55, 0x3c, 0xe3, 0x4c, 0xfd, 0xe2, 0x5e, 0x16, 0x61, 0x9b, 0xee, 0xe7, 0x82, 0x53, 0xae, 462 0xf4, 0xc1, 0x5c, 0x8a, 0xc6, 0x58, 0xef, 0x21, 0x65, 0x58, 0x52, 0x69, 0x37, 0xbd, 0xa6, 0xde, 463 0x83, 0x81, 0xfe, 0x27, 0x00, 0xdb, 0x8f, 0xa9, 0xc2, 0x04, 0x2b, 0x8c, 0x3c, 0xd8, 0x21, 0x54, 464 0x26, 0x43, 0x96, 0x2b, 0x26, 0x78, 0x2d, 0x3f, 0x99, 0x42, 0x77, 0x2b, 0x06, 0x17, 0x59, 0xbf, 465 0xe0, 0x4c, 0x8d, 0x96, 0xe7, 0x4c, 0xfd, 0x06, 0xc7, 0x7e, 0x23, 0x48, 0x46, 0xa1, 0x44, 0x08, 466 0xce, 0x56, 0x63, 0xb6, 0x9b, 0x5a, 0x5b, 0xc7, 0x95, 0x3b, 0xc2, 0x64, 0x9e, 0xe2, 0xd2, 0x9e, 467 0x35, 0x57, 0x52, 0xc3, 0x8a, 0xcd, 0x71, 0x46, 0xed, 0x96, 0x61, 0x57, 0x31, 0xba, 0x02, 0x2d, 468 0x59, 0x66, 0xb1, 0x48, 0x6d, 0x4b, 0x67, 0x6b, 0xd4, 0xdb, 0x38, 0x3c, 0x71, 0xc0, 0xd1, 0x89, 469 0x03, 0xbe, 0x9f, 0x38, 0xe0, 0xf5, 0xa9, 0xd3, 0x38, 0x3a, 0x75, 0x1a, 0x5f, 0x4f, 0x9d, 0xc6, 470 0x8b, 0x95, 0x3f, 0x9d, 0xbd, 0x5e, 0x62, 0x6c, 0xe9, 0x5f, 0xcf, 0xed, 0x9f, 0x01, 0x00, 0x00, 471 0xff, 0xff, 0xd9, 0xb7, 0x17, 0x4d, 0x02, 0x05, 0x00, 0x00, 472 } 473 474 func (this *SendEnabled) Equal(that interface{}) bool { 475 if that == nil { 476 return this == nil 477 } 478 479 that1, ok := that.(*SendEnabled) 480 if !ok { 481 that2, ok := that.(SendEnabled) 482 if ok { 483 that1 = &that2 484 } else { 485 return false 486 } 487 } 488 if that1 == nil { 489 return this == nil 490 } else if this == nil { 491 return false 492 } 493 if this.Denom != that1.Denom { 494 return false 495 } 496 if this.Enabled != that1.Enabled { 497 return false 498 } 499 return true 500 } 501 func (this *Supply) Equal(that interface{}) bool { 502 if that == nil { 503 return this == nil 504 } 505 506 that1, ok := that.(*Supply) 507 if !ok { 508 that2, ok := that.(Supply) 509 if ok { 510 that1 = &that2 511 } else { 512 return false 513 } 514 } 515 if that1 == nil { 516 return this == nil 517 } else if this == nil { 518 return false 519 } 520 if len(this.Total) != len(that1.Total) { 521 return false 522 } 523 for i := range this.Total { 524 if !this.Total[i].Equal(&that1.Total[i]) { 525 return false 526 } 527 } 528 return true 529 } 530 func (m *Params) Marshal() (dAtA []byte, err error) { 531 size := m.Size() 532 dAtA = make([]byte, size) 533 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 534 if err != nil { 535 return nil, err 536 } 537 return dAtA[:n], nil 538 } 539 540 func (m *Params) MarshalTo(dAtA []byte) (int, error) { 541 size := m.Size() 542 return m.MarshalToSizedBuffer(dAtA[:size]) 543 } 544 545 func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { 546 i := len(dAtA) 547 _ = i 548 var l int 549 _ = l 550 if m.DefaultSendEnabled { 551 i-- 552 if m.DefaultSendEnabled { 553 dAtA[i] = 1 554 } else { 555 dAtA[i] = 0 556 } 557 i-- 558 dAtA[i] = 0x10 559 } 560 if len(m.SendEnabled) > 0 { 561 for iNdEx := len(m.SendEnabled) - 1; iNdEx >= 0; iNdEx-- { 562 { 563 size, err := m.SendEnabled[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 564 if err != nil { 565 return 0, err 566 } 567 i -= size 568 i = encodeVarintBank(dAtA, i, uint64(size)) 569 } 570 i-- 571 dAtA[i] = 0xa 572 } 573 } 574 return len(dAtA) - i, nil 575 } 576 577 func (m *SendEnabled) Marshal() (dAtA []byte, err error) { 578 size := m.Size() 579 dAtA = make([]byte, size) 580 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 581 if err != nil { 582 return nil, err 583 } 584 return dAtA[:n], nil 585 } 586 587 func (m *SendEnabled) MarshalTo(dAtA []byte) (int, error) { 588 size := m.Size() 589 return m.MarshalToSizedBuffer(dAtA[:size]) 590 } 591 592 func (m *SendEnabled) MarshalToSizedBuffer(dAtA []byte) (int, error) { 593 i := len(dAtA) 594 _ = i 595 var l int 596 _ = l 597 if m.Enabled { 598 i-- 599 if m.Enabled { 600 dAtA[i] = 1 601 } else { 602 dAtA[i] = 0 603 } 604 i-- 605 dAtA[i] = 0x10 606 } 607 if len(m.Denom) > 0 { 608 i -= len(m.Denom) 609 copy(dAtA[i:], m.Denom) 610 i = encodeVarintBank(dAtA, i, uint64(len(m.Denom))) 611 i-- 612 dAtA[i] = 0xa 613 } 614 return len(dAtA) - i, nil 615 } 616 617 func (m *Input) Marshal() (dAtA []byte, err error) { 618 size := m.Size() 619 dAtA = make([]byte, size) 620 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 621 if err != nil { 622 return nil, err 623 } 624 return dAtA[:n], nil 625 } 626 627 func (m *Input) MarshalTo(dAtA []byte) (int, error) { 628 size := m.Size() 629 return m.MarshalToSizedBuffer(dAtA[:size]) 630 } 631 632 func (m *Input) MarshalToSizedBuffer(dAtA []byte) (int, error) { 633 i := len(dAtA) 634 _ = i 635 var l int 636 _ = l 637 if len(m.Coins) > 0 { 638 for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { 639 { 640 size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 641 if err != nil { 642 return 0, err 643 } 644 i -= size 645 i = encodeVarintBank(dAtA, i, uint64(size)) 646 } 647 i-- 648 dAtA[i] = 0x12 649 } 650 } 651 if len(m.Address) > 0 { 652 i -= len(m.Address) 653 copy(dAtA[i:], m.Address) 654 i = encodeVarintBank(dAtA, i, uint64(len(m.Address))) 655 i-- 656 dAtA[i] = 0xa 657 } 658 return len(dAtA) - i, nil 659 } 660 661 func (m *Output) Marshal() (dAtA []byte, err error) { 662 size := m.Size() 663 dAtA = make([]byte, size) 664 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 665 if err != nil { 666 return nil, err 667 } 668 return dAtA[:n], nil 669 } 670 671 func (m *Output) MarshalTo(dAtA []byte) (int, error) { 672 size := m.Size() 673 return m.MarshalToSizedBuffer(dAtA[:size]) 674 } 675 676 func (m *Output) MarshalToSizedBuffer(dAtA []byte) (int, error) { 677 i := len(dAtA) 678 _ = i 679 var l int 680 _ = l 681 if len(m.Coins) > 0 { 682 for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { 683 { 684 size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 685 if err != nil { 686 return 0, err 687 } 688 i -= size 689 i = encodeVarintBank(dAtA, i, uint64(size)) 690 } 691 i-- 692 dAtA[i] = 0x12 693 } 694 } 695 if len(m.Address) > 0 { 696 i -= len(m.Address) 697 copy(dAtA[i:], m.Address) 698 i = encodeVarintBank(dAtA, i, uint64(len(m.Address))) 699 i-- 700 dAtA[i] = 0xa 701 } 702 return len(dAtA) - i, nil 703 } 704 705 func (m *Supply) Marshal() (dAtA []byte, err error) { 706 size := m.Size() 707 dAtA = make([]byte, size) 708 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 709 if err != nil { 710 return nil, err 711 } 712 return dAtA[:n], nil 713 } 714 715 func (m *Supply) MarshalTo(dAtA []byte) (int, error) { 716 size := m.Size() 717 return m.MarshalToSizedBuffer(dAtA[:size]) 718 } 719 720 func (m *Supply) MarshalToSizedBuffer(dAtA []byte) (int, error) { 721 i := len(dAtA) 722 _ = i 723 var l int 724 _ = l 725 if len(m.Total) > 0 { 726 for iNdEx := len(m.Total) - 1; iNdEx >= 0; iNdEx-- { 727 { 728 size, err := m.Total[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 729 if err != nil { 730 return 0, err 731 } 732 i -= size 733 i = encodeVarintBank(dAtA, i, uint64(size)) 734 } 735 i-- 736 dAtA[i] = 0xa 737 } 738 } 739 return len(dAtA) - i, nil 740 } 741 742 func (m *DenomUnit) Marshal() (dAtA []byte, err error) { 743 size := m.Size() 744 dAtA = make([]byte, size) 745 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 746 if err != nil { 747 return nil, err 748 } 749 return dAtA[:n], nil 750 } 751 752 func (m *DenomUnit) MarshalTo(dAtA []byte) (int, error) { 753 size := m.Size() 754 return m.MarshalToSizedBuffer(dAtA[:size]) 755 } 756 757 func (m *DenomUnit) MarshalToSizedBuffer(dAtA []byte) (int, error) { 758 i := len(dAtA) 759 _ = i 760 var l int 761 _ = l 762 if len(m.Aliases) > 0 { 763 for iNdEx := len(m.Aliases) - 1; iNdEx >= 0; iNdEx-- { 764 i -= len(m.Aliases[iNdEx]) 765 copy(dAtA[i:], m.Aliases[iNdEx]) 766 i = encodeVarintBank(dAtA, i, uint64(len(m.Aliases[iNdEx]))) 767 i-- 768 dAtA[i] = 0x1a 769 } 770 } 771 if m.Exponent != 0 { 772 i = encodeVarintBank(dAtA, i, uint64(m.Exponent)) 773 i-- 774 dAtA[i] = 0x10 775 } 776 if len(m.Denom) > 0 { 777 i -= len(m.Denom) 778 copy(dAtA[i:], m.Denom) 779 i = encodeVarintBank(dAtA, i, uint64(len(m.Denom))) 780 i-- 781 dAtA[i] = 0xa 782 } 783 return len(dAtA) - i, nil 784 } 785 786 func (m *Metadata) Marshal() (dAtA []byte, err error) { 787 size := m.Size() 788 dAtA = make([]byte, size) 789 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 790 if err != nil { 791 return nil, err 792 } 793 return dAtA[:n], nil 794 } 795 796 func (m *Metadata) MarshalTo(dAtA []byte) (int, error) { 797 size := m.Size() 798 return m.MarshalToSizedBuffer(dAtA[:size]) 799 } 800 801 func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { 802 i := len(dAtA) 803 _ = i 804 var l int 805 _ = l 806 if len(m.Symbol) > 0 { 807 i -= len(m.Symbol) 808 copy(dAtA[i:], m.Symbol) 809 i = encodeVarintBank(dAtA, i, uint64(len(m.Symbol))) 810 i-- 811 dAtA[i] = 0x32 812 } 813 if len(m.Name) > 0 { 814 i -= len(m.Name) 815 copy(dAtA[i:], m.Name) 816 i = encodeVarintBank(dAtA, i, uint64(len(m.Name))) 817 i-- 818 dAtA[i] = 0x2a 819 } 820 if len(m.Display) > 0 { 821 i -= len(m.Display) 822 copy(dAtA[i:], m.Display) 823 i = encodeVarintBank(dAtA, i, uint64(len(m.Display))) 824 i-- 825 dAtA[i] = 0x22 826 } 827 if len(m.Base) > 0 { 828 i -= len(m.Base) 829 copy(dAtA[i:], m.Base) 830 i = encodeVarintBank(dAtA, i, uint64(len(m.Base))) 831 i-- 832 dAtA[i] = 0x1a 833 } 834 if len(m.DenomUnits) > 0 { 835 for iNdEx := len(m.DenomUnits) - 1; iNdEx >= 0; iNdEx-- { 836 { 837 size, err := m.DenomUnits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 838 if err != nil { 839 return 0, err 840 } 841 i -= size 842 i = encodeVarintBank(dAtA, i, uint64(size)) 843 } 844 i-- 845 dAtA[i] = 0x12 846 } 847 } 848 if len(m.Description) > 0 { 849 i -= len(m.Description) 850 copy(dAtA[i:], m.Description) 851 i = encodeVarintBank(dAtA, i, uint64(len(m.Description))) 852 i-- 853 dAtA[i] = 0xa 854 } 855 return len(dAtA) - i, nil 856 } 857 858 func encodeVarintBank(dAtA []byte, offset int, v uint64) int { 859 offset -= sovBank(v) 860 base := offset 861 for v >= 1<<7 { 862 dAtA[offset] = uint8(v&0x7f | 0x80) 863 v >>= 7 864 offset++ 865 } 866 dAtA[offset] = uint8(v) 867 return base 868 } 869 func (m *Params) Size() (n int) { 870 if m == nil { 871 return 0 872 } 873 var l int 874 _ = l 875 if len(m.SendEnabled) > 0 { 876 for _, e := range m.SendEnabled { 877 l = e.Size() 878 n += 1 + l + sovBank(uint64(l)) 879 } 880 } 881 if m.DefaultSendEnabled { 882 n += 2 883 } 884 return n 885 } 886 887 func (m *SendEnabled) Size() (n int) { 888 if m == nil { 889 return 0 890 } 891 var l int 892 _ = l 893 l = len(m.Denom) 894 if l > 0 { 895 n += 1 + l + sovBank(uint64(l)) 896 } 897 if m.Enabled { 898 n += 2 899 } 900 return n 901 } 902 903 func (m *Input) Size() (n int) { 904 if m == nil { 905 return 0 906 } 907 var l int 908 _ = l 909 l = len(m.Address) 910 if l > 0 { 911 n += 1 + l + sovBank(uint64(l)) 912 } 913 if len(m.Coins) > 0 { 914 for _, e := range m.Coins { 915 l = e.Size() 916 n += 1 + l + sovBank(uint64(l)) 917 } 918 } 919 return n 920 } 921 922 func (m *Output) Size() (n int) { 923 if m == nil { 924 return 0 925 } 926 var l int 927 _ = l 928 l = len(m.Address) 929 if l > 0 { 930 n += 1 + l + sovBank(uint64(l)) 931 } 932 if len(m.Coins) > 0 { 933 for _, e := range m.Coins { 934 l = e.Size() 935 n += 1 + l + sovBank(uint64(l)) 936 } 937 } 938 return n 939 } 940 941 func (m *Supply) Size() (n int) { 942 if m == nil { 943 return 0 944 } 945 var l int 946 _ = l 947 if len(m.Total) > 0 { 948 for _, e := range m.Total { 949 l = e.Size() 950 n += 1 + l + sovBank(uint64(l)) 951 } 952 } 953 return n 954 } 955 956 func (m *DenomUnit) Size() (n int) { 957 if m == nil { 958 return 0 959 } 960 var l int 961 _ = l 962 l = len(m.Denom) 963 if l > 0 { 964 n += 1 + l + sovBank(uint64(l)) 965 } 966 if m.Exponent != 0 { 967 n += 1 + sovBank(uint64(m.Exponent)) 968 } 969 if len(m.Aliases) > 0 { 970 for _, s := range m.Aliases { 971 l = len(s) 972 n += 1 + l + sovBank(uint64(l)) 973 } 974 } 975 return n 976 } 977 978 func (m *Metadata) Size() (n int) { 979 if m == nil { 980 return 0 981 } 982 var l int 983 _ = l 984 l = len(m.Description) 985 if l > 0 { 986 n += 1 + l + sovBank(uint64(l)) 987 } 988 if len(m.DenomUnits) > 0 { 989 for _, e := range m.DenomUnits { 990 l = e.Size() 991 n += 1 + l + sovBank(uint64(l)) 992 } 993 } 994 l = len(m.Base) 995 if l > 0 { 996 n += 1 + l + sovBank(uint64(l)) 997 } 998 l = len(m.Display) 999 if l > 0 { 1000 n += 1 + l + sovBank(uint64(l)) 1001 } 1002 l = len(m.Name) 1003 if l > 0 { 1004 n += 1 + l + sovBank(uint64(l)) 1005 } 1006 l = len(m.Symbol) 1007 if l > 0 { 1008 n += 1 + l + sovBank(uint64(l)) 1009 } 1010 return n 1011 } 1012 1013 func sovBank(x uint64) (n int) { 1014 return (math_bits.Len64(x|1) + 6) / 7 1015 } 1016 func sozBank(x uint64) (n int) { 1017 return sovBank(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1018 } 1019 func (m *Params) Unmarshal(dAtA []byte) error { 1020 l := len(dAtA) 1021 iNdEx := 0 1022 for iNdEx < l { 1023 preIndex := iNdEx 1024 var wire uint64 1025 for shift := uint(0); ; shift += 7 { 1026 if shift >= 64 { 1027 return ErrIntOverflowBank 1028 } 1029 if iNdEx >= l { 1030 return io.ErrUnexpectedEOF 1031 } 1032 b := dAtA[iNdEx] 1033 iNdEx++ 1034 wire |= uint64(b&0x7F) << shift 1035 if b < 0x80 { 1036 break 1037 } 1038 } 1039 fieldNum := int32(wire >> 3) 1040 wireType := int(wire & 0x7) 1041 if wireType == 4 { 1042 return fmt.Errorf("proto: Params: wiretype end group for non-group") 1043 } 1044 if fieldNum <= 0 { 1045 return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) 1046 } 1047 switch fieldNum { 1048 case 1: 1049 if wireType != 2 { 1050 return fmt.Errorf("proto: wrong wireType = %d for field SendEnabled", wireType) 1051 } 1052 var msglen int 1053 for shift := uint(0); ; shift += 7 { 1054 if shift >= 64 { 1055 return ErrIntOverflowBank 1056 } 1057 if iNdEx >= l { 1058 return io.ErrUnexpectedEOF 1059 } 1060 b := dAtA[iNdEx] 1061 iNdEx++ 1062 msglen |= int(b&0x7F) << shift 1063 if b < 0x80 { 1064 break 1065 } 1066 } 1067 if msglen < 0 { 1068 return ErrInvalidLengthBank 1069 } 1070 postIndex := iNdEx + msglen 1071 if postIndex < 0 { 1072 return ErrInvalidLengthBank 1073 } 1074 if postIndex > l { 1075 return io.ErrUnexpectedEOF 1076 } 1077 m.SendEnabled = append(m.SendEnabled, &SendEnabled{}) 1078 if err := m.SendEnabled[len(m.SendEnabled)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1079 return err 1080 } 1081 iNdEx = postIndex 1082 case 2: 1083 if wireType != 0 { 1084 return fmt.Errorf("proto: wrong wireType = %d for field DefaultSendEnabled", wireType) 1085 } 1086 var v int 1087 for shift := uint(0); ; shift += 7 { 1088 if shift >= 64 { 1089 return ErrIntOverflowBank 1090 } 1091 if iNdEx >= l { 1092 return io.ErrUnexpectedEOF 1093 } 1094 b := dAtA[iNdEx] 1095 iNdEx++ 1096 v |= int(b&0x7F) << shift 1097 if b < 0x80 { 1098 break 1099 } 1100 } 1101 m.DefaultSendEnabled = bool(v != 0) 1102 default: 1103 iNdEx = preIndex 1104 skippy, err := skipBank(dAtA[iNdEx:]) 1105 if err != nil { 1106 return err 1107 } 1108 if (skippy < 0) || (iNdEx+skippy) < 0 { 1109 return ErrInvalidLengthBank 1110 } 1111 if (iNdEx + skippy) > l { 1112 return io.ErrUnexpectedEOF 1113 } 1114 iNdEx += skippy 1115 } 1116 } 1117 1118 if iNdEx > l { 1119 return io.ErrUnexpectedEOF 1120 } 1121 return nil 1122 } 1123 func (m *SendEnabled) Unmarshal(dAtA []byte) error { 1124 l := len(dAtA) 1125 iNdEx := 0 1126 for iNdEx < l { 1127 preIndex := iNdEx 1128 var wire uint64 1129 for shift := uint(0); ; shift += 7 { 1130 if shift >= 64 { 1131 return ErrIntOverflowBank 1132 } 1133 if iNdEx >= l { 1134 return io.ErrUnexpectedEOF 1135 } 1136 b := dAtA[iNdEx] 1137 iNdEx++ 1138 wire |= uint64(b&0x7F) << shift 1139 if b < 0x80 { 1140 break 1141 } 1142 } 1143 fieldNum := int32(wire >> 3) 1144 wireType := int(wire & 0x7) 1145 if wireType == 4 { 1146 return fmt.Errorf("proto: SendEnabled: wiretype end group for non-group") 1147 } 1148 if fieldNum <= 0 { 1149 return fmt.Errorf("proto: SendEnabled: illegal tag %d (wire type %d)", fieldNum, wire) 1150 } 1151 switch fieldNum { 1152 case 1: 1153 if wireType != 2 { 1154 return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) 1155 } 1156 var stringLen uint64 1157 for shift := uint(0); ; shift += 7 { 1158 if shift >= 64 { 1159 return ErrIntOverflowBank 1160 } 1161 if iNdEx >= l { 1162 return io.ErrUnexpectedEOF 1163 } 1164 b := dAtA[iNdEx] 1165 iNdEx++ 1166 stringLen |= uint64(b&0x7F) << shift 1167 if b < 0x80 { 1168 break 1169 } 1170 } 1171 intStringLen := int(stringLen) 1172 if intStringLen < 0 { 1173 return ErrInvalidLengthBank 1174 } 1175 postIndex := iNdEx + intStringLen 1176 if postIndex < 0 { 1177 return ErrInvalidLengthBank 1178 } 1179 if postIndex > l { 1180 return io.ErrUnexpectedEOF 1181 } 1182 m.Denom = string(dAtA[iNdEx:postIndex]) 1183 iNdEx = postIndex 1184 case 2: 1185 if wireType != 0 { 1186 return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) 1187 } 1188 var v int 1189 for shift := uint(0); ; shift += 7 { 1190 if shift >= 64 { 1191 return ErrIntOverflowBank 1192 } 1193 if iNdEx >= l { 1194 return io.ErrUnexpectedEOF 1195 } 1196 b := dAtA[iNdEx] 1197 iNdEx++ 1198 v |= int(b&0x7F) << shift 1199 if b < 0x80 { 1200 break 1201 } 1202 } 1203 m.Enabled = bool(v != 0) 1204 default: 1205 iNdEx = preIndex 1206 skippy, err := skipBank(dAtA[iNdEx:]) 1207 if err != nil { 1208 return err 1209 } 1210 if (skippy < 0) || (iNdEx+skippy) < 0 { 1211 return ErrInvalidLengthBank 1212 } 1213 if (iNdEx + skippy) > l { 1214 return io.ErrUnexpectedEOF 1215 } 1216 iNdEx += skippy 1217 } 1218 } 1219 1220 if iNdEx > l { 1221 return io.ErrUnexpectedEOF 1222 } 1223 return nil 1224 } 1225 func (m *Input) Unmarshal(dAtA []byte) error { 1226 l := len(dAtA) 1227 iNdEx := 0 1228 for iNdEx < l { 1229 preIndex := iNdEx 1230 var wire uint64 1231 for shift := uint(0); ; shift += 7 { 1232 if shift >= 64 { 1233 return ErrIntOverflowBank 1234 } 1235 if iNdEx >= l { 1236 return io.ErrUnexpectedEOF 1237 } 1238 b := dAtA[iNdEx] 1239 iNdEx++ 1240 wire |= uint64(b&0x7F) << shift 1241 if b < 0x80 { 1242 break 1243 } 1244 } 1245 fieldNum := int32(wire >> 3) 1246 wireType := int(wire & 0x7) 1247 if wireType == 4 { 1248 return fmt.Errorf("proto: Input: wiretype end group for non-group") 1249 } 1250 if fieldNum <= 0 { 1251 return fmt.Errorf("proto: Input: illegal tag %d (wire type %d)", fieldNum, wire) 1252 } 1253 switch fieldNum { 1254 case 1: 1255 if wireType != 2 { 1256 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 1257 } 1258 var stringLen uint64 1259 for shift := uint(0); ; shift += 7 { 1260 if shift >= 64 { 1261 return ErrIntOverflowBank 1262 } 1263 if iNdEx >= l { 1264 return io.ErrUnexpectedEOF 1265 } 1266 b := dAtA[iNdEx] 1267 iNdEx++ 1268 stringLen |= uint64(b&0x7F) << shift 1269 if b < 0x80 { 1270 break 1271 } 1272 } 1273 intStringLen := int(stringLen) 1274 if intStringLen < 0 { 1275 return ErrInvalidLengthBank 1276 } 1277 postIndex := iNdEx + intStringLen 1278 if postIndex < 0 { 1279 return ErrInvalidLengthBank 1280 } 1281 if postIndex > l { 1282 return io.ErrUnexpectedEOF 1283 } 1284 m.Address = string(dAtA[iNdEx:postIndex]) 1285 iNdEx = postIndex 1286 case 2: 1287 if wireType != 2 { 1288 return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) 1289 } 1290 var msglen int 1291 for shift := uint(0); ; shift += 7 { 1292 if shift >= 64 { 1293 return ErrIntOverflowBank 1294 } 1295 if iNdEx >= l { 1296 return io.ErrUnexpectedEOF 1297 } 1298 b := dAtA[iNdEx] 1299 iNdEx++ 1300 msglen |= int(b&0x7F) << shift 1301 if b < 0x80 { 1302 break 1303 } 1304 } 1305 if msglen < 0 { 1306 return ErrInvalidLengthBank 1307 } 1308 postIndex := iNdEx + msglen 1309 if postIndex < 0 { 1310 return ErrInvalidLengthBank 1311 } 1312 if postIndex > l { 1313 return io.ErrUnexpectedEOF 1314 } 1315 m.Coins = append(m.Coins, types.Coin{}) 1316 if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1317 return err 1318 } 1319 iNdEx = postIndex 1320 default: 1321 iNdEx = preIndex 1322 skippy, err := skipBank(dAtA[iNdEx:]) 1323 if err != nil { 1324 return err 1325 } 1326 if (skippy < 0) || (iNdEx+skippy) < 0 { 1327 return ErrInvalidLengthBank 1328 } 1329 if (iNdEx + skippy) > l { 1330 return io.ErrUnexpectedEOF 1331 } 1332 iNdEx += skippy 1333 } 1334 } 1335 1336 if iNdEx > l { 1337 return io.ErrUnexpectedEOF 1338 } 1339 return nil 1340 } 1341 func (m *Output) Unmarshal(dAtA []byte) error { 1342 l := len(dAtA) 1343 iNdEx := 0 1344 for iNdEx < l { 1345 preIndex := iNdEx 1346 var wire uint64 1347 for shift := uint(0); ; shift += 7 { 1348 if shift >= 64 { 1349 return ErrIntOverflowBank 1350 } 1351 if iNdEx >= l { 1352 return io.ErrUnexpectedEOF 1353 } 1354 b := dAtA[iNdEx] 1355 iNdEx++ 1356 wire |= uint64(b&0x7F) << shift 1357 if b < 0x80 { 1358 break 1359 } 1360 } 1361 fieldNum := int32(wire >> 3) 1362 wireType := int(wire & 0x7) 1363 if wireType == 4 { 1364 return fmt.Errorf("proto: Output: wiretype end group for non-group") 1365 } 1366 if fieldNum <= 0 { 1367 return fmt.Errorf("proto: Output: illegal tag %d (wire type %d)", fieldNum, wire) 1368 } 1369 switch fieldNum { 1370 case 1: 1371 if wireType != 2 { 1372 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 1373 } 1374 var stringLen uint64 1375 for shift := uint(0); ; shift += 7 { 1376 if shift >= 64 { 1377 return ErrIntOverflowBank 1378 } 1379 if iNdEx >= l { 1380 return io.ErrUnexpectedEOF 1381 } 1382 b := dAtA[iNdEx] 1383 iNdEx++ 1384 stringLen |= uint64(b&0x7F) << shift 1385 if b < 0x80 { 1386 break 1387 } 1388 } 1389 intStringLen := int(stringLen) 1390 if intStringLen < 0 { 1391 return ErrInvalidLengthBank 1392 } 1393 postIndex := iNdEx + intStringLen 1394 if postIndex < 0 { 1395 return ErrInvalidLengthBank 1396 } 1397 if postIndex > l { 1398 return io.ErrUnexpectedEOF 1399 } 1400 m.Address = string(dAtA[iNdEx:postIndex]) 1401 iNdEx = postIndex 1402 case 2: 1403 if wireType != 2 { 1404 return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) 1405 } 1406 var msglen int 1407 for shift := uint(0); ; shift += 7 { 1408 if shift >= 64 { 1409 return ErrIntOverflowBank 1410 } 1411 if iNdEx >= l { 1412 return io.ErrUnexpectedEOF 1413 } 1414 b := dAtA[iNdEx] 1415 iNdEx++ 1416 msglen |= int(b&0x7F) << shift 1417 if b < 0x80 { 1418 break 1419 } 1420 } 1421 if msglen < 0 { 1422 return ErrInvalidLengthBank 1423 } 1424 postIndex := iNdEx + msglen 1425 if postIndex < 0 { 1426 return ErrInvalidLengthBank 1427 } 1428 if postIndex > l { 1429 return io.ErrUnexpectedEOF 1430 } 1431 m.Coins = append(m.Coins, types.Coin{}) 1432 if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1433 return err 1434 } 1435 iNdEx = postIndex 1436 default: 1437 iNdEx = preIndex 1438 skippy, err := skipBank(dAtA[iNdEx:]) 1439 if err != nil { 1440 return err 1441 } 1442 if (skippy < 0) || (iNdEx+skippy) < 0 { 1443 return ErrInvalidLengthBank 1444 } 1445 if (iNdEx + skippy) > l { 1446 return io.ErrUnexpectedEOF 1447 } 1448 iNdEx += skippy 1449 } 1450 } 1451 1452 if iNdEx > l { 1453 return io.ErrUnexpectedEOF 1454 } 1455 return nil 1456 } 1457 func (m *Supply) Unmarshal(dAtA []byte) error { 1458 l := len(dAtA) 1459 iNdEx := 0 1460 for iNdEx < l { 1461 preIndex := iNdEx 1462 var wire uint64 1463 for shift := uint(0); ; shift += 7 { 1464 if shift >= 64 { 1465 return ErrIntOverflowBank 1466 } 1467 if iNdEx >= l { 1468 return io.ErrUnexpectedEOF 1469 } 1470 b := dAtA[iNdEx] 1471 iNdEx++ 1472 wire |= uint64(b&0x7F) << shift 1473 if b < 0x80 { 1474 break 1475 } 1476 } 1477 fieldNum := int32(wire >> 3) 1478 wireType := int(wire & 0x7) 1479 if wireType == 4 { 1480 return fmt.Errorf("proto: Supply: wiretype end group for non-group") 1481 } 1482 if fieldNum <= 0 { 1483 return fmt.Errorf("proto: Supply: illegal tag %d (wire type %d)", fieldNum, wire) 1484 } 1485 switch fieldNum { 1486 case 1: 1487 if wireType != 2 { 1488 return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) 1489 } 1490 var msglen int 1491 for shift := uint(0); ; shift += 7 { 1492 if shift >= 64 { 1493 return ErrIntOverflowBank 1494 } 1495 if iNdEx >= l { 1496 return io.ErrUnexpectedEOF 1497 } 1498 b := dAtA[iNdEx] 1499 iNdEx++ 1500 msglen |= int(b&0x7F) << shift 1501 if b < 0x80 { 1502 break 1503 } 1504 } 1505 if msglen < 0 { 1506 return ErrInvalidLengthBank 1507 } 1508 postIndex := iNdEx + msglen 1509 if postIndex < 0 { 1510 return ErrInvalidLengthBank 1511 } 1512 if postIndex > l { 1513 return io.ErrUnexpectedEOF 1514 } 1515 m.Total = append(m.Total, types.Coin{}) 1516 if err := m.Total[len(m.Total)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1517 return err 1518 } 1519 iNdEx = postIndex 1520 default: 1521 iNdEx = preIndex 1522 skippy, err := skipBank(dAtA[iNdEx:]) 1523 if err != nil { 1524 return err 1525 } 1526 if (skippy < 0) || (iNdEx+skippy) < 0 { 1527 return ErrInvalidLengthBank 1528 } 1529 if (iNdEx + skippy) > l { 1530 return io.ErrUnexpectedEOF 1531 } 1532 iNdEx += skippy 1533 } 1534 } 1535 1536 if iNdEx > l { 1537 return io.ErrUnexpectedEOF 1538 } 1539 return nil 1540 } 1541 func (m *DenomUnit) Unmarshal(dAtA []byte) error { 1542 l := len(dAtA) 1543 iNdEx := 0 1544 for iNdEx < l { 1545 preIndex := iNdEx 1546 var wire uint64 1547 for shift := uint(0); ; shift += 7 { 1548 if shift >= 64 { 1549 return ErrIntOverflowBank 1550 } 1551 if iNdEx >= l { 1552 return io.ErrUnexpectedEOF 1553 } 1554 b := dAtA[iNdEx] 1555 iNdEx++ 1556 wire |= uint64(b&0x7F) << shift 1557 if b < 0x80 { 1558 break 1559 } 1560 } 1561 fieldNum := int32(wire >> 3) 1562 wireType := int(wire & 0x7) 1563 if wireType == 4 { 1564 return fmt.Errorf("proto: DenomUnit: wiretype end group for non-group") 1565 } 1566 if fieldNum <= 0 { 1567 return fmt.Errorf("proto: DenomUnit: illegal tag %d (wire type %d)", fieldNum, wire) 1568 } 1569 switch fieldNum { 1570 case 1: 1571 if wireType != 2 { 1572 return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) 1573 } 1574 var stringLen uint64 1575 for shift := uint(0); ; shift += 7 { 1576 if shift >= 64 { 1577 return ErrIntOverflowBank 1578 } 1579 if iNdEx >= l { 1580 return io.ErrUnexpectedEOF 1581 } 1582 b := dAtA[iNdEx] 1583 iNdEx++ 1584 stringLen |= uint64(b&0x7F) << shift 1585 if b < 0x80 { 1586 break 1587 } 1588 } 1589 intStringLen := int(stringLen) 1590 if intStringLen < 0 { 1591 return ErrInvalidLengthBank 1592 } 1593 postIndex := iNdEx + intStringLen 1594 if postIndex < 0 { 1595 return ErrInvalidLengthBank 1596 } 1597 if postIndex > l { 1598 return io.ErrUnexpectedEOF 1599 } 1600 m.Denom = string(dAtA[iNdEx:postIndex]) 1601 iNdEx = postIndex 1602 case 2: 1603 if wireType != 0 { 1604 return fmt.Errorf("proto: wrong wireType = %d for field Exponent", wireType) 1605 } 1606 m.Exponent = 0 1607 for shift := uint(0); ; shift += 7 { 1608 if shift >= 64 { 1609 return ErrIntOverflowBank 1610 } 1611 if iNdEx >= l { 1612 return io.ErrUnexpectedEOF 1613 } 1614 b := dAtA[iNdEx] 1615 iNdEx++ 1616 m.Exponent |= uint32(b&0x7F) << shift 1617 if b < 0x80 { 1618 break 1619 } 1620 } 1621 case 3: 1622 if wireType != 2 { 1623 return fmt.Errorf("proto: wrong wireType = %d for field Aliases", wireType) 1624 } 1625 var stringLen uint64 1626 for shift := uint(0); ; shift += 7 { 1627 if shift >= 64 { 1628 return ErrIntOverflowBank 1629 } 1630 if iNdEx >= l { 1631 return io.ErrUnexpectedEOF 1632 } 1633 b := dAtA[iNdEx] 1634 iNdEx++ 1635 stringLen |= uint64(b&0x7F) << shift 1636 if b < 0x80 { 1637 break 1638 } 1639 } 1640 intStringLen := int(stringLen) 1641 if intStringLen < 0 { 1642 return ErrInvalidLengthBank 1643 } 1644 postIndex := iNdEx + intStringLen 1645 if postIndex < 0 { 1646 return ErrInvalidLengthBank 1647 } 1648 if postIndex > l { 1649 return io.ErrUnexpectedEOF 1650 } 1651 m.Aliases = append(m.Aliases, string(dAtA[iNdEx:postIndex])) 1652 iNdEx = postIndex 1653 default: 1654 iNdEx = preIndex 1655 skippy, err := skipBank(dAtA[iNdEx:]) 1656 if err != nil { 1657 return err 1658 } 1659 if (skippy < 0) || (iNdEx+skippy) < 0 { 1660 return ErrInvalidLengthBank 1661 } 1662 if (iNdEx + skippy) > l { 1663 return io.ErrUnexpectedEOF 1664 } 1665 iNdEx += skippy 1666 } 1667 } 1668 1669 if iNdEx > l { 1670 return io.ErrUnexpectedEOF 1671 } 1672 return nil 1673 } 1674 func (m *Metadata) Unmarshal(dAtA []byte) error { 1675 l := len(dAtA) 1676 iNdEx := 0 1677 for iNdEx < l { 1678 preIndex := iNdEx 1679 var wire uint64 1680 for shift := uint(0); ; shift += 7 { 1681 if shift >= 64 { 1682 return ErrIntOverflowBank 1683 } 1684 if iNdEx >= l { 1685 return io.ErrUnexpectedEOF 1686 } 1687 b := dAtA[iNdEx] 1688 iNdEx++ 1689 wire |= uint64(b&0x7F) << shift 1690 if b < 0x80 { 1691 break 1692 } 1693 } 1694 fieldNum := int32(wire >> 3) 1695 wireType := int(wire & 0x7) 1696 if wireType == 4 { 1697 return fmt.Errorf("proto: Metadata: wiretype end group for non-group") 1698 } 1699 if fieldNum <= 0 { 1700 return fmt.Errorf("proto: Metadata: illegal tag %d (wire type %d)", fieldNum, wire) 1701 } 1702 switch fieldNum { 1703 case 1: 1704 if wireType != 2 { 1705 return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) 1706 } 1707 var stringLen uint64 1708 for shift := uint(0); ; shift += 7 { 1709 if shift >= 64 { 1710 return ErrIntOverflowBank 1711 } 1712 if iNdEx >= l { 1713 return io.ErrUnexpectedEOF 1714 } 1715 b := dAtA[iNdEx] 1716 iNdEx++ 1717 stringLen |= uint64(b&0x7F) << shift 1718 if b < 0x80 { 1719 break 1720 } 1721 } 1722 intStringLen := int(stringLen) 1723 if intStringLen < 0 { 1724 return ErrInvalidLengthBank 1725 } 1726 postIndex := iNdEx + intStringLen 1727 if postIndex < 0 { 1728 return ErrInvalidLengthBank 1729 } 1730 if postIndex > l { 1731 return io.ErrUnexpectedEOF 1732 } 1733 m.Description = string(dAtA[iNdEx:postIndex]) 1734 iNdEx = postIndex 1735 case 2: 1736 if wireType != 2 { 1737 return fmt.Errorf("proto: wrong wireType = %d for field DenomUnits", wireType) 1738 } 1739 var msglen int 1740 for shift := uint(0); ; shift += 7 { 1741 if shift >= 64 { 1742 return ErrIntOverflowBank 1743 } 1744 if iNdEx >= l { 1745 return io.ErrUnexpectedEOF 1746 } 1747 b := dAtA[iNdEx] 1748 iNdEx++ 1749 msglen |= int(b&0x7F) << shift 1750 if b < 0x80 { 1751 break 1752 } 1753 } 1754 if msglen < 0 { 1755 return ErrInvalidLengthBank 1756 } 1757 postIndex := iNdEx + msglen 1758 if postIndex < 0 { 1759 return ErrInvalidLengthBank 1760 } 1761 if postIndex > l { 1762 return io.ErrUnexpectedEOF 1763 } 1764 m.DenomUnits = append(m.DenomUnits, &DenomUnit{}) 1765 if err := m.DenomUnits[len(m.DenomUnits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1766 return err 1767 } 1768 iNdEx = postIndex 1769 case 3: 1770 if wireType != 2 { 1771 return fmt.Errorf("proto: wrong wireType = %d for field Base", wireType) 1772 } 1773 var stringLen uint64 1774 for shift := uint(0); ; shift += 7 { 1775 if shift >= 64 { 1776 return ErrIntOverflowBank 1777 } 1778 if iNdEx >= l { 1779 return io.ErrUnexpectedEOF 1780 } 1781 b := dAtA[iNdEx] 1782 iNdEx++ 1783 stringLen |= uint64(b&0x7F) << shift 1784 if b < 0x80 { 1785 break 1786 } 1787 } 1788 intStringLen := int(stringLen) 1789 if intStringLen < 0 { 1790 return ErrInvalidLengthBank 1791 } 1792 postIndex := iNdEx + intStringLen 1793 if postIndex < 0 { 1794 return ErrInvalidLengthBank 1795 } 1796 if postIndex > l { 1797 return io.ErrUnexpectedEOF 1798 } 1799 m.Base = string(dAtA[iNdEx:postIndex]) 1800 iNdEx = postIndex 1801 case 4: 1802 if wireType != 2 { 1803 return fmt.Errorf("proto: wrong wireType = %d for field Display", wireType) 1804 } 1805 var stringLen uint64 1806 for shift := uint(0); ; shift += 7 { 1807 if shift >= 64 { 1808 return ErrIntOverflowBank 1809 } 1810 if iNdEx >= l { 1811 return io.ErrUnexpectedEOF 1812 } 1813 b := dAtA[iNdEx] 1814 iNdEx++ 1815 stringLen |= uint64(b&0x7F) << shift 1816 if b < 0x80 { 1817 break 1818 } 1819 } 1820 intStringLen := int(stringLen) 1821 if intStringLen < 0 { 1822 return ErrInvalidLengthBank 1823 } 1824 postIndex := iNdEx + intStringLen 1825 if postIndex < 0 { 1826 return ErrInvalidLengthBank 1827 } 1828 if postIndex > l { 1829 return io.ErrUnexpectedEOF 1830 } 1831 m.Display = string(dAtA[iNdEx:postIndex]) 1832 iNdEx = postIndex 1833 case 5: 1834 if wireType != 2 { 1835 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 1836 } 1837 var stringLen uint64 1838 for shift := uint(0); ; shift += 7 { 1839 if shift >= 64 { 1840 return ErrIntOverflowBank 1841 } 1842 if iNdEx >= l { 1843 return io.ErrUnexpectedEOF 1844 } 1845 b := dAtA[iNdEx] 1846 iNdEx++ 1847 stringLen |= uint64(b&0x7F) << shift 1848 if b < 0x80 { 1849 break 1850 } 1851 } 1852 intStringLen := int(stringLen) 1853 if intStringLen < 0 { 1854 return ErrInvalidLengthBank 1855 } 1856 postIndex := iNdEx + intStringLen 1857 if postIndex < 0 { 1858 return ErrInvalidLengthBank 1859 } 1860 if postIndex > l { 1861 return io.ErrUnexpectedEOF 1862 } 1863 m.Name = string(dAtA[iNdEx:postIndex]) 1864 iNdEx = postIndex 1865 case 6: 1866 if wireType != 2 { 1867 return fmt.Errorf("proto: wrong wireType = %d for field Symbol", wireType) 1868 } 1869 var stringLen uint64 1870 for shift := uint(0); ; shift += 7 { 1871 if shift >= 64 { 1872 return ErrIntOverflowBank 1873 } 1874 if iNdEx >= l { 1875 return io.ErrUnexpectedEOF 1876 } 1877 b := dAtA[iNdEx] 1878 iNdEx++ 1879 stringLen |= uint64(b&0x7F) << shift 1880 if b < 0x80 { 1881 break 1882 } 1883 } 1884 intStringLen := int(stringLen) 1885 if intStringLen < 0 { 1886 return ErrInvalidLengthBank 1887 } 1888 postIndex := iNdEx + intStringLen 1889 if postIndex < 0 { 1890 return ErrInvalidLengthBank 1891 } 1892 if postIndex > l { 1893 return io.ErrUnexpectedEOF 1894 } 1895 m.Symbol = string(dAtA[iNdEx:postIndex]) 1896 iNdEx = postIndex 1897 default: 1898 iNdEx = preIndex 1899 skippy, err := skipBank(dAtA[iNdEx:]) 1900 if err != nil { 1901 return err 1902 } 1903 if (skippy < 0) || (iNdEx+skippy) < 0 { 1904 return ErrInvalidLengthBank 1905 } 1906 if (iNdEx + skippy) > l { 1907 return io.ErrUnexpectedEOF 1908 } 1909 iNdEx += skippy 1910 } 1911 } 1912 1913 if iNdEx > l { 1914 return io.ErrUnexpectedEOF 1915 } 1916 return nil 1917 } 1918 func skipBank(dAtA []byte) (n int, err error) { 1919 l := len(dAtA) 1920 iNdEx := 0 1921 depth := 0 1922 for iNdEx < l { 1923 var wire uint64 1924 for shift := uint(0); ; shift += 7 { 1925 if shift >= 64 { 1926 return 0, ErrIntOverflowBank 1927 } 1928 if iNdEx >= l { 1929 return 0, io.ErrUnexpectedEOF 1930 } 1931 b := dAtA[iNdEx] 1932 iNdEx++ 1933 wire |= (uint64(b) & 0x7F) << shift 1934 if b < 0x80 { 1935 break 1936 } 1937 } 1938 wireType := int(wire & 0x7) 1939 switch wireType { 1940 case 0: 1941 for shift := uint(0); ; shift += 7 { 1942 if shift >= 64 { 1943 return 0, ErrIntOverflowBank 1944 } 1945 if iNdEx >= l { 1946 return 0, io.ErrUnexpectedEOF 1947 } 1948 iNdEx++ 1949 if dAtA[iNdEx-1] < 0x80 { 1950 break 1951 } 1952 } 1953 case 1: 1954 iNdEx += 8 1955 case 2: 1956 var length int 1957 for shift := uint(0); ; shift += 7 { 1958 if shift >= 64 { 1959 return 0, ErrIntOverflowBank 1960 } 1961 if iNdEx >= l { 1962 return 0, io.ErrUnexpectedEOF 1963 } 1964 b := dAtA[iNdEx] 1965 iNdEx++ 1966 length |= (int(b) & 0x7F) << shift 1967 if b < 0x80 { 1968 break 1969 } 1970 } 1971 if length < 0 { 1972 return 0, ErrInvalidLengthBank 1973 } 1974 iNdEx += length 1975 case 3: 1976 depth++ 1977 case 4: 1978 if depth == 0 { 1979 return 0, ErrUnexpectedEndOfGroupBank 1980 } 1981 depth-- 1982 case 5: 1983 iNdEx += 4 1984 default: 1985 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1986 } 1987 if iNdEx < 0 { 1988 return 0, ErrInvalidLengthBank 1989 } 1990 if depth == 0 { 1991 return iNdEx, nil 1992 } 1993 } 1994 return 0, io.ErrUnexpectedEOF 1995 } 1996 1997 var ( 1998 ErrInvalidLengthBank = fmt.Errorf("proto: negative length found during unmarshaling") 1999 ErrIntOverflowBank = fmt.Errorf("proto: integer overflow") 2000 ErrUnexpectedEndOfGroupBank = fmt.Errorf("proto: unexpected end of group") 2001 )