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