// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: mars/safety/v1beta1/tx.proto

package types

import (
	context "context"
	fmt "fmt"
	_ "github.com/cosmos/cosmos-proto"
	github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
	types "github.com/cosmos/cosmos-sdk/types"
	_ "github.com/cosmos/cosmos-sdk/types/msgservice"
	_ "github.com/cosmos/gogoproto/gogoproto"
	grpc1 "github.com/gogo/protobuf/grpc"
	proto "github.com/gogo/protobuf/proto"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
	io "io"
	math "math"
	math_bits "math/bits"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package

// MsgSafetyFundSpend defines the message for sending tokens from the safety
// fund to a designated recipient.
//
// This message is typically executed via a governance proposal with the gov
// module being the executing authority.
type MsgSafetyFundSpend struct {
	// Authority is the account executing the safety fund spend.
	// It should be the gov module account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// Recipient is the account to receive the funds
	Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// Amount is the coins that are to be released from the safety funds
	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"`
}

func (m *MsgSafetyFundSpend) Reset()         { *m = MsgSafetyFundSpend{} }
func (m *MsgSafetyFundSpend) String() string { return proto.CompactTextString(m) }
func (*MsgSafetyFundSpend) ProtoMessage()    {}
func (*MsgSafetyFundSpend) Descriptor() ([]byte, []int) {
	return fileDescriptor_bd125654e26250fa, []int{0}
}
func (m *MsgSafetyFundSpend) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *MsgSafetyFundSpend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_MsgSafetyFundSpend.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *MsgSafetyFundSpend) XXX_Merge(src proto.Message) {
	xxx_messageInfo_MsgSafetyFundSpend.Merge(m, src)
}
func (m *MsgSafetyFundSpend) XXX_Size() int {
	return m.Size()
}
func (m *MsgSafetyFundSpend) XXX_DiscardUnknown() {
	xxx_messageInfo_MsgSafetyFundSpend.DiscardUnknown(m)
}

var xxx_messageInfo_MsgSafetyFundSpend proto.InternalMessageInfo

func (m *MsgSafetyFundSpend) GetAuthority() string {
	if m != nil {
		return m.Authority
	}
	return ""
}

func (m *MsgSafetyFundSpend) GetRecipient() string {
	if m != nil {
		return m.Recipient
	}
	return ""
}

func (m *MsgSafetyFundSpend) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins {
	if m != nil {
		return m.Amount
	}
	return nil
}

// MsgSafetyFundSpendResponse defines the response to executing a
// MsgSafetyFundSpend message.
type MsgSafetyFundSpendResponse struct {
}

func (m *MsgSafetyFundSpendResponse) Reset()         { *m = MsgSafetyFundSpendResponse{} }
func (m *MsgSafetyFundSpendResponse) String() string { return proto.CompactTextString(m) }
func (*MsgSafetyFundSpendResponse) ProtoMessage()    {}
func (*MsgSafetyFundSpendResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_bd125654e26250fa, []int{1}
}
func (m *MsgSafetyFundSpendResponse) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *MsgSafetyFundSpendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_MsgSafetyFundSpendResponse.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
		n, err := m.MarshalToSizedBuffer(b)
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
func (m *MsgSafetyFundSpendResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_MsgSafetyFundSpendResponse.Merge(m, src)
}
func (m *MsgSafetyFundSpendResponse) XXX_Size() int {
	return m.Size()
}
func (m *MsgSafetyFundSpendResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_MsgSafetyFundSpendResponse.DiscardUnknown(m)
}

var xxx_messageInfo_MsgSafetyFundSpendResponse proto.InternalMessageInfo

func init() {
	proto.RegisterType((*MsgSafetyFundSpend)(nil), "mars.safety.v1beta1.MsgSafetyFundSpend")
	proto.RegisterType((*MsgSafetyFundSpendResponse)(nil), "mars.safety.v1beta1.MsgSafetyFundSpendResponse")
}

func init() { proto.RegisterFile("mars/safety/v1beta1/tx.proto", fileDescriptor_bd125654e26250fa) }

var fileDescriptor_bd125654e26250fa = []byte{
	// 387 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xbf, 0x6e, 0xe2, 0x40,
	0x10, 0xc6, 0xed, 0x43, 0x87, 0xc4, 0x9e, 0x74, 0x27, 0xf9, 0x90, 0xce, 0x58, 0xc8, 0x20, 0x9a,
	0x43, 0x9c, 0xd8, 0x3d, 0x38, 0xe9, 0x8a, 0x74, 0x21, 0x4a, 0x3a, 0x1a, 0xd3, 0xa5, 0x89, 0xfc,
	0x67, 0x63, 0x2c, 0xe2, 0x5d, 0xcb, 0xb3, 0x46, 0xb8, 0x8b, 0xf2, 0x04, 0x79, 0x8e, 0x54, 0x14,
	0x79, 0x08, 0x4a, 0x94, 0x2a, 0x55, 0x88, 0xa0, 0xe0, 0x35, 0x22, 0xdb, 0x4b, 0x88, 0x42, 0x8a,
	0x54, 0xeb, 0x9d, 0xdf, 0x7c, 0xdf, 0xf8, 0xf3, 0x18, 0xd5, 0x43, 0x3b, 0x06, 0x02, 0xf6, 0x25,
	0x15, 0x29, 0x99, 0xf6, 0x1c, 0x2a, 0xec, 0x1e, 0x11, 0x33, 0x1c, 0xc5, 0x5c, 0x70, 0xed, 0x67,
	0x46, 0x71, 0x41, 0xb1, 0xa4, 0x86, 0xe9, 0x72, 0x08, 0x39, 0x10, 0xc7, 0x06, 0xfa, 0x2a, 0x71,
	0x79, 0xc0, 0x0a, 0x91, 0xf1, 0x4b, 0xf2, 0x10, 0x7c, 0x32, 0xed, 0x65, 0x87, 0x04, 0xb5, 0x02,
	0x5c, 0xe4, 0x37, 0x52, 0x5c, 0x24, 0xaa, 0xfa, 0xdc, 0xe7, 0x45, 0x3d, 0x7b, 0x2a, 0xaa, 0xad,
	0x95, 0x8a, 0xb4, 0x21, 0xf8, 0xa3, 0x7c, 0xfe, 0x59, 0xc2, 0xbc, 0x51, 0x44, 0x99, 0xa7, 0xfd,
	0x47, 0x15, 0x3b, 0x11, 0x63, 0x1e, 0x07, 0x22, 0xd5, 0xd5, 0xa6, 0xda, 0xae, 0x0c, 0xf4, 0x87,
	0xfb, 0x6e, 0x55, 0x3a, 0x1e, 0x7b, 0x5e, 0x4c, 0x01, 0x46, 0x22, 0x0e, 0x98, 0x6f, 0xed, 0x5b,
	0xb5, 0x3a, 0xaa, 0xc4, 0xd4, 0x0d, 0xa2, 0x80, 0x32, 0xa1, 0x7f, 0xc9, 0x74, 0xd6, 0xbe, 0xa0,
	0xb9, 0xa8, 0x6c, 0x87, 0x3c, 0x61, 0x42, 0x2f, 0x35, 0x4b, 0xed, 0x6f, 0xfd, 0x1a, 0x96, 0x7e,
	0x59, 0xce, 0x5d, 0x78, 0x7c, 0xc2, 0x03, 0x36, 0xf8, 0xbb, 0x78, 0x6a, 0x28, 0x77, 0xab, 0x46,
	0xdb, 0x0f, 0xc4, 0x38, 0x71, 0xb0, 0xcb, 0x43, 0x19, 0x47, 0x1e, 0x5d, 0xf0, 0x26, 0x44, 0xa4,
	0x11, 0x85, 0x5c, 0x00, 0x96, 0xb4, 0x3e, 0xfa, 0x7e, 0xb3, 0x9d, 0x77, 0xf6, 0xaf, 0xd4, 0xaa,
	0x23, 0xe3, 0x30, 0xa0, 0x45, 0x21, 0xe2, 0x0c, 0x68, 0x3f, 0x45, 0xa5, 0x21, 0xf8, 0xda, 0x04,
	0xfd, 0x78, 0xff, 0x09, 0x7e, 0xe3, 0x0f, 0x36, 0x83, 0x0f, 0xad, 0x0c, 0xf2, 0xc9, 0xc6, 0xdd,
	0x4c, 0xe3, 0xeb, 0xf5, 0x76, 0xde, 0x51, 0x07, 0xa7, 0x8b, 0xb5, 0xa9, 0x2e, 0xd7, 0xa6, 0xfa,
	0xbc, 0x36, 0xd5, 0xdb, 0x8d, 0xa9, 0x2c, 0x37, 0xa6, 0xf2, 0xb8, 0x31, 0x95, 0xf3, 0x3f, 0x6f,
	0x42, 0x67, 0xde, 0xdd, 0x7c, 0x57, 0x2e, 0xbf, 0x22, 0xe3, 0xc4, 0x21, 0xb3, 0xdd, 0xbf, 0x94,
	0xa7, 0x77, 0xca, 0x39, 0xfc, 0xf7, 0x12, 0x00, 0x00, 0xff, 0xff, 0x83, 0x69, 0xc6, 0x61, 0x67,
	0x02, 0x00, 0x00,
}

// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn

// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4

// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MsgClient interface {
	// SafetyFundSpend is a governance operation for sending tokens from the
	// safety fund module account to the designated recipient.
	//
	// NOTE: For now, this is just a copy of the distribution module's
	// `CommunityFundSpend` method. The recipient is expected to be a multisig
	// consisting of trusted community members who are respondible for using the
	// funds appropriately to cover any bad debt.
	//
	// In the long term, the goal is that the module
	// is able to detect bad debts incurred in the outposts via interchain query,
	// and automatically dispense the appropriate amount of funds, without having
	// to go through the governance process.
	SafetyFundSpend(ctx context.Context, in *MsgSafetyFundSpend, opts ...grpc.CallOption) (*MsgSafetyFundSpendResponse, error)
}

type msgClient struct {
	cc grpc1.ClientConn
}

func NewMsgClient(cc grpc1.ClientConn) MsgClient {
	return &msgClient{cc}
}

func (c *msgClient) SafetyFundSpend(ctx context.Context, in *MsgSafetyFundSpend, opts ...grpc.CallOption) (*MsgSafetyFundSpendResponse, error) {
	out := new(MsgSafetyFundSpendResponse)
	err := c.cc.Invoke(ctx, "/mars.safety.v1beta1.Msg/SafetyFundSpend", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// MsgServer is the server API for Msg service.
type MsgServer interface {
	// SafetyFundSpend is a governance operation for sending tokens from the
	// safety fund module account to the designated recipient.
	//
	// NOTE: For now, this is just a copy of the distribution module's
	// `CommunityFundSpend` method. The recipient is expected to be a multisig
	// consisting of trusted community members who are respondible for using the
	// funds appropriately to cover any bad debt.
	//
	// In the long term, the goal is that the module
	// is able to detect bad debts incurred in the outposts via interchain query,
	// and automatically dispense the appropriate amount of funds, without having
	// to go through the governance process.
	SafetyFundSpend(context.Context, *MsgSafetyFundSpend) (*MsgSafetyFundSpendResponse, error)
}

// UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}

func (*UnimplementedMsgServer) SafetyFundSpend(ctx context.Context, req *MsgSafetyFundSpend) (*MsgSafetyFundSpendResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method SafetyFundSpend not implemented")
}

func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
	s.RegisterService(&_Msg_serviceDesc, srv)
}

func _Msg_SafetyFundSpend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(MsgSafetyFundSpend)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MsgServer).SafetyFundSpend(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/mars.safety.v1beta1.Msg/SafetyFundSpend",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MsgServer).SafetyFundSpend(ctx, req.(*MsgSafetyFundSpend))
	}
	return interceptor(ctx, in, info, handler)
}

var _Msg_serviceDesc = grpc.ServiceDesc{
	ServiceName: "mars.safety.v1beta1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SafetyFundSpend",
			Handler:    _Msg_SafetyFundSpend_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "mars/safety/v1beta1/tx.proto",
}

func (m *MsgSafetyFundSpend) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *MsgSafetyFundSpend) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *MsgSafetyFundSpend) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.Amount) > 0 {
		for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- {
			{
				size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i])
				if err != nil {
					return 0, err
				}
				i -= size
				i = encodeVarintTx(dAtA, i, uint64(size))
			}
			i--
			dAtA[i] = 0x1a
		}
	}
	if len(m.Recipient) > 0 {
		i -= len(m.Recipient)
		copy(dAtA[i:], m.Recipient)
		i = encodeVarintTx(dAtA, i, uint64(len(m.Recipient)))
		i--
		dAtA[i] = 0x12
	}
	if len(m.Authority) > 0 {
		i -= len(m.Authority)
		copy(dAtA[i:], m.Authority)
		i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

func (m *MsgSafetyFundSpendResponse) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
	n, err := m.MarshalToSizedBuffer(dAtA[:size])
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *MsgSafetyFundSpendResponse) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *MsgSafetyFundSpendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	return len(dAtA) - i, nil
}

func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
	offset -= sovTx(v)
	base := offset
	for v >= 1<<7 {
		dAtA[offset] = uint8(v&0x7f | 0x80)
		v >>= 7
		offset++
	}
	dAtA[offset] = uint8(v)
	return base
}
func (m *MsgSafetyFundSpend) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	l = len(m.Authority)
	if l > 0 {
		n += 1 + l + sovTx(uint64(l))
	}
	l = len(m.Recipient)
	if l > 0 {
		n += 1 + l + sovTx(uint64(l))
	}
	if len(m.Amount) > 0 {
		for _, e := range m.Amount {
			l = e.Size()
			n += 1 + l + sovTx(uint64(l))
		}
	}
	return n
}

func (m *MsgSafetyFundSpendResponse) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	return n
}

func sovTx(x uint64) (n int) {
	return (math_bits.Len64(x|1) + 6) / 7
}
func sozTx(x uint64) (n int) {
	return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *MsgSafetyFundSpend) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTx
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: MsgSafetyFundSpend: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: MsgSafetyFundSpend: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTx
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				stringLen |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTx
			}
			postIndex := iNdEx + intStringLen
			if postIndex < 0 {
				return ErrInvalidLengthTx
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Authority = string(dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Recipient", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTx
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				stringLen |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTx
			}
			postIndex := iNdEx + intStringLen
			if postIndex < 0 {
				return ErrInvalidLengthTx
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Recipient = string(dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		case 3:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTx
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTx
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthTx
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Amount = append(m.Amount, types.Coin{})
			if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTx(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthTx
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *MsgSafetyFundSpendResponse) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTx
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= uint64(b&0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: MsgSafetyFundSpendResponse: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: MsgSafetyFundSpendResponse: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		default:
			iNdEx = preIndex
			skippy, err := skipTx(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthTx
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func skipTx(dAtA []byte) (n int, err error) {
	l := len(dAtA)
	iNdEx := 0
	depth := 0
	for iNdEx < l {
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return 0, ErrIntOverflowTx
			}
			if iNdEx >= l {
				return 0, io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= (uint64(b) & 0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		wireType := int(wire & 0x7)
		switch wireType {
		case 0:
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return 0, ErrIntOverflowTx
				}
				if iNdEx >= l {
					return 0, io.ErrUnexpectedEOF
				}
				iNdEx++
				if dAtA[iNdEx-1] < 0x80 {
					break
				}
			}
		case 1:
			iNdEx += 8
		case 2:
			var length int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return 0, ErrIntOverflowTx
				}
				if iNdEx >= l {
					return 0, io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				length |= (int(b) & 0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if length < 0 {
				return 0, ErrInvalidLengthTx
			}
			iNdEx += length
		case 3:
			depth++
		case 4:
			if depth == 0 {
				return 0, ErrUnexpectedEndOfGroupTx
			}
			depth--
		case 5:
			iNdEx += 4
		default:
			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
		}
		if iNdEx < 0 {
			return 0, ErrInvalidLengthTx
		}
		if depth == 0 {
			return iNdEx, nil
		}
	}
	return 0, io.ErrUnexpectedEOF
}

var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
