github.com/Finschia/finschia-sdk@v0.49.1/x/auth/vesting/types/vesting.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: cosmos/vesting/v1beta1/vesting.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 types1 "github.com/Finschia/finschia-sdk/types" 10 types "github.com/Finschia/finschia-sdk/x/auth/types" 11 _ "github.com/gogo/protobuf/gogoproto" 12 proto "github.com/gogo/protobuf/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 // BaseVestingAccount implements the VestingAccount interface. It contains all 30 // the necessary fields needed for any vesting account implementation. 31 type BaseVestingAccount struct { 32 *types.BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3,embedded=base_account" json:"base_account,omitempty"` 33 OriginalVesting github_com_Finschia_finschia_sdk_types.Coins `protobuf:"bytes,2,rep,name=original_vesting,json=originalVesting,proto3,castrepeated=github.com/Finschia/finschia-sdk/types.Coins" json:"original_vesting" yaml:"original_vesting"` 34 DelegatedFree github_com_Finschia_finschia_sdk_types.Coins `protobuf:"bytes,3,rep,name=delegated_free,json=delegatedFree,proto3,castrepeated=github.com/Finschia/finschia-sdk/types.Coins" json:"delegated_free" yaml:"delegated_free"` 35 DelegatedVesting github_com_Finschia_finschia_sdk_types.Coins `protobuf:"bytes,4,rep,name=delegated_vesting,json=delegatedVesting,proto3,castrepeated=github.com/Finschia/finschia-sdk/types.Coins" json:"delegated_vesting" yaml:"delegated_vesting"` 36 EndTime int64 `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty" yaml:"end_time"` 37 } 38 39 func (m *BaseVestingAccount) Reset() { *m = BaseVestingAccount{} } 40 func (*BaseVestingAccount) ProtoMessage() {} 41 func (*BaseVestingAccount) Descriptor() ([]byte, []int) { 42 return fileDescriptor_89e80273ca606d6e, []int{0} 43 } 44 func (m *BaseVestingAccount) XXX_Unmarshal(b []byte) error { 45 return m.Unmarshal(b) 46 } 47 func (m *BaseVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 48 if deterministic { 49 return xxx_messageInfo_BaseVestingAccount.Marshal(b, m, deterministic) 50 } else { 51 b = b[:cap(b)] 52 n, err := m.MarshalToSizedBuffer(b) 53 if err != nil { 54 return nil, err 55 } 56 return b[:n], nil 57 } 58 } 59 func (m *BaseVestingAccount) XXX_Merge(src proto.Message) { 60 xxx_messageInfo_BaseVestingAccount.Merge(m, src) 61 } 62 func (m *BaseVestingAccount) XXX_Size() int { 63 return m.Size() 64 } 65 func (m *BaseVestingAccount) XXX_DiscardUnknown() { 66 xxx_messageInfo_BaseVestingAccount.DiscardUnknown(m) 67 } 68 69 var xxx_messageInfo_BaseVestingAccount proto.InternalMessageInfo 70 71 // ContinuousVestingAccount implements the VestingAccount interface. It 72 // continuously vests by unlocking coins linearly with respect to time. 73 type ContinuousVestingAccount struct { 74 *BaseVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3,embedded=base_vesting_account" json:"base_vesting_account,omitempty"` 75 StartTime int64 `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty" yaml:"start_time"` 76 } 77 78 func (m *ContinuousVestingAccount) Reset() { *m = ContinuousVestingAccount{} } 79 func (*ContinuousVestingAccount) ProtoMessage() {} 80 func (*ContinuousVestingAccount) Descriptor() ([]byte, []int) { 81 return fileDescriptor_89e80273ca606d6e, []int{1} 82 } 83 func (m *ContinuousVestingAccount) XXX_Unmarshal(b []byte) error { 84 return m.Unmarshal(b) 85 } 86 func (m *ContinuousVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 87 if deterministic { 88 return xxx_messageInfo_ContinuousVestingAccount.Marshal(b, m, deterministic) 89 } else { 90 b = b[:cap(b)] 91 n, err := m.MarshalToSizedBuffer(b) 92 if err != nil { 93 return nil, err 94 } 95 return b[:n], nil 96 } 97 } 98 func (m *ContinuousVestingAccount) XXX_Merge(src proto.Message) { 99 xxx_messageInfo_ContinuousVestingAccount.Merge(m, src) 100 } 101 func (m *ContinuousVestingAccount) XXX_Size() int { 102 return m.Size() 103 } 104 func (m *ContinuousVestingAccount) XXX_DiscardUnknown() { 105 xxx_messageInfo_ContinuousVestingAccount.DiscardUnknown(m) 106 } 107 108 var xxx_messageInfo_ContinuousVestingAccount proto.InternalMessageInfo 109 110 // DelayedVestingAccount implements the VestingAccount interface. It vests all 111 // coins after a specific time, but non prior. In other words, it keeps them 112 // locked until a specified time. 113 type DelayedVestingAccount struct { 114 *BaseVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3,embedded=base_vesting_account" json:"base_vesting_account,omitempty"` 115 } 116 117 func (m *DelayedVestingAccount) Reset() { *m = DelayedVestingAccount{} } 118 func (*DelayedVestingAccount) ProtoMessage() {} 119 func (*DelayedVestingAccount) Descriptor() ([]byte, []int) { 120 return fileDescriptor_89e80273ca606d6e, []int{2} 121 } 122 func (m *DelayedVestingAccount) XXX_Unmarshal(b []byte) error { 123 return m.Unmarshal(b) 124 } 125 func (m *DelayedVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 126 if deterministic { 127 return xxx_messageInfo_DelayedVestingAccount.Marshal(b, m, deterministic) 128 } else { 129 b = b[:cap(b)] 130 n, err := m.MarshalToSizedBuffer(b) 131 if err != nil { 132 return nil, err 133 } 134 return b[:n], nil 135 } 136 } 137 func (m *DelayedVestingAccount) XXX_Merge(src proto.Message) { 138 xxx_messageInfo_DelayedVestingAccount.Merge(m, src) 139 } 140 func (m *DelayedVestingAccount) XXX_Size() int { 141 return m.Size() 142 } 143 func (m *DelayedVestingAccount) XXX_DiscardUnknown() { 144 xxx_messageInfo_DelayedVestingAccount.DiscardUnknown(m) 145 } 146 147 var xxx_messageInfo_DelayedVestingAccount proto.InternalMessageInfo 148 149 // Period defines a length of time and amount of coins that will vest. 150 type Period struct { 151 Length int64 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` 152 Amount github_com_Finschia_finschia_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/Finschia/finschia-sdk/types.Coins" json:"amount"` 153 } 154 155 func (m *Period) Reset() { *m = Period{} } 156 func (*Period) ProtoMessage() {} 157 func (*Period) Descriptor() ([]byte, []int) { 158 return fileDescriptor_89e80273ca606d6e, []int{3} 159 } 160 func (m *Period) XXX_Unmarshal(b []byte) error { 161 return m.Unmarshal(b) 162 } 163 func (m *Period) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 164 if deterministic { 165 return xxx_messageInfo_Period.Marshal(b, m, deterministic) 166 } else { 167 b = b[:cap(b)] 168 n, err := m.MarshalToSizedBuffer(b) 169 if err != nil { 170 return nil, err 171 } 172 return b[:n], nil 173 } 174 } 175 func (m *Period) XXX_Merge(src proto.Message) { 176 xxx_messageInfo_Period.Merge(m, src) 177 } 178 func (m *Period) XXX_Size() int { 179 return m.Size() 180 } 181 func (m *Period) XXX_DiscardUnknown() { 182 xxx_messageInfo_Period.DiscardUnknown(m) 183 } 184 185 var xxx_messageInfo_Period proto.InternalMessageInfo 186 187 func (m *Period) GetLength() int64 { 188 if m != nil { 189 return m.Length 190 } 191 return 0 192 } 193 194 func (m *Period) GetAmount() github_com_Finschia_finschia_sdk_types.Coins { 195 if m != nil { 196 return m.Amount 197 } 198 return nil 199 } 200 201 // PeriodicVestingAccount implements the VestingAccount interface. It 202 // periodically vests by unlocking coins during each specified period. 203 type PeriodicVestingAccount struct { 204 *BaseVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3,embedded=base_vesting_account" json:"base_vesting_account,omitempty"` 205 StartTime int64 `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty" yaml:"start_time"` 206 VestingPeriods []Period `protobuf:"bytes,3,rep,name=vesting_periods,json=vestingPeriods,proto3" json:"vesting_periods" yaml:"vesting_periods"` 207 } 208 209 func (m *PeriodicVestingAccount) Reset() { *m = PeriodicVestingAccount{} } 210 func (*PeriodicVestingAccount) ProtoMessage() {} 211 func (*PeriodicVestingAccount) Descriptor() ([]byte, []int) { 212 return fileDescriptor_89e80273ca606d6e, []int{4} 213 } 214 func (m *PeriodicVestingAccount) XXX_Unmarshal(b []byte) error { 215 return m.Unmarshal(b) 216 } 217 func (m *PeriodicVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 218 if deterministic { 219 return xxx_messageInfo_PeriodicVestingAccount.Marshal(b, m, deterministic) 220 } else { 221 b = b[:cap(b)] 222 n, err := m.MarshalToSizedBuffer(b) 223 if err != nil { 224 return nil, err 225 } 226 return b[:n], nil 227 } 228 } 229 func (m *PeriodicVestingAccount) XXX_Merge(src proto.Message) { 230 xxx_messageInfo_PeriodicVestingAccount.Merge(m, src) 231 } 232 func (m *PeriodicVestingAccount) XXX_Size() int { 233 return m.Size() 234 } 235 func (m *PeriodicVestingAccount) XXX_DiscardUnknown() { 236 xxx_messageInfo_PeriodicVestingAccount.DiscardUnknown(m) 237 } 238 239 var xxx_messageInfo_PeriodicVestingAccount proto.InternalMessageInfo 240 241 // PermanentLockedAccount implements the VestingAccount interface. It does 242 // not ever release coins, locking them indefinitely. Coins in this account can 243 // still be used for delegating and for governance votes even while locked. 244 // 245 // Since: cosmos-sdk 0.43 246 type PermanentLockedAccount struct { 247 *BaseVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3,embedded=base_vesting_account" json:"base_vesting_account,omitempty"` 248 } 249 250 func (m *PermanentLockedAccount) Reset() { *m = PermanentLockedAccount{} } 251 func (*PermanentLockedAccount) ProtoMessage() {} 252 func (*PermanentLockedAccount) Descriptor() ([]byte, []int) { 253 return fileDescriptor_89e80273ca606d6e, []int{5} 254 } 255 func (m *PermanentLockedAccount) XXX_Unmarshal(b []byte) error { 256 return m.Unmarshal(b) 257 } 258 func (m *PermanentLockedAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 259 if deterministic { 260 return xxx_messageInfo_PermanentLockedAccount.Marshal(b, m, deterministic) 261 } else { 262 b = b[:cap(b)] 263 n, err := m.MarshalToSizedBuffer(b) 264 if err != nil { 265 return nil, err 266 } 267 return b[:n], nil 268 } 269 } 270 func (m *PermanentLockedAccount) XXX_Merge(src proto.Message) { 271 xxx_messageInfo_PermanentLockedAccount.Merge(m, src) 272 } 273 func (m *PermanentLockedAccount) XXX_Size() int { 274 return m.Size() 275 } 276 func (m *PermanentLockedAccount) XXX_DiscardUnknown() { 277 xxx_messageInfo_PermanentLockedAccount.DiscardUnknown(m) 278 } 279 280 var xxx_messageInfo_PermanentLockedAccount proto.InternalMessageInfo 281 282 func init() { 283 proto.RegisterType((*BaseVestingAccount)(nil), "cosmos.vesting.v1beta1.BaseVestingAccount") 284 proto.RegisterType((*ContinuousVestingAccount)(nil), "cosmos.vesting.v1beta1.ContinuousVestingAccount") 285 proto.RegisterType((*DelayedVestingAccount)(nil), "cosmos.vesting.v1beta1.DelayedVestingAccount") 286 proto.RegisterType((*Period)(nil), "cosmos.vesting.v1beta1.Period") 287 proto.RegisterType((*PeriodicVestingAccount)(nil), "cosmos.vesting.v1beta1.PeriodicVestingAccount") 288 proto.RegisterType((*PermanentLockedAccount)(nil), "cosmos.vesting.v1beta1.PermanentLockedAccount") 289 } 290 291 func init() { 292 proto.RegisterFile("cosmos/vesting/v1beta1/vesting.proto", fileDescriptor_89e80273ca606d6e) 293 } 294 295 var fileDescriptor_89e80273ca606d6e = []byte{ 296 // 613 bytes of a gzipped FileDescriptorProto 297 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x95, 0x3f, 0x6f, 0xd4, 0x30, 298 0x18, 0xc6, 0xcf, 0xbd, 0xe3, 0x28, 0x2e, 0xf4, 0x4f, 0x68, 0x8f, 0xd0, 0x21, 0x39, 0x45, 0x0c, 299 0x15, 0x82, 0x44, 0x2d, 0x65, 0xe9, 0x46, 0x8a, 0x2a, 0x21, 0x81, 0x5a, 0x45, 0x88, 0x81, 0xe5, 300 0xe4, 0x24, 0x6e, 0xce, 0xea, 0xc5, 0xae, 0x62, 0x5f, 0x45, 0x3f, 0x00, 0x88, 0xad, 0x2c, 0x48, 301 0x1d, 0xbb, 0xb0, 0xf0, 0x21, 0x98, 0x3b, 0x76, 0x64, 0x0a, 0xa8, 0xfd, 0x06, 0xfd, 0x04, 0x28, 302 0xb6, 0x93, 0x2b, 0x29, 0xe8, 0x54, 0x06, 0x10, 0x5b, 0x5e, 0xbf, 0xaf, 0x1f, 0xff, 0xfc, 0xe6, 303 0x79, 0x65, 0x78, 0x2f, 0x62, 0x3c, 0x65, 0xdc, 0xdb, 0xc3, 0x5c, 0x10, 0x9a, 0x78, 0x7b, 0xcb, 304 0x21, 0x16, 0x68, 0xb9, 0x8c, 0xdd, 0xdd, 0x8c, 0x09, 0x66, 0x74, 0x54, 0x95, 0x5b, 0xae, 0xea, 305 0xaa, 0xc5, 0xf9, 0x84, 0x25, 0x4c, 0x96, 0x78, 0xc5, 0x97, 0xaa, 0x5e, 0xb4, 0xb4, 0x66, 0x88, 306 0x38, 0xae, 0x04, 0x23, 0x46, 0x68, 0x2d, 0x8f, 0x86, 0xa2, 0x5f, 0xe5, 0x8b, 0x40, 0xe5, 0x9d, 307 0xbc, 0x05, 0x0d, 0x1f, 0x71, 0xfc, 0x4a, 0x9d, 0xf6, 0x24, 0x8a, 0xd8, 0x90, 0x0a, 0xe3, 0x19, 308 0xbc, 0x59, 0x28, 0xf6, 0x90, 0x8a, 0x4d, 0xd0, 0x05, 0x4b, 0x53, 0x2b, 0x5d, 0x57, 0xb3, 0x49, 309 0x01, 0xad, 0xe6, 0x16, 0xdb, 0xf5, 0x3e, 0xbf, 0x75, 0x92, 0xdb, 0x20, 0x98, 0x0a, 0x47, 0x4b, 310 0xc6, 0x47, 0x00, 0x67, 0x59, 0x46, 0x12, 0x42, 0xd1, 0xa0, 0xa7, 0x2f, 0x65, 0x4e, 0x74, 0x9b, 311 0x4b, 0x53, 0x2b, 0x77, 0x4b, 0xbd, 0xa2, 0xbe, 0xd2, 0x5b, 0x67, 0x84, 0xfa, 0x9b, 0xc7, 0xb9, 312 0xdd, 0x38, 0xcf, 0xed, 0x3b, 0xfb, 0x28, 0x1d, 0xac, 0x39, 0x75, 0x01, 0xe7, 0xf3, 0x37, 0xfb, 313 0x41, 0x42, 0x44, 0x7f, 0x18, 0xba, 0x11, 0x4b, 0xbd, 0x0d, 0x42, 0x79, 0xd4, 0x27, 0xc8, 0xdb, 314 0xd6, 0x1f, 0x0f, 0x79, 0xbc, 0xe3, 0x89, 0xfd, 0x5d, 0xcc, 0xa5, 0x1e, 0x0f, 0x66, 0x4a, 0x09, 315 0x7d, 0x53, 0xe3, 0x00, 0xc0, 0xe9, 0x18, 0x0f, 0x70, 0x82, 0x04, 0x8e, 0x7b, 0xdb, 0x19, 0xc6, 316 0x66, 0x73, 0x1c, 0xd5, 0x0b, 0x4d, 0xb5, 0xa0, 0xa8, 0x7e, 0xde, 0x7e, 0x75, 0xa6, 0x5b, 0x95, 317 0xc0, 0x46, 0x86, 0xb1, 0x71, 0x08, 0xe0, 0xdc, 0x48, 0xb2, 0x6c, 0x55, 0x6b, 0x1c, 0xd4, 0x96, 318 0x86, 0x32, 0xeb, 0x50, 0x7f, 0xdc, 0xab, 0xd9, 0x4a, 0xa3, 0x6c, 0x96, 0x0b, 0x27, 0x31, 0x8d, 319 0x7b, 0x82, 0xa4, 0xd8, 0xbc, 0xd6, 0x05, 0x4b, 0x4d, 0xff, 0xf6, 0x79, 0x6e, 0xcf, 0xa8, 0x13, 320 0xcb, 0x8c, 0x13, 0x5c, 0xc7, 0x34, 0x7e, 0x49, 0x52, 0xbc, 0x36, 0xf9, 0xfe, 0xc8, 0x6e, 0x1c, 321 0x1e, 0xd9, 0x0d, 0xe7, 0x0b, 0x80, 0xe6, 0x3a, 0xa3, 0x82, 0xd0, 0x21, 0x1b, 0xf2, 0x9a, 0xcd, 322 0x42, 0x38, 0x2f, 0x6d, 0xa6, 0x49, 0x6b, 0x76, 0xbb, 0xef, 0xfe, 0x7a, 0x14, 0xdc, 0xcb, 0x86, 323 0xd5, 0xc6, 0x33, 0xc2, 0xcb, 0x56, 0x5e, 0x85, 0x90, 0x0b, 0x94, 0x09, 0x05, 0x3f, 0x21, 0xe1, 324 0x17, 0xce, 0x73, 0x7b, 0x4e, 0xc1, 0x8f, 0x72, 0x4e, 0x70, 0x43, 0x06, 0xb5, 0x0b, 0xbc, 0x05, 325 0x70, 0xe1, 0x29, 0x1e, 0xa0, 0xfd, 0xaa, 0x1b, 0x7f, 0x91, 0xfe, 0x02, 0xc7, 0x01, 0x80, 0xed, 326 0x2d, 0x9c, 0x11, 0x16, 0x1b, 0x1d, 0xd8, 0x1e, 0x60, 0x9a, 0x88, 0xbe, 0x3c, 0xaa, 0x19, 0xe8, 327 0xc8, 0x48, 0x60, 0x1b, 0xa5, 0x12, 0x61, 0xec, 0x7c, 0xad, 0x16, 0xa6, 0xb9, 0xb2, 0x31, 0xb4, 328 0xfc, 0x5a, 0x4b, 0x12, 0x7d, 0x9a, 0x80, 0x1d, 0x45, 0x44, 0xa2, 0xff, 0xe5, 0xc7, 0x1a, 0x09, 329 0x9c, 0x29, 0xa1, 0x76, 0x25, 0x3b, 0xd7, 0x63, 0x6f, 0xfd, 0x0e, 0x4a, 0x5d, 0xd1, 0xb7, 0xf4, 330 0x98, 0x75, 0x94, 0x7c, 0x4d, 0xc4, 0x09, 0xa6, 0xf5, 0x8a, 0x2a, 0xe7, 0x17, 0xfe, 0xdc, 0x3b, 331 0x20, 0xfb, 0x94, 0x22, 0x8a, 0xa9, 0x78, 0xce, 0xa2, 0x1d, 0x1c, 0xff, 0x13, 0x0b, 0xf9, 0x9b, 332 0xc7, 0xa7, 0x16, 0x38, 0x39, 0xb5, 0xc0, 0xf7, 0x53, 0x0b, 0x7c, 0x38, 0xb3, 0x1a, 0x27, 0x67, 333 0x56, 0xe3, 0xeb, 0x99, 0xd5, 0x78, 0xfd, 0x78, 0xac, 0x0d, 0xde, 0xe8, 0x27, 0x44, 0xbf, 0x5d, 334 0xd2, 0x15, 0x61, 0x5b, 0x3e, 0x22, 0x8f, 0x7e, 0x04, 0x00, 0x00, 0xff, 0xff, 0x51, 0x24, 0x76, 335 0x94, 0xda, 0x06, 0x00, 0x00, 336 } 337 338 func (m *BaseVestingAccount) Marshal() (dAtA []byte, err error) { 339 size := m.Size() 340 dAtA = make([]byte, size) 341 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 342 if err != nil { 343 return nil, err 344 } 345 return dAtA[:n], nil 346 } 347 348 func (m *BaseVestingAccount) MarshalTo(dAtA []byte) (int, error) { 349 size := m.Size() 350 return m.MarshalToSizedBuffer(dAtA[:size]) 351 } 352 353 func (m *BaseVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { 354 i := len(dAtA) 355 _ = i 356 var l int 357 _ = l 358 if m.EndTime != 0 { 359 i = encodeVarintVesting(dAtA, i, uint64(m.EndTime)) 360 i-- 361 dAtA[i] = 0x28 362 } 363 if len(m.DelegatedVesting) > 0 { 364 for iNdEx := len(m.DelegatedVesting) - 1; iNdEx >= 0; iNdEx-- { 365 { 366 size, err := m.DelegatedVesting[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 367 if err != nil { 368 return 0, err 369 } 370 i -= size 371 i = encodeVarintVesting(dAtA, i, uint64(size)) 372 } 373 i-- 374 dAtA[i] = 0x22 375 } 376 } 377 if len(m.DelegatedFree) > 0 { 378 for iNdEx := len(m.DelegatedFree) - 1; iNdEx >= 0; iNdEx-- { 379 { 380 size, err := m.DelegatedFree[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 381 if err != nil { 382 return 0, err 383 } 384 i -= size 385 i = encodeVarintVesting(dAtA, i, uint64(size)) 386 } 387 i-- 388 dAtA[i] = 0x1a 389 } 390 } 391 if len(m.OriginalVesting) > 0 { 392 for iNdEx := len(m.OriginalVesting) - 1; iNdEx >= 0; iNdEx-- { 393 { 394 size, err := m.OriginalVesting[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 395 if err != nil { 396 return 0, err 397 } 398 i -= size 399 i = encodeVarintVesting(dAtA, i, uint64(size)) 400 } 401 i-- 402 dAtA[i] = 0x12 403 } 404 } 405 if m.BaseAccount != nil { 406 { 407 size, err := m.BaseAccount.MarshalToSizedBuffer(dAtA[:i]) 408 if err != nil { 409 return 0, err 410 } 411 i -= size 412 i = encodeVarintVesting(dAtA, i, uint64(size)) 413 } 414 i-- 415 dAtA[i] = 0xa 416 } 417 return len(dAtA) - i, nil 418 } 419 420 func (m *ContinuousVestingAccount) Marshal() (dAtA []byte, err error) { 421 size := m.Size() 422 dAtA = make([]byte, size) 423 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 424 if err != nil { 425 return nil, err 426 } 427 return dAtA[:n], nil 428 } 429 430 func (m *ContinuousVestingAccount) MarshalTo(dAtA []byte) (int, error) { 431 size := m.Size() 432 return m.MarshalToSizedBuffer(dAtA[:size]) 433 } 434 435 func (m *ContinuousVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { 436 i := len(dAtA) 437 _ = i 438 var l int 439 _ = l 440 if m.StartTime != 0 { 441 i = encodeVarintVesting(dAtA, i, uint64(m.StartTime)) 442 i-- 443 dAtA[i] = 0x10 444 } 445 if m.BaseVestingAccount != nil { 446 { 447 size, err := m.BaseVestingAccount.MarshalToSizedBuffer(dAtA[:i]) 448 if err != nil { 449 return 0, err 450 } 451 i -= size 452 i = encodeVarintVesting(dAtA, i, uint64(size)) 453 } 454 i-- 455 dAtA[i] = 0xa 456 } 457 return len(dAtA) - i, nil 458 } 459 460 func (m *DelayedVestingAccount) Marshal() (dAtA []byte, err error) { 461 size := m.Size() 462 dAtA = make([]byte, size) 463 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 464 if err != nil { 465 return nil, err 466 } 467 return dAtA[:n], nil 468 } 469 470 func (m *DelayedVestingAccount) MarshalTo(dAtA []byte) (int, error) { 471 size := m.Size() 472 return m.MarshalToSizedBuffer(dAtA[:size]) 473 } 474 475 func (m *DelayedVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { 476 i := len(dAtA) 477 _ = i 478 var l int 479 _ = l 480 if m.BaseVestingAccount != nil { 481 { 482 size, err := m.BaseVestingAccount.MarshalToSizedBuffer(dAtA[:i]) 483 if err != nil { 484 return 0, err 485 } 486 i -= size 487 i = encodeVarintVesting(dAtA, i, uint64(size)) 488 } 489 i-- 490 dAtA[i] = 0xa 491 } 492 return len(dAtA) - i, nil 493 } 494 495 func (m *Period) Marshal() (dAtA []byte, err error) { 496 size := m.Size() 497 dAtA = make([]byte, size) 498 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 499 if err != nil { 500 return nil, err 501 } 502 return dAtA[:n], nil 503 } 504 505 func (m *Period) MarshalTo(dAtA []byte) (int, error) { 506 size := m.Size() 507 return m.MarshalToSizedBuffer(dAtA[:size]) 508 } 509 510 func (m *Period) MarshalToSizedBuffer(dAtA []byte) (int, error) { 511 i := len(dAtA) 512 _ = i 513 var l int 514 _ = l 515 if len(m.Amount) > 0 { 516 for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { 517 { 518 size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 519 if err != nil { 520 return 0, err 521 } 522 i -= size 523 i = encodeVarintVesting(dAtA, i, uint64(size)) 524 } 525 i-- 526 dAtA[i] = 0x12 527 } 528 } 529 if m.Length != 0 { 530 i = encodeVarintVesting(dAtA, i, uint64(m.Length)) 531 i-- 532 dAtA[i] = 0x8 533 } 534 return len(dAtA) - i, nil 535 } 536 537 func (m *PeriodicVestingAccount) Marshal() (dAtA []byte, err error) { 538 size := m.Size() 539 dAtA = make([]byte, size) 540 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 541 if err != nil { 542 return nil, err 543 } 544 return dAtA[:n], nil 545 } 546 547 func (m *PeriodicVestingAccount) MarshalTo(dAtA []byte) (int, error) { 548 size := m.Size() 549 return m.MarshalToSizedBuffer(dAtA[:size]) 550 } 551 552 func (m *PeriodicVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { 553 i := len(dAtA) 554 _ = i 555 var l int 556 _ = l 557 if len(m.VestingPeriods) > 0 { 558 for iNdEx := len(m.VestingPeriods) - 1; iNdEx >= 0; iNdEx-- { 559 { 560 size, err := m.VestingPeriods[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 561 if err != nil { 562 return 0, err 563 } 564 i -= size 565 i = encodeVarintVesting(dAtA, i, uint64(size)) 566 } 567 i-- 568 dAtA[i] = 0x1a 569 } 570 } 571 if m.StartTime != 0 { 572 i = encodeVarintVesting(dAtA, i, uint64(m.StartTime)) 573 i-- 574 dAtA[i] = 0x10 575 } 576 if m.BaseVestingAccount != nil { 577 { 578 size, err := m.BaseVestingAccount.MarshalToSizedBuffer(dAtA[:i]) 579 if err != nil { 580 return 0, err 581 } 582 i -= size 583 i = encodeVarintVesting(dAtA, i, uint64(size)) 584 } 585 i-- 586 dAtA[i] = 0xa 587 } 588 return len(dAtA) - i, nil 589 } 590 591 func (m *PermanentLockedAccount) Marshal() (dAtA []byte, err error) { 592 size := m.Size() 593 dAtA = make([]byte, size) 594 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 595 if err != nil { 596 return nil, err 597 } 598 return dAtA[:n], nil 599 } 600 601 func (m *PermanentLockedAccount) MarshalTo(dAtA []byte) (int, error) { 602 size := m.Size() 603 return m.MarshalToSizedBuffer(dAtA[:size]) 604 } 605 606 func (m *PermanentLockedAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { 607 i := len(dAtA) 608 _ = i 609 var l int 610 _ = l 611 if m.BaseVestingAccount != nil { 612 { 613 size, err := m.BaseVestingAccount.MarshalToSizedBuffer(dAtA[:i]) 614 if err != nil { 615 return 0, err 616 } 617 i -= size 618 i = encodeVarintVesting(dAtA, i, uint64(size)) 619 } 620 i-- 621 dAtA[i] = 0xa 622 } 623 return len(dAtA) - i, nil 624 } 625 626 func encodeVarintVesting(dAtA []byte, offset int, v uint64) int { 627 offset -= sovVesting(v) 628 base := offset 629 for v >= 1<<7 { 630 dAtA[offset] = uint8(v&0x7f | 0x80) 631 v >>= 7 632 offset++ 633 } 634 dAtA[offset] = uint8(v) 635 return base 636 } 637 func (m *BaseVestingAccount) Size() (n int) { 638 if m == nil { 639 return 0 640 } 641 var l int 642 _ = l 643 if m.BaseAccount != nil { 644 l = m.BaseAccount.Size() 645 n += 1 + l + sovVesting(uint64(l)) 646 } 647 if len(m.OriginalVesting) > 0 { 648 for _, e := range m.OriginalVesting { 649 l = e.Size() 650 n += 1 + l + sovVesting(uint64(l)) 651 } 652 } 653 if len(m.DelegatedFree) > 0 { 654 for _, e := range m.DelegatedFree { 655 l = e.Size() 656 n += 1 + l + sovVesting(uint64(l)) 657 } 658 } 659 if len(m.DelegatedVesting) > 0 { 660 for _, e := range m.DelegatedVesting { 661 l = e.Size() 662 n += 1 + l + sovVesting(uint64(l)) 663 } 664 } 665 if m.EndTime != 0 { 666 n += 1 + sovVesting(uint64(m.EndTime)) 667 } 668 return n 669 } 670 671 func (m *ContinuousVestingAccount) Size() (n int) { 672 if m == nil { 673 return 0 674 } 675 var l int 676 _ = l 677 if m.BaseVestingAccount != nil { 678 l = m.BaseVestingAccount.Size() 679 n += 1 + l + sovVesting(uint64(l)) 680 } 681 if m.StartTime != 0 { 682 n += 1 + sovVesting(uint64(m.StartTime)) 683 } 684 return n 685 } 686 687 func (m *DelayedVestingAccount) Size() (n int) { 688 if m == nil { 689 return 0 690 } 691 var l int 692 _ = l 693 if m.BaseVestingAccount != nil { 694 l = m.BaseVestingAccount.Size() 695 n += 1 + l + sovVesting(uint64(l)) 696 } 697 return n 698 } 699 700 func (m *Period) Size() (n int) { 701 if m == nil { 702 return 0 703 } 704 var l int 705 _ = l 706 if m.Length != 0 { 707 n += 1 + sovVesting(uint64(m.Length)) 708 } 709 if len(m.Amount) > 0 { 710 for _, e := range m.Amount { 711 l = e.Size() 712 n += 1 + l + sovVesting(uint64(l)) 713 } 714 } 715 return n 716 } 717 718 func (m *PeriodicVestingAccount) Size() (n int) { 719 if m == nil { 720 return 0 721 } 722 var l int 723 _ = l 724 if m.BaseVestingAccount != nil { 725 l = m.BaseVestingAccount.Size() 726 n += 1 + l + sovVesting(uint64(l)) 727 } 728 if m.StartTime != 0 { 729 n += 1 + sovVesting(uint64(m.StartTime)) 730 } 731 if len(m.VestingPeriods) > 0 { 732 for _, e := range m.VestingPeriods { 733 l = e.Size() 734 n += 1 + l + sovVesting(uint64(l)) 735 } 736 } 737 return n 738 } 739 740 func (m *PermanentLockedAccount) Size() (n int) { 741 if m == nil { 742 return 0 743 } 744 var l int 745 _ = l 746 if m.BaseVestingAccount != nil { 747 l = m.BaseVestingAccount.Size() 748 n += 1 + l + sovVesting(uint64(l)) 749 } 750 return n 751 } 752 753 func sovVesting(x uint64) (n int) { 754 return (math_bits.Len64(x|1) + 6) / 7 755 } 756 func sozVesting(x uint64) (n int) { 757 return sovVesting(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 758 } 759 func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error { 760 l := len(dAtA) 761 iNdEx := 0 762 for iNdEx < l { 763 preIndex := iNdEx 764 var wire uint64 765 for shift := uint(0); ; shift += 7 { 766 if shift >= 64 { 767 return ErrIntOverflowVesting 768 } 769 if iNdEx >= l { 770 return io.ErrUnexpectedEOF 771 } 772 b := dAtA[iNdEx] 773 iNdEx++ 774 wire |= uint64(b&0x7F) << shift 775 if b < 0x80 { 776 break 777 } 778 } 779 fieldNum := int32(wire >> 3) 780 wireType := int(wire & 0x7) 781 if wireType == 4 { 782 return fmt.Errorf("proto: BaseVestingAccount: wiretype end group for non-group") 783 } 784 if fieldNum <= 0 { 785 return fmt.Errorf("proto: BaseVestingAccount: illegal tag %d (wire type %d)", fieldNum, wire) 786 } 787 switch fieldNum { 788 case 1: 789 if wireType != 2 { 790 return fmt.Errorf("proto: wrong wireType = %d for field BaseAccount", wireType) 791 } 792 var msglen int 793 for shift := uint(0); ; shift += 7 { 794 if shift >= 64 { 795 return ErrIntOverflowVesting 796 } 797 if iNdEx >= l { 798 return io.ErrUnexpectedEOF 799 } 800 b := dAtA[iNdEx] 801 iNdEx++ 802 msglen |= int(b&0x7F) << shift 803 if b < 0x80 { 804 break 805 } 806 } 807 if msglen < 0 { 808 return ErrInvalidLengthVesting 809 } 810 postIndex := iNdEx + msglen 811 if postIndex < 0 { 812 return ErrInvalidLengthVesting 813 } 814 if postIndex > l { 815 return io.ErrUnexpectedEOF 816 } 817 if m.BaseAccount == nil { 818 m.BaseAccount = &types.BaseAccount{} 819 } 820 if err := m.BaseAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 821 return err 822 } 823 iNdEx = postIndex 824 case 2: 825 if wireType != 2 { 826 return fmt.Errorf("proto: wrong wireType = %d for field OriginalVesting", wireType) 827 } 828 var msglen int 829 for shift := uint(0); ; shift += 7 { 830 if shift >= 64 { 831 return ErrIntOverflowVesting 832 } 833 if iNdEx >= l { 834 return io.ErrUnexpectedEOF 835 } 836 b := dAtA[iNdEx] 837 iNdEx++ 838 msglen |= int(b&0x7F) << shift 839 if b < 0x80 { 840 break 841 } 842 } 843 if msglen < 0 { 844 return ErrInvalidLengthVesting 845 } 846 postIndex := iNdEx + msglen 847 if postIndex < 0 { 848 return ErrInvalidLengthVesting 849 } 850 if postIndex > l { 851 return io.ErrUnexpectedEOF 852 } 853 m.OriginalVesting = append(m.OriginalVesting, types1.Coin{}) 854 if err := m.OriginalVesting[len(m.OriginalVesting)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 855 return err 856 } 857 iNdEx = postIndex 858 case 3: 859 if wireType != 2 { 860 return fmt.Errorf("proto: wrong wireType = %d for field DelegatedFree", wireType) 861 } 862 var msglen int 863 for shift := uint(0); ; shift += 7 { 864 if shift >= 64 { 865 return ErrIntOverflowVesting 866 } 867 if iNdEx >= l { 868 return io.ErrUnexpectedEOF 869 } 870 b := dAtA[iNdEx] 871 iNdEx++ 872 msglen |= int(b&0x7F) << shift 873 if b < 0x80 { 874 break 875 } 876 } 877 if msglen < 0 { 878 return ErrInvalidLengthVesting 879 } 880 postIndex := iNdEx + msglen 881 if postIndex < 0 { 882 return ErrInvalidLengthVesting 883 } 884 if postIndex > l { 885 return io.ErrUnexpectedEOF 886 } 887 m.DelegatedFree = append(m.DelegatedFree, types1.Coin{}) 888 if err := m.DelegatedFree[len(m.DelegatedFree)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 889 return err 890 } 891 iNdEx = postIndex 892 case 4: 893 if wireType != 2 { 894 return fmt.Errorf("proto: wrong wireType = %d for field DelegatedVesting", wireType) 895 } 896 var msglen int 897 for shift := uint(0); ; shift += 7 { 898 if shift >= 64 { 899 return ErrIntOverflowVesting 900 } 901 if iNdEx >= l { 902 return io.ErrUnexpectedEOF 903 } 904 b := dAtA[iNdEx] 905 iNdEx++ 906 msglen |= int(b&0x7F) << shift 907 if b < 0x80 { 908 break 909 } 910 } 911 if msglen < 0 { 912 return ErrInvalidLengthVesting 913 } 914 postIndex := iNdEx + msglen 915 if postIndex < 0 { 916 return ErrInvalidLengthVesting 917 } 918 if postIndex > l { 919 return io.ErrUnexpectedEOF 920 } 921 m.DelegatedVesting = append(m.DelegatedVesting, types1.Coin{}) 922 if err := m.DelegatedVesting[len(m.DelegatedVesting)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 923 return err 924 } 925 iNdEx = postIndex 926 case 5: 927 if wireType != 0 { 928 return fmt.Errorf("proto: wrong wireType = %d for field EndTime", wireType) 929 } 930 m.EndTime = 0 931 for shift := uint(0); ; shift += 7 { 932 if shift >= 64 { 933 return ErrIntOverflowVesting 934 } 935 if iNdEx >= l { 936 return io.ErrUnexpectedEOF 937 } 938 b := dAtA[iNdEx] 939 iNdEx++ 940 m.EndTime |= int64(b&0x7F) << shift 941 if b < 0x80 { 942 break 943 } 944 } 945 default: 946 iNdEx = preIndex 947 skippy, err := skipVesting(dAtA[iNdEx:]) 948 if err != nil { 949 return err 950 } 951 if (skippy < 0) || (iNdEx+skippy) < 0 { 952 return ErrInvalidLengthVesting 953 } 954 if (iNdEx + skippy) > l { 955 return io.ErrUnexpectedEOF 956 } 957 iNdEx += skippy 958 } 959 } 960 961 if iNdEx > l { 962 return io.ErrUnexpectedEOF 963 } 964 return nil 965 } 966 func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error { 967 l := len(dAtA) 968 iNdEx := 0 969 for iNdEx < l { 970 preIndex := iNdEx 971 var wire uint64 972 for shift := uint(0); ; shift += 7 { 973 if shift >= 64 { 974 return ErrIntOverflowVesting 975 } 976 if iNdEx >= l { 977 return io.ErrUnexpectedEOF 978 } 979 b := dAtA[iNdEx] 980 iNdEx++ 981 wire |= uint64(b&0x7F) << shift 982 if b < 0x80 { 983 break 984 } 985 } 986 fieldNum := int32(wire >> 3) 987 wireType := int(wire & 0x7) 988 if wireType == 4 { 989 return fmt.Errorf("proto: ContinuousVestingAccount: wiretype end group for non-group") 990 } 991 if fieldNum <= 0 { 992 return fmt.Errorf("proto: ContinuousVestingAccount: illegal tag %d (wire type %d)", fieldNum, wire) 993 } 994 switch fieldNum { 995 case 1: 996 if wireType != 2 { 997 return fmt.Errorf("proto: wrong wireType = %d for field BaseVestingAccount", wireType) 998 } 999 var msglen int 1000 for shift := uint(0); ; shift += 7 { 1001 if shift >= 64 { 1002 return ErrIntOverflowVesting 1003 } 1004 if iNdEx >= l { 1005 return io.ErrUnexpectedEOF 1006 } 1007 b := dAtA[iNdEx] 1008 iNdEx++ 1009 msglen |= int(b&0x7F) << shift 1010 if b < 0x80 { 1011 break 1012 } 1013 } 1014 if msglen < 0 { 1015 return ErrInvalidLengthVesting 1016 } 1017 postIndex := iNdEx + msglen 1018 if postIndex < 0 { 1019 return ErrInvalidLengthVesting 1020 } 1021 if postIndex > l { 1022 return io.ErrUnexpectedEOF 1023 } 1024 if m.BaseVestingAccount == nil { 1025 m.BaseVestingAccount = &BaseVestingAccount{} 1026 } 1027 if err := m.BaseVestingAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1028 return err 1029 } 1030 iNdEx = postIndex 1031 case 2: 1032 if wireType != 0 { 1033 return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) 1034 } 1035 m.StartTime = 0 1036 for shift := uint(0); ; shift += 7 { 1037 if shift >= 64 { 1038 return ErrIntOverflowVesting 1039 } 1040 if iNdEx >= l { 1041 return io.ErrUnexpectedEOF 1042 } 1043 b := dAtA[iNdEx] 1044 iNdEx++ 1045 m.StartTime |= int64(b&0x7F) << shift 1046 if b < 0x80 { 1047 break 1048 } 1049 } 1050 default: 1051 iNdEx = preIndex 1052 skippy, err := skipVesting(dAtA[iNdEx:]) 1053 if err != nil { 1054 return err 1055 } 1056 if (skippy < 0) || (iNdEx+skippy) < 0 { 1057 return ErrInvalidLengthVesting 1058 } 1059 if (iNdEx + skippy) > l { 1060 return io.ErrUnexpectedEOF 1061 } 1062 iNdEx += skippy 1063 } 1064 } 1065 1066 if iNdEx > l { 1067 return io.ErrUnexpectedEOF 1068 } 1069 return nil 1070 } 1071 func (m *DelayedVestingAccount) Unmarshal(dAtA []byte) error { 1072 l := len(dAtA) 1073 iNdEx := 0 1074 for iNdEx < l { 1075 preIndex := iNdEx 1076 var wire uint64 1077 for shift := uint(0); ; shift += 7 { 1078 if shift >= 64 { 1079 return ErrIntOverflowVesting 1080 } 1081 if iNdEx >= l { 1082 return io.ErrUnexpectedEOF 1083 } 1084 b := dAtA[iNdEx] 1085 iNdEx++ 1086 wire |= uint64(b&0x7F) << shift 1087 if b < 0x80 { 1088 break 1089 } 1090 } 1091 fieldNum := int32(wire >> 3) 1092 wireType := int(wire & 0x7) 1093 if wireType == 4 { 1094 return fmt.Errorf("proto: DelayedVestingAccount: wiretype end group for non-group") 1095 } 1096 if fieldNum <= 0 { 1097 return fmt.Errorf("proto: DelayedVestingAccount: illegal tag %d (wire type %d)", fieldNum, wire) 1098 } 1099 switch fieldNum { 1100 case 1: 1101 if wireType != 2 { 1102 return fmt.Errorf("proto: wrong wireType = %d for field BaseVestingAccount", wireType) 1103 } 1104 var msglen int 1105 for shift := uint(0); ; shift += 7 { 1106 if shift >= 64 { 1107 return ErrIntOverflowVesting 1108 } 1109 if iNdEx >= l { 1110 return io.ErrUnexpectedEOF 1111 } 1112 b := dAtA[iNdEx] 1113 iNdEx++ 1114 msglen |= int(b&0x7F) << shift 1115 if b < 0x80 { 1116 break 1117 } 1118 } 1119 if msglen < 0 { 1120 return ErrInvalidLengthVesting 1121 } 1122 postIndex := iNdEx + msglen 1123 if postIndex < 0 { 1124 return ErrInvalidLengthVesting 1125 } 1126 if postIndex > l { 1127 return io.ErrUnexpectedEOF 1128 } 1129 if m.BaseVestingAccount == nil { 1130 m.BaseVestingAccount = &BaseVestingAccount{} 1131 } 1132 if err := m.BaseVestingAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1133 return err 1134 } 1135 iNdEx = postIndex 1136 default: 1137 iNdEx = preIndex 1138 skippy, err := skipVesting(dAtA[iNdEx:]) 1139 if err != nil { 1140 return err 1141 } 1142 if (skippy < 0) || (iNdEx+skippy) < 0 { 1143 return ErrInvalidLengthVesting 1144 } 1145 if (iNdEx + skippy) > l { 1146 return io.ErrUnexpectedEOF 1147 } 1148 iNdEx += skippy 1149 } 1150 } 1151 1152 if iNdEx > l { 1153 return io.ErrUnexpectedEOF 1154 } 1155 return nil 1156 } 1157 func (m *Period) Unmarshal(dAtA []byte) error { 1158 l := len(dAtA) 1159 iNdEx := 0 1160 for iNdEx < l { 1161 preIndex := iNdEx 1162 var wire uint64 1163 for shift := uint(0); ; shift += 7 { 1164 if shift >= 64 { 1165 return ErrIntOverflowVesting 1166 } 1167 if iNdEx >= l { 1168 return io.ErrUnexpectedEOF 1169 } 1170 b := dAtA[iNdEx] 1171 iNdEx++ 1172 wire |= uint64(b&0x7F) << shift 1173 if b < 0x80 { 1174 break 1175 } 1176 } 1177 fieldNum := int32(wire >> 3) 1178 wireType := int(wire & 0x7) 1179 if wireType == 4 { 1180 return fmt.Errorf("proto: Period: wiretype end group for non-group") 1181 } 1182 if fieldNum <= 0 { 1183 return fmt.Errorf("proto: Period: illegal tag %d (wire type %d)", fieldNum, wire) 1184 } 1185 switch fieldNum { 1186 case 1: 1187 if wireType != 0 { 1188 return fmt.Errorf("proto: wrong wireType = %d for field Length", wireType) 1189 } 1190 m.Length = 0 1191 for shift := uint(0); ; shift += 7 { 1192 if shift >= 64 { 1193 return ErrIntOverflowVesting 1194 } 1195 if iNdEx >= l { 1196 return io.ErrUnexpectedEOF 1197 } 1198 b := dAtA[iNdEx] 1199 iNdEx++ 1200 m.Length |= int64(b&0x7F) << shift 1201 if b < 0x80 { 1202 break 1203 } 1204 } 1205 case 2: 1206 if wireType != 2 { 1207 return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) 1208 } 1209 var msglen int 1210 for shift := uint(0); ; shift += 7 { 1211 if shift >= 64 { 1212 return ErrIntOverflowVesting 1213 } 1214 if iNdEx >= l { 1215 return io.ErrUnexpectedEOF 1216 } 1217 b := dAtA[iNdEx] 1218 iNdEx++ 1219 msglen |= int(b&0x7F) << shift 1220 if b < 0x80 { 1221 break 1222 } 1223 } 1224 if msglen < 0 { 1225 return ErrInvalidLengthVesting 1226 } 1227 postIndex := iNdEx + msglen 1228 if postIndex < 0 { 1229 return ErrInvalidLengthVesting 1230 } 1231 if postIndex > l { 1232 return io.ErrUnexpectedEOF 1233 } 1234 m.Amount = append(m.Amount, types1.Coin{}) 1235 if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1236 return err 1237 } 1238 iNdEx = postIndex 1239 default: 1240 iNdEx = preIndex 1241 skippy, err := skipVesting(dAtA[iNdEx:]) 1242 if err != nil { 1243 return err 1244 } 1245 if (skippy < 0) || (iNdEx+skippy) < 0 { 1246 return ErrInvalidLengthVesting 1247 } 1248 if (iNdEx + skippy) > l { 1249 return io.ErrUnexpectedEOF 1250 } 1251 iNdEx += skippy 1252 } 1253 } 1254 1255 if iNdEx > l { 1256 return io.ErrUnexpectedEOF 1257 } 1258 return nil 1259 } 1260 func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error { 1261 l := len(dAtA) 1262 iNdEx := 0 1263 for iNdEx < l { 1264 preIndex := iNdEx 1265 var wire uint64 1266 for shift := uint(0); ; shift += 7 { 1267 if shift >= 64 { 1268 return ErrIntOverflowVesting 1269 } 1270 if iNdEx >= l { 1271 return io.ErrUnexpectedEOF 1272 } 1273 b := dAtA[iNdEx] 1274 iNdEx++ 1275 wire |= uint64(b&0x7F) << shift 1276 if b < 0x80 { 1277 break 1278 } 1279 } 1280 fieldNum := int32(wire >> 3) 1281 wireType := int(wire & 0x7) 1282 if wireType == 4 { 1283 return fmt.Errorf("proto: PeriodicVestingAccount: wiretype end group for non-group") 1284 } 1285 if fieldNum <= 0 { 1286 return fmt.Errorf("proto: PeriodicVestingAccount: illegal tag %d (wire type %d)", fieldNum, wire) 1287 } 1288 switch fieldNum { 1289 case 1: 1290 if wireType != 2 { 1291 return fmt.Errorf("proto: wrong wireType = %d for field BaseVestingAccount", wireType) 1292 } 1293 var msglen int 1294 for shift := uint(0); ; shift += 7 { 1295 if shift >= 64 { 1296 return ErrIntOverflowVesting 1297 } 1298 if iNdEx >= l { 1299 return io.ErrUnexpectedEOF 1300 } 1301 b := dAtA[iNdEx] 1302 iNdEx++ 1303 msglen |= int(b&0x7F) << shift 1304 if b < 0x80 { 1305 break 1306 } 1307 } 1308 if msglen < 0 { 1309 return ErrInvalidLengthVesting 1310 } 1311 postIndex := iNdEx + msglen 1312 if postIndex < 0 { 1313 return ErrInvalidLengthVesting 1314 } 1315 if postIndex > l { 1316 return io.ErrUnexpectedEOF 1317 } 1318 if m.BaseVestingAccount == nil { 1319 m.BaseVestingAccount = &BaseVestingAccount{} 1320 } 1321 if err := m.BaseVestingAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1322 return err 1323 } 1324 iNdEx = postIndex 1325 case 2: 1326 if wireType != 0 { 1327 return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) 1328 } 1329 m.StartTime = 0 1330 for shift := uint(0); ; shift += 7 { 1331 if shift >= 64 { 1332 return ErrIntOverflowVesting 1333 } 1334 if iNdEx >= l { 1335 return io.ErrUnexpectedEOF 1336 } 1337 b := dAtA[iNdEx] 1338 iNdEx++ 1339 m.StartTime |= int64(b&0x7F) << shift 1340 if b < 0x80 { 1341 break 1342 } 1343 } 1344 case 3: 1345 if wireType != 2 { 1346 return fmt.Errorf("proto: wrong wireType = %d for field VestingPeriods", wireType) 1347 } 1348 var msglen int 1349 for shift := uint(0); ; shift += 7 { 1350 if shift >= 64 { 1351 return ErrIntOverflowVesting 1352 } 1353 if iNdEx >= l { 1354 return io.ErrUnexpectedEOF 1355 } 1356 b := dAtA[iNdEx] 1357 iNdEx++ 1358 msglen |= int(b&0x7F) << shift 1359 if b < 0x80 { 1360 break 1361 } 1362 } 1363 if msglen < 0 { 1364 return ErrInvalidLengthVesting 1365 } 1366 postIndex := iNdEx + msglen 1367 if postIndex < 0 { 1368 return ErrInvalidLengthVesting 1369 } 1370 if postIndex > l { 1371 return io.ErrUnexpectedEOF 1372 } 1373 m.VestingPeriods = append(m.VestingPeriods, Period{}) 1374 if err := m.VestingPeriods[len(m.VestingPeriods)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1375 return err 1376 } 1377 iNdEx = postIndex 1378 default: 1379 iNdEx = preIndex 1380 skippy, err := skipVesting(dAtA[iNdEx:]) 1381 if err != nil { 1382 return err 1383 } 1384 if (skippy < 0) || (iNdEx+skippy) < 0 { 1385 return ErrInvalidLengthVesting 1386 } 1387 if (iNdEx + skippy) > l { 1388 return io.ErrUnexpectedEOF 1389 } 1390 iNdEx += skippy 1391 } 1392 } 1393 1394 if iNdEx > l { 1395 return io.ErrUnexpectedEOF 1396 } 1397 return nil 1398 } 1399 func (m *PermanentLockedAccount) Unmarshal(dAtA []byte) error { 1400 l := len(dAtA) 1401 iNdEx := 0 1402 for iNdEx < l { 1403 preIndex := iNdEx 1404 var wire uint64 1405 for shift := uint(0); ; shift += 7 { 1406 if shift >= 64 { 1407 return ErrIntOverflowVesting 1408 } 1409 if iNdEx >= l { 1410 return io.ErrUnexpectedEOF 1411 } 1412 b := dAtA[iNdEx] 1413 iNdEx++ 1414 wire |= uint64(b&0x7F) << shift 1415 if b < 0x80 { 1416 break 1417 } 1418 } 1419 fieldNum := int32(wire >> 3) 1420 wireType := int(wire & 0x7) 1421 if wireType == 4 { 1422 return fmt.Errorf("proto: PermanentLockedAccount: wiretype end group for non-group") 1423 } 1424 if fieldNum <= 0 { 1425 return fmt.Errorf("proto: PermanentLockedAccount: illegal tag %d (wire type %d)", fieldNum, wire) 1426 } 1427 switch fieldNum { 1428 case 1: 1429 if wireType != 2 { 1430 return fmt.Errorf("proto: wrong wireType = %d for field BaseVestingAccount", wireType) 1431 } 1432 var msglen int 1433 for shift := uint(0); ; shift += 7 { 1434 if shift >= 64 { 1435 return ErrIntOverflowVesting 1436 } 1437 if iNdEx >= l { 1438 return io.ErrUnexpectedEOF 1439 } 1440 b := dAtA[iNdEx] 1441 iNdEx++ 1442 msglen |= int(b&0x7F) << shift 1443 if b < 0x80 { 1444 break 1445 } 1446 } 1447 if msglen < 0 { 1448 return ErrInvalidLengthVesting 1449 } 1450 postIndex := iNdEx + msglen 1451 if postIndex < 0 { 1452 return ErrInvalidLengthVesting 1453 } 1454 if postIndex > l { 1455 return io.ErrUnexpectedEOF 1456 } 1457 if m.BaseVestingAccount == nil { 1458 m.BaseVestingAccount = &BaseVestingAccount{} 1459 } 1460 if err := m.BaseVestingAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1461 return err 1462 } 1463 iNdEx = postIndex 1464 default: 1465 iNdEx = preIndex 1466 skippy, err := skipVesting(dAtA[iNdEx:]) 1467 if err != nil { 1468 return err 1469 } 1470 if (skippy < 0) || (iNdEx+skippy) < 0 { 1471 return ErrInvalidLengthVesting 1472 } 1473 if (iNdEx + skippy) > l { 1474 return io.ErrUnexpectedEOF 1475 } 1476 iNdEx += skippy 1477 } 1478 } 1479 1480 if iNdEx > l { 1481 return io.ErrUnexpectedEOF 1482 } 1483 return nil 1484 } 1485 func skipVesting(dAtA []byte) (n int, err error) { 1486 l := len(dAtA) 1487 iNdEx := 0 1488 depth := 0 1489 for iNdEx < l { 1490 var wire uint64 1491 for shift := uint(0); ; shift += 7 { 1492 if shift >= 64 { 1493 return 0, ErrIntOverflowVesting 1494 } 1495 if iNdEx >= l { 1496 return 0, io.ErrUnexpectedEOF 1497 } 1498 b := dAtA[iNdEx] 1499 iNdEx++ 1500 wire |= (uint64(b) & 0x7F) << shift 1501 if b < 0x80 { 1502 break 1503 } 1504 } 1505 wireType := int(wire & 0x7) 1506 switch wireType { 1507 case 0: 1508 for shift := uint(0); ; shift += 7 { 1509 if shift >= 64 { 1510 return 0, ErrIntOverflowVesting 1511 } 1512 if iNdEx >= l { 1513 return 0, io.ErrUnexpectedEOF 1514 } 1515 iNdEx++ 1516 if dAtA[iNdEx-1] < 0x80 { 1517 break 1518 } 1519 } 1520 case 1: 1521 iNdEx += 8 1522 case 2: 1523 var length int 1524 for shift := uint(0); ; shift += 7 { 1525 if shift >= 64 { 1526 return 0, ErrIntOverflowVesting 1527 } 1528 if iNdEx >= l { 1529 return 0, io.ErrUnexpectedEOF 1530 } 1531 b := dAtA[iNdEx] 1532 iNdEx++ 1533 length |= (int(b) & 0x7F) << shift 1534 if b < 0x80 { 1535 break 1536 } 1537 } 1538 if length < 0 { 1539 return 0, ErrInvalidLengthVesting 1540 } 1541 iNdEx += length 1542 case 3: 1543 depth++ 1544 case 4: 1545 if depth == 0 { 1546 return 0, ErrUnexpectedEndOfGroupVesting 1547 } 1548 depth-- 1549 case 5: 1550 iNdEx += 4 1551 default: 1552 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1553 } 1554 if iNdEx < 0 { 1555 return 0, ErrInvalidLengthVesting 1556 } 1557 if depth == 0 { 1558 return iNdEx, nil 1559 } 1560 } 1561 return 0, io.ErrUnexpectedEOF 1562 } 1563 1564 var ( 1565 ErrInvalidLengthVesting = fmt.Errorf("proto: negative length found during unmarshaling") 1566 ErrIntOverflowVesting = fmt.Errorf("proto: integer overflow") 1567 ErrUnexpectedEndOfGroupVesting = fmt.Errorf("proto: unexpected end of group") 1568 )