github.com/InjectiveLabs/sdk-go@v1.53.0/chain/permissions/types/events.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: injective/permissions/v1beta1/events.proto
     3  
     4  package types
     5  
     6  import (
     7  	fmt "fmt"
     8  	types "github.com/cosmos/cosmos-sdk/types"
     9  	_ "github.com/cosmos/cosmos-sdk/x/bank/types"
    10  	_ "github.com/cosmos/gogoproto/gogoproto"
    11  	proto "github.com/cosmos/gogoproto/proto"
    12  	io "io"
    13  	math "math"
    14  	math_bits "math/bits"
    15  )
    16  
    17  // Reference imports to suppress errors if they are not otherwise used.
    18  var _ = proto.Marshal
    19  var _ = fmt.Errorf
    20  var _ = math.Inf
    21  
    22  // This is a compile-time assertion to ensure that this generated file
    23  // is compatible with the proto package it is being compiled against.
    24  // A compilation error at this line likely means your copy of the
    25  // proto package needs to be updated.
    26  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    27  
    28  type EventSetVoucher struct {
    29  	Addr    string     `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
    30  	Voucher types.Coin `protobuf:"bytes,2,opt,name=voucher,proto3" json:"voucher"`
    31  }
    32  
    33  func (m *EventSetVoucher) Reset()         { *m = EventSetVoucher{} }
    34  func (m *EventSetVoucher) String() string { return proto.CompactTextString(m) }
    35  func (*EventSetVoucher) ProtoMessage()    {}
    36  func (*EventSetVoucher) Descriptor() ([]byte, []int) {
    37  	return fileDescriptor_705c3e21b20426fa, []int{0}
    38  }
    39  func (m *EventSetVoucher) XXX_Unmarshal(b []byte) error {
    40  	return m.Unmarshal(b)
    41  }
    42  func (m *EventSetVoucher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    43  	if deterministic {
    44  		return xxx_messageInfo_EventSetVoucher.Marshal(b, m, deterministic)
    45  	} else {
    46  		b = b[:cap(b)]
    47  		n, err := m.MarshalToSizedBuffer(b)
    48  		if err != nil {
    49  			return nil, err
    50  		}
    51  		return b[:n], nil
    52  	}
    53  }
    54  func (m *EventSetVoucher) XXX_Merge(src proto.Message) {
    55  	xxx_messageInfo_EventSetVoucher.Merge(m, src)
    56  }
    57  func (m *EventSetVoucher) XXX_Size() int {
    58  	return m.Size()
    59  }
    60  func (m *EventSetVoucher) XXX_DiscardUnknown() {
    61  	xxx_messageInfo_EventSetVoucher.DiscardUnknown(m)
    62  }
    63  
    64  var xxx_messageInfo_EventSetVoucher proto.InternalMessageInfo
    65  
    66  func (m *EventSetVoucher) GetAddr() string {
    67  	if m != nil {
    68  		return m.Addr
    69  	}
    70  	return ""
    71  }
    72  
    73  func (m *EventSetVoucher) GetVoucher() types.Coin {
    74  	if m != nil {
    75  		return m.Voucher
    76  	}
    77  	return types.Coin{}
    78  }
    79  
    80  func init() {
    81  	proto.RegisterType((*EventSetVoucher)(nil), "injective.permissions.v1beta1.EventSetVoucher")
    82  }
    83  
    84  func init() {
    85  	proto.RegisterFile("injective/permissions/v1beta1/events.proto", fileDescriptor_705c3e21b20426fa)
    86  }
    87  
    88  var fileDescriptor_705c3e21b20426fa = []byte{
    89  	// 272 bytes of a gzipped FileDescriptorProto
    90  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xb1, 0x4a, 0xc4, 0x40,
    91  	0x10, 0x86, 0xb3, 0x72, 0x28, 0xc6, 0x42, 0x08, 0x16, 0xe7, 0x81, 0xeb, 0x61, 0x75, 0x08, 0xee,
    92  	0x72, 0x5a, 0xd9, 0x9e, 0x58, 0x08, 0x36, 0x9e, 0x60, 0x61, 0x65, 0xb2, 0x19, 0x92, 0xf5, 0xcc,
    93  	0x4e, 0xd8, 0xd9, 0x04, 0x7c, 0x0b, 0x1f, 0xeb, 0xca, 0x2b, 0xad, 0x44, 0x92, 0x17, 0x91, 0x24,
    94  	0x26, 0x9c, 0xd8, 0xcd, 0xf0, 0x7d, 0x3b, 0x3b, 0xf3, 0xfb, 0xe7, 0xda, 0xbc, 0x82, 0x72, 0xba,
    95  	0x04, 0x99, 0x83, 0xcd, 0x34, 0x91, 0x46, 0x43, 0xb2, 0x9c, 0x47, 0xe0, 0xc2, 0xb9, 0x84, 0x12,
    96  	0x8c, 0x23, 0x91, 0x5b, 0x74, 0x18, 0x9c, 0x0c, 0xae, 0xd8, 0x72, 0xc5, 0xaf, 0x3b, 0x39, 0x4a,
    97  	0x30, 0xc1, 0xd6, 0x94, 0x4d, 0xd5, 0x3d, 0x9a, 0x70, 0x85, 0x94, 0x21, 0xc9, 0x28, 0x24, 0x18,
    98  	0xc6, 0x2a, 0xd4, 0xe6, 0x1f, 0x37, 0xab, 0x81, 0x37, 0x4d, 0xc7, 0xcf, 0x5e, 0xfc, 0xc3, 0xdb,
    99  	0x66, 0x89, 0x47, 0x70, 0x4f, 0x58, 0xa8, 0x14, 0x6c, 0x10, 0xf8, 0xa3, 0x30, 0x8e, 0xed, 0x98,
   100  	0x4d, 0xd9, 0x6c, 0x7f, 0xd9, 0xd6, 0xc1, 0xb5, 0xbf, 0x57, 0x76, 0x78, 0xbc, 0x33, 0x65, 0xb3,
   101  	0x83, 0xcb, 0x63, 0xd1, 0x0d, 0x16, 0xcd, 0xc7, 0xfd, 0x8e, 0xe2, 0x06, 0xb5, 0x59, 0x8c, 0xd6,
   102  	0x5f, 0xa7, 0xde, 0xb2, 0xf7, 0x17, 0xab, 0x75, 0xc5, 0xd9, 0xa6, 0xe2, 0xec, 0xbb, 0xe2, 0xec,
   103  	0xa3, 0xe6, 0xde, 0xa6, 0xe6, 0xde, 0x67, 0xcd, 0xbd, 0xe7, 0x87, 0x44, 0xbb, 0xb4, 0x88, 0x84,
   104  	0xc2, 0x4c, 0xde, 0xf5, 0xb7, 0xdf, 0x87, 0x11, 0xc9, 0x21, 0x89, 0x0b, 0x85, 0x16, 0xb6, 0xdb,
   105  	0x34, 0xd4, 0x46, 0x66, 0x18, 0x17, 0x6f, 0x40, 0x7f, 0x22, 0x75, 0xef, 0x39, 0x50, 0xb4, 0xdb,
   106  	0x5e, 0x75, 0xf5, 0x13, 0x00, 0x00, 0xff, 0xff, 0x74, 0x79, 0xe1, 0x33, 0x78, 0x01, 0x00, 0x00,
   107  }
   108  
   109  func (m *EventSetVoucher) Marshal() (dAtA []byte, err error) {
   110  	size := m.Size()
   111  	dAtA = make([]byte, size)
   112  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   113  	if err != nil {
   114  		return nil, err
   115  	}
   116  	return dAtA[:n], nil
   117  }
   118  
   119  func (m *EventSetVoucher) MarshalTo(dAtA []byte) (int, error) {
   120  	size := m.Size()
   121  	return m.MarshalToSizedBuffer(dAtA[:size])
   122  }
   123  
   124  func (m *EventSetVoucher) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   125  	i := len(dAtA)
   126  	_ = i
   127  	var l int
   128  	_ = l
   129  	{
   130  		size, err := m.Voucher.MarshalToSizedBuffer(dAtA[:i])
   131  		if err != nil {
   132  			return 0, err
   133  		}
   134  		i -= size
   135  		i = encodeVarintEvents(dAtA, i, uint64(size))
   136  	}
   137  	i--
   138  	dAtA[i] = 0x12
   139  	if len(m.Addr) > 0 {
   140  		i -= len(m.Addr)
   141  		copy(dAtA[i:], m.Addr)
   142  		i = encodeVarintEvents(dAtA, i, uint64(len(m.Addr)))
   143  		i--
   144  		dAtA[i] = 0xa
   145  	}
   146  	return len(dAtA) - i, nil
   147  }
   148  
   149  func encodeVarintEvents(dAtA []byte, offset int, v uint64) int {
   150  	offset -= sovEvents(v)
   151  	base := offset
   152  	for v >= 1<<7 {
   153  		dAtA[offset] = uint8(v&0x7f | 0x80)
   154  		v >>= 7
   155  		offset++
   156  	}
   157  	dAtA[offset] = uint8(v)
   158  	return base
   159  }
   160  func (m *EventSetVoucher) Size() (n int) {
   161  	if m == nil {
   162  		return 0
   163  	}
   164  	var l int
   165  	_ = l
   166  	l = len(m.Addr)
   167  	if l > 0 {
   168  		n += 1 + l + sovEvents(uint64(l))
   169  	}
   170  	l = m.Voucher.Size()
   171  	n += 1 + l + sovEvents(uint64(l))
   172  	return n
   173  }
   174  
   175  func sovEvents(x uint64) (n int) {
   176  	return (math_bits.Len64(x|1) + 6) / 7
   177  }
   178  func sozEvents(x uint64) (n int) {
   179  	return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   180  }
   181  func (m *EventSetVoucher) Unmarshal(dAtA []byte) error {
   182  	l := len(dAtA)
   183  	iNdEx := 0
   184  	for iNdEx < l {
   185  		preIndex := iNdEx
   186  		var wire uint64
   187  		for shift := uint(0); ; shift += 7 {
   188  			if shift >= 64 {
   189  				return ErrIntOverflowEvents
   190  			}
   191  			if iNdEx >= l {
   192  				return io.ErrUnexpectedEOF
   193  			}
   194  			b := dAtA[iNdEx]
   195  			iNdEx++
   196  			wire |= uint64(b&0x7F) << shift
   197  			if b < 0x80 {
   198  				break
   199  			}
   200  		}
   201  		fieldNum := int32(wire >> 3)
   202  		wireType := int(wire & 0x7)
   203  		if wireType == 4 {
   204  			return fmt.Errorf("proto: EventSetVoucher: wiretype end group for non-group")
   205  		}
   206  		if fieldNum <= 0 {
   207  			return fmt.Errorf("proto: EventSetVoucher: illegal tag %d (wire type %d)", fieldNum, wire)
   208  		}
   209  		switch fieldNum {
   210  		case 1:
   211  			if wireType != 2 {
   212  				return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType)
   213  			}
   214  			var stringLen uint64
   215  			for shift := uint(0); ; shift += 7 {
   216  				if shift >= 64 {
   217  					return ErrIntOverflowEvents
   218  				}
   219  				if iNdEx >= l {
   220  					return io.ErrUnexpectedEOF
   221  				}
   222  				b := dAtA[iNdEx]
   223  				iNdEx++
   224  				stringLen |= uint64(b&0x7F) << shift
   225  				if b < 0x80 {
   226  					break
   227  				}
   228  			}
   229  			intStringLen := int(stringLen)
   230  			if intStringLen < 0 {
   231  				return ErrInvalidLengthEvents
   232  			}
   233  			postIndex := iNdEx + intStringLen
   234  			if postIndex < 0 {
   235  				return ErrInvalidLengthEvents
   236  			}
   237  			if postIndex > l {
   238  				return io.ErrUnexpectedEOF
   239  			}
   240  			m.Addr = string(dAtA[iNdEx:postIndex])
   241  			iNdEx = postIndex
   242  		case 2:
   243  			if wireType != 2 {
   244  				return fmt.Errorf("proto: wrong wireType = %d for field Voucher", wireType)
   245  			}
   246  			var msglen int
   247  			for shift := uint(0); ; shift += 7 {
   248  				if shift >= 64 {
   249  					return ErrIntOverflowEvents
   250  				}
   251  				if iNdEx >= l {
   252  					return io.ErrUnexpectedEOF
   253  				}
   254  				b := dAtA[iNdEx]
   255  				iNdEx++
   256  				msglen |= int(b&0x7F) << shift
   257  				if b < 0x80 {
   258  					break
   259  				}
   260  			}
   261  			if msglen < 0 {
   262  				return ErrInvalidLengthEvents
   263  			}
   264  			postIndex := iNdEx + msglen
   265  			if postIndex < 0 {
   266  				return ErrInvalidLengthEvents
   267  			}
   268  			if postIndex > l {
   269  				return io.ErrUnexpectedEOF
   270  			}
   271  			if err := m.Voucher.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   272  				return err
   273  			}
   274  			iNdEx = postIndex
   275  		default:
   276  			iNdEx = preIndex
   277  			skippy, err := skipEvents(dAtA[iNdEx:])
   278  			if err != nil {
   279  				return err
   280  			}
   281  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   282  				return ErrInvalidLengthEvents
   283  			}
   284  			if (iNdEx + skippy) > l {
   285  				return io.ErrUnexpectedEOF
   286  			}
   287  			iNdEx += skippy
   288  		}
   289  	}
   290  
   291  	if iNdEx > l {
   292  		return io.ErrUnexpectedEOF
   293  	}
   294  	return nil
   295  }
   296  func skipEvents(dAtA []byte) (n int, err error) {
   297  	l := len(dAtA)
   298  	iNdEx := 0
   299  	depth := 0
   300  	for iNdEx < l {
   301  		var wire uint64
   302  		for shift := uint(0); ; shift += 7 {
   303  			if shift >= 64 {
   304  				return 0, ErrIntOverflowEvents
   305  			}
   306  			if iNdEx >= l {
   307  				return 0, io.ErrUnexpectedEOF
   308  			}
   309  			b := dAtA[iNdEx]
   310  			iNdEx++
   311  			wire |= (uint64(b) & 0x7F) << shift
   312  			if b < 0x80 {
   313  				break
   314  			}
   315  		}
   316  		wireType := int(wire & 0x7)
   317  		switch wireType {
   318  		case 0:
   319  			for shift := uint(0); ; shift += 7 {
   320  				if shift >= 64 {
   321  					return 0, ErrIntOverflowEvents
   322  				}
   323  				if iNdEx >= l {
   324  					return 0, io.ErrUnexpectedEOF
   325  				}
   326  				iNdEx++
   327  				if dAtA[iNdEx-1] < 0x80 {
   328  					break
   329  				}
   330  			}
   331  		case 1:
   332  			iNdEx += 8
   333  		case 2:
   334  			var length int
   335  			for shift := uint(0); ; shift += 7 {
   336  				if shift >= 64 {
   337  					return 0, ErrIntOverflowEvents
   338  				}
   339  				if iNdEx >= l {
   340  					return 0, io.ErrUnexpectedEOF
   341  				}
   342  				b := dAtA[iNdEx]
   343  				iNdEx++
   344  				length |= (int(b) & 0x7F) << shift
   345  				if b < 0x80 {
   346  					break
   347  				}
   348  			}
   349  			if length < 0 {
   350  				return 0, ErrInvalidLengthEvents
   351  			}
   352  			iNdEx += length
   353  		case 3:
   354  			depth++
   355  		case 4:
   356  			if depth == 0 {
   357  				return 0, ErrUnexpectedEndOfGroupEvents
   358  			}
   359  			depth--
   360  		case 5:
   361  			iNdEx += 4
   362  		default:
   363  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   364  		}
   365  		if iNdEx < 0 {
   366  			return 0, ErrInvalidLengthEvents
   367  		}
   368  		if depth == 0 {
   369  			return iNdEx, nil
   370  		}
   371  	}
   372  	return 0, io.ErrUnexpectedEOF
   373  }
   374  
   375  var (
   376  	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
   377  	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
   378  	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
   379  )