github.com/Finschia/finschia-sdk@v0.49.1/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_Finschia_finschia_sdk_types "github.com/Finschia/finschia-sdk/types"
    10  	types "github.com/Finschia/finschia-sdk/types"
    11  	_ "github.com/gogo/protobuf/gogoproto"
    12  	grpc1 "github.com/gogo/protobuf/grpc"
    13  	proto "github.com/gogo/protobuf/proto"
    14  	grpc "google.golang.org/grpc"
    15  	codes "google.golang.org/grpc/codes"
    16  	status "google.golang.org/grpc/status"
    17  	io "io"
    18  	math "math"
    19  	math_bits "math/bits"
    20  )
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var _ = proto.Marshal
    24  var _ = fmt.Errorf
    25  var _ = math.Inf
    26  
    27  // This is a compile-time assertion to ensure that this generated file
    28  // is compatible with the proto package it is being compiled against.
    29  // A compilation error at this line likely means your copy of the
    30  // proto package needs to be updated.
    31  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    32  
    33  // MsgCreateVestingAccount defines a message that enables creating a vesting
    34  // account.
    35  type MsgCreateVestingAccount struct {
    36  	FromAddress string                                       `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty" yaml:"from_address"`
    37  	ToAddress   string                                       `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty" yaml:"to_address"`
    38  	Amount      github_com_Finschia_finschia_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/Finschia/finschia-sdk/types.Coins" json:"amount"`
    39  	EndTime     int64                                        `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty" yaml:"end_time"`
    40  	Delayed     bool                                         `protobuf:"varint,5,opt,name=delayed,proto3" json:"delayed,omitempty"`
    41  }
    42  
    43  func (m *MsgCreateVestingAccount) Reset()         { *m = MsgCreateVestingAccount{} }
    44  func (m *MsgCreateVestingAccount) String() string { return proto.CompactTextString(m) }
    45  func (*MsgCreateVestingAccount) ProtoMessage()    {}
    46  func (*MsgCreateVestingAccount) Descriptor() ([]byte, []int) {
    47  	return fileDescriptor_5338ca97811f9792, []int{0}
    48  }
    49  func (m *MsgCreateVestingAccount) XXX_Unmarshal(b []byte) error {
    50  	return m.Unmarshal(b)
    51  }
    52  func (m *MsgCreateVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    53  	if deterministic {
    54  		return xxx_messageInfo_MsgCreateVestingAccount.Marshal(b, m, deterministic)
    55  	} else {
    56  		b = b[:cap(b)]
    57  		n, err := m.MarshalToSizedBuffer(b)
    58  		if err != nil {
    59  			return nil, err
    60  		}
    61  		return b[:n], nil
    62  	}
    63  }
    64  func (m *MsgCreateVestingAccount) XXX_Merge(src proto.Message) {
    65  	xxx_messageInfo_MsgCreateVestingAccount.Merge(m, src)
    66  }
    67  func (m *MsgCreateVestingAccount) XXX_Size() int {
    68  	return m.Size()
    69  }
    70  func (m *MsgCreateVestingAccount) XXX_DiscardUnknown() {
    71  	xxx_messageInfo_MsgCreateVestingAccount.DiscardUnknown(m)
    72  }
    73  
    74  var xxx_messageInfo_MsgCreateVestingAccount proto.InternalMessageInfo
    75  
    76  func (m *MsgCreateVestingAccount) GetFromAddress() string {
    77  	if m != nil {
    78  		return m.FromAddress
    79  	}
    80  	return ""
    81  }
    82  
    83  func (m *MsgCreateVestingAccount) GetToAddress() string {
    84  	if m != nil {
    85  		return m.ToAddress
    86  	}
    87  	return ""
    88  }
    89  
    90  func (m *MsgCreateVestingAccount) GetAmount() github_com_Finschia_finschia_sdk_types.Coins {
    91  	if m != nil {
    92  		return m.Amount
    93  	}
    94  	return nil
    95  }
    96  
    97  func (m *MsgCreateVestingAccount) GetEndTime() int64 {
    98  	if m != nil {
    99  		return m.EndTime
   100  	}
   101  	return 0
   102  }
   103  
   104  func (m *MsgCreateVestingAccount) GetDelayed() bool {
   105  	if m != nil {
   106  		return m.Delayed
   107  	}
   108  	return false
   109  }
   110  
   111  // MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type.
   112  type MsgCreateVestingAccountResponse struct {
   113  }
   114  
   115  func (m *MsgCreateVestingAccountResponse) Reset()         { *m = MsgCreateVestingAccountResponse{} }
   116  func (m *MsgCreateVestingAccountResponse) String() string { return proto.CompactTextString(m) }
   117  func (*MsgCreateVestingAccountResponse) ProtoMessage()    {}
   118  func (*MsgCreateVestingAccountResponse) Descriptor() ([]byte, []int) {
   119  	return fileDescriptor_5338ca97811f9792, []int{1}
   120  }
   121  func (m *MsgCreateVestingAccountResponse) XXX_Unmarshal(b []byte) error {
   122  	return m.Unmarshal(b)
   123  }
   124  func (m *MsgCreateVestingAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   125  	if deterministic {
   126  		return xxx_messageInfo_MsgCreateVestingAccountResponse.Marshal(b, m, deterministic)
   127  	} else {
   128  		b = b[:cap(b)]
   129  		n, err := m.MarshalToSizedBuffer(b)
   130  		if err != nil {
   131  			return nil, err
   132  		}
   133  		return b[:n], nil
   134  	}
   135  }
   136  func (m *MsgCreateVestingAccountResponse) XXX_Merge(src proto.Message) {
   137  	xxx_messageInfo_MsgCreateVestingAccountResponse.Merge(m, src)
   138  }
   139  func (m *MsgCreateVestingAccountResponse) XXX_Size() int {
   140  	return m.Size()
   141  }
   142  func (m *MsgCreateVestingAccountResponse) XXX_DiscardUnknown() {
   143  	xxx_messageInfo_MsgCreateVestingAccountResponse.DiscardUnknown(m)
   144  }
   145  
   146  var xxx_messageInfo_MsgCreateVestingAccountResponse proto.InternalMessageInfo
   147  
   148  func init() {
   149  	proto.RegisterType((*MsgCreateVestingAccount)(nil), "cosmos.vesting.v1beta1.MsgCreateVestingAccount")
   150  	proto.RegisterType((*MsgCreateVestingAccountResponse)(nil), "cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse")
   151  }
   152  
   153  func init() { proto.RegisterFile("cosmos/vesting/v1beta1/tx.proto", fileDescriptor_5338ca97811f9792) }
   154  
   155  var fileDescriptor_5338ca97811f9792 = []byte{
   156  	// 419 bytes of a gzipped FileDescriptorProto
   157  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x3f, 0x8f, 0xd3, 0x30,
   158  	0x14, 0x8f, 0x2f, 0xc7, 0xfd, 0xf1, 0x21, 0x21, 0x72, 0x07, 0x17, 0x3a, 0xc4, 0x21, 0x53, 0x06,
   159  	0xb0, 0x75, 0xc7, 0x21, 0xa4, 0x6e, 0x97, 0x93, 0xd8, 0x2a, 0xa4, 0x08, 0x31, 0xb0, 0x54, 0x4e,
   160  	0xe2, 0xa6, 0x16, 0x8d, 0x5d, 0xc5, 0x6e, 0xd5, 0x6e, 0x8c, 0x8c, 0x7c, 0x04, 0x66, 0x3e, 0x07,
   161  	0x43, 0xc7, 0x8e, 0x4c, 0x01, 0xb5, 0x0b, 0x73, 0x3f, 0x01, 0xca, 0xbf, 0xc2, 0xd0, 0x0a, 0xb1,
   162  	0xbd, 0xa7, 0xdf, 0x1f, 0xbf, 0xf7, 0xf3, 0x83, 0x28, 0x96, 0x2a, 0x93, 0x8a, 0x4c, 0x99, 0xd2,
   163  	0x5c, 0xa4, 0x64, 0x7a, 0x15, 0x31, 0x4d, 0xaf, 0x88, 0x9e, 0xe1, 0x71, 0x2e, 0xb5, 0xb4, 0x1e,
   164  	0xd7, 0x04, 0xdc, 0x10, 0x70, 0x43, 0xe8, 0x5c, 0xa4, 0x32, 0x95, 0x15, 0x85, 0x94, 0x55, 0xcd,
   165  	0xee, 0x38, 0x8d, 0x5d, 0x44, 0x15, 0xdb, 0x7a, 0xc5, 0x92, 0x8b, 0x1a, 0xf7, 0xbe, 0x1d, 0xc0,
   166  	0xcb, 0x9e, 0x4a, 0xef, 0x72, 0x46, 0x35, 0x7b, 0x57, 0x5b, 0xde, 0xc6, 0xb1, 0x9c, 0x08, 0x6d,
   167  	0x75, 0xe1, 0xfd, 0x41, 0x2e, 0xb3, 0x3e, 0x4d, 0x92, 0x9c, 0x29, 0x65, 0x03, 0x17, 0xf8, 0xa7,
   168  	0xc1, 0xe5, 0xa6, 0x40, 0xe7, 0x73, 0x9a, 0x8d, 0xba, 0xde, 0xdf, 0xa8, 0x17, 0x9e, 0x95, 0xed,
   169  	0x6d, 0xdd, 0x59, 0x37, 0x10, 0x6a, 0xb9, 0x55, 0x1e, 0x54, 0xca, 0x47, 0x9b, 0x02, 0x3d, 0xac,
   170  	0x95, 0x7f, 0x30, 0x2f, 0x3c, 0xd5, 0xb2, 0x55, 0xa5, 0xf0, 0x88, 0x66, 0xe5, 0xdb, 0xb6, 0xe9,
   171  	0x9a, 0xfe, 0xd9, 0xf5, 0x13, 0xdc, 0x2c, 0x5b, 0x8e, 0xdf, 0x6e, 0x8a, 0xef, 0x24, 0x17, 0xc1,
   172  	0xcd, 0xa2, 0x40, 0xc6, 0xd7, 0x1f, 0xe8, 0x59, 0xca, 0xf5, 0x70, 0x12, 0xe1, 0x58, 0x66, 0xe4,
   173  	0x35, 0x17, 0x2a, 0x1e, 0x72, 0x4a, 0x06, 0x4d, 0xf1, 0x5c, 0x25, 0x1f, 0x88, 0x9e, 0x8f, 0x99,
   174  	0xaa, 0x44, 0x2a, 0x6c, 0xec, 0x2d, 0x0c, 0x4f, 0x98, 0x48, 0xfa, 0x9a, 0x67, 0xcc, 0x3e, 0x74,
   175  	0x81, 0x6f, 0x06, 0xe7, 0x9b, 0x02, 0x3d, 0xa8, 0x87, 0x6b, 0x11, 0x2f, 0x3c, 0x66, 0x22, 0x79,
   176  	0xcb, 0x33, 0x66, 0xd9, 0xf0, 0x38, 0x61, 0x23, 0x3a, 0x67, 0x89, 0x7d, 0xcf, 0x05, 0xfe, 0x49,
   177  	0xd8, 0xb6, 0xdd, 0xc3, 0x5f, 0x5f, 0x10, 0xf0, 0x9e, 0x42, 0xb4, 0x27, 0xc5, 0x90, 0xa9, 0xb1,
   178  	0x14, 0x8a, 0x5d, 0x7f, 0x02, 0xd0, 0xec, 0xa9, 0xd4, 0xfa, 0x08, 0xe0, 0xc5, 0xce, 0xb8, 0x09,
   179  	0xde, 0xfd, 0xb3, 0x78, 0x8f, 0x73, 0xe7, 0xd5, 0x7f, 0x0a, 0xda, 0x51, 0x82, 0x37, 0x8b, 0x95,
   180  	0x03, 0x96, 0x2b, 0x07, 0xfc, 0x5c, 0x39, 0xe0, 0xf3, 0xda, 0x31, 0x96, 0x6b, 0xc7, 0xf8, 0xbe,
   181  	0x76, 0x8c, 0xf7, 0x2f, 0xff, 0x99, 0xe6, 0x8c, 0xd0, 0x89, 0x1e, 0x6e, 0xcf, 0xb3, 0x0a, 0x37,
   182  	0x3a, 0xaa, 0x8e, 0xe9, 0xc5, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x03, 0x2e, 0xa7, 0xbd, 0xbd,
   183  	0x02, 0x00, 0x00,
   184  }
   185  
   186  func (this *MsgCreateVestingAccount) Equal(that interface{}) bool {
   187  	if that == nil {
   188  		return this == nil
   189  	}
   190  
   191  	that1, ok := that.(*MsgCreateVestingAccount)
   192  	if !ok {
   193  		that2, ok := that.(MsgCreateVestingAccount)
   194  		if ok {
   195  			that1 = &that2
   196  		} else {
   197  			return false
   198  		}
   199  	}
   200  	if that1 == nil {
   201  		return this == nil
   202  	} else if this == nil {
   203  		return false
   204  	}
   205  	if this.FromAddress != that1.FromAddress {
   206  		return false
   207  	}
   208  	if this.ToAddress != that1.ToAddress {
   209  		return false
   210  	}
   211  	if len(this.Amount) != len(that1.Amount) {
   212  		return false
   213  	}
   214  	for i := range this.Amount {
   215  		if !this.Amount[i].Equal(&that1.Amount[i]) {
   216  			return false
   217  		}
   218  	}
   219  	if this.EndTime != that1.EndTime {
   220  		return false
   221  	}
   222  	if this.Delayed != that1.Delayed {
   223  		return false
   224  	}
   225  	return true
   226  }
   227  
   228  // Reference imports to suppress errors if they are not otherwise used.
   229  var _ context.Context
   230  var _ grpc.ClientConn
   231  
   232  // This is a compile-time assertion to ensure that this generated file
   233  // is compatible with the grpc package it is being compiled against.
   234  const _ = grpc.SupportPackageIsVersion4
   235  
   236  // MsgClient is the client API for Msg service.
   237  //
   238  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   239  type MsgClient interface {
   240  	// CreateVestingAccount defines a method that enables creating a vesting
   241  	// account.
   242  	CreateVestingAccount(ctx context.Context, in *MsgCreateVestingAccount, opts ...grpc.CallOption) (*MsgCreateVestingAccountResponse, error)
   243  }
   244  
   245  type msgClient struct {
   246  	cc grpc1.ClientConn
   247  }
   248  
   249  func NewMsgClient(cc grpc1.ClientConn) MsgClient {
   250  	return &msgClient{cc}
   251  }
   252  
   253  func (c *msgClient) CreateVestingAccount(ctx context.Context, in *MsgCreateVestingAccount, opts ...grpc.CallOption) (*MsgCreateVestingAccountResponse, error) {
   254  	out := new(MsgCreateVestingAccountResponse)
   255  	err := c.cc.Invoke(ctx, "/cosmos.vesting.v1beta1.Msg/CreateVestingAccount", in, out, opts...)
   256  	if err != nil {
   257  		return nil, err
   258  	}
   259  	return out, nil
   260  }
   261  
   262  // MsgServer is the server API for Msg service.
   263  type MsgServer interface {
   264  	// CreateVestingAccount defines a method that enables creating a vesting
   265  	// account.
   266  	CreateVestingAccount(context.Context, *MsgCreateVestingAccount) (*MsgCreateVestingAccountResponse, error)
   267  }
   268  
   269  // UnimplementedMsgServer can be embedded to have forward compatible implementations.
   270  type UnimplementedMsgServer struct {
   271  }
   272  
   273  func (*UnimplementedMsgServer) CreateVestingAccount(ctx context.Context, req *MsgCreateVestingAccount) (*MsgCreateVestingAccountResponse, error) {
   274  	return nil, status.Errorf(codes.Unimplemented, "method CreateVestingAccount not implemented")
   275  }
   276  
   277  func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
   278  	s.RegisterService(&_Msg_serviceDesc, srv)
   279  }
   280  
   281  func _Msg_CreateVestingAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   282  	in := new(MsgCreateVestingAccount)
   283  	if err := dec(in); err != nil {
   284  		return nil, err
   285  	}
   286  	if interceptor == nil {
   287  		return srv.(MsgServer).CreateVestingAccount(ctx, in)
   288  	}
   289  	info := &grpc.UnaryServerInfo{
   290  		Server:     srv,
   291  		FullMethod: "/cosmos.vesting.v1beta1.Msg/CreateVestingAccount",
   292  	}
   293  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   294  		return srv.(MsgServer).CreateVestingAccount(ctx, req.(*MsgCreateVestingAccount))
   295  	}
   296  	return interceptor(ctx, in, info, handler)
   297  }
   298  
   299  var _Msg_serviceDesc = grpc.ServiceDesc{
   300  	ServiceName: "cosmos.vesting.v1beta1.Msg",
   301  	HandlerType: (*MsgServer)(nil),
   302  	Methods: []grpc.MethodDesc{
   303  		{
   304  			MethodName: "CreateVestingAccount",
   305  			Handler:    _Msg_CreateVestingAccount_Handler,
   306  		},
   307  	},
   308  	Streams:  []grpc.StreamDesc{},
   309  	Metadata: "cosmos/vesting/v1beta1/tx.proto",
   310  }
   311  
   312  func (m *MsgCreateVestingAccount) Marshal() (dAtA []byte, err error) {
   313  	size := m.Size()
   314  	dAtA = make([]byte, size)
   315  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   316  	if err != nil {
   317  		return nil, err
   318  	}
   319  	return dAtA[:n], nil
   320  }
   321  
   322  func (m *MsgCreateVestingAccount) MarshalTo(dAtA []byte) (int, error) {
   323  	size := m.Size()
   324  	return m.MarshalToSizedBuffer(dAtA[:size])
   325  }
   326  
   327  func (m *MsgCreateVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   328  	i := len(dAtA)
   329  	_ = i
   330  	var l int
   331  	_ = l
   332  	if m.Delayed {
   333  		i--
   334  		if m.Delayed {
   335  			dAtA[i] = 1
   336  		} else {
   337  			dAtA[i] = 0
   338  		}
   339  		i--
   340  		dAtA[i] = 0x28
   341  	}
   342  	if m.EndTime != 0 {
   343  		i = encodeVarintTx(dAtA, i, uint64(m.EndTime))
   344  		i--
   345  		dAtA[i] = 0x20
   346  	}
   347  	if len(m.Amount) > 0 {
   348  		for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- {
   349  			{
   350  				size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   351  				if err != nil {
   352  					return 0, err
   353  				}
   354  				i -= size
   355  				i = encodeVarintTx(dAtA, i, uint64(size))
   356  			}
   357  			i--
   358  			dAtA[i] = 0x1a
   359  		}
   360  	}
   361  	if len(m.ToAddress) > 0 {
   362  		i -= len(m.ToAddress)
   363  		copy(dAtA[i:], m.ToAddress)
   364  		i = encodeVarintTx(dAtA, i, uint64(len(m.ToAddress)))
   365  		i--
   366  		dAtA[i] = 0x12
   367  	}
   368  	if len(m.FromAddress) > 0 {
   369  		i -= len(m.FromAddress)
   370  		copy(dAtA[i:], m.FromAddress)
   371  		i = encodeVarintTx(dAtA, i, uint64(len(m.FromAddress)))
   372  		i--
   373  		dAtA[i] = 0xa
   374  	}
   375  	return len(dAtA) - i, nil
   376  }
   377  
   378  func (m *MsgCreateVestingAccountResponse) Marshal() (dAtA []byte, err error) {
   379  	size := m.Size()
   380  	dAtA = make([]byte, size)
   381  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   382  	if err != nil {
   383  		return nil, err
   384  	}
   385  	return dAtA[:n], nil
   386  }
   387  
   388  func (m *MsgCreateVestingAccountResponse) MarshalTo(dAtA []byte) (int, error) {
   389  	size := m.Size()
   390  	return m.MarshalToSizedBuffer(dAtA[:size])
   391  }
   392  
   393  func (m *MsgCreateVestingAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   394  	i := len(dAtA)
   395  	_ = i
   396  	var l int
   397  	_ = l
   398  	return len(dAtA) - i, nil
   399  }
   400  
   401  func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
   402  	offset -= sovTx(v)
   403  	base := offset
   404  	for v >= 1<<7 {
   405  		dAtA[offset] = uint8(v&0x7f | 0x80)
   406  		v >>= 7
   407  		offset++
   408  	}
   409  	dAtA[offset] = uint8(v)
   410  	return base
   411  }
   412  func (m *MsgCreateVestingAccount) Size() (n int) {
   413  	if m == nil {
   414  		return 0
   415  	}
   416  	var l int
   417  	_ = l
   418  	l = len(m.FromAddress)
   419  	if l > 0 {
   420  		n += 1 + l + sovTx(uint64(l))
   421  	}
   422  	l = len(m.ToAddress)
   423  	if l > 0 {
   424  		n += 1 + l + sovTx(uint64(l))
   425  	}
   426  	if len(m.Amount) > 0 {
   427  		for _, e := range m.Amount {
   428  			l = e.Size()
   429  			n += 1 + l + sovTx(uint64(l))
   430  		}
   431  	}
   432  	if m.EndTime != 0 {
   433  		n += 1 + sovTx(uint64(m.EndTime))
   434  	}
   435  	if m.Delayed {
   436  		n += 2
   437  	}
   438  	return n
   439  }
   440  
   441  func (m *MsgCreateVestingAccountResponse) Size() (n int) {
   442  	if m == nil {
   443  		return 0
   444  	}
   445  	var l int
   446  	_ = l
   447  	return n
   448  }
   449  
   450  func sovTx(x uint64) (n int) {
   451  	return (math_bits.Len64(x|1) + 6) / 7
   452  }
   453  func sozTx(x uint64) (n int) {
   454  	return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   455  }
   456  func (m *MsgCreateVestingAccount) Unmarshal(dAtA []byte) error {
   457  	l := len(dAtA)
   458  	iNdEx := 0
   459  	for iNdEx < l {
   460  		preIndex := iNdEx
   461  		var wire uint64
   462  		for shift := uint(0); ; shift += 7 {
   463  			if shift >= 64 {
   464  				return ErrIntOverflowTx
   465  			}
   466  			if iNdEx >= l {
   467  				return io.ErrUnexpectedEOF
   468  			}
   469  			b := dAtA[iNdEx]
   470  			iNdEx++
   471  			wire |= uint64(b&0x7F) << shift
   472  			if b < 0x80 {
   473  				break
   474  			}
   475  		}
   476  		fieldNum := int32(wire >> 3)
   477  		wireType := int(wire & 0x7)
   478  		if wireType == 4 {
   479  			return fmt.Errorf("proto: MsgCreateVestingAccount: wiretype end group for non-group")
   480  		}
   481  		if fieldNum <= 0 {
   482  			return fmt.Errorf("proto: MsgCreateVestingAccount: illegal tag %d (wire type %d)", fieldNum, wire)
   483  		}
   484  		switch fieldNum {
   485  		case 1:
   486  			if wireType != 2 {
   487  				return fmt.Errorf("proto: wrong wireType = %d for field FromAddress", wireType)
   488  			}
   489  			var stringLen uint64
   490  			for shift := uint(0); ; shift += 7 {
   491  				if shift >= 64 {
   492  					return ErrIntOverflowTx
   493  				}
   494  				if iNdEx >= l {
   495  					return io.ErrUnexpectedEOF
   496  				}
   497  				b := dAtA[iNdEx]
   498  				iNdEx++
   499  				stringLen |= uint64(b&0x7F) << shift
   500  				if b < 0x80 {
   501  					break
   502  				}
   503  			}
   504  			intStringLen := int(stringLen)
   505  			if intStringLen < 0 {
   506  				return ErrInvalidLengthTx
   507  			}
   508  			postIndex := iNdEx + intStringLen
   509  			if postIndex < 0 {
   510  				return ErrInvalidLengthTx
   511  			}
   512  			if postIndex > l {
   513  				return io.ErrUnexpectedEOF
   514  			}
   515  			m.FromAddress = string(dAtA[iNdEx:postIndex])
   516  			iNdEx = postIndex
   517  		case 2:
   518  			if wireType != 2 {
   519  				return fmt.Errorf("proto: wrong wireType = %d for field ToAddress", wireType)
   520  			}
   521  			var stringLen uint64
   522  			for shift := uint(0); ; shift += 7 {
   523  				if shift >= 64 {
   524  					return ErrIntOverflowTx
   525  				}
   526  				if iNdEx >= l {
   527  					return io.ErrUnexpectedEOF
   528  				}
   529  				b := dAtA[iNdEx]
   530  				iNdEx++
   531  				stringLen |= uint64(b&0x7F) << shift
   532  				if b < 0x80 {
   533  					break
   534  				}
   535  			}
   536  			intStringLen := int(stringLen)
   537  			if intStringLen < 0 {
   538  				return ErrInvalidLengthTx
   539  			}
   540  			postIndex := iNdEx + intStringLen
   541  			if postIndex < 0 {
   542  				return ErrInvalidLengthTx
   543  			}
   544  			if postIndex > l {
   545  				return io.ErrUnexpectedEOF
   546  			}
   547  			m.ToAddress = string(dAtA[iNdEx:postIndex])
   548  			iNdEx = postIndex
   549  		case 3:
   550  			if wireType != 2 {
   551  				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
   552  			}
   553  			var msglen int
   554  			for shift := uint(0); ; shift += 7 {
   555  				if shift >= 64 {
   556  					return ErrIntOverflowTx
   557  				}
   558  				if iNdEx >= l {
   559  					return io.ErrUnexpectedEOF
   560  				}
   561  				b := dAtA[iNdEx]
   562  				iNdEx++
   563  				msglen |= int(b&0x7F) << shift
   564  				if b < 0x80 {
   565  					break
   566  				}
   567  			}
   568  			if msglen < 0 {
   569  				return ErrInvalidLengthTx
   570  			}
   571  			postIndex := iNdEx + msglen
   572  			if postIndex < 0 {
   573  				return ErrInvalidLengthTx
   574  			}
   575  			if postIndex > l {
   576  				return io.ErrUnexpectedEOF
   577  			}
   578  			m.Amount = append(m.Amount, types.Coin{})
   579  			if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   580  				return err
   581  			}
   582  			iNdEx = postIndex
   583  		case 4:
   584  			if wireType != 0 {
   585  				return fmt.Errorf("proto: wrong wireType = %d for field EndTime", wireType)
   586  			}
   587  			m.EndTime = 0
   588  			for shift := uint(0); ; shift += 7 {
   589  				if shift >= 64 {
   590  					return ErrIntOverflowTx
   591  				}
   592  				if iNdEx >= l {
   593  					return io.ErrUnexpectedEOF
   594  				}
   595  				b := dAtA[iNdEx]
   596  				iNdEx++
   597  				m.EndTime |= int64(b&0x7F) << shift
   598  				if b < 0x80 {
   599  					break
   600  				}
   601  			}
   602  		case 5:
   603  			if wireType != 0 {
   604  				return fmt.Errorf("proto: wrong wireType = %d for field Delayed", wireType)
   605  			}
   606  			var v int
   607  			for shift := uint(0); ; shift += 7 {
   608  				if shift >= 64 {
   609  					return ErrIntOverflowTx
   610  				}
   611  				if iNdEx >= l {
   612  					return io.ErrUnexpectedEOF
   613  				}
   614  				b := dAtA[iNdEx]
   615  				iNdEx++
   616  				v |= int(b&0x7F) << shift
   617  				if b < 0x80 {
   618  					break
   619  				}
   620  			}
   621  			m.Delayed = bool(v != 0)
   622  		default:
   623  			iNdEx = preIndex
   624  			skippy, err := skipTx(dAtA[iNdEx:])
   625  			if err != nil {
   626  				return err
   627  			}
   628  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   629  				return ErrInvalidLengthTx
   630  			}
   631  			if (iNdEx + skippy) > l {
   632  				return io.ErrUnexpectedEOF
   633  			}
   634  			iNdEx += skippy
   635  		}
   636  	}
   637  
   638  	if iNdEx > l {
   639  		return io.ErrUnexpectedEOF
   640  	}
   641  	return nil
   642  }
   643  func (m *MsgCreateVestingAccountResponse) Unmarshal(dAtA []byte) error {
   644  	l := len(dAtA)
   645  	iNdEx := 0
   646  	for iNdEx < l {
   647  		preIndex := iNdEx
   648  		var wire uint64
   649  		for shift := uint(0); ; shift += 7 {
   650  			if shift >= 64 {
   651  				return ErrIntOverflowTx
   652  			}
   653  			if iNdEx >= l {
   654  				return io.ErrUnexpectedEOF
   655  			}
   656  			b := dAtA[iNdEx]
   657  			iNdEx++
   658  			wire |= uint64(b&0x7F) << shift
   659  			if b < 0x80 {
   660  				break
   661  			}
   662  		}
   663  		fieldNum := int32(wire >> 3)
   664  		wireType := int(wire & 0x7)
   665  		if wireType == 4 {
   666  			return fmt.Errorf("proto: MsgCreateVestingAccountResponse: wiretype end group for non-group")
   667  		}
   668  		if fieldNum <= 0 {
   669  			return fmt.Errorf("proto: MsgCreateVestingAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   670  		}
   671  		switch fieldNum {
   672  		default:
   673  			iNdEx = preIndex
   674  			skippy, err := skipTx(dAtA[iNdEx:])
   675  			if err != nil {
   676  				return err
   677  			}
   678  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   679  				return ErrInvalidLengthTx
   680  			}
   681  			if (iNdEx + skippy) > l {
   682  				return io.ErrUnexpectedEOF
   683  			}
   684  			iNdEx += skippy
   685  		}
   686  	}
   687  
   688  	if iNdEx > l {
   689  		return io.ErrUnexpectedEOF
   690  	}
   691  	return nil
   692  }
   693  func skipTx(dAtA []byte) (n int, err error) {
   694  	l := len(dAtA)
   695  	iNdEx := 0
   696  	depth := 0
   697  	for iNdEx < l {
   698  		var wire uint64
   699  		for shift := uint(0); ; shift += 7 {
   700  			if shift >= 64 {
   701  				return 0, ErrIntOverflowTx
   702  			}
   703  			if iNdEx >= l {
   704  				return 0, io.ErrUnexpectedEOF
   705  			}
   706  			b := dAtA[iNdEx]
   707  			iNdEx++
   708  			wire |= (uint64(b) & 0x7F) << shift
   709  			if b < 0x80 {
   710  				break
   711  			}
   712  		}
   713  		wireType := int(wire & 0x7)
   714  		switch wireType {
   715  		case 0:
   716  			for shift := uint(0); ; shift += 7 {
   717  				if shift >= 64 {
   718  					return 0, ErrIntOverflowTx
   719  				}
   720  				if iNdEx >= l {
   721  					return 0, io.ErrUnexpectedEOF
   722  				}
   723  				iNdEx++
   724  				if dAtA[iNdEx-1] < 0x80 {
   725  					break
   726  				}
   727  			}
   728  		case 1:
   729  			iNdEx += 8
   730  		case 2:
   731  			var length int
   732  			for shift := uint(0); ; shift += 7 {
   733  				if shift >= 64 {
   734  					return 0, ErrIntOverflowTx
   735  				}
   736  				if iNdEx >= l {
   737  					return 0, io.ErrUnexpectedEOF
   738  				}
   739  				b := dAtA[iNdEx]
   740  				iNdEx++
   741  				length |= (int(b) & 0x7F) << shift
   742  				if b < 0x80 {
   743  					break
   744  				}
   745  			}
   746  			if length < 0 {
   747  				return 0, ErrInvalidLengthTx
   748  			}
   749  			iNdEx += length
   750  		case 3:
   751  			depth++
   752  		case 4:
   753  			if depth == 0 {
   754  				return 0, ErrUnexpectedEndOfGroupTx
   755  			}
   756  			depth--
   757  		case 5:
   758  			iNdEx += 4
   759  		default:
   760  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   761  		}
   762  		if iNdEx < 0 {
   763  			return 0, ErrInvalidLengthTx
   764  		}
   765  		if depth == 0 {
   766  			return iNdEx, nil
   767  		}
   768  	}
   769  	return 0, io.ErrUnexpectedEOF
   770  }
   771  
   772  var (
   773  	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
   774  	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
   775  	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
   776  )