From 901db6d590fa54447994abb98d9b961923d02631 Mon Sep 17 00:00:00 2001 From: Aidan Salzmann Date: Sun, 12 Mar 2023 22:26:51 -0400 Subject: [PATCH 01/10] rm protos --- x/autopilot/types/genesis.pb.go | 323 - x/autopilot/types/params.pb.go | 308 - x/autopilot/types/query.pb.go | 535 -- x/claim/migrations/v2/types/params.pb.go | 763 --- x/claim/types/claim.pb.go | 558 -- x/claim/types/genesis.pb.go | 389 -- x/claim/types/params.pb.go | 778 --- x/claim/types/query.pb.go | 2800 --------- x/claim/types/tx.pb.go | 1972 ------ x/claim/vesting/types/tx.pb.go | 81 - x/claim/vesting/types/vesting.pb.go | 1055 ---- x/epochs/types/genesis.pb.go | 785 --- x/epochs/types/query.pb.go | 1418 ----- x/icacallbacks/types/callback_data.pb.go | 564 -- x/icacallbacks/types/genesis.pb.go | 439 -- x/icacallbacks/types/packet.pb.go | 501 -- x/icacallbacks/types/params.pb.go | 264 - x/icacallbacks/types/query.pb.go | 1389 ----- x/icacallbacks/types/tx.pb.go | 81 - x/interchainquery/types/genesis.pb.go | 1172 ---- x/interchainquery/types/messages.pb.go | 759 --- x/interchainquery/types/query.pb.go | 543 -- x/mint/types/genesis.pb.go | 417 -- x/mint/types/mint.pb.go | 1105 ---- x/mint/types/query.pb.go | 870 --- x/ratelimit/types/genesis.pb.go | 389 -- x/ratelimit/types/gov.pb.go | 1922 ------ x/ratelimit/types/params.pb.go | 263 - x/ratelimit/types/query.pb.go | 1765 ------ x/ratelimit/types/ratelimit.pb.go | 1220 ---- x/records/migrations/v2/types/genesis.pb.go | 2806 --------- x/records/types/callbacks.pb.go | 301 - x/records/types/genesis.pb.go | 2858 --------- x/records/types/query.pb.go | 4091 ------------- .../migrations/v2/types/callbacks.pb.go | 2238 ------- .../migrations/v2/types/host_zone.pb.go | 1193 ---- .../migrations/v2/types/ica_account.pb.go | 392 -- .../migrations/v2/types/validator.pb.go | 816 --- x/stakeibc/types/address_unbonding.pb.go | 570 -- x/stakeibc/types/callbacks.pb.go | 2264 ------- x/stakeibc/types/epoch_tracker.pb.go | 427 -- x/stakeibc/types/genesis.pb.go | 506 -- x/stakeibc/types/gov.pb.go | 579 -- x/stakeibc/types/host_zone.pb.go | 1349 ---- x/stakeibc/types/ica_account.pb.go | 391 -- x/stakeibc/types/packet.pb.go | 500 -- x/stakeibc/types/params.pb.go | 1066 ---- x/stakeibc/types/query.pb.go | 4157 ------------- x/stakeibc/types/tx.pb.go | 5446 ----------------- x/stakeibc/types/validator.pb.go | 828 --- 50 files changed, 58206 deletions(-) delete mode 100644 x/autopilot/types/genesis.pb.go delete mode 100644 x/autopilot/types/params.pb.go delete mode 100644 x/autopilot/types/query.pb.go delete mode 100644 x/claim/migrations/v2/types/params.pb.go delete mode 100644 x/claim/types/claim.pb.go delete mode 100644 x/claim/types/genesis.pb.go delete mode 100644 x/claim/types/params.pb.go delete mode 100644 x/claim/types/query.pb.go delete mode 100644 x/claim/types/tx.pb.go delete mode 100644 x/claim/vesting/types/tx.pb.go delete mode 100644 x/claim/vesting/types/vesting.pb.go delete mode 100644 x/epochs/types/genesis.pb.go delete mode 100644 x/epochs/types/query.pb.go delete mode 100644 x/icacallbacks/types/callback_data.pb.go delete mode 100644 x/icacallbacks/types/genesis.pb.go delete mode 100644 x/icacallbacks/types/packet.pb.go delete mode 100644 x/icacallbacks/types/params.pb.go delete mode 100644 x/icacallbacks/types/query.pb.go delete mode 100644 x/icacallbacks/types/tx.pb.go delete mode 100644 x/interchainquery/types/genesis.pb.go delete mode 100644 x/interchainquery/types/messages.pb.go delete mode 100644 x/interchainquery/types/query.pb.go delete mode 100644 x/mint/types/genesis.pb.go delete mode 100644 x/mint/types/mint.pb.go delete mode 100644 x/mint/types/query.pb.go delete mode 100644 x/ratelimit/types/genesis.pb.go delete mode 100644 x/ratelimit/types/gov.pb.go delete mode 100644 x/ratelimit/types/params.pb.go delete mode 100644 x/ratelimit/types/query.pb.go delete mode 100644 x/ratelimit/types/ratelimit.pb.go delete mode 100644 x/records/migrations/v2/types/genesis.pb.go delete mode 100644 x/records/types/callbacks.pb.go delete mode 100644 x/records/types/genesis.pb.go delete mode 100644 x/records/types/query.pb.go delete mode 100644 x/stakeibc/migrations/v2/types/callbacks.pb.go delete mode 100644 x/stakeibc/migrations/v2/types/host_zone.pb.go delete mode 100644 x/stakeibc/migrations/v2/types/ica_account.pb.go delete mode 100644 x/stakeibc/migrations/v2/types/validator.pb.go delete mode 100644 x/stakeibc/types/address_unbonding.pb.go delete mode 100644 x/stakeibc/types/callbacks.pb.go delete mode 100644 x/stakeibc/types/epoch_tracker.pb.go delete mode 100644 x/stakeibc/types/genesis.pb.go delete mode 100644 x/stakeibc/types/gov.pb.go delete mode 100644 x/stakeibc/types/host_zone.pb.go delete mode 100644 x/stakeibc/types/ica_account.pb.go delete mode 100644 x/stakeibc/types/packet.pb.go delete mode 100644 x/stakeibc/types/params.pb.go delete mode 100644 x/stakeibc/types/query.pb.go delete mode 100644 x/stakeibc/types/tx.pb.go delete mode 100644 x/stakeibc/types/validator.pb.go diff --git a/x/autopilot/types/genesis.pb.go b/x/autopilot/types/genesis.pb.go deleted file mode 100644 index d6f0e18f38..0000000000 --- a/x/autopilot/types/genesis.pb.go +++ /dev/null @@ -1,323 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/autopilot/genesis.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -// GenesisState defines the claim module's genesis state. -type GenesisState struct { - // params defines all the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"` -} - -func (m *GenesisState) Reset() { *m = GenesisState{} } -func (m *GenesisState) String() string { return proto.CompactTextString(m) } -func (*GenesisState) ProtoMessage() {} -func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_a7e087b21fd12e65, []int{0} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func init() { - proto.RegisterType((*GenesisState)(nil), "stride.autopilot.GenesisState") -} - -func init() { proto.RegisterFile("stride/autopilot/genesis.proto", fileDescriptor_a7e087b21fd12e65) } - -var fileDescriptor_a7e087b21fd12e65 = []byte{ - // 211 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2b, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0x4f, 0x2c, 0x2d, 0xc9, 0x2f, 0xc8, 0xcc, 0xc9, 0x2f, 0xd1, 0x4f, 0x4f, 0xcd, - 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0xc8, 0xeb, 0xc1, - 0xe5, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x92, 0xfa, 0x20, 0x16, 0x44, 0x9d, 0x94, 0x2c, - 0x86, 0x39, 0x05, 0x89, 0x45, 0x89, 0xb9, 0x50, 0x63, 0x94, 0xc2, 0xb9, 0x78, 0xdc, 0x21, 0xe6, - 0x06, 0x97, 0x24, 0x96, 0xa4, 0x0a, 0xb9, 0x73, 0xb1, 0x41, 0xe4, 0x25, 0x18, 0x15, 0x18, 0x35, - 0xb8, 0x8d, 0x24, 0xf4, 0xd0, 0xed, 0xd1, 0x0b, 0x00, 0xcb, 0x3b, 0x89, 0x9e, 0xb8, 0x27, 0xcf, - 0xf0, 0xe9, 0x9e, 0x3c, 0x6f, 0x65, 0x62, 0x6e, 0x8e, 0x95, 0x12, 0x44, 0x97, 0x52, 0x10, 0x54, - 0xbb, 0x93, 0xcf, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, - 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x19, 0xa5, 0x67, - 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x07, 0x83, 0x0d, 0xd7, 0xf5, 0x49, 0x4c, - 0x2a, 0xd6, 0x87, 0x3a, 0xb4, 0xcc, 0x4c, 0xbf, 0x02, 0xc9, 0xb5, 0x25, 0x95, 0x05, 0xa9, 0xc5, - 0x49, 0x6c, 0x60, 0xd7, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x5b, 0xa8, 0x8b, 0x16, - 0x01, 0x00, 0x00, -} - -func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GenesisState) 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 ErrIntOverflowGenesis - } - 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: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/autopilot/types/params.pb.go b/x/autopilot/types/params.pb.go deleted file mode 100644 index 643c4ee8e7..0000000000 --- a/x/autopilot/types/params.pb.go +++ /dev/null @@ -1,308 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/autopilot/params.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -// Params defines the parameters for the module. -// next id: 1 -type Params struct { - // optionally, turn off this module - Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` -} - -func (m *Params) Reset() { *m = Params{} } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_b0b993e9f5195319, []int{0} -} -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} -func (m *Params) XXX_Size() int { - return m.Size() -} -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -func (m *Params) GetActive() bool { - if m != nil { - return m.Active - } - return false -} - -func init() { - proto.RegisterType((*Params)(nil), "stride.autopilot.Params") -} - -func init() { proto.RegisterFile("stride/autopilot/params.proto", fileDescriptor_b0b993e9f5195319) } - -var fileDescriptor_b0b993e9f5195319 = []byte{ - // 175 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2d, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0x4f, 0x2c, 0x2d, 0xc9, 0x2f, 0xc8, 0xcc, 0xc9, 0x2f, 0xd1, 0x2f, 0x48, 0x2c, - 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0x48, 0xeb, 0xc1, 0xa5, - 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x92, 0xfa, 0x20, 0x16, 0x44, 0x9d, 0x92, 0x1a, 0x17, - 0x5b, 0x00, 0x58, 0x9f, 0x90, 0x18, 0x17, 0x5b, 0x62, 0x72, 0x49, 0x66, 0x59, 0xaa, 0x04, 0xa3, - 0x02, 0xa3, 0x06, 0x47, 0x10, 0x94, 0x67, 0xc5, 0x32, 0x63, 0x81, 0x3c, 0x83, 0x93, 0xcf, 0x89, - 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, - 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x19, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, - 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x07, 0x83, 0x2d, 0xd5, 0xf5, 0x49, 0x4c, 0x2a, 0xd6, 0x87, 0xba, - 0xaf, 0xcc, 0x4c, 0xbf, 0x02, 0xc9, 0x91, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0xcb, - 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa0, 0x49, 0x55, 0xd1, 0xc5, 0x00, 0x00, 0x00, -} - -func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Active { - i-- - if m.Active { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintParams(dAtA []byte, offset int, v uint64) int { - offset -= sovParams(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Active { - n += 2 - } - return n -} - -func sovParams(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozParams(x uint64) (n int) { - return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Params) 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 ErrIntOverflowParams - } - 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: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Active = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipParams(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, ErrIntOverflowParams - } - 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, ErrIntOverflowParams - } - 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, ErrIntOverflowParams - } - 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, ErrInvalidLengthParams - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupParams - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthParams - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/autopilot/types/query.pb.go b/x/autopilot/types/query.pb.go deleted file mode 100644 index 989e042ebb..0000000000 --- a/x/autopilot/types/query.pb.go +++ /dev/null @@ -1,535 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/autopilot/query.proto - -package types - -import ( - context "context" - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - 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 - -// QueryParamsRequest is request type for the Query/Params RPC method. -type QueryParamsRequest struct { -} - -func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } -func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryParamsRequest) ProtoMessage() {} -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1dd160550c308365, []int{0} -} -func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsRequest.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 *QueryParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsRequest.Merge(m, src) -} -func (m *QueryParamsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo - -// QueryParamsResponse is response type for the Query/Params RPC method. -type QueryParamsResponse struct { - // params holds all the parameters of this module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` -} - -func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } -func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryParamsResponse) ProtoMessage() {} -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1dd160550c308365, []int{1} -} -func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsResponse.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 *QueryParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsResponse.Merge(m, src) -} -func (m *QueryParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo - -func (m *QueryParamsResponse) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "stride.autopilot.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "stride.autopilot.QueryParamsResponse") -} - -func init() { proto.RegisterFile("stride/autopilot/query.proto", fileDescriptor_1dd160550c308365) } - -var fileDescriptor_1dd160550c308365 = []byte{ - // 277 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x29, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0x4f, 0x2c, 0x2d, 0xc9, 0x2f, 0xc8, 0xcc, 0xc9, 0x2f, 0xd1, 0x2f, 0x2c, 0x4d, - 0x2d, 0xaa, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0xc8, 0xea, 0xc1, 0x65, 0xa5, - 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x92, 0xfa, 0x20, 0x16, 0x44, 0x9d, 0x94, 0x4c, 0x7a, 0x7e, - 0x7e, 0x7a, 0x4e, 0xaa, 0x7e, 0x62, 0x41, 0xa6, 0x7e, 0x62, 0x5e, 0x5e, 0x7e, 0x49, 0x62, 0x49, - 0x66, 0x7e, 0x5e, 0x31, 0x54, 0x56, 0x16, 0xc3, 0x8e, 0x82, 0xc4, 0xa2, 0xc4, 0x5c, 0xa8, 0xb4, - 0x92, 0x08, 0x97, 0x50, 0x20, 0xc8, 0xce, 0x00, 0xb0, 0x60, 0x50, 0x6a, 0x61, 0x69, 0x6a, 0x71, - 0x89, 0x92, 0x2f, 0x97, 0x30, 0x8a, 0x68, 0x71, 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0x90, 0x19, 0x17, - 0x1b, 0x44, 0xb3, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xb7, 0x91, 0x84, 0x1e, 0xba, 0x13, 0xf5, 0x20, - 0x3a, 0x9c, 0x58, 0x4e, 0xdc, 0x93, 0x67, 0x08, 0x82, 0xaa, 0x36, 0xea, 0x65, 0xe4, 0x62, 0x05, - 0x9b, 0x27, 0xd4, 0xcc, 0xc8, 0xc5, 0x06, 0x51, 0x22, 0xa4, 0x82, 0xa9, 0x19, 0xd3, 0x25, 0x52, - 0xaa, 0x04, 0x54, 0x41, 0x5c, 0xa6, 0xa4, 0xd3, 0x74, 0xf9, 0xc9, 0x64, 0x26, 0x35, 0x21, 0x15, - 0xfd, 0x60, 0xb0, 0x72, 0x5d, 0x9f, 0xc4, 0xa4, 0x62, 0x7d, 0x1c, 0x5e, 0x77, 0xf2, 0x39, 0xf1, - 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, - 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xa3, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, - 0xbd, 0xe4, 0xfc, 0x5c, 0x6c, 0x26, 0x95, 0x99, 0xe9, 0x57, 0x20, 0x19, 0x57, 0x52, 0x59, 0x90, - 0x5a, 0x9c, 0xc4, 0x06, 0x0e, 0x49, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1e, 0xe7, 0x6b, - 0x74, 0xce, 0x01, 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 - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - // Parameters queries the parameters of the module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/stride.autopilot.Query/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -type QueryServer interface { - // Parameters queries the parameters of the module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) -} - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) -} - -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.autopilot.Query/Params", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "stride.autopilot.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "stride/autopilot/query.proto", -} - -func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryParamsResponse) 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 *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryParamsRequest) 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 ErrIntOverflowQuery - } - 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: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParamsResponse) 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 ErrIntOverflowQuery - } - 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: QueryParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/claim/migrations/v2/types/params.pb.go b/x/claim/migrations/v2/types/params.pb.go deleted file mode 100644 index dd99dc2c06..0000000000 --- a/x/claim/migrations/v2/types/params.pb.go +++ /dev/null @@ -1,763 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/claim/params.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - _ "github.com/gogo/protobuf/types" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - io "io" - math "math" - math_bits "math/bits" - time "time" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen - -// 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 - -// Params defines the claim module's parameters. -type Params struct { - Airdrops []*Airdrop `protobuf:"bytes,1,rep,name=airdrops,proto3" json:"airdrops,omitempty"` -} - -func (m *Params) Reset() { *m = Params{} } -func (m *Params) String() string { return proto.CompactTextString(m) } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_dd7ac871d3875dc3, []int{0} -} -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} -func (m *Params) XXX_Size() int { - return m.Size() -} -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -func (m *Params) GetAirdrops() []*Airdrop { - if m != nil { - return m.Airdrops - } - return nil -} - -type Airdrop struct { - AirdropIdentifier string `protobuf:"bytes,1,opt,name=airdrop_identifier,json=airdropIdentifier,proto3" json:"airdrop_identifier,omitempty" yaml:"airdrop_identifier"` - // seconds - AirdropStartTime time.Time `protobuf:"bytes,2,opt,name=airdrop_start_time,json=airdropStartTime,proto3,stdtime" json:"airdrop_start_time" yaml:"airdrop_start_time"` - // seconds - AirdropDuration time.Duration `protobuf:"bytes,3,opt,name=airdrop_duration,json=airdropDuration,proto3,stdduration" json:"airdrop_duration,omitempty" yaml:"airdrop_duration"` - // denom of claimable asset - ClaimDenom string `protobuf:"bytes,4,opt,name=claim_denom,json=claimDenom,proto3" json:"claim_denom,omitempty"` - // airdrop distribution account - DistributorAddress string `protobuf:"bytes,5,opt,name=distributor_address,json=distributorAddress,proto3" json:"distributor_address,omitempty"` - // ustrd tokens claimed so far in the current period - ClaimedSoFar int64 `protobuf:"varint,6,opt,name=claimed_so_far,json=claimedSoFar,proto3" json:"claimed_so_far,omitempty"` -} - -func (m *Airdrop) Reset() { *m = Airdrop{} } -func (m *Airdrop) String() string { return proto.CompactTextString(m) } -func (*Airdrop) ProtoMessage() {} -func (*Airdrop) Descriptor() ([]byte, []int) { - return fileDescriptor_dd7ac871d3875dc3, []int{1} -} -func (m *Airdrop) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Airdrop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Airdrop.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 *Airdrop) XXX_Merge(src proto.Message) { - xxx_messageInfo_Airdrop.Merge(m, src) -} -func (m *Airdrop) XXX_Size() int { - return m.Size() -} -func (m *Airdrop) XXX_DiscardUnknown() { - xxx_messageInfo_Airdrop.DiscardUnknown(m) -} - -var xxx_messageInfo_Airdrop proto.InternalMessageInfo - -func (m *Airdrop) GetAirdropIdentifier() string { - if m != nil { - return m.AirdropIdentifier - } - return "" -} - -func (m *Airdrop) GetAirdropStartTime() time.Time { - if m != nil { - return m.AirdropStartTime - } - return time.Time{} -} - -func (m *Airdrop) GetAirdropDuration() time.Duration { - if m != nil { - return m.AirdropDuration - } - return 0 -} - -func (m *Airdrop) GetClaimDenom() string { - if m != nil { - return m.ClaimDenom - } - return "" -} - -func (m *Airdrop) GetDistributorAddress() string { - if m != nil { - return m.DistributorAddress - } - return "" -} - -func (m *Airdrop) GetClaimedSoFar() int64 { - if m != nil { - return m.ClaimedSoFar - } - return 0 -} - -func init() { - proto.RegisterType((*Params)(nil), "stride.claim.V2Params") - proto.RegisterType((*Airdrop)(nil), "stride.claim.V2Airdrop") -} - -func init() { proto.RegisterFile("stride/claim/params.proto", fileDescriptor_dd7ac871d3875dc3) } - -var fileDescriptor_dd7ac871d3875dc3 = []byte{ - // 445 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0x3d, 0x8f, 0xd3, 0x30, - 0x18, 0xc7, 0x6b, 0x0a, 0x05, 0xdc, 0x13, 0x2f, 0x06, 0x44, 0x5a, 0x89, 0xa4, 0x8a, 0x40, 0xea, - 0x00, 0xb6, 0x38, 0x98, 0x60, 0x6a, 0x75, 0x42, 0x20, 0xdd, 0x80, 0x52, 0x26, 0x96, 0xc8, 0x39, - 0xbb, 0xc1, 0x52, 0x5d, 0x47, 0xb6, 0x8b, 0xe8, 0x27, 0x60, 0xbd, 0x91, 0x8f, 0x74, 0x62, 0xba, - 0x91, 0x29, 0xa0, 0x76, 0x63, 0xbc, 0x4f, 0x80, 0xec, 0x38, 0x77, 0xc7, 0x75, 0x4b, 0x7e, 0xff, - 0xff, 0xf3, 0xea, 0x07, 0x0e, 0x8c, 0xd5, 0x82, 0x71, 0x72, 0xb4, 0xa0, 0x42, 0x92, 0x8a, 0x6a, - 0x2a, 0x0d, 0xae, 0xb4, 0xb2, 0x0a, 0xed, 0x35, 0x12, 0xf6, 0xd2, 0xf0, 0x61, 0xa9, 0x4a, 0xe5, - 0x05, 0xe2, 0xbe, 0x1a, 0xcf, 0x30, 0x2e, 0x95, 0x2a, 0x17, 0x9c, 0xf8, 0xbf, 0x62, 0x35, 0x27, - 0x6c, 0xa5, 0xa9, 0x15, 0x6a, 0x19, 0xf4, 0xe4, 0xaa, 0x6e, 0x85, 0xe4, 0xc6, 0x52, 0x59, 0x35, - 0x86, 0xf4, 0x2d, 0xec, 0x7d, 0xf4, 0x45, 0xd1, 0x4b, 0x78, 0x8b, 0x0a, 0xcd, 0xb4, 0xaa, 0x4c, - 0x04, 0x46, 0xdd, 0x71, 0x7f, 0xff, 0x11, 0xbe, 0xdc, 0x01, 0x9e, 0x34, 0x6a, 0x76, 0x6e, 0x4b, - 0x7f, 0x76, 0xe1, 0xcd, 0x40, 0xd1, 0x21, 0x44, 0x81, 0xe7, 0x82, 0xf1, 0xa5, 0x15, 0x73, 0xc1, - 0x75, 0x04, 0x46, 0x60, 0x7c, 0x7b, 0xfa, 0xe4, 0xac, 0x4e, 0x06, 0x6b, 0x2a, 0x17, 0x6f, 0xd2, - 0x5d, 0x4f, 0x9a, 0xdd, 0x0f, 0xf0, 0xc3, 0x39, 0x43, 0xea, 0x22, 0x9b, 0xb1, 0x54, 0xdb, 0xdc, - 0xf5, 0x1d, 0x5d, 0x1b, 0x81, 0x71, 0x7f, 0x7f, 0x88, 0x9b, 0xa1, 0x70, 0x3b, 0x14, 0xfe, 0xd4, - 0x0e, 0x35, 0x7d, 0x76, 0x52, 0x27, 0x9d, 0xdd, 0x6a, 0x17, 0x39, 0xd2, 0xe3, 0xdf, 0x09, 0xc8, - 0xee, 0x05, 0x61, 0xe6, 0xb8, 0x8b, 0x46, 0xdf, 0x01, 0x6c, 0x61, 0xde, 0xee, 0x30, 0xea, 0xfa, - 0x7a, 0x83, 0x9d, 0x7a, 0x07, 0xc1, 0x30, 0x9d, 0xb8, 0x72, 0x7f, 0xeb, 0x64, 0x78, 0x35, 0xf4, - 0xb9, 0x92, 0xc2, 0x72, 0x59, 0xd9, 0xf5, 0x59, 0x9d, 0x3c, 0xfe, 0xbf, 0x99, 0xd6, 0x93, 0xfe, - 0x70, 0xad, 0xdc, 0x0d, 0xb8, 0xcd, 0x89, 0x12, 0xd8, 0xf7, 0xfb, 0xce, 0x19, 0x5f, 0x2a, 0x19, - 0x5d, 0x77, 0x1b, 0xcc, 0xa0, 0x47, 0x07, 0x8e, 0x20, 0x02, 0x1f, 0x30, 0xe1, 0x5e, 0xa6, 0x58, - 0x59, 0xa5, 0x73, 0xca, 0x98, 0xe6, 0xc6, 0x44, 0x37, 0xbc, 0x11, 0x5d, 0x92, 0x26, 0x8d, 0x82, - 0x9e, 0xc2, 0x3b, 0x3e, 0x9c, 0xb3, 0xdc, 0xa8, 0x7c, 0x4e, 0x75, 0xd4, 0x1b, 0x81, 0x71, 0x37, - 0xdb, 0x0b, 0x74, 0xa6, 0xde, 0x51, 0x3d, 0x7d, 0x7f, 0xb2, 0x89, 0xc1, 0xe9, 0x26, 0x06, 0x7f, - 0x36, 0x31, 0x38, 0xde, 0xc6, 0x9d, 0xd3, 0x6d, 0xdc, 0xf9, 0xb5, 0x8d, 0x3b, 0x9f, 0x71, 0x29, - 0xec, 0x97, 0x55, 0x81, 0x8f, 0x94, 0x24, 0x33, 0x7f, 0x11, 0x2f, 0x0e, 0x69, 0x61, 0x48, 0x38, - 0xdd, 0xaf, 0xaf, 0xc9, 0xb7, 0x70, 0xbf, 0x76, 0x5d, 0x71, 0x53, 0xf4, 0xfc, 0xa2, 0x5e, 0xfd, - 0x0b, 0x00, 0x00, 0xff, 0xff, 0x1a, 0xdb, 0x32, 0x0a, 0xdc, 0x02, 0x00, 0x00, -} - -func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Airdrops) > 0 { - for iNdEx := len(m.Airdrops) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Airdrops[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintParams(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Airdrop) 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 *Airdrop) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Airdrop) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ClaimedSoFar != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.ClaimedSoFar)) - i-- - dAtA[i] = 0x30 - } - if len(m.DistributorAddress) > 0 { - i -= len(m.DistributorAddress) - copy(dAtA[i:], m.DistributorAddress) - i = encodeVarintParams(dAtA, i, uint64(len(m.DistributorAddress))) - i-- - dAtA[i] = 0x2a - } - if len(m.ClaimDenom) > 0 { - i -= len(m.ClaimDenom) - copy(dAtA[i:], m.ClaimDenom) - i = encodeVarintParams(dAtA, i, uint64(len(m.ClaimDenom))) - i-- - dAtA[i] = 0x22 - } - n1, err1 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.AirdropDuration, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.AirdropDuration):]) - if err1 != nil { - return 0, err1 - } - i -= n1 - i = encodeVarintParams(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x1a - n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.AirdropStartTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.AirdropStartTime):]) - if err2 != nil { - return 0, err2 - } - i -= n2 - i = encodeVarintParams(dAtA, i, uint64(n2)) - i-- - dAtA[i] = 0x12 - if len(m.AirdropIdentifier) > 0 { - i -= len(m.AirdropIdentifier) - copy(dAtA[i:], m.AirdropIdentifier) - i = encodeVarintParams(dAtA, i, uint64(len(m.AirdropIdentifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintParams(dAtA []byte, offset int, v uint64) int { - offset -= sovParams(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Airdrops) > 0 { - for _, e := range m.Airdrops { - l = e.Size() - n += 1 + l + sovParams(uint64(l)) - } - } - return n -} - -func (m *Airdrop) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.AirdropIdentifier) - if l > 0 { - n += 1 + l + sovParams(uint64(l)) - } - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.AirdropStartTime) - n += 1 + l + sovParams(uint64(l)) - l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.AirdropDuration) - n += 1 + l + sovParams(uint64(l)) - l = len(m.ClaimDenom) - if l > 0 { - n += 1 + l + sovParams(uint64(l)) - } - l = len(m.DistributorAddress) - if l > 0 { - n += 1 + l + sovParams(uint64(l)) - } - if m.ClaimedSoFar != 0 { - n += 1 + sovParams(uint64(m.ClaimedSoFar)) - } - return n -} - -func sovParams(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozParams(x uint64) (n int) { - return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Params) 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 ErrIntOverflowParams - } - 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: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Airdrops", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Airdrops = append(m.Airdrops, &Airdrop{}) - if err := m.Airdrops[len(m.Airdrops)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Airdrop) 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 ErrIntOverflowParams - } - 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: Airdrop: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Airdrop: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AirdropIdentifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - 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 ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AirdropIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AirdropStartTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.AirdropStartTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AirdropDuration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.AirdropDuration, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimDenom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - 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 ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClaimDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DistributorAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - 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 ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DistributorAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimedSoFar", wireType) - } - m.ClaimedSoFar = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ClaimedSoFar |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipParams(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, ErrIntOverflowParams - } - 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, ErrIntOverflowParams - } - 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, ErrIntOverflowParams - } - 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, ErrInvalidLengthParams - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupParams - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthParams - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/claim/types/claim.pb.go b/x/claim/types/claim.pb.go deleted file mode 100644 index 79457d975d..0000000000 --- a/x/claim/types/claim.pb.go +++ /dev/null @@ -1,558 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/claim/claim.proto - -package types - -import ( - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -type Action int32 - -const ( - ACTION_FREE Action = 0 - ACTION_LIQUID_STAKE Action = 1 - ACTION_DELEGATE_STAKE Action = 2 -) - -var Action_name = map[int32]string{ - 0: "ACTION_FREE", - 1: "ACTION_LIQUID_STAKE", - 2: "ACTION_DELEGATE_STAKE", -} - -var Action_value = map[string]int32{ - "ACTION_FREE": 0, - "ACTION_LIQUID_STAKE": 1, - "ACTION_DELEGATE_STAKE": 2, -} - -func (x Action) String() string { - return proto.EnumName(Action_name, int32(x)) -} - -func (Action) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_b4747d999b9dc0da, []int{0} -} - -// A Claim Records is the metadata of claim data per address -type ClaimRecord struct { - // airdrop identifier - AirdropIdentifier string `protobuf:"bytes,1,opt,name=airdrop_identifier,json=airdropIdentifier,proto3" json:"airdrop_identifier,omitempty" yaml:"airdrop_identifier"` - // address of claim user - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` - // weight that represent the portion from total allocation - Weight github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=weight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"weight" yaml:"weight"` - // true if action is completed - // index of bool in array refers to action enum # - ActionCompleted []bool `protobuf:"varint,4,rep,packed,name=action_completed,json=actionCompleted,proto3" json:"action_completed,omitempty" yaml:"action_completed"` -} - -func (m *ClaimRecord) Reset() { *m = ClaimRecord{} } -func (m *ClaimRecord) String() string { return proto.CompactTextString(m) } -func (*ClaimRecord) ProtoMessage() {} -func (*ClaimRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_b4747d999b9dc0da, []int{0} -} -func (m *ClaimRecord) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClaimRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClaimRecord.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 *ClaimRecord) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClaimRecord.Merge(m, src) -} -func (m *ClaimRecord) XXX_Size() int { - return m.Size() -} -func (m *ClaimRecord) XXX_DiscardUnknown() { - xxx_messageInfo_ClaimRecord.DiscardUnknown(m) -} - -var xxx_messageInfo_ClaimRecord proto.InternalMessageInfo - -func (m *ClaimRecord) GetAirdropIdentifier() string { - if m != nil { - return m.AirdropIdentifier - } - return "" -} - -func (m *ClaimRecord) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *ClaimRecord) GetActionCompleted() []bool { - if m != nil { - return m.ActionCompleted - } - return nil -} - -func init() { - proto.RegisterEnum("stride.claim.Action", Action_name, Action_value) - proto.RegisterType((*ClaimRecord)(nil), "stride.claim.ClaimRecord") -} - -func init() { proto.RegisterFile("stride/claim/claim.proto", fileDescriptor_b4747d999b9dc0da) } - -var fileDescriptor_b4747d999b9dc0da = []byte{ - // 394 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x4f, 0xce, 0xd2, 0x40, - 0x00, 0xc5, 0x5b, 0x20, 0xa8, 0x83, 0x0a, 0x8e, 0x1a, 0x0a, 0xc6, 0x96, 0x74, 0x61, 0x88, 0x91, - 0x76, 0x61, 0xe2, 0xc2, 0x8d, 0x29, 0x50, 0xb4, 0xb1, 0xd1, 0x58, 0x30, 0x26, 0x6e, 0x9a, 0xd2, - 0x19, 0xcb, 0x44, 0xca, 0x34, 0x9d, 0xf1, 0x0f, 0x37, 0x70, 0xe9, 0x1d, 0xdc, 0x79, 0x12, 0x96, - 0x2c, 0x8d, 0x8b, 0xc6, 0xc0, 0x0d, 0x7a, 0x02, 0xc3, 0x74, 0x30, 0xe6, 0xfb, 0x36, 0x6d, 0xf3, - 0xfb, 0xbd, 0xbc, 0x74, 0xe6, 0x01, 0x8d, 0xf1, 0x9c, 0x20, 0x6c, 0xc7, 0xeb, 0x88, 0xa4, 0xd5, - 0xd3, 0xca, 0x72, 0xca, 0x29, 0xbc, 0x5e, 0x19, 0x4b, 0xb0, 0xfe, 0x9d, 0x84, 0x26, 0x54, 0x08, - 0xfb, 0xf4, 0x55, 0x65, 0xcc, 0x9f, 0x35, 0xd0, 0x9a, 0x9c, 0x7c, 0x80, 0x63, 0x9a, 0x23, 0xe8, - 0x03, 0x18, 0x91, 0x1c, 0xe5, 0x34, 0x0b, 0x09, 0xc2, 0x1b, 0x4e, 0x3e, 0x10, 0x9c, 0x6b, 0xea, - 0x40, 0x1d, 0x5e, 0x1b, 0xdf, 0x2f, 0x0b, 0xa3, 0xb7, 0x8d, 0xd2, 0xf5, 0x53, 0xf3, 0x72, 0xc6, - 0x0c, 0x6e, 0x49, 0xe8, 0xfd, 0x63, 0xf0, 0x11, 0xb8, 0x12, 0x21, 0x94, 0x63, 0xc6, 0xb4, 0x9a, - 0xa8, 0x80, 0x65, 0x61, 0xdc, 0x94, 0x15, 0x95, 0x30, 0x83, 0x73, 0x04, 0xbe, 0x03, 0xcd, 0x2f, - 0x98, 0x24, 0x2b, 0xae, 0xd5, 0x45, 0xf8, 0xd9, 0xae, 0x30, 0x94, 0xdf, 0x85, 0xf1, 0x20, 0x21, - 0x7c, 0xf5, 0x69, 0x69, 0xc5, 0x34, 0xb5, 0x63, 0xca, 0x52, 0xca, 0xe4, 0x6b, 0xc4, 0xd0, 0x47, - 0x9b, 0x6f, 0x33, 0xcc, 0xac, 0x29, 0x8e, 0xcb, 0xc2, 0xb8, 0x51, 0x55, 0x57, 0x2d, 0x66, 0x20, - 0xeb, 0xe0, 0x0c, 0x74, 0xa2, 0x98, 0x13, 0xba, 0x09, 0x63, 0x9a, 0x66, 0x6b, 0xcc, 0x31, 0xd2, - 0x1a, 0x83, 0xfa, 0xf0, 0xea, 0xf8, 0x5e, 0x59, 0x18, 0x5d, 0xf9, 0x3f, 0x17, 0x12, 0x66, 0xd0, - 0xae, 0xd0, 0xe4, 0x4c, 0x1e, 0xce, 0x41, 0xd3, 0x11, 0x08, 0xb6, 0x41, 0xcb, 0x99, 0x2c, 0xbc, - 0xd7, 0xaf, 0xc2, 0x59, 0xe0, 0xba, 0x1d, 0x05, 0x76, 0xc1, 0x6d, 0x09, 0x7c, 0xef, 0xcd, 0x5b, - 0x6f, 0x1a, 0xce, 0x17, 0xce, 0x4b, 0xb7, 0xa3, 0xc2, 0x1e, 0xb8, 0x2b, 0xc5, 0xd4, 0xf5, 0xdd, - 0xe7, 0xce, 0xc2, 0x95, 0xaa, 0xd6, 0x6f, 0x7c, 0xfb, 0xa1, 0x2b, 0xe3, 0x17, 0xbb, 0x83, 0xae, - 0xee, 0x0f, 0xba, 0xfa, 0xe7, 0xa0, 0xab, 0xdf, 0x8f, 0xba, 0xb2, 0x3f, 0xea, 0xca, 0xaf, 0xa3, - 0xae, 0xbc, 0xb7, 0xfe, 0x3b, 0xf7, 0x5c, 0x4c, 0x39, 0xf2, 0xa3, 0x25, 0xb3, 0xe5, 0xe0, 0x9f, - 0x9f, 0xd8, 0x5f, 0xe5, 0xea, 0xe2, 0x0e, 0x96, 0x4d, 0x31, 0xe9, 0xe3, 0xbf, 0x01, 0x00, 0x00, - 0xff, 0xff, 0x26, 0x83, 0x48, 0x61, 0x12, 0x02, 0x00, 0x00, -} - -func (m *ClaimRecord) 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 *ClaimRecord) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClaimRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ActionCompleted) > 0 { - for iNdEx := len(m.ActionCompleted) - 1; iNdEx >= 0; iNdEx-- { - i-- - if m.ActionCompleted[iNdEx] { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - } - i = encodeVarintClaim(dAtA, i, uint64(len(m.ActionCompleted))) - i-- - dAtA[i] = 0x22 - } - { - size := m.Weight.Size() - i -= size - if _, err := m.Weight.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintClaim(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintClaim(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.AirdropIdentifier) > 0 { - i -= len(m.AirdropIdentifier) - copy(dAtA[i:], m.AirdropIdentifier) - i = encodeVarintClaim(dAtA, i, uint64(len(m.AirdropIdentifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintClaim(dAtA []byte, offset int, v uint64) int { - offset -= sovClaim(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ClaimRecord) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.AirdropIdentifier) - if l > 0 { - n += 1 + l + sovClaim(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovClaim(uint64(l)) - } - l = m.Weight.Size() - n += 1 + l + sovClaim(uint64(l)) - if len(m.ActionCompleted) > 0 { - n += 1 + sovClaim(uint64(len(m.ActionCompleted))) + len(m.ActionCompleted)*1 - } - return n -} - -func sovClaim(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozClaim(x uint64) (n int) { - return sovClaim(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ClaimRecord) 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 ErrIntOverflowClaim - } - 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: ClaimRecord: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClaimRecord: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AirdropIdentifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClaim - } - 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 ErrInvalidLengthClaim - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthClaim - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AirdropIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClaim - } - 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 ErrInvalidLengthClaim - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthClaim - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClaim - } - 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 ErrInvalidLengthClaim - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthClaim - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Weight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType == 0 { - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClaim - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ActionCompleted = append(m.ActionCompleted, bool(v != 0)) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClaim - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthClaim - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthClaim - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - elementCount = packedLen - if elementCount != 0 && len(m.ActionCompleted) == 0 { - m.ActionCompleted = make([]bool, 0, elementCount) - } - for iNdEx < postIndex { - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowClaim - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ActionCompleted = append(m.ActionCompleted, bool(v != 0)) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field ActionCompleted", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipClaim(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthClaim - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipClaim(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, ErrIntOverflowClaim - } - 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, ErrIntOverflowClaim - } - 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, ErrIntOverflowClaim - } - 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, ErrInvalidLengthClaim - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupClaim - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthClaim - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthClaim = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowClaim = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupClaim = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/claim/types/genesis.pb.go b/x/claim/types/genesis.pb.go deleted file mode 100644 index 471f32200a..0000000000 --- a/x/claim/types/genesis.pb.go +++ /dev/null @@ -1,389 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/claim/genesis.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -// GenesisState defines the claim module's genesis state. -type GenesisState struct { - // params defines all the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"` - // list of claim records, one for every airdrop recipient - ClaimRecords []ClaimRecord `protobuf:"bytes,2,rep,name=claim_records,json=claimRecords,proto3" json:"claim_records" yaml:"claim_records"` -} - -func (m *GenesisState) Reset() { *m = GenesisState{} } -func (m *GenesisState) String() string { return proto.CompactTextString(m) } -func (*GenesisState) ProtoMessage() {} -func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_ecf5648202726596, []int{0} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func (m *GenesisState) GetClaimRecords() []ClaimRecord { - if m != nil { - return m.ClaimRecords - } - return nil -} - -func init() { - proto.RegisterType((*GenesisState)(nil), "stride.claim.GenesisState") -} - -func init() { proto.RegisterFile("stride/claim/genesis.proto", fileDescriptor_ecf5648202726596) } - -var fileDescriptor_ecf5648202726596 = []byte{ - // 261 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2a, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0x4f, 0xce, 0x49, 0xcc, 0xcc, 0xd5, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, - 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x81, 0xc8, 0xe9, 0x81, 0xe5, 0xa4, 0x44, 0xd2, - 0xf3, 0xd3, 0xf3, 0xc1, 0x12, 0xfa, 0x20, 0x16, 0x44, 0x8d, 0x94, 0x04, 0x8a, 0x7e, 0x30, 0x09, - 0x95, 0x91, 0x44, 0x91, 0x29, 0x48, 0x2c, 0x4a, 0xcc, 0x85, 0x1a, 0xac, 0xb4, 0x91, 0x91, 0x8b, - 0xc7, 0x1d, 0x62, 0x55, 0x70, 0x49, 0x62, 0x49, 0xaa, 0x90, 0x33, 0x17, 0x1b, 0x44, 0x81, 0x04, - 0xa3, 0x02, 0xa3, 0x06, 0xb7, 0x91, 0x88, 0x1e, 0xb2, 0xd5, 0x7a, 0x01, 0x60, 0x39, 0x27, 0xd1, - 0x13, 0xf7, 0xe4, 0x19, 0x3e, 0xdd, 0x93, 0xe7, 0xad, 0x4c, 0xcc, 0xcd, 0xb1, 0x52, 0x82, 0xe8, - 0x50, 0x0a, 0x82, 0x6a, 0x15, 0x8a, 0xe1, 0xe2, 0x05, 0x2b, 0x8f, 0x2f, 0x4a, 0x4d, 0xce, 0x2f, - 0x4a, 0x29, 0x96, 0x60, 0x52, 0x60, 0xd6, 0xe0, 0x36, 0x92, 0x44, 0x35, 0xcb, 0x19, 0x44, 0x06, - 0x81, 0x55, 0x38, 0xc9, 0x40, 0x0d, 0x14, 0x81, 0x18, 0x88, 0xa2, 0x5b, 0x29, 0x88, 0x27, 0x19, - 0xa1, 0xb4, 0xd8, 0xc9, 0xe3, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, - 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xf4, - 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x83, 0xc1, 0x56, 0xe9, 0xfa, - 0x24, 0x26, 0x15, 0xeb, 0x43, 0xfd, 0x5f, 0x66, 0xa6, 0x5f, 0x01, 0x0d, 0x84, 0x92, 0xca, 0x82, - 0xd4, 0xe2, 0x24, 0x36, 0x70, 0x20, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x30, 0xff, 0x19, - 0x31, 0x7b, 0x01, 0x00, 0x00, -} - -func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ClaimRecords) > 0 { - for iNdEx := len(m.ClaimRecords) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ClaimRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) - if len(m.ClaimRecords) > 0 { - for _, e := range m.ClaimRecords { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GenesisState) 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 ErrIntOverflowGenesis - } - 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: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimRecords", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClaimRecords = append(m.ClaimRecords, ClaimRecord{}) - if err := m.ClaimRecords[len(m.ClaimRecords)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/claim/types/params.pb.go b/x/claim/types/params.pb.go deleted file mode 100644 index 2b00345d4a..0000000000 --- a/x/claim/types/params.pb.go +++ /dev/null @@ -1,778 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/claim/params.proto - -package types - -import ( - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - _ "github.com/gogo/protobuf/types" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - io "io" - math "math" - math_bits "math/bits" - time "time" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen - -// 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 - -// Params defines the claim module's parameters. -type Params struct { - Airdrops []*Airdrop `protobuf:"bytes,1,rep,name=airdrops,proto3" json:"airdrops,omitempty"` -} - -func (m *Params) Reset() { *m = Params{} } -func (m *Params) String() string { return proto.CompactTextString(m) } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_dd7ac871d3875dc3, []int{0} -} -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} -func (m *Params) XXX_Size() int { - return m.Size() -} -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -func (m *Params) GetAirdrops() []*Airdrop { - if m != nil { - return m.Airdrops - } - return nil -} - -type Airdrop struct { - AirdropIdentifier string `protobuf:"bytes,1,opt,name=airdrop_identifier,json=airdropIdentifier,proto3" json:"airdrop_identifier,omitempty" yaml:"airdrop_identifier"` - // seconds - AirdropStartTime time.Time `protobuf:"bytes,2,opt,name=airdrop_start_time,json=airdropStartTime,proto3,stdtime" json:"airdrop_start_time" yaml:"airdrop_start_time"` - // seconds - AirdropDuration time.Duration `protobuf:"bytes,3,opt,name=airdrop_duration,json=airdropDuration,proto3,stdduration" json:"airdrop_duration,omitempty" yaml:"airdrop_duration"` - // denom of claimable asset - ClaimDenom string `protobuf:"bytes,4,opt,name=claim_denom,json=claimDenom,proto3" json:"claim_denom,omitempty"` - // airdrop distribution account - DistributorAddress string `protobuf:"bytes,5,opt,name=distributor_address,json=distributorAddress,proto3" json:"distributor_address,omitempty"` - // ustrd tokens claimed so far in the current period - ClaimedSoFar github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=claimed_so_far,json=claimedSoFar,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"claimed_so_far"` -} - -func (m *Airdrop) Reset() { *m = Airdrop{} } -func (m *Airdrop) String() string { return proto.CompactTextString(m) } -func (*Airdrop) ProtoMessage() {} -func (*Airdrop) Descriptor() ([]byte, []int) { - return fileDescriptor_dd7ac871d3875dc3, []int{1} -} -func (m *Airdrop) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Airdrop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Airdrop.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 *Airdrop) XXX_Merge(src proto.Message) { - xxx_messageInfo_Airdrop.Merge(m, src) -} -func (m *Airdrop) XXX_Size() int { - return m.Size() -} -func (m *Airdrop) XXX_DiscardUnknown() { - xxx_messageInfo_Airdrop.DiscardUnknown(m) -} - -var xxx_messageInfo_Airdrop proto.InternalMessageInfo - -func (m *Airdrop) GetAirdropIdentifier() string { - if m != nil { - return m.AirdropIdentifier - } - return "" -} - -func (m *Airdrop) GetAirdropStartTime() time.Time { - if m != nil { - return m.AirdropStartTime - } - return time.Time{} -} - -func (m *Airdrop) GetAirdropDuration() time.Duration { - if m != nil { - return m.AirdropDuration - } - return 0 -} - -func (m *Airdrop) GetClaimDenom() string { - if m != nil { - return m.ClaimDenom - } - return "" -} - -func (m *Airdrop) GetDistributorAddress() string { - if m != nil { - return m.DistributorAddress - } - return "" -} - -func init() { - proto.RegisterType((*Params)(nil), "stride.claim.Params") - proto.RegisterType((*Airdrop)(nil), "stride.claim.Airdrop") -} - -func init() { proto.RegisterFile("stride/claim/params.proto", fileDescriptor_dd7ac871d3875dc3) } - -var fileDescriptor_dd7ac871d3875dc3 = []byte{ - // 472 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x52, 0x3f, 0x8f, 0x13, 0x3f, - 0x10, 0xcd, 0xfe, 0xf2, 0x23, 0x80, 0x73, 0xe2, 0x8f, 0x01, 0xb1, 0x89, 0xc4, 0x6e, 0xb4, 0x12, - 0x28, 0x05, 0x67, 0x8b, 0x43, 0xa2, 0x80, 0x2a, 0xd1, 0x09, 0x71, 0xd2, 0x15, 0x68, 0x73, 0x15, - 0xcd, 0xca, 0x1b, 0x3b, 0x8b, 0x45, 0x1c, 0xaf, 0x6c, 0x07, 0x91, 0x4f, 0x40, 0x7b, 0x25, 0x1f, - 0xe9, 0xca, 0x2b, 0x11, 0xc5, 0x82, 0x92, 0x8e, 0xf2, 0x4a, 0x2a, 0x64, 0xaf, 0xf7, 0x2e, 0x5c, - 0xaa, 0x64, 0xdf, 0x7b, 0xf3, 0xe6, 0xcd, 0x78, 0x40, 0x4f, 0x1b, 0xc5, 0x29, 0xc3, 0xd3, 0x39, - 0xe1, 0x02, 0x97, 0x44, 0x11, 0xa1, 0x51, 0xa9, 0xa4, 0x91, 0x70, 0xaf, 0xa6, 0x90, 0xa3, 0xfa, - 0x0f, 0x0b, 0x59, 0x48, 0x47, 0x60, 0xfb, 0xaf, 0xd6, 0xf4, 0xa3, 0x42, 0xca, 0x62, 0xce, 0xb0, - 0xfb, 0xca, 0x97, 0x33, 0x4c, 0x97, 0x8a, 0x18, 0x2e, 0x17, 0x9e, 0x8f, 0xaf, 0xf3, 0x86, 0x0b, - 0xa6, 0x0d, 0x11, 0x65, 0x2d, 0x48, 0xde, 0x80, 0xce, 0x7b, 0xd7, 0x14, 0xbe, 0x00, 0xb7, 0x08, - 0x57, 0x54, 0xc9, 0x52, 0x87, 0xc1, 0xa0, 0x3d, 0xec, 0x1e, 0x3c, 0x42, 0xdb, 0x09, 0xd0, 0xa8, - 0x66, 0xd3, 0x4b, 0x59, 0xf2, 0xa7, 0x0d, 0x6e, 0x7a, 0x14, 0x1e, 0x03, 0xe8, 0xf1, 0x8c, 0x53, - 0xb6, 0x30, 0x7c, 0xc6, 0x99, 0x0a, 0x83, 0x41, 0x30, 0xbc, 0x3d, 0x7e, 0x72, 0x51, 0xc5, 0xbd, - 0x15, 0x11, 0xf3, 0xd7, 0xc9, 0xae, 0x26, 0x49, 0xef, 0x7b, 0xf0, 0xe8, 0x12, 0x83, 0xf2, 0xca, - 0x4d, 0x1b, 0xa2, 0x4c, 0x66, 0x73, 0x87, 0xff, 0x0d, 0x82, 0x61, 0xf7, 0xa0, 0x8f, 0xea, 0xa1, - 0x50, 0x33, 0x14, 0x3a, 0x69, 0x86, 0x1a, 0x3f, 0x3d, 0xab, 0xe2, 0xd6, 0x6e, 0xb7, 0x2b, 0x8f, - 0xe4, 0xf4, 0x67, 0x1c, 0xa4, 0xf7, 0x3c, 0x31, 0xb1, 0xb8, 0xad, 0x86, 0x5f, 0x03, 0xd0, 0x80, - 0x59, 0xb3, 0xc3, 0xb0, 0xed, 0xfa, 0xf5, 0x76, 0xfa, 0x1d, 0x7a, 0xc1, 0x78, 0x64, 0xdb, 0xfd, - 0xae, 0xe2, 0xfe, 0xf5, 0xd2, 0xe7, 0x52, 0x70, 0xc3, 0x44, 0x69, 0x56, 0x17, 0x55, 0xfc, 0xf8, - 0xdf, 0x30, 0x8d, 0x26, 0xf9, 0x66, 0xa3, 0xdc, 0xf5, 0x70, 0xe3, 0x09, 0x63, 0xd0, 0x75, 0xfb, - 0xce, 0x28, 0x5b, 0x48, 0x11, 0xfe, 0x6f, 0x37, 0x98, 0x02, 0x07, 0x1d, 0x5a, 0x04, 0x62, 0xf0, - 0x80, 0x72, 0xfb, 0x32, 0xf9, 0xd2, 0x48, 0x95, 0x11, 0x4a, 0x15, 0xd3, 0x3a, 0xbc, 0xe1, 0x84, - 0x70, 0x8b, 0x1a, 0xd5, 0x0c, 0x3c, 0x01, 0x77, 0x5c, 0x39, 0xa3, 0x99, 0x96, 0xd9, 0x8c, 0xa8, - 0xb0, 0xe3, 0x9e, 0x05, 0xd9, 0xf4, 0x3f, 0xaa, 0xf8, 0x59, 0xc1, 0xcd, 0xc7, 0x65, 0x8e, 0xa6, - 0x52, 0xe0, 0xa9, 0xd4, 0x42, 0x6a, 0xff, 0xb3, 0xaf, 0xe9, 0x27, 0x6c, 0x56, 0x25, 0xd3, 0xe8, - 0x68, 0x61, 0xd2, 0x3d, 0xef, 0x32, 0x91, 0x6f, 0x89, 0x1a, 0xbf, 0x3b, 0x5b, 0x47, 0xc1, 0xf9, - 0x3a, 0x0a, 0x7e, 0xad, 0xa3, 0xe0, 0x74, 0x13, 0xb5, 0xce, 0x37, 0x51, 0xeb, 0xfb, 0x26, 0x6a, - 0x7d, 0x40, 0x5b, 0x7e, 0x13, 0x77, 0x41, 0xfb, 0xc7, 0x24, 0xd7, 0xd8, 0x9f, 0xfa, 0xe7, 0x57, - 0xf8, 0x8b, 0xbf, 0x77, 0xe7, 0x9d, 0x77, 0xdc, 0x62, 0x5f, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, - 0x89, 0x62, 0xb4, 0x10, 0x0c, 0x03, 0x00, 0x00, -} - -func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Airdrops) > 0 { - for iNdEx := len(m.Airdrops) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Airdrops[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintParams(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Airdrop) 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 *Airdrop) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Airdrop) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.ClaimedSoFar.Size() - i -= size - if _, err := m.ClaimedSoFar.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintParams(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - if len(m.DistributorAddress) > 0 { - i -= len(m.DistributorAddress) - copy(dAtA[i:], m.DistributorAddress) - i = encodeVarintParams(dAtA, i, uint64(len(m.DistributorAddress))) - i-- - dAtA[i] = 0x2a - } - if len(m.ClaimDenom) > 0 { - i -= len(m.ClaimDenom) - copy(dAtA[i:], m.ClaimDenom) - i = encodeVarintParams(dAtA, i, uint64(len(m.ClaimDenom))) - i-- - dAtA[i] = 0x22 - } - n1, err1 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.AirdropDuration, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.AirdropDuration):]) - if err1 != nil { - return 0, err1 - } - i -= n1 - i = encodeVarintParams(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x1a - n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.AirdropStartTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.AirdropStartTime):]) - if err2 != nil { - return 0, err2 - } - i -= n2 - i = encodeVarintParams(dAtA, i, uint64(n2)) - i-- - dAtA[i] = 0x12 - if len(m.AirdropIdentifier) > 0 { - i -= len(m.AirdropIdentifier) - copy(dAtA[i:], m.AirdropIdentifier) - i = encodeVarintParams(dAtA, i, uint64(len(m.AirdropIdentifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintParams(dAtA []byte, offset int, v uint64) int { - offset -= sovParams(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Airdrops) > 0 { - for _, e := range m.Airdrops { - l = e.Size() - n += 1 + l + sovParams(uint64(l)) - } - } - return n -} - -func (m *Airdrop) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.AirdropIdentifier) - if l > 0 { - n += 1 + l + sovParams(uint64(l)) - } - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.AirdropStartTime) - n += 1 + l + sovParams(uint64(l)) - l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.AirdropDuration) - n += 1 + l + sovParams(uint64(l)) - l = len(m.ClaimDenom) - if l > 0 { - n += 1 + l + sovParams(uint64(l)) - } - l = len(m.DistributorAddress) - if l > 0 { - n += 1 + l + sovParams(uint64(l)) - } - l = m.ClaimedSoFar.Size() - n += 1 + l + sovParams(uint64(l)) - return n -} - -func sovParams(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozParams(x uint64) (n int) { - return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Params) 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 ErrIntOverflowParams - } - 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: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Airdrops", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Airdrops = append(m.Airdrops, &Airdrop{}) - if err := m.Airdrops[len(m.Airdrops)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Airdrop) 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 ErrIntOverflowParams - } - 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: Airdrop: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Airdrop: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AirdropIdentifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - 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 ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AirdropIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AirdropStartTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.AirdropStartTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AirdropDuration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.AirdropDuration, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimDenom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - 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 ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClaimDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DistributorAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - 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 ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DistributorAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimedSoFar", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - 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 ErrInvalidLengthParams - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ClaimedSoFar.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipParams(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, ErrIntOverflowParams - } - 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, ErrIntOverflowParams - } - 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, ErrIntOverflowParams - } - 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, ErrInvalidLengthParams - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupParams - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthParams - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/claim/types/query.pb.go b/x/claim/types/query.pb.go deleted file mode 100644 index 5867451ce6..0000000000 --- a/x/claim/types/query.pb.go +++ /dev/null @@ -1,2800 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/claim/query.proto - -package types - -import ( - context "context" - fmt "fmt" - types1 "github.com/Stride-Labs/stride/v6/x/claim/vesting/types" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - 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 - -// QueryParamsRequest is the request type for the Query/Params RPC method. -type QueryDistributorAccountBalanceRequest struct { - AirdropIdentifier string `protobuf:"bytes,1,opt,name=airdrop_identifier,json=airdropIdentifier,proto3" json:"airdrop_identifier,omitempty" yaml:"airdrop_identifier"` -} - -func (m *QueryDistributorAccountBalanceRequest) Reset() { *m = QueryDistributorAccountBalanceRequest{} } -func (m *QueryDistributorAccountBalanceRequest) String() string { return proto.CompactTextString(m) } -func (*QueryDistributorAccountBalanceRequest) ProtoMessage() {} -func (*QueryDistributorAccountBalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_baa87682a02846df, []int{0} -} -func (m *QueryDistributorAccountBalanceRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryDistributorAccountBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryDistributorAccountBalanceRequest.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 *QueryDistributorAccountBalanceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryDistributorAccountBalanceRequest.Merge(m, src) -} -func (m *QueryDistributorAccountBalanceRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryDistributorAccountBalanceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryDistributorAccountBalanceRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryDistributorAccountBalanceRequest proto.InternalMessageInfo - -func (m *QueryDistributorAccountBalanceRequest) GetAirdropIdentifier() string { - if m != nil { - return m.AirdropIdentifier - } - return "" -} - -// QueryParamsResponse is the response type for the Query/Params RPC method. -type QueryDistributorAccountBalanceResponse struct { - // params defines the parameters of the module. - DistributorAccountBalance github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=distributor_account_balance,json=distributorAccountBalance,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"distributor_account_balance" yaml:"distributor_account_balance"` -} - -func (m *QueryDistributorAccountBalanceResponse) Reset() { - *m = QueryDistributorAccountBalanceResponse{} -} -func (m *QueryDistributorAccountBalanceResponse) String() string { return proto.CompactTextString(m) } -func (*QueryDistributorAccountBalanceResponse) ProtoMessage() {} -func (*QueryDistributorAccountBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_baa87682a02846df, []int{1} -} -func (m *QueryDistributorAccountBalanceResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryDistributorAccountBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryDistributorAccountBalanceResponse.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 *QueryDistributorAccountBalanceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryDistributorAccountBalanceResponse.Merge(m, src) -} -func (m *QueryDistributorAccountBalanceResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryDistributorAccountBalanceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryDistributorAccountBalanceResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryDistributorAccountBalanceResponse proto.InternalMessageInfo - -func (m *QueryDistributorAccountBalanceResponse) GetDistributorAccountBalance() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.DistributorAccountBalance - } - return nil -} - -// QueryParamsRequest is the request type for the Query/Params RPC method. -type QueryParamsRequest struct { -} - -func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } -func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryParamsRequest) ProtoMessage() {} -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_baa87682a02846df, []int{2} -} -func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsRequest.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 *QueryParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsRequest.Merge(m, src) -} -func (m *QueryParamsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo - -// QueryParamsResponse is the response type for the Query/Params RPC method. -type QueryParamsResponse struct { - // params defines the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` -} - -func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } -func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryParamsResponse) ProtoMessage() {} -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_baa87682a02846df, []int{3} -} -func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsResponse.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 *QueryParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsResponse.Merge(m, src) -} -func (m *QueryParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo - -func (m *QueryParamsResponse) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -type QueryClaimRecordRequest struct { - AirdropIdentifier string `protobuf:"bytes,1,opt,name=airdrop_identifier,json=airdropIdentifier,proto3" json:"airdrop_identifier,omitempty" yaml:"airdrop_identifier"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` -} - -func (m *QueryClaimRecordRequest) Reset() { *m = QueryClaimRecordRequest{} } -func (m *QueryClaimRecordRequest) String() string { return proto.CompactTextString(m) } -func (*QueryClaimRecordRequest) ProtoMessage() {} -func (*QueryClaimRecordRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_baa87682a02846df, []int{4} -} -func (m *QueryClaimRecordRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryClaimRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryClaimRecordRequest.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 *QueryClaimRecordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryClaimRecordRequest.Merge(m, src) -} -func (m *QueryClaimRecordRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryClaimRecordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryClaimRecordRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryClaimRecordRequest proto.InternalMessageInfo - -func (m *QueryClaimRecordRequest) GetAirdropIdentifier() string { - if m != nil { - return m.AirdropIdentifier - } - return "" -} - -func (m *QueryClaimRecordRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -type QueryClaimRecordResponse struct { - ClaimRecord ClaimRecord `protobuf:"bytes,1,opt,name=claim_record,json=claimRecord,proto3" json:"claim_record" yaml:"claim_record"` -} - -func (m *QueryClaimRecordResponse) Reset() { *m = QueryClaimRecordResponse{} } -func (m *QueryClaimRecordResponse) String() string { return proto.CompactTextString(m) } -func (*QueryClaimRecordResponse) ProtoMessage() {} -func (*QueryClaimRecordResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_baa87682a02846df, []int{5} -} -func (m *QueryClaimRecordResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryClaimRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryClaimRecordResponse.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 *QueryClaimRecordResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryClaimRecordResponse.Merge(m, src) -} -func (m *QueryClaimRecordResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryClaimRecordResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryClaimRecordResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryClaimRecordResponse proto.InternalMessageInfo - -func (m *QueryClaimRecordResponse) GetClaimRecord() ClaimRecord { - if m != nil { - return m.ClaimRecord - } - return ClaimRecord{} -} - -type QueryClaimableForActionRequest struct { - AirdropIdentifier string `protobuf:"bytes,1,opt,name=airdrop_identifier,json=airdropIdentifier,proto3" json:"airdrop_identifier,omitempty" yaml:"airdrop_identifier"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` - Action Action `protobuf:"varint,3,opt,name=action,proto3,enum=stride.claim.Action" json:"action,omitempty" yaml:"action"` -} - -func (m *QueryClaimableForActionRequest) Reset() { *m = QueryClaimableForActionRequest{} } -func (m *QueryClaimableForActionRequest) String() string { return proto.CompactTextString(m) } -func (*QueryClaimableForActionRequest) ProtoMessage() {} -func (*QueryClaimableForActionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_baa87682a02846df, []int{6} -} -func (m *QueryClaimableForActionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryClaimableForActionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryClaimableForActionRequest.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 *QueryClaimableForActionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryClaimableForActionRequest.Merge(m, src) -} -func (m *QueryClaimableForActionRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryClaimableForActionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryClaimableForActionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryClaimableForActionRequest proto.InternalMessageInfo - -func (m *QueryClaimableForActionRequest) GetAirdropIdentifier() string { - if m != nil { - return m.AirdropIdentifier - } - return "" -} - -func (m *QueryClaimableForActionRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *QueryClaimableForActionRequest) GetAction() Action { - if m != nil { - return m.Action - } - return ACTION_FREE -} - -type QueryClaimableForActionResponse struct { - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins" yaml:"coins"` -} - -func (m *QueryClaimableForActionResponse) Reset() { *m = QueryClaimableForActionResponse{} } -func (m *QueryClaimableForActionResponse) String() string { return proto.CompactTextString(m) } -func (*QueryClaimableForActionResponse) ProtoMessage() {} -func (*QueryClaimableForActionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_baa87682a02846df, []int{7} -} -func (m *QueryClaimableForActionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryClaimableForActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryClaimableForActionResponse.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 *QueryClaimableForActionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryClaimableForActionResponse.Merge(m, src) -} -func (m *QueryClaimableForActionResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryClaimableForActionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryClaimableForActionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryClaimableForActionResponse proto.InternalMessageInfo - -func (m *QueryClaimableForActionResponse) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.Coins - } - return nil -} - -type QueryTotalClaimableRequest struct { - AirdropIdentifier string `protobuf:"bytes,1,opt,name=airdrop_identifier,json=airdropIdentifier,proto3" json:"airdrop_identifier,omitempty" yaml:"airdrop_identifier"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` - IncludeClaimed bool `protobuf:"varint,3,opt,name=include_claimed,json=includeClaimed,proto3" json:"include_claimed,omitempty"` -} - -func (m *QueryTotalClaimableRequest) Reset() { *m = QueryTotalClaimableRequest{} } -func (m *QueryTotalClaimableRequest) String() string { return proto.CompactTextString(m) } -func (*QueryTotalClaimableRequest) ProtoMessage() {} -func (*QueryTotalClaimableRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_baa87682a02846df, []int{8} -} -func (m *QueryTotalClaimableRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryTotalClaimableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryTotalClaimableRequest.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 *QueryTotalClaimableRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTotalClaimableRequest.Merge(m, src) -} -func (m *QueryTotalClaimableRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryTotalClaimableRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTotalClaimableRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryTotalClaimableRequest proto.InternalMessageInfo - -func (m *QueryTotalClaimableRequest) GetAirdropIdentifier() string { - if m != nil { - return m.AirdropIdentifier - } - return "" -} - -func (m *QueryTotalClaimableRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *QueryTotalClaimableRequest) GetIncludeClaimed() bool { - if m != nil { - return m.IncludeClaimed - } - return false -} - -type QueryTotalClaimableResponse struct { - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins" yaml:"coins"` -} - -func (m *QueryTotalClaimableResponse) Reset() { *m = QueryTotalClaimableResponse{} } -func (m *QueryTotalClaimableResponse) String() string { return proto.CompactTextString(m) } -func (*QueryTotalClaimableResponse) ProtoMessage() {} -func (*QueryTotalClaimableResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_baa87682a02846df, []int{9} -} -func (m *QueryTotalClaimableResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryTotalClaimableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryTotalClaimableResponse.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 *QueryTotalClaimableResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTotalClaimableResponse.Merge(m, src) -} -func (m *QueryTotalClaimableResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryTotalClaimableResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTotalClaimableResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryTotalClaimableResponse proto.InternalMessageInfo - -func (m *QueryTotalClaimableResponse) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.Coins - } - return nil -} - -type QueryUserVestingsRequest struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` -} - -func (m *QueryUserVestingsRequest) Reset() { *m = QueryUserVestingsRequest{} } -func (m *QueryUserVestingsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryUserVestingsRequest) ProtoMessage() {} -func (*QueryUserVestingsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_baa87682a02846df, []int{10} -} -func (m *QueryUserVestingsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryUserVestingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryUserVestingsRequest.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 *QueryUserVestingsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryUserVestingsRequest.Merge(m, src) -} -func (m *QueryUserVestingsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryUserVestingsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryUserVestingsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryUserVestingsRequest proto.InternalMessageInfo - -func (m *QueryUserVestingsRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -type QueryUserVestingsResponse struct { - SpendableCoins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=spendable_coins,json=spendableCoins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"spendable_coins" yaml:"spendable_coins"` - Periods []types1.Period `protobuf:"bytes,1,rep,name=periods,proto3" json:"periods" yaml:"periods"` -} - -func (m *QueryUserVestingsResponse) Reset() { *m = QueryUserVestingsResponse{} } -func (m *QueryUserVestingsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryUserVestingsResponse) ProtoMessage() {} -func (*QueryUserVestingsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_baa87682a02846df, []int{11} -} -func (m *QueryUserVestingsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryUserVestingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryUserVestingsResponse.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 *QueryUserVestingsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryUserVestingsResponse.Merge(m, src) -} -func (m *QueryUserVestingsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryUserVestingsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryUserVestingsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryUserVestingsResponse proto.InternalMessageInfo - -func (m *QueryUserVestingsResponse) GetSpendableCoins() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.SpendableCoins - } - return nil -} - -func (m *QueryUserVestingsResponse) GetPeriods() []types1.Period { - if m != nil { - return m.Periods - } - return nil -} - -func init() { - proto.RegisterType((*QueryDistributorAccountBalanceRequest)(nil), "stride.claim.QueryDistributorAccountBalanceRequest") - proto.RegisterType((*QueryDistributorAccountBalanceResponse)(nil), "stride.claim.QueryDistributorAccountBalanceResponse") - proto.RegisterType((*QueryParamsRequest)(nil), "stride.claim.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "stride.claim.QueryParamsResponse") - proto.RegisterType((*QueryClaimRecordRequest)(nil), "stride.claim.QueryClaimRecordRequest") - proto.RegisterType((*QueryClaimRecordResponse)(nil), "stride.claim.QueryClaimRecordResponse") - proto.RegisterType((*QueryClaimableForActionRequest)(nil), "stride.claim.QueryClaimableForActionRequest") - proto.RegisterType((*QueryClaimableForActionResponse)(nil), "stride.claim.QueryClaimableForActionResponse") - proto.RegisterType((*QueryTotalClaimableRequest)(nil), "stride.claim.QueryTotalClaimableRequest") - proto.RegisterType((*QueryTotalClaimableResponse)(nil), "stride.claim.QueryTotalClaimableResponse") - proto.RegisterType((*QueryUserVestingsRequest)(nil), "stride.claim.QueryUserVestingsRequest") - proto.RegisterType((*QueryUserVestingsResponse)(nil), "stride.claim.QueryUserVestingsResponse") -} - -func init() { proto.RegisterFile("stride/claim/query.proto", fileDescriptor_baa87682a02846df) } - -var fileDescriptor_baa87682a02846df = []byte{ - // 947 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x41, 0x6f, 0xdc, 0x44, - 0x14, 0xce, 0x34, 0x74, 0x0b, 0x93, 0x74, 0xa3, 0x4e, 0x43, 0xd8, 0x75, 0x5a, 0xef, 0x32, 0x52, - 0xd2, 0x45, 0x6a, 0x6c, 0x9a, 0xa2, 0x1e, 0xb8, 0x00, 0x1b, 0x84, 0x52, 0xd4, 0x43, 0x31, 0x50, - 0x09, 0x2e, 0xab, 0xb1, 0x3d, 0x5d, 0x2c, 0xbc, 0x1e, 0xc7, 0x63, 0x57, 0x44, 0x55, 0x2f, 0x70, - 0xe0, 0x06, 0x95, 0x80, 0x1f, 0x01, 0x12, 0x07, 0x7e, 0x02, 0xb7, 0x1e, 0x2b, 0x71, 0xe1, 0x00, - 0x0b, 0x4a, 0xb8, 0x71, 0xcb, 0x81, 0x33, 0xf2, 0xcc, 0x73, 0xd6, 0x4e, 0xbc, 0xdd, 0xe4, 0x80, - 0xc8, 0x25, 0xce, 0xce, 0xfb, 0xde, 0x7b, 0xdf, 0xf7, 0x8d, 0xe7, 0x8d, 0x71, 0x4b, 0xa6, 0x49, - 0xe0, 0x73, 0xdb, 0x0b, 0x59, 0x30, 0xb2, 0x77, 0x32, 0x9e, 0xec, 0x5a, 0x71, 0x22, 0x52, 0x41, - 0x16, 0x75, 0xc4, 0x52, 0x11, 0x63, 0x79, 0x28, 0x86, 0x42, 0x05, 0xec, 0xfc, 0x3f, 0x8d, 0x31, - 0xae, 0x0c, 0x85, 0x18, 0x86, 0xdc, 0x66, 0x71, 0x60, 0xb3, 0x28, 0x12, 0x29, 0x4b, 0x03, 0x11, - 0x49, 0x88, 0x9a, 0x9e, 0x90, 0x23, 0x21, 0x6d, 0x97, 0x49, 0x6e, 0x3f, 0xb8, 0xe1, 0xf2, 0x94, - 0xdd, 0xb0, 0x3d, 0x11, 0x44, 0x10, 0xaf, 0xf6, 0x56, 0x7f, 0x21, 0xd2, 0xae, 0x44, 0x62, 0x96, - 0xb0, 0x51, 0x51, 0xf4, 0x0a, 0x84, 0x1e, 0x70, 0x99, 0x06, 0xd1, 0xb0, 0x78, 0xea, 0x28, 0xcd, - 0xf0, 0xda, 0x7b, 0xb9, 0x86, 0xb7, 0x83, 0x1c, 0xe6, 0x66, 0xa9, 0x48, 0xde, 0xf2, 0x3c, 0x91, - 0x45, 0x69, 0x9f, 0x85, 0x2c, 0xf2, 0xb8, 0xc3, 0x77, 0x32, 0x2e, 0x53, 0x72, 0x07, 0x13, 0x16, - 0x24, 0x7e, 0x22, 0xe2, 0x41, 0xe0, 0xf3, 0x28, 0x0d, 0xee, 0x07, 0x3c, 0x69, 0xa1, 0x2e, 0xea, - 0xbd, 0xd0, 0xbf, 0x7a, 0x30, 0xee, 0xb4, 0x77, 0xd9, 0x28, 0x7c, 0x9d, 0x1e, 0xc7, 0x50, 0xe7, - 0x12, 0x2c, 0xde, 0x9e, 0xac, 0xfd, 0x86, 0xf0, 0xfa, 0xac, 0xbe, 0x32, 0x16, 0x91, 0xe4, 0xe4, - 0x27, 0x84, 0x57, 0xfd, 0x09, 0x6a, 0xc0, 0x34, 0x6c, 0xe0, 0x6a, 0x5c, 0x0b, 0x75, 0xe7, 0x7b, - 0x0b, 0x9b, 0x6d, 0x4b, 0x7b, 0x67, 0xe5, 0xde, 0x59, 0xe0, 0x9d, 0xb5, 0x25, 0x82, 0xa8, 0x7f, - 0xef, 0xc9, 0xb8, 0x33, 0x77, 0x30, 0xee, 0x50, 0xcd, 0xf0, 0x19, 0xb5, 0xe8, 0x0f, 0x7f, 0x74, - 0x7a, 0xc3, 0x20, 0xfd, 0x24, 0x73, 0x2d, 0x4f, 0x8c, 0x6c, 0xd8, 0x0e, 0xfd, 0xd8, 0x90, 0xfe, - 0xa7, 0x76, 0xba, 0x1b, 0x73, 0xa9, 0xca, 0x4a, 0xa7, 0xed, 0x4f, 0xe3, 0x4e, 0x97, 0x31, 0x51, - 0xea, 0xee, 0xaa, 0x8d, 0x00, 0x0b, 0xe9, 0x6d, 0x7c, 0xb9, 0xb2, 0x0a, 0x02, 0x37, 0x71, 0x43, - 0x6f, 0x98, 0x72, 0x73, 0x61, 0x73, 0xd9, 0x2a, 0xbf, 0x48, 0x96, 0x46, 0xf7, 0x9f, 0xcb, 0x55, - 0x38, 0x80, 0xa4, 0xdf, 0x21, 0xfc, 0x92, 0xaa, 0xb5, 0x95, 0x63, 0x1c, 0xee, 0x89, 0xc4, 0xff, - 0x4f, 0x76, 0x8a, 0x5c, 0xc7, 0x17, 0x98, 0xef, 0x27, 0x5c, 0xca, 0xd6, 0x39, 0x55, 0x82, 0x1c, - 0x8c, 0x3b, 0x4d, 0x28, 0xa1, 0x03, 0xd4, 0x29, 0x20, 0x34, 0xc3, 0xad, 0xe3, 0xb4, 0x40, 0xe7, - 0x47, 0x78, 0x51, 0x29, 0x1a, 0x24, 0x6a, 0x1d, 0xd4, 0xb6, 0xab, 0x6a, 0x4b, 0x89, 0xfd, 0x55, - 0xd8, 0xb8, 0xcb, 0xba, 0x5b, 0x39, 0x99, 0x3a, 0x0b, 0xde, 0x04, 0x49, 0x7f, 0x47, 0xd8, 0x9c, - 0xf4, 0x65, 0x6e, 0xc8, 0xdf, 0xc9, 0xf7, 0x24, 0x3f, 0x5b, 0x67, 0xc0, 0x15, 0xf2, 0x06, 0x6e, - 0x30, 0x45, 0xa6, 0x35, 0xdf, 0x45, 0xbd, 0xe6, 0xd1, 0x1d, 0xd6, 0x44, 0xfb, 0x97, 0x0e, 0xc6, - 0x9d, 0x8b, 0x50, 0x42, 0xad, 0x50, 0x07, 0xd2, 0xe8, 0xb7, 0x08, 0x77, 0xa6, 0xea, 0x03, 0x7b, - 0x77, 0xf0, 0xf9, 0x7c, 0x54, 0xc8, 0xd9, 0x07, 0xe2, 0x4d, 0xf0, 0x75, 0x11, 0x7c, 0xcd, 0xb3, - 0x4e, 0xf7, 0xea, 0xeb, 0x4e, 0xf4, 0x67, 0x84, 0x0d, 0x45, 0xeb, 0x03, 0x91, 0xb2, 0xf0, 0x90, - 0xdb, 0x59, 0xb0, 0xfc, 0x1a, 0x5e, 0x0a, 0x22, 0x2f, 0xcc, 0x7c, 0x3e, 0x50, 0x26, 0x73, 0x5f, - 0x79, 0xff, 0xbc, 0xd3, 0x84, 0xe5, 0x2d, 0xbd, 0x4a, 0x1f, 0x23, 0xbc, 0x5a, 0xab, 0xe1, 0xff, - 0xb3, 0x75, 0x1b, 0x0e, 0xd1, 0x87, 0x92, 0x27, 0xf7, 0xf4, 0xb4, 0x2e, 0x66, 0x48, 0xd9, 0x05, - 0x34, 0xfb, 0x38, 0xfe, 0x83, 0x70, 0xbb, 0xa6, 0x14, 0x48, 0xfb, 0x0a, 0xe1, 0x25, 0x19, 0xf3, - 0xc8, 0xcf, 0x05, 0x0f, 0xb4, 0xca, 0xf9, 0x59, 0x2a, 0xdf, 0x05, 0x95, 0x2b, 0xba, 0xe7, 0x91, - 0xfc, 0xd3, 0xe9, 0x6d, 0x1e, 0x66, 0xab, 0xdf, 0x64, 0x1b, 0x5f, 0x88, 0x79, 0x12, 0x08, 0xbf, - 0x70, 0x7b, 0xa5, 0x38, 0x28, 0xc5, 0xa5, 0x75, 0x57, 0x85, 0xfb, 0x2b, 0x40, 0x02, 0x84, 0x43, - 0x12, 0x75, 0x8a, 0xf4, 0xcd, 0xbf, 0x1b, 0xf8, 0xbc, 0x12, 0x4e, 0x7e, 0x44, 0xb8, 0x3d, 0xf5, - 0x92, 0x21, 0x37, 0xab, 0x27, 0xf1, 0x44, 0x57, 0xa1, 0xf1, 0xda, 0xe9, 0x92, 0xb4, 0xdb, 0x74, - 0xed, 0xf3, 0x5f, 0xfe, 0xfa, 0xe6, 0x5c, 0x87, 0x5c, 0x85, 0x4b, 0x7a, 0x24, 0xfc, 0x2c, 0xe4, - 0x47, 0xaf, 0x20, 0xe2, 0xe3, 0x86, 0x9e, 0xf8, 0xa4, 0x5b, 0xd3, 0xa6, 0x72, 0xa1, 0x18, 0x2f, - 0x3f, 0x03, 0x01, 0x5d, 0x5f, 0x54, 0x5d, 0x97, 0xc8, 0xc5, 0xca, 0xa7, 0x01, 0xf9, 0x02, 0xe1, - 0x85, 0xd2, 0xa8, 0x25, 0x6b, 0x35, 0x95, 0x8e, 0x5f, 0x2d, 0xc6, 0xfa, 0x2c, 0xd8, 0x14, 0xad, - 0xe5, 0xd1, 0x6d, 0x3f, 0x84, 0xb7, 0xf3, 0x11, 0xf9, 0x1e, 0x61, 0x72, 0x7c, 0xa2, 0x91, 0xeb, - 0xd3, 0xba, 0xd4, 0x0d, 0x76, 0x63, 0xe3, 0x84, 0x68, 0xa0, 0x76, 0x4b, 0x51, 0x7b, 0x95, 0x58, - 0x65, 0x6a, 0xea, 0x05, 0xbe, 0xaf, 0x3e, 0x08, 0x72, 0xf0, 0x84, 0xa2, 0xfd, 0x50, 0xaf, 0x3c, - 0x22, 0x5f, 0x23, 0xdc, 0xac, 0x8e, 0x08, 0xd2, 0xab, 0xe9, 0x5c, 0x3b, 0x09, 0x8d, 0x57, 0x4e, - 0x80, 0x04, 0x7e, 0x3d, 0xc5, 0x8f, 0x92, 0x2e, 0xf0, 0x4b, 0x73, 0xd8, 0xe0, 0x90, 0x65, 0xc9, - 0xbd, 0x2f, 0x11, 0x5e, 0x2c, 0x9f, 0x6b, 0x52, 0xb7, 0x3b, 0x35, 0x33, 0xc4, 0xb8, 0x36, 0x13, - 0x07, 0x5c, 0xd6, 0x15, 0x97, 0x2e, 0x31, 0x81, 0x4b, 0x26, 0x79, 0x32, 0x80, 0xa3, 0x28, 0x27, - 0x4c, 0xfa, 0xdb, 0x4f, 0xf6, 0x4c, 0xf4, 0x74, 0xcf, 0x44, 0x7f, 0xee, 0x99, 0xe8, 0xf1, 0xbe, - 0x39, 0xf7, 0x74, 0xdf, 0x9c, 0xfb, 0x75, 0xdf, 0x9c, 0xfb, 0xd8, 0x2a, 0xcd, 0x82, 0xf7, 0x55, - 0xd3, 0x8d, 0x3b, 0xcc, 0x95, 0x76, 0xf1, 0x4d, 0x7a, 0xcb, 0xfe, 0xac, 0xd0, 0x99, 0xcf, 0x05, - 0xb7, 0xa1, 0xbe, 0x4a, 0x6f, 0xfe, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x75, 0x53, 0x69, 0xc9, 0x66, - 0x0b, 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 - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - DistributorAccountBalance(ctx context.Context, in *QueryDistributorAccountBalanceRequest, opts ...grpc.CallOption) (*QueryDistributorAccountBalanceResponse, error) - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - ClaimRecord(ctx context.Context, in *QueryClaimRecordRequest, opts ...grpc.CallOption) (*QueryClaimRecordResponse, error) - ClaimableForAction(ctx context.Context, in *QueryClaimableForActionRequest, opts ...grpc.CallOption) (*QueryClaimableForActionResponse, error) - TotalClaimable(ctx context.Context, in *QueryTotalClaimableRequest, opts ...grpc.CallOption) (*QueryTotalClaimableResponse, error) - UserVestings(ctx context.Context, in *QueryUserVestingsRequest, opts ...grpc.CallOption) (*QueryUserVestingsResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) DistributorAccountBalance(ctx context.Context, in *QueryDistributorAccountBalanceRequest, opts ...grpc.CallOption) (*QueryDistributorAccountBalanceResponse, error) { - out := new(QueryDistributorAccountBalanceResponse) - err := c.cc.Invoke(ctx, "/stride.claim.Query/DistributorAccountBalance", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/stride.claim.Query/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) ClaimRecord(ctx context.Context, in *QueryClaimRecordRequest, opts ...grpc.CallOption) (*QueryClaimRecordResponse, error) { - out := new(QueryClaimRecordResponse) - err := c.cc.Invoke(ctx, "/stride.claim.Query/ClaimRecord", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) ClaimableForAction(ctx context.Context, in *QueryClaimableForActionRequest, opts ...grpc.CallOption) (*QueryClaimableForActionResponse, error) { - out := new(QueryClaimableForActionResponse) - err := c.cc.Invoke(ctx, "/stride.claim.Query/ClaimableForAction", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) TotalClaimable(ctx context.Context, in *QueryTotalClaimableRequest, opts ...grpc.CallOption) (*QueryTotalClaimableResponse, error) { - out := new(QueryTotalClaimableResponse) - err := c.cc.Invoke(ctx, "/stride.claim.Query/TotalClaimable", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) UserVestings(ctx context.Context, in *QueryUserVestingsRequest, opts ...grpc.CallOption) (*QueryUserVestingsResponse, error) { - out := new(QueryUserVestingsResponse) - err := c.cc.Invoke(ctx, "/stride.claim.Query/UserVestings", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -type QueryServer interface { - DistributorAccountBalance(context.Context, *QueryDistributorAccountBalanceRequest) (*QueryDistributorAccountBalanceResponse, error) - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - ClaimRecord(context.Context, *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error) - ClaimableForAction(context.Context, *QueryClaimableForActionRequest) (*QueryClaimableForActionResponse, error) - TotalClaimable(context.Context, *QueryTotalClaimableRequest) (*QueryTotalClaimableResponse, error) - UserVestings(context.Context, *QueryUserVestingsRequest) (*QueryUserVestingsResponse, error) -} - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (*UnimplementedQueryServer) DistributorAccountBalance(ctx context.Context, req *QueryDistributorAccountBalanceRequest) (*QueryDistributorAccountBalanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DistributorAccountBalance not implemented") -} -func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} -func (*UnimplementedQueryServer) ClaimRecord(ctx context.Context, req *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClaimRecord not implemented") -} -func (*UnimplementedQueryServer) ClaimableForAction(ctx context.Context, req *QueryClaimableForActionRequest) (*QueryClaimableForActionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClaimableForAction not implemented") -} -func (*UnimplementedQueryServer) TotalClaimable(ctx context.Context, req *QueryTotalClaimableRequest) (*QueryTotalClaimableResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TotalClaimable not implemented") -} -func (*UnimplementedQueryServer) UserVestings(ctx context.Context, req *QueryUserVestingsRequest) (*QueryUserVestingsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserVestings not implemented") -} - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) -} - -func _Query_DistributorAccountBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryDistributorAccountBalanceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).DistributorAccountBalance(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.claim.Query/DistributorAccountBalance", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).DistributorAccountBalance(ctx, req.(*QueryDistributorAccountBalanceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.claim.Query/Params", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_ClaimRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryClaimRecordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).ClaimRecord(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.claim.Query/ClaimRecord", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ClaimRecord(ctx, req.(*QueryClaimRecordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_ClaimableForAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryClaimableForActionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).ClaimableForAction(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.claim.Query/ClaimableForAction", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ClaimableForAction(ctx, req.(*QueryClaimableForActionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_TotalClaimable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTotalClaimableRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).TotalClaimable(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.claim.Query/TotalClaimable", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).TotalClaimable(ctx, req.(*QueryTotalClaimableRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_UserVestings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryUserVestingsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).UserVestings(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.claim.Query/UserVestings", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).UserVestings(ctx, req.(*QueryUserVestingsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "stride.claim.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "DistributorAccountBalance", - Handler: _Query_DistributorAccountBalance_Handler, - }, - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "ClaimRecord", - Handler: _Query_ClaimRecord_Handler, - }, - { - MethodName: "ClaimableForAction", - Handler: _Query_ClaimableForAction_Handler, - }, - { - MethodName: "TotalClaimable", - Handler: _Query_TotalClaimable_Handler, - }, - { - MethodName: "UserVestings", - Handler: _Query_UserVestings_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "stride/claim/query.proto", -} - -func (m *QueryDistributorAccountBalanceRequest) 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 *QueryDistributorAccountBalanceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryDistributorAccountBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AirdropIdentifier) > 0 { - i -= len(m.AirdropIdentifier) - copy(dAtA[i:], m.AirdropIdentifier) - i = encodeVarintQuery(dAtA, i, uint64(len(m.AirdropIdentifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryDistributorAccountBalanceResponse) 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 *QueryDistributorAccountBalanceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryDistributorAccountBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DistributorAccountBalance) > 0 { - for iNdEx := len(m.DistributorAccountBalance) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DistributorAccountBalance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryParamsResponse) 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 *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryClaimRecordRequest) 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 *QueryClaimRecordRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryClaimRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.AirdropIdentifier) > 0 { - i -= len(m.AirdropIdentifier) - copy(dAtA[i:], m.AirdropIdentifier) - i = encodeVarintQuery(dAtA, i, uint64(len(m.AirdropIdentifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryClaimRecordResponse) 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 *QueryClaimRecordResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryClaimRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.ClaimRecord.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryClaimableForActionRequest) 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 *QueryClaimableForActionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryClaimableForActionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Action != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Action)) - i-- - dAtA[i] = 0x18 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.AirdropIdentifier) > 0 { - i -= len(m.AirdropIdentifier) - copy(dAtA[i:], m.AirdropIdentifier) - i = encodeVarintQuery(dAtA, i, uint64(len(m.AirdropIdentifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryClaimableForActionResponse) 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 *QueryClaimableForActionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryClaimableForActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Coins) > 0 { - for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryTotalClaimableRequest) 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 *QueryTotalClaimableRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryTotalClaimableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IncludeClaimed { - i-- - if m.IncludeClaimed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.AirdropIdentifier) > 0 { - i -= len(m.AirdropIdentifier) - copy(dAtA[i:], m.AirdropIdentifier) - i = encodeVarintQuery(dAtA, i, uint64(len(m.AirdropIdentifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryTotalClaimableResponse) 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 *QueryTotalClaimableResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryTotalClaimableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Coins) > 0 { - for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryUserVestingsRequest) 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 *QueryUserVestingsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryUserVestingsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryUserVestingsResponse) 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 *QueryUserVestingsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryUserVestingsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SpendableCoins) > 0 { - for iNdEx := len(m.SpendableCoins) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SpendableCoins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.Periods) > 0 { - for iNdEx := len(m.Periods) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Periods[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryDistributorAccountBalanceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.AirdropIdentifier) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryDistributorAccountBalanceResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.DistributorAccountBalance) > 0 { - for _, e := range m.DistributorAccountBalance { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryClaimRecordRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.AirdropIdentifier) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryClaimRecordResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ClaimRecord.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryClaimableForActionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.AirdropIdentifier) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Action != 0 { - n += 1 + sovQuery(uint64(m.Action)) - } - return n -} - -func (m *QueryClaimableForActionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Coins) > 0 { - for _, e := range m.Coins { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func (m *QueryTotalClaimableRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.AirdropIdentifier) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.IncludeClaimed { - n += 2 - } - return n -} - -func (m *QueryTotalClaimableResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Coins) > 0 { - for _, e := range m.Coins { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func (m *QueryUserVestingsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryUserVestingsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Periods) > 0 { - for _, e := range m.Periods { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if len(m.SpendableCoins) > 0 { - for _, e := range m.SpendableCoins { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryDistributorAccountBalanceRequest) 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 ErrIntOverflowQuery - } - 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: QueryDistributorAccountBalanceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDistributorAccountBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AirdropIdentifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AirdropIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryDistributorAccountBalanceResponse) 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 ErrIntOverflowQuery - } - 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: QueryDistributorAccountBalanceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDistributorAccountBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DistributorAccountBalance", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DistributorAccountBalance = append(m.DistributorAccountBalance, types.Coin{}) - if err := m.DistributorAccountBalance[len(m.DistributorAccountBalance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParamsRequest) 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 ErrIntOverflowQuery - } - 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: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParamsResponse) 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 ErrIntOverflowQuery - } - 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: QueryParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryClaimRecordRequest) 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 ErrIntOverflowQuery - } - 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: QueryClaimRecordRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryClaimRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AirdropIdentifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AirdropIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryClaimRecordResponse) 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 ErrIntOverflowQuery - } - 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: QueryClaimRecordResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryClaimRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimRecord", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ClaimRecord.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryClaimableForActionRequest) 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 ErrIntOverflowQuery - } - 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: QueryClaimableForActionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryClaimableForActionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AirdropIdentifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AirdropIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) - } - m.Action = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Action |= Action(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryClaimableForActionResponse) 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 ErrIntOverflowQuery - } - 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: QueryClaimableForActionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryClaimableForActionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Coins = append(m.Coins, types.Coin{}) - if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryTotalClaimableRequest) 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 ErrIntOverflowQuery - } - 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: QueryTotalClaimableRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTotalClaimableRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AirdropIdentifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AirdropIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeClaimed", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludeClaimed = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryTotalClaimableResponse) 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 ErrIntOverflowQuery - } - 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: QueryTotalClaimableResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTotalClaimableResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Coins = append(m.Coins, types.Coin{}) - if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryUserVestingsRequest) 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 ErrIntOverflowQuery - } - 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: QueryUserVestingsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryUserVestingsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryUserVestingsResponse) 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 ErrIntOverflowQuery - } - 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: QueryUserVestingsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryUserVestingsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Periods", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Periods = append(m.Periods, types1.Period{}) - if err := m.Periods[len(m.Periods)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SpendableCoins", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SpendableCoins = append(m.SpendableCoins, types.Coin{}) - if err := m.SpendableCoins[len(m.SpendableCoins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/claim/types/tx.pb.go b/x/claim/types/tx.pb.go deleted file mode 100644 index 98931bb44b..0000000000 --- a/x/claim/types/tx.pb.go +++ /dev/null @@ -1,1972 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/claim/tx.proto - -package types - -import ( - context "context" - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" - _ "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 - -type MsgSetAirdropAllocations struct { - Allocator string `protobuf:"bytes,1,opt,name=allocator,proto3" json:"allocator,omitempty"` - AirdropIdentifier string `protobuf:"bytes,2,opt,name=airdrop_identifier,json=airdropIdentifier,proto3" json:"airdrop_identifier,omitempty" yaml:"airdrop_identifier"` - Users []string `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` - Weights []github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,rep,name=weights,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"weights" yaml:"weights"` -} - -func (m *MsgSetAirdropAllocations) Reset() { *m = MsgSetAirdropAllocations{} } -func (m *MsgSetAirdropAllocations) String() string { return proto.CompactTextString(m) } -func (*MsgSetAirdropAllocations) ProtoMessage() {} -func (*MsgSetAirdropAllocations) Descriptor() ([]byte, []int) { - return fileDescriptor_9d435242bf328977, []int{0} -} -func (m *MsgSetAirdropAllocations) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgSetAirdropAllocations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgSetAirdropAllocations.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 *MsgSetAirdropAllocations) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSetAirdropAllocations.Merge(m, src) -} -func (m *MsgSetAirdropAllocations) XXX_Size() int { - return m.Size() -} -func (m *MsgSetAirdropAllocations) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSetAirdropAllocations.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgSetAirdropAllocations proto.InternalMessageInfo - -func (m *MsgSetAirdropAllocations) GetAllocator() string { - if m != nil { - return m.Allocator - } - return "" -} - -func (m *MsgSetAirdropAllocations) GetAirdropIdentifier() string { - if m != nil { - return m.AirdropIdentifier - } - return "" -} - -func (m *MsgSetAirdropAllocations) GetUsers() []string { - if m != nil { - return m.Users - } - return nil -} - -type MsgSetAirdropAllocationsResponse struct { -} - -func (m *MsgSetAirdropAllocationsResponse) Reset() { *m = MsgSetAirdropAllocationsResponse{} } -func (m *MsgSetAirdropAllocationsResponse) String() string { return proto.CompactTextString(m) } -func (*MsgSetAirdropAllocationsResponse) ProtoMessage() {} -func (*MsgSetAirdropAllocationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9d435242bf328977, []int{1} -} -func (m *MsgSetAirdropAllocationsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgSetAirdropAllocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgSetAirdropAllocationsResponse.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 *MsgSetAirdropAllocationsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSetAirdropAllocationsResponse.Merge(m, src) -} -func (m *MsgSetAirdropAllocationsResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgSetAirdropAllocationsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSetAirdropAllocationsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgSetAirdropAllocationsResponse proto.InternalMessageInfo - -type MsgClaimFreeAmount struct { - User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` -} - -func (m *MsgClaimFreeAmount) Reset() { *m = MsgClaimFreeAmount{} } -func (m *MsgClaimFreeAmount) String() string { return proto.CompactTextString(m) } -func (*MsgClaimFreeAmount) ProtoMessage() {} -func (*MsgClaimFreeAmount) Descriptor() ([]byte, []int) { - return fileDescriptor_9d435242bf328977, []int{2} -} -func (m *MsgClaimFreeAmount) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgClaimFreeAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgClaimFreeAmount.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 *MsgClaimFreeAmount) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgClaimFreeAmount.Merge(m, src) -} -func (m *MsgClaimFreeAmount) XXX_Size() int { - return m.Size() -} -func (m *MsgClaimFreeAmount) XXX_DiscardUnknown() { - xxx_messageInfo_MsgClaimFreeAmount.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgClaimFreeAmount proto.InternalMessageInfo - -func (m *MsgClaimFreeAmount) GetUser() string { - if m != nil { - return m.User - } - return "" -} - -type MsgClaimFreeAmountResponse struct { - ClaimedAmount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=claimed_amount,json=claimedAmount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"claimed_amount"` -} - -func (m *MsgClaimFreeAmountResponse) Reset() { *m = MsgClaimFreeAmountResponse{} } -func (m *MsgClaimFreeAmountResponse) String() string { return proto.CompactTextString(m) } -func (*MsgClaimFreeAmountResponse) ProtoMessage() {} -func (*MsgClaimFreeAmountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9d435242bf328977, []int{3} -} -func (m *MsgClaimFreeAmountResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgClaimFreeAmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgClaimFreeAmountResponse.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 *MsgClaimFreeAmountResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgClaimFreeAmountResponse.Merge(m, src) -} -func (m *MsgClaimFreeAmountResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgClaimFreeAmountResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgClaimFreeAmountResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgClaimFreeAmountResponse proto.InternalMessageInfo - -func (m *MsgClaimFreeAmountResponse) GetClaimedAmount() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.ClaimedAmount - } - return nil -} - -type MsgCreateAirdrop struct { - Distributor string `protobuf:"bytes,1,opt,name=distributor,proto3" json:"distributor,omitempty"` - Identifier string `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` - StartTime uint64 `protobuf:"varint,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - Duration uint64 `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"` - Denom string `protobuf:"bytes,5,opt,name=denom,proto3" json:"denom,omitempty"` -} - -func (m *MsgCreateAirdrop) Reset() { *m = MsgCreateAirdrop{} } -func (m *MsgCreateAirdrop) String() string { return proto.CompactTextString(m) } -func (*MsgCreateAirdrop) ProtoMessage() {} -func (*MsgCreateAirdrop) Descriptor() ([]byte, []int) { - return fileDescriptor_9d435242bf328977, []int{4} -} -func (m *MsgCreateAirdrop) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgCreateAirdrop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgCreateAirdrop.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 *MsgCreateAirdrop) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreateAirdrop.Merge(m, src) -} -func (m *MsgCreateAirdrop) XXX_Size() int { - return m.Size() -} -func (m *MsgCreateAirdrop) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreateAirdrop.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgCreateAirdrop proto.InternalMessageInfo - -func (m *MsgCreateAirdrop) GetDistributor() string { - if m != nil { - return m.Distributor - } - return "" -} - -func (m *MsgCreateAirdrop) GetIdentifier() string { - if m != nil { - return m.Identifier - } - return "" -} - -func (m *MsgCreateAirdrop) GetStartTime() uint64 { - if m != nil { - return m.StartTime - } - return 0 -} - -func (m *MsgCreateAirdrop) GetDuration() uint64 { - if m != nil { - return m.Duration - } - return 0 -} - -func (m *MsgCreateAirdrop) GetDenom() string { - if m != nil { - return m.Denom - } - return "" -} - -type MsgCreateAirdropResponse struct { -} - -func (m *MsgCreateAirdropResponse) Reset() { *m = MsgCreateAirdropResponse{} } -func (m *MsgCreateAirdropResponse) String() string { return proto.CompactTextString(m) } -func (*MsgCreateAirdropResponse) ProtoMessage() {} -func (*MsgCreateAirdropResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9d435242bf328977, []int{5} -} -func (m *MsgCreateAirdropResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgCreateAirdropResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgCreateAirdropResponse.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 *MsgCreateAirdropResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreateAirdropResponse.Merge(m, src) -} -func (m *MsgCreateAirdropResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgCreateAirdropResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreateAirdropResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgCreateAirdropResponse proto.InternalMessageInfo - -type MsgDeleteAirdrop struct { - Distributor string `protobuf:"bytes,1,opt,name=distributor,proto3" json:"distributor,omitempty"` - Identifier string `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` -} - -func (m *MsgDeleteAirdrop) Reset() { *m = MsgDeleteAirdrop{} } -func (m *MsgDeleteAirdrop) String() string { return proto.CompactTextString(m) } -func (*MsgDeleteAirdrop) ProtoMessage() {} -func (*MsgDeleteAirdrop) Descriptor() ([]byte, []int) { - return fileDescriptor_9d435242bf328977, []int{6} -} -func (m *MsgDeleteAirdrop) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgDeleteAirdrop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgDeleteAirdrop.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 *MsgDeleteAirdrop) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgDeleteAirdrop.Merge(m, src) -} -func (m *MsgDeleteAirdrop) XXX_Size() int { - return m.Size() -} -func (m *MsgDeleteAirdrop) XXX_DiscardUnknown() { - xxx_messageInfo_MsgDeleteAirdrop.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgDeleteAirdrop proto.InternalMessageInfo - -func (m *MsgDeleteAirdrop) GetDistributor() string { - if m != nil { - return m.Distributor - } - return "" -} - -func (m *MsgDeleteAirdrop) GetIdentifier() string { - if m != nil { - return m.Identifier - } - return "" -} - -type MsgDeleteAirdropResponse struct { -} - -func (m *MsgDeleteAirdropResponse) Reset() { *m = MsgDeleteAirdropResponse{} } -func (m *MsgDeleteAirdropResponse) String() string { return proto.CompactTextString(m) } -func (*MsgDeleteAirdropResponse) ProtoMessage() {} -func (*MsgDeleteAirdropResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9d435242bf328977, []int{7} -} -func (m *MsgDeleteAirdropResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgDeleteAirdropResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgDeleteAirdropResponse.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 *MsgDeleteAirdropResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgDeleteAirdropResponse.Merge(m, src) -} -func (m *MsgDeleteAirdropResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgDeleteAirdropResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgDeleteAirdropResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgDeleteAirdropResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*MsgSetAirdropAllocations)(nil), "stride.claim.MsgSetAirdropAllocations") - proto.RegisterType((*MsgSetAirdropAllocationsResponse)(nil), "stride.claim.MsgSetAirdropAllocationsResponse") - proto.RegisterType((*MsgClaimFreeAmount)(nil), "stride.claim.MsgClaimFreeAmount") - proto.RegisterType((*MsgClaimFreeAmountResponse)(nil), "stride.claim.MsgClaimFreeAmountResponse") - proto.RegisterType((*MsgCreateAirdrop)(nil), "stride.claim.MsgCreateAirdrop") - proto.RegisterType((*MsgCreateAirdropResponse)(nil), "stride.claim.MsgCreateAirdropResponse") - proto.RegisterType((*MsgDeleteAirdrop)(nil), "stride.claim.MsgDeleteAirdrop") - proto.RegisterType((*MsgDeleteAirdropResponse)(nil), "stride.claim.MsgDeleteAirdropResponse") -} - -func init() { proto.RegisterFile("stride/claim/tx.proto", fileDescriptor_9d435242bf328977) } - -var fileDescriptor_9d435242bf328977 = []byte{ - // 600 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4d, 0x6f, 0xd3, 0x30, - 0x18, 0x6e, 0x68, 0x07, 0xd4, 0x63, 0x03, 0xac, 0x4d, 0xca, 0x22, 0x96, 0x46, 0x39, 0x4c, 0xb9, - 0xcc, 0x61, 0x43, 0xe2, 0xc0, 0x89, 0x76, 0x13, 0x02, 0x69, 0xbd, 0x64, 0x93, 0x90, 0x26, 0xa1, - 0x2a, 0x1f, 0x26, 0xb3, 0x68, 0xe2, 0xca, 0x76, 0xc7, 0xf6, 0x0b, 0xb8, 0xee, 0x4f, 0x70, 0xe1, - 0x97, 0xec, 0xb8, 0x23, 0xe2, 0x50, 0x50, 0xfb, 0x0f, 0x76, 0xe2, 0x88, 0x6c, 0xa7, 0x5d, 0xfa, - 0x31, 0xd8, 0x81, 0x53, 0xe2, 0xe7, 0x7d, 0xfd, 0xf8, 0x7d, 0xfc, 0xbc, 0xaf, 0xc1, 0x3a, 0x17, - 0x8c, 0x24, 0xd8, 0x8f, 0xbb, 0x21, 0xc9, 0x7c, 0x71, 0x86, 0x7a, 0x8c, 0x0a, 0x0a, 0x1f, 0x69, - 0x18, 0x29, 0xd8, 0x5a, 0x4b, 0x69, 0x4a, 0x55, 0xc0, 0x97, 0x7f, 0x3a, 0xc7, 0xb2, 0x63, 0xca, - 0x33, 0xca, 0xfd, 0x28, 0xe4, 0xd8, 0x3f, 0xdd, 0x89, 0xb0, 0x08, 0x77, 0xfc, 0x98, 0x92, 0x5c, - 0xc7, 0xdd, 0xdf, 0x06, 0x30, 0xdb, 0x3c, 0x3d, 0xc4, 0xa2, 0x49, 0x58, 0xc2, 0x68, 0xaf, 0xd9, - 0xed, 0xd2, 0x38, 0x14, 0x84, 0xe6, 0x1c, 0x3e, 0x03, 0xf5, 0x50, 0x2f, 0x29, 0x33, 0x0d, 0xc7, - 0xf0, 0xea, 0xc1, 0x0d, 0x00, 0x0f, 0x00, 0x0c, 0xf5, 0x9e, 0x0e, 0x49, 0x70, 0x2e, 0xc8, 0x47, - 0x82, 0x99, 0x79, 0x4f, 0xa6, 0xb5, 0x36, 0xaf, 0x07, 0x8d, 0x8d, 0xf3, 0x30, 0xeb, 0xbe, 0x72, - 0xe7, 0x73, 0xdc, 0xe0, 0x69, 0x01, 0xbe, 0x9b, 0x60, 0x70, 0x0d, 0x2c, 0xf5, 0x39, 0x66, 0xdc, - 0xac, 0x3a, 0x55, 0xaf, 0x1e, 0xe8, 0x05, 0x3c, 0x06, 0x0f, 0x3e, 0x63, 0x92, 0x9e, 0x08, 0x6e, - 0xd6, 0x24, 0xde, 0x7a, 0x7d, 0x39, 0x68, 0x54, 0x7e, 0x0c, 0x1a, 0x5b, 0x29, 0x11, 0x27, 0xfd, - 0x08, 0xc5, 0x34, 0xf3, 0x0b, 0x89, 0xfa, 0xb3, 0xcd, 0x93, 0x4f, 0xbe, 0x38, 0xef, 0x61, 0x8e, - 0xf6, 0x71, 0x7c, 0x3d, 0x68, 0xac, 0xea, 0x32, 0x0a, 0x1a, 0x37, 0x18, 0x13, 0xba, 0x2e, 0x70, - 0x6e, 0x53, 0x1e, 0x60, 0xde, 0xa3, 0x39, 0xc7, 0xae, 0x07, 0x60, 0x9b, 0xa7, 0x7b, 0xf2, 0x82, - 0xdf, 0x30, 0x8c, 0x9b, 0x19, 0xed, 0xe7, 0x02, 0x42, 0x50, 0x93, 0xe5, 0x15, 0x57, 0xa2, 0xfe, - 0xdd, 0x0b, 0x03, 0x58, 0xf3, 0xa9, 0x63, 0x22, 0xc8, 0xc0, 0xaa, 0xb2, 0x09, 0x27, 0x9d, 0x50, - 0x45, 0x94, 0xce, 0xe5, 0xdd, 0x0d, 0xa4, 0xcb, 0x46, 0xd2, 0x20, 0x54, 0x18, 0x84, 0xf6, 0x28, - 0xc9, 0x5b, 0xcf, 0xa5, 0xd4, 0x6f, 0x3f, 0x1b, 0xde, 0x1d, 0xa4, 0xca, 0x0d, 0x3c, 0x58, 0x29, - 0x8e, 0xd0, 0x67, 0xbb, 0x5f, 0x0d, 0xf0, 0x44, 0x96, 0xc4, 0x70, 0x28, 0x70, 0x21, 0x12, 0x3a, - 0x60, 0x39, 0x21, 0xb2, 0x71, 0xa2, 0xfe, 0x8d, 0xab, 0x65, 0x08, 0xda, 0x00, 0xcc, 0xfa, 0x19, - 0x94, 0x10, 0xb8, 0x09, 0x00, 0x17, 0x21, 0x13, 0x1d, 0x41, 0x32, 0x6c, 0x56, 0x1d, 0xc3, 0xab, - 0x05, 0x75, 0x85, 0x1c, 0x91, 0x0c, 0x43, 0x0b, 0x3c, 0x4c, 0xfa, 0x4c, 0xdd, 0xa3, 0x59, 0x53, - 0xc1, 0xc9, 0x5a, 0x9a, 0x9c, 0xe0, 0x9c, 0x66, 0xe6, 0x92, 0x62, 0xd5, 0x0b, 0xd7, 0x52, 0x2d, - 0x38, 0x55, 0xe6, 0xc4, 0x80, 0x23, 0x25, 0x61, 0x1f, 0x77, 0xf1, 0x7f, 0x94, 0x50, 0x9c, 0x38, - 0xc5, 0x3a, 0x3e, 0x71, 0xf7, 0x4b, 0x15, 0x54, 0xdb, 0x3c, 0x85, 0x14, 0xac, 0x2f, 0x9e, 0x8a, - 0x2d, 0x54, 0x9e, 0x3b, 0x74, 0x5b, 0x0f, 0x59, 0xe8, 0x6e, 0x79, 0x93, 0x16, 0xf9, 0x00, 0x1e, - 0xcf, 0x36, 0x9a, 0x33, 0x47, 0x31, 0x93, 0x61, 0x79, 0xff, 0xca, 0x98, 0xd0, 0xbf, 0x07, 0x2b, - 0xd3, 0x9d, 0x60, 0xcf, 0x6f, 0x2d, 0xc7, 0xad, 0xad, 0xbf, 0xc7, 0xcb, 0xc4, 0xd3, 0xfe, 0xcc, - 0x13, 0x4f, 0xc5, 0x17, 0x10, 0x2f, 0x74, 0xa2, 0xf5, 0xf6, 0x72, 0x68, 0x1b, 0x57, 0x43, 0xdb, - 0xf8, 0x35, 0xb4, 0x8d, 0x8b, 0x91, 0x5d, 0xb9, 0x1a, 0xd9, 0x95, 0xef, 0x23, 0xbb, 0x72, 0x8c, - 0x4a, 0x23, 0x71, 0xa8, 0xb8, 0xb6, 0x0f, 0xc2, 0x88, 0xfb, 0xc5, 0x3b, 0x79, 0xfa, 0xd2, 0x3f, - 0x1b, 0x3f, 0x96, 0x72, 0x3c, 0xa2, 0xfb, 0xea, 0xb1, 0x7b, 0xf1, 0x27, 0x00, 0x00, 0xff, 0xff, - 0x8a, 0x79, 0x3a, 0xef, 0x49, 0x05, 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 { - SetAirdropAllocations(ctx context.Context, in *MsgSetAirdropAllocations, opts ...grpc.CallOption) (*MsgSetAirdropAllocationsResponse, error) - ClaimFreeAmount(ctx context.Context, in *MsgClaimFreeAmount, opts ...grpc.CallOption) (*MsgClaimFreeAmountResponse, error) - CreateAirdrop(ctx context.Context, in *MsgCreateAirdrop, opts ...grpc.CallOption) (*MsgCreateAirdropResponse, error) - DeleteAirdrop(ctx context.Context, in *MsgDeleteAirdrop, opts ...grpc.CallOption) (*MsgDeleteAirdropResponse, error) -} - -type msgClient struct { - cc grpc1.ClientConn -} - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} -} - -func (c *msgClient) SetAirdropAllocations(ctx context.Context, in *MsgSetAirdropAllocations, opts ...grpc.CallOption) (*MsgSetAirdropAllocationsResponse, error) { - out := new(MsgSetAirdropAllocationsResponse) - err := c.cc.Invoke(ctx, "/stride.claim.Msg/SetAirdropAllocations", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) ClaimFreeAmount(ctx context.Context, in *MsgClaimFreeAmount, opts ...grpc.CallOption) (*MsgClaimFreeAmountResponse, error) { - out := new(MsgClaimFreeAmountResponse) - err := c.cc.Invoke(ctx, "/stride.claim.Msg/ClaimFreeAmount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CreateAirdrop(ctx context.Context, in *MsgCreateAirdrop, opts ...grpc.CallOption) (*MsgCreateAirdropResponse, error) { - out := new(MsgCreateAirdropResponse) - err := c.cc.Invoke(ctx, "/stride.claim.Msg/CreateAirdrop", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) DeleteAirdrop(ctx context.Context, in *MsgDeleteAirdrop, opts ...grpc.CallOption) (*MsgDeleteAirdropResponse, error) { - out := new(MsgDeleteAirdropResponse) - err := c.cc.Invoke(ctx, "/stride.claim.Msg/DeleteAirdrop", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MsgServer is the server API for Msg service. -type MsgServer interface { - SetAirdropAllocations(context.Context, *MsgSetAirdropAllocations) (*MsgSetAirdropAllocationsResponse, error) - ClaimFreeAmount(context.Context, *MsgClaimFreeAmount) (*MsgClaimFreeAmountResponse, error) - CreateAirdrop(context.Context, *MsgCreateAirdrop) (*MsgCreateAirdropResponse, error) - DeleteAirdrop(context.Context, *MsgDeleteAirdrop) (*MsgDeleteAirdropResponse, error) -} - -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} - -func (*UnimplementedMsgServer) SetAirdropAllocations(ctx context.Context, req *MsgSetAirdropAllocations) (*MsgSetAirdropAllocationsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetAirdropAllocations not implemented") -} -func (*UnimplementedMsgServer) ClaimFreeAmount(ctx context.Context, req *MsgClaimFreeAmount) (*MsgClaimFreeAmountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClaimFreeAmount not implemented") -} -func (*UnimplementedMsgServer) CreateAirdrop(ctx context.Context, req *MsgCreateAirdrop) (*MsgCreateAirdropResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateAirdrop not implemented") -} -func (*UnimplementedMsgServer) DeleteAirdrop(ctx context.Context, req *MsgDeleteAirdrop) (*MsgDeleteAirdropResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteAirdrop not implemented") -} - -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) -} - -func _Msg_SetAirdropAllocations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetAirdropAllocations) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetAirdropAllocations(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.claim.Msg/SetAirdropAllocations", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetAirdropAllocations(ctx, req.(*MsgSetAirdropAllocations)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_ClaimFreeAmount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgClaimFreeAmount) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ClaimFreeAmount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.claim.Msg/ClaimFreeAmount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ClaimFreeAmount(ctx, req.(*MsgClaimFreeAmount)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CreateAirdrop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateAirdrop) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CreateAirdrop(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.claim.Msg/CreateAirdrop", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateAirdrop(ctx, req.(*MsgCreateAirdrop)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_DeleteAirdrop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgDeleteAirdrop) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).DeleteAirdrop(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.claim.Msg/DeleteAirdrop", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).DeleteAirdrop(ctx, req.(*MsgDeleteAirdrop)) - } - return interceptor(ctx, in, info, handler) -} - -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "stride.claim.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "SetAirdropAllocations", - Handler: _Msg_SetAirdropAllocations_Handler, - }, - { - MethodName: "ClaimFreeAmount", - Handler: _Msg_ClaimFreeAmount_Handler, - }, - { - MethodName: "CreateAirdrop", - Handler: _Msg_CreateAirdrop_Handler, - }, - { - MethodName: "DeleteAirdrop", - Handler: _Msg_DeleteAirdrop_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "stride/claim/tx.proto", -} - -func (m *MsgSetAirdropAllocations) 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 *MsgSetAirdropAllocations) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgSetAirdropAllocations) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Weights) > 0 { - for iNdEx := len(m.Weights) - 1; iNdEx >= 0; iNdEx-- { - { - size := m.Weights[iNdEx].Size() - i -= size - if _, err := m.Weights[iNdEx].MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.Users) > 0 { - for iNdEx := len(m.Users) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Users[iNdEx]) - copy(dAtA[i:], m.Users[iNdEx]) - i = encodeVarintTx(dAtA, i, uint64(len(m.Users[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.AirdropIdentifier) > 0 { - i -= len(m.AirdropIdentifier) - copy(dAtA[i:], m.AirdropIdentifier) - i = encodeVarintTx(dAtA, i, uint64(len(m.AirdropIdentifier))) - i-- - dAtA[i] = 0x12 - } - if len(m.Allocator) > 0 { - i -= len(m.Allocator) - copy(dAtA[i:], m.Allocator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Allocator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgSetAirdropAllocationsResponse) 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 *MsgSetAirdropAllocationsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgSetAirdropAllocationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgClaimFreeAmount) 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 *MsgClaimFreeAmount) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgClaimFreeAmount) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.User) > 0 { - i -= len(m.User) - copy(dAtA[i:], m.User) - i = encodeVarintTx(dAtA, i, uint64(len(m.User))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgClaimFreeAmountResponse) 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 *MsgClaimFreeAmountResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgClaimFreeAmountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ClaimedAmount) > 0 { - for iNdEx := len(m.ClaimedAmount) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ClaimedAmount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - return len(dAtA) - i, nil -} - -func (m *MsgCreateAirdrop) 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 *MsgCreateAirdrop) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgCreateAirdrop) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintTx(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x2a - } - if m.Duration != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Duration)) - i-- - dAtA[i] = 0x20 - } - if m.StartTime != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.StartTime)) - i-- - dAtA[i] = 0x18 - } - if len(m.Identifier) > 0 { - i -= len(m.Identifier) - copy(dAtA[i:], m.Identifier) - i = encodeVarintTx(dAtA, i, uint64(len(m.Identifier))) - i-- - dAtA[i] = 0x12 - } - if len(m.Distributor) > 0 { - i -= len(m.Distributor) - copy(dAtA[i:], m.Distributor) - i = encodeVarintTx(dAtA, i, uint64(len(m.Distributor))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgCreateAirdropResponse) 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 *MsgCreateAirdropResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgCreateAirdropResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgDeleteAirdrop) 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 *MsgDeleteAirdrop) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgDeleteAirdrop) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identifier) > 0 { - i -= len(m.Identifier) - copy(dAtA[i:], m.Identifier) - i = encodeVarintTx(dAtA, i, uint64(len(m.Identifier))) - i-- - dAtA[i] = 0x12 - } - if len(m.Distributor) > 0 { - i -= len(m.Distributor) - copy(dAtA[i:], m.Distributor) - i = encodeVarintTx(dAtA, i, uint64(len(m.Distributor))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgDeleteAirdropResponse) 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 *MsgDeleteAirdropResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgDeleteAirdropResponse) 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 *MsgSetAirdropAllocations) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Allocator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.AirdropIdentifier) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if len(m.Users) > 0 { - for _, s := range m.Users { - l = len(s) - n += 1 + l + sovTx(uint64(l)) - } - } - if len(m.Weights) > 0 { - for _, e := range m.Weights { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - return n -} - -func (m *MsgSetAirdropAllocationsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgClaimFreeAmount) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.User) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgClaimFreeAmountResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ClaimedAmount) > 0 { - for _, e := range m.ClaimedAmount { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - return n -} - -func (m *MsgCreateAirdrop) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Distributor) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Identifier) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.StartTime != 0 { - n += 1 + sovTx(uint64(m.StartTime)) - } - if m.Duration != 0 { - n += 1 + sovTx(uint64(m.Duration)) - } - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgCreateAirdropResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgDeleteAirdrop) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Distributor) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Identifier) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgDeleteAirdropResponse) 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 *MsgSetAirdropAllocations) 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: MsgSetAirdropAllocations: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSetAirdropAllocations: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Allocator", 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.Allocator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AirdropIdentifier", 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.AirdropIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Users", 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.Users = append(m.Users, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Weights", 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 - } - var v github_com_cosmos_cosmos_sdk_types.Dec - m.Weights = append(m.Weights, v) - if err := m.Weights[len(m.Weights)-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 *MsgSetAirdropAllocationsResponse) 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: MsgSetAirdropAllocationsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSetAirdropAllocationsResponse: 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 (m *MsgClaimFreeAmount) 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: MsgClaimFreeAmount: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgClaimFreeAmount: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", 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.User = string(dAtA[iNdEx:postIndex]) - 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 *MsgClaimFreeAmountResponse) 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: MsgClaimFreeAmountResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgClaimFreeAmountResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimedAmount", 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.ClaimedAmount = append(m.ClaimedAmount, types.Coin{}) - if err := m.ClaimedAmount[len(m.ClaimedAmount)-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 *MsgCreateAirdrop) 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: MsgCreateAirdrop: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateAirdrop: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Distributor", 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.Distributor = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", 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.Identifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) - } - m.StartTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartTime |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) - } - m.Duration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Duration |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", 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.Denom = string(dAtA[iNdEx:postIndex]) - 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 *MsgCreateAirdropResponse) 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: MsgCreateAirdropResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateAirdropResponse: 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 (m *MsgDeleteAirdrop) 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: MsgDeleteAirdrop: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgDeleteAirdrop: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Distributor", 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.Distributor = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", 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.Identifier = string(dAtA[iNdEx:postIndex]) - 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 *MsgDeleteAirdropResponse) 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: MsgDeleteAirdropResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgDeleteAirdropResponse: 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") -) diff --git a/x/claim/vesting/types/tx.pb.go b/x/claim/vesting/types/tx.pb.go deleted file mode 100644 index e3d8bd9d5d..0000000000 --- a/x/claim/vesting/types/tx.pb.go +++ /dev/null @@ -1,81 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/vesting/tx.proto - -package types - -import ( - context "context" - fmt "fmt" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - grpc "google.golang.org/grpc" - math "math" -) - -// 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 - -func init() { proto.RegisterFile("stride/vesting/tx.proto", fileDescriptor_5ebed07aad5e90bd) } - -var fileDescriptor_5ebed07aad5e90bd = []byte{ - // 135 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2f, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0x2f, 0x4b, 0x2d, 0x2e, 0xc9, 0xcc, 0x4b, 0xd7, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, - 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x83, 0x48, 0xe8, 0x41, 0x25, 0x8c, 0x58, 0xb9, 0x98, 0x7d, 0x8b, - 0xd3, 0x9d, 0x02, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, - 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x2c, 0x3d, - 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, 0x18, 0xac, 0x57, 0xd7, 0x27, 0x31, - 0xa9, 0x58, 0x1f, 0x66, 0x81, 0x99, 0x7e, 0x85, 0x7e, 0x72, 0x4e, 0x62, 0x66, 0x2e, 0xc2, 0xae, - 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0x7d, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x81, - 0x75, 0x60, 0xab, 0x8a, 0x00, 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 { -} - -type msgClient struct { - cc grpc1.ClientConn -} - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} -} - -// MsgServer is the server API for Msg service. -type MsgServer interface { -} - -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} - -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) -} - -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "stride.vesting.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{}, - Metadata: "stride/vesting/tx.proto", -} diff --git a/x/claim/vesting/types/vesting.pb.go b/x/claim/vesting/types/vesting.pb.go deleted file mode 100644 index a0d65c0c12..0000000000 --- a/x/claim/vesting/types/vesting.pb.go +++ /dev/null @@ -1,1055 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/vesting/vesting.proto - -package types - -import ( - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types1 "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/x/auth/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -// BaseVestingAccount implements the VestingAccount interface. It contains all -// the necessary fields needed for any vesting account implementation. -type BaseVestingAccount struct { - *types.BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3,embedded=base_account" json:"base_account,omitempty"` - OriginalVesting github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=original_vesting,json=originalVesting,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"original_vesting" yaml:"original_vesting"` - DelegatedFree github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=delegated_free,json=delegatedFree,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"delegated_free" yaml:"delegated_free"` - DelegatedVesting github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=delegated_vesting,json=delegatedVesting,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"delegated_vesting" yaml:"delegated_vesting"` - EndTime int64 `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty" yaml:"end_time"` -} - -func (m *BaseVestingAccount) Reset() { *m = BaseVestingAccount{} } -func (*BaseVestingAccount) ProtoMessage() {} -func (*BaseVestingAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_41f0278a453c26b3, []int{0} -} -func (m *BaseVestingAccount) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BaseVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BaseVestingAccount.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 *BaseVestingAccount) XXX_Merge(src proto.Message) { - xxx_messageInfo_BaseVestingAccount.Merge(m, src) -} -func (m *BaseVestingAccount) XXX_Size() int { - return m.Size() -} -func (m *BaseVestingAccount) XXX_DiscardUnknown() { - xxx_messageInfo_BaseVestingAccount.DiscardUnknown(m) -} - -var xxx_messageInfo_BaseVestingAccount proto.InternalMessageInfo - -// Period defines a length of time and amount of coins that will vest. -type Period struct { - StartTime int64 `protobuf:"varint,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - Length int64 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` - 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"` - ActionType int32 `protobuf:"varint,4,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"` -} - -func (m *Period) Reset() { *m = Period{} } -func (*Period) ProtoMessage() {} -func (*Period) Descriptor() ([]byte, []int) { - return fileDescriptor_41f0278a453c26b3, []int{1} -} -func (m *Period) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Period) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Period.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 *Period) XXX_Merge(src proto.Message) { - xxx_messageInfo_Period.Merge(m, src) -} -func (m *Period) XXX_Size() int { - return m.Size() -} -func (m *Period) XXX_DiscardUnknown() { - xxx_messageInfo_Period.DiscardUnknown(m) -} - -var xxx_messageInfo_Period proto.InternalMessageInfo - -func (m *Period) GetStartTime() int64 { - if m != nil { - return m.StartTime - } - return 0 -} - -func (m *Period) GetLength() int64 { - if m != nil { - return m.Length - } - return 0 -} - -func (m *Period) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins { - if m != nil { - return m.Amount - } - return nil -} - -func (m *Period) GetActionType() int32 { - if m != nil { - return m.ActionType - } - return 0 -} - -// StridePeriodicVestingAccount implements the VestingAccount interface. It -// periodically vests by unlocking coins during each specified period. -type StridePeriodicVestingAccount struct { - *BaseVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3,embedded=base_vesting_account" json:"base_vesting_account,omitempty"` - VestingPeriods []Period `protobuf:"bytes,3,rep,name=vesting_periods,json=vestingPeriods,proto3" json:"vesting_periods" yaml:"vesting_periods"` -} - -func (m *StridePeriodicVestingAccount) Reset() { *m = StridePeriodicVestingAccount{} } -func (*StridePeriodicVestingAccount) ProtoMessage() {} -func (*StridePeriodicVestingAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_41f0278a453c26b3, []int{2} -} -func (m *StridePeriodicVestingAccount) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StridePeriodicVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StridePeriodicVestingAccount.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 *StridePeriodicVestingAccount) XXX_Merge(src proto.Message) { - xxx_messageInfo_StridePeriodicVestingAccount.Merge(m, src) -} -func (m *StridePeriodicVestingAccount) XXX_Size() int { - return m.Size() -} -func (m *StridePeriodicVestingAccount) XXX_DiscardUnknown() { - xxx_messageInfo_StridePeriodicVestingAccount.DiscardUnknown(m) -} - -var xxx_messageInfo_StridePeriodicVestingAccount proto.InternalMessageInfo - -func init() { - proto.RegisterType((*BaseVestingAccount)(nil), "stride.vesting.BaseVestingAccount") - proto.RegisterType((*Period)(nil), "stride.vesting.Period") - proto.RegisterType((*StridePeriodicVestingAccount)(nil), "stride.vesting.StridePeriodicVestingAccount") -} - -func init() { proto.RegisterFile("stride/vesting/vesting.proto", fileDescriptor_41f0278a453c26b3) } - -var fileDescriptor_41f0278a453c26b3 = []byte{ - // 589 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x6f, 0xd3, 0x3e, - 0x1c, 0x8d, 0xd7, 0xae, 0xff, 0xfd, 0x5d, 0x58, 0x47, 0x18, 0x25, 0x4c, 0x23, 0xa9, 0x72, 0xea, - 0x65, 0x09, 0x1b, 0xd2, 0x0e, 0xbd, 0x11, 0x24, 0xa4, 0x89, 0x1d, 0xa6, 0x30, 0x71, 0xd8, 0x25, - 0x72, 0x12, 0x93, 0x5a, 0x34, 0x71, 0x15, 0xbb, 0x13, 0xfd, 0x06, 0x48, 0x5c, 0x40, 0xe2, 0xc0, - 0x71, 0x67, 0x3e, 0xc9, 0x24, 0x2e, 0x15, 0x27, 0x4e, 0x05, 0xb5, 0xe2, 0x0b, 0xec, 0x13, 0xa0, - 0xd8, 0x4e, 0xcb, 0xb2, 0x43, 0x35, 0x4e, 0x89, 0xfd, 0xf3, 0x7b, 0x7e, 0xbf, 0x67, 0x3f, 0xc3, - 0x5d, 0xc6, 0x73, 0x12, 0x63, 0xf7, 0x1c, 0x33, 0x4e, 0xb2, 0xa4, 0xfc, 0x3a, 0xc3, 0x9c, 0x72, - 0xaa, 0x6f, 0xca, 0xaa, 0xa3, 0x66, 0x77, 0xb6, 0x13, 0x9a, 0x50, 0x51, 0x72, 0x8b, 0x3f, 0xb9, - 0x6a, 0xc7, 0x8c, 0x28, 0x4b, 0x29, 0x73, 0x43, 0xc4, 0xb0, 0x7b, 0xbe, 0x1f, 0x62, 0x8e, 0xf6, - 0xdd, 0x88, 0x92, 0xac, 0x52, 0x47, 0x23, 0xde, 0x5f, 0xd4, 0x8b, 0x81, 0xac, 0xdb, 0xdf, 0xeb, - 0x50, 0xf7, 0x10, 0xc3, 0xaf, 0xe5, 0x2e, 0xcf, 0xa2, 0x88, 0x8e, 0x32, 0xae, 0x1f, 0xc1, 0x3b, - 0x05, 0x63, 0x80, 0xe4, 0xd8, 0x00, 0x1d, 0xd0, 0x6d, 0x1e, 0x74, 0x1c, 0xc9, 0xe6, 0x08, 0x02, - 0xc5, 0xe6, 0x14, 0x70, 0x85, 0xf3, 0xea, 0x93, 0xa9, 0x05, 0xfc, 0x66, 0xb8, 0x9c, 0xd2, 0x3f, - 0x01, 0xb8, 0x45, 0x73, 0x92, 0x90, 0x0c, 0x0d, 0x02, 0xd5, 0x8c, 0xb1, 0xd6, 0xa9, 0x75, 0x9b, - 0x07, 0x8f, 0x4a, 0xbe, 0x62, 0xfd, 0x82, 0xef, 0x39, 0x25, 0x99, 0xf7, 0xf2, 0x72, 0x6a, 0x69, - 0x57, 0x53, 0xeb, 0xe1, 0x18, 0xa5, 0x83, 0x9e, 0x5d, 0x25, 0xb0, 0xbf, 0xfe, 0xb4, 0xba, 0x09, - 0xe1, 0xfd, 0x51, 0xe8, 0x44, 0x34, 0x75, 0x55, 0x97, 0xf2, 0xb3, 0xc7, 0xe2, 0xb7, 0x2e, 0x1f, - 0x0f, 0x31, 0x13, 0x5c, 0xcc, 0x6f, 0x95, 0x70, 0xd5, 0xa5, 0xfe, 0x01, 0xc0, 0xcd, 0x18, 0x0f, - 0x70, 0x82, 0x38, 0x8e, 0x83, 0x37, 0x39, 0xc6, 0x46, 0x6d, 0x95, 0xa2, 0x23, 0xa5, 0xe8, 0x81, - 0x54, 0x74, 0x1d, 0x7e, 0x3b, 0x3d, 0x77, 0x17, 0xe0, 0x17, 0x39, 0xc6, 0xfa, 0x67, 0x00, 0xef, - 0x2d, 0xe9, 0x4a, 0x8b, 0xea, 0xab, 0x04, 0x1d, 0x2b, 0x41, 0x46, 0x55, 0xd0, 0x3f, 0x79, 0xb4, - 0xb5, 0xc0, 0x97, 0x26, 0x39, 0x70, 0x03, 0x67, 0x71, 0xc0, 0x49, 0x8a, 0x8d, 0xf5, 0x0e, 0xe8, - 0xd6, 0xbc, 0xfb, 0x57, 0x53, 0xab, 0x25, 0x77, 0x2b, 0x2b, 0xb6, 0xff, 0x1f, 0xce, 0xe2, 0x53, - 0x92, 0xe2, 0xde, 0xc6, 0xfb, 0x0b, 0x4b, 0xfb, 0x72, 0x61, 0x69, 0xf6, 0x37, 0x00, 0x1b, 0x27, - 0x38, 0x27, 0x34, 0xd6, 0x1f, 0x43, 0xc8, 0x38, 0xca, 0xb9, 0xa4, 0x29, 0xae, 0x51, 0xcd, 0xff, - 0x5f, 0xcc, 0x14, 0x18, 0xbd, 0x0d, 0x1b, 0x03, 0x9c, 0x25, 0xbc, 0x6f, 0xac, 0x89, 0x92, 0x1a, - 0xe9, 0x11, 0x6c, 0xa0, 0x54, 0xdc, 0xbc, 0x95, 0xe7, 0xf2, 0xa4, 0xb0, 0xe1, 0x56, 0xad, 0x2a, - 0x6a, 0xdd, 0x82, 0x4d, 0x14, 0x71, 0x42, 0xb3, 0xa0, 0xa8, 0x1a, 0xf5, 0x0e, 0xe8, 0xae, 0xfb, - 0x50, 0x4e, 0x9d, 0x8e, 0x87, 0xb8, 0x57, 0x17, 0xdd, 0xfc, 0x06, 0x70, 0xf7, 0x95, 0xc8, 0xa2, - 0xec, 0x89, 0x44, 0x95, 0xb0, 0x9c, 0xc1, 0x6d, 0x11, 0x16, 0xe5, 0x7b, 0x25, 0x34, 0xb6, 0x73, - 0x3d, 0xc8, 0xce, 0xcd, 0xb8, 0xa9, 0xd8, 0xe8, 0xe1, 0xcd, 0x20, 0x06, 0xb0, 0x55, 0xd2, 0x0e, - 0xc5, 0xee, 0x4c, 0x39, 0xd2, 0xae, 0xd2, 0x4a, 0x71, 0x9e, 0xa9, 0x6e, 0x45, 0x5b, 0x9e, 0x53, - 0x05, 0x6c, 0xfb, 0x9b, 0x6a, 0x46, 0x2e, 0x67, 0xcb, 0x53, 0xf3, 0x4e, 0x2e, 0x67, 0x26, 0x98, - 0xcc, 0x4c, 0xf0, 0x6b, 0x66, 0x82, 0x8f, 0x73, 0x53, 0x9b, 0xcc, 0x4d, 0xed, 0xc7, 0xdc, 0xd4, - 0xce, 0x0e, 0xff, 0xb2, 0x56, 0x3a, 0xb1, 0x77, 0x8c, 0x42, 0xe6, 0x96, 0xef, 0xd7, 0xa1, 0xfb, - 0xce, 0x8d, 0x06, 0x88, 0xa4, 0x8b, 0xa7, 0x4c, 0xd8, 0x1d, 0x36, 0xc4, 0x1b, 0xf3, 0xf4, 0x4f, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x6a, 0xc8, 0x8f, 0xbd, 0xe9, 0x04, 0x00, 0x00, -} - -func (m *BaseVestingAccount) 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 *BaseVestingAccount) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BaseVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EndTime != 0 { - i = encodeVarintVesting(dAtA, i, uint64(m.EndTime)) - i-- - dAtA[i] = 0x28 - } - if len(m.DelegatedVesting) > 0 { - for iNdEx := len(m.DelegatedVesting) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DelegatedVesting[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVesting(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.DelegatedFree) > 0 { - for iNdEx := len(m.DelegatedFree) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DelegatedFree[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVesting(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.OriginalVesting) > 0 { - for iNdEx := len(m.OriginalVesting) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.OriginalVesting[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVesting(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.BaseAccount != nil { - { - size, err := m.BaseAccount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVesting(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Period) 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 *Period) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Period) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ActionType != 0 { - i = encodeVarintVesting(dAtA, i, uint64(m.ActionType)) - i-- - dAtA[i] = 0x20 - } - 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 = encodeVarintVesting(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.Length != 0 { - i = encodeVarintVesting(dAtA, i, uint64(m.Length)) - i-- - dAtA[i] = 0x10 - } - if m.StartTime != 0 { - i = encodeVarintVesting(dAtA, i, uint64(m.StartTime)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *StridePeriodicVestingAccount) 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 *StridePeriodicVestingAccount) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StridePeriodicVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.VestingPeriods) > 0 { - for iNdEx := len(m.VestingPeriods) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.VestingPeriods[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVesting(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.BaseVestingAccount != nil { - { - size, err := m.BaseVestingAccount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintVesting(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintVesting(dAtA []byte, offset int, v uint64) int { - offset -= sovVesting(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *BaseVestingAccount) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.BaseAccount != nil { - l = m.BaseAccount.Size() - n += 1 + l + sovVesting(uint64(l)) - } - if len(m.OriginalVesting) > 0 { - for _, e := range m.OriginalVesting { - l = e.Size() - n += 1 + l + sovVesting(uint64(l)) - } - } - if len(m.DelegatedFree) > 0 { - for _, e := range m.DelegatedFree { - l = e.Size() - n += 1 + l + sovVesting(uint64(l)) - } - } - if len(m.DelegatedVesting) > 0 { - for _, e := range m.DelegatedVesting { - l = e.Size() - n += 1 + l + sovVesting(uint64(l)) - } - } - if m.EndTime != 0 { - n += 1 + sovVesting(uint64(m.EndTime)) - } - return n -} - -func (m *Period) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StartTime != 0 { - n += 1 + sovVesting(uint64(m.StartTime)) - } - if m.Length != 0 { - n += 1 + sovVesting(uint64(m.Length)) - } - if len(m.Amount) > 0 { - for _, e := range m.Amount { - l = e.Size() - n += 1 + l + sovVesting(uint64(l)) - } - } - if m.ActionType != 0 { - n += 1 + sovVesting(uint64(m.ActionType)) - } - return n -} - -func (m *StridePeriodicVestingAccount) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.BaseVestingAccount != nil { - l = m.BaseVestingAccount.Size() - n += 1 + l + sovVesting(uint64(l)) - } - if len(m.VestingPeriods) > 0 { - for _, e := range m.VestingPeriods { - l = e.Size() - n += 1 + l + sovVesting(uint64(l)) - } - } - return n -} - -func sovVesting(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozVesting(x uint64) (n int) { - return sovVesting(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *BaseVestingAccount) 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 ErrIntOverflowVesting - } - 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: BaseVestingAccount: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BaseVestingAccount: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BaseAccount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVesting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVesting - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVesting - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.BaseAccount == nil { - m.BaseAccount = &types.BaseAccount{} - } - if err := m.BaseAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OriginalVesting", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVesting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVesting - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVesting - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OriginalVesting = append(m.OriginalVesting, types1.Coin{}) - if err := m.OriginalVesting[len(m.OriginalVesting)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DelegatedFree", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVesting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVesting - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVesting - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DelegatedFree = append(m.DelegatedFree, types1.Coin{}) - if err := m.DelegatedFree[len(m.DelegatedFree)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DelegatedVesting", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVesting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVesting - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVesting - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DelegatedVesting = append(m.DelegatedVesting, types1.Coin{}) - if err := m.DelegatedVesting[len(m.DelegatedVesting)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndTime", wireType) - } - m.EndTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVesting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EndTime |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipVesting(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVesting - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Period) 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 ErrIntOverflowVesting - } - 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: Period: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Period: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) - } - m.StartTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVesting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartTime |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Length", wireType) - } - m.Length = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVesting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Length |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - 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 ErrIntOverflowVesting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVesting - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVesting - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Amount = append(m.Amount, types1.Coin{}) - if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActionType", wireType) - } - m.ActionType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVesting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ActionType |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipVesting(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVesting - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StridePeriodicVestingAccount) 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 ErrIntOverflowVesting - } - 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: StridePeriodicVestingAccount: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StridePeriodicVestingAccount: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BaseVestingAccount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVesting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVesting - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVesting - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.BaseVestingAccount == nil { - m.BaseVestingAccount = &BaseVestingAccount{} - } - if err := m.BaseVestingAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VestingPeriods", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVesting - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVesting - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVesting - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VestingPeriods = append(m.VestingPeriods, Period{}) - if err := m.VestingPeriods[len(m.VestingPeriods)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVesting(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthVesting - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipVesting(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, ErrIntOverflowVesting - } - 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, ErrIntOverflowVesting - } - 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, ErrIntOverflowVesting - } - 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, ErrInvalidLengthVesting - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupVesting - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthVesting - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthVesting = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowVesting = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupVesting = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/epochs/types/genesis.pb.go b/x/epochs/types/genesis.pb.go deleted file mode 100644 index 0325c01795..0000000000 --- a/x/epochs/types/genesis.pb.go +++ /dev/null @@ -1,785 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/epochs/genesis.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - _ "github.com/gogo/protobuf/types" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - io "io" - math "math" - math_bits "math/bits" - time "time" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen - -// 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 - -type EpochInfo struct { - Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` - StartTime time.Time `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` - Duration time.Duration `protobuf:"bytes,3,opt,name=duration,proto3,stdduration" json:"duration,omitempty" yaml:"duration"` - CurrentEpoch int64 `protobuf:"varint,4,opt,name=current_epoch,json=currentEpoch,proto3" json:"current_epoch,omitempty"` - CurrentEpochStartTime time.Time `protobuf:"bytes,5,opt,name=current_epoch_start_time,json=currentEpochStartTime,proto3,stdtime" json:"current_epoch_start_time" yaml:"current_epoch_start_time"` - EpochCountingStarted bool `protobuf:"varint,6,opt,name=epoch_counting_started,json=epochCountingStarted,proto3" json:"epoch_counting_started,omitempty"` - CurrentEpochStartHeight int64 `protobuf:"varint,7,opt,name=current_epoch_start_height,json=currentEpochStartHeight,proto3" json:"current_epoch_start_height,omitempty"` -} - -func (m *EpochInfo) Reset() { *m = EpochInfo{} } -func (m *EpochInfo) String() string { return proto.CompactTextString(m) } -func (*EpochInfo) ProtoMessage() {} -func (*EpochInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_92af8154b2eb736d, []int{0} -} -func (m *EpochInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EpochInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EpochInfo.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 *EpochInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_EpochInfo.Merge(m, src) -} -func (m *EpochInfo) XXX_Size() int { - return m.Size() -} -func (m *EpochInfo) XXX_DiscardUnknown() { - xxx_messageInfo_EpochInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_EpochInfo proto.InternalMessageInfo - -func (m *EpochInfo) GetIdentifier() string { - if m != nil { - return m.Identifier - } - return "" -} - -func (m *EpochInfo) GetStartTime() time.Time { - if m != nil { - return m.StartTime - } - return time.Time{} -} - -func (m *EpochInfo) GetDuration() time.Duration { - if m != nil { - return m.Duration - } - return 0 -} - -func (m *EpochInfo) GetCurrentEpoch() int64 { - if m != nil { - return m.CurrentEpoch - } - return 0 -} - -func (m *EpochInfo) GetCurrentEpochStartTime() time.Time { - if m != nil { - return m.CurrentEpochStartTime - } - return time.Time{} -} - -func (m *EpochInfo) GetEpochCountingStarted() bool { - if m != nil { - return m.EpochCountingStarted - } - return false -} - -func (m *EpochInfo) GetCurrentEpochStartHeight() int64 { - if m != nil { - return m.CurrentEpochStartHeight - } - return 0 -} - -// GenesisState defines the epochs module's genesis state. -type GenesisState struct { - Epochs []EpochInfo `protobuf:"bytes,1,rep,name=epochs,proto3" json:"epochs"` -} - -func (m *GenesisState) Reset() { *m = GenesisState{} } -func (m *GenesisState) String() string { return proto.CompactTextString(m) } -func (*GenesisState) ProtoMessage() {} -func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_92af8154b2eb736d, []int{1} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetEpochs() []EpochInfo { - if m != nil { - return m.Epochs - } - return nil -} - -func init() { - proto.RegisterType((*EpochInfo)(nil), "stride.epochs.EpochInfo") - proto.RegisterType((*GenesisState)(nil), "stride.epochs.GenesisState") -} - -func init() { proto.RegisterFile("stride/epochs/genesis.proto", fileDescriptor_92af8154b2eb736d) } - -var fileDescriptor_92af8154b2eb736d = []byte{ - // 467 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xbf, 0x6f, 0xd3, 0x40, - 0x14, 0xc7, 0x73, 0x24, 0x84, 0xe6, 0xda, 0x0a, 0x71, 0x2a, 0x70, 0x04, 0x61, 0x5b, 0x66, 0xb1, - 0x04, 0xf8, 0x44, 0x41, 0x1d, 0x60, 0x0b, 0x3f, 0x2b, 0x31, 0x39, 0x0c, 0x88, 0x25, 0x72, 0x92, - 0xcb, 0xf9, 0xa4, 0xda, 0x67, 0xf9, 0x9e, 0x11, 0xd9, 0x98, 0x99, 0x3a, 0xf2, 0x27, 0x75, 0xec, - 0xc8, 0x14, 0x50, 0xb2, 0x31, 0xf6, 0x2f, 0x40, 0xbe, 0xb3, 0x43, 0x4a, 0x41, 0xdd, 0xec, 0xfb, - 0x7c, 0xdf, 0xf7, 0x7b, 0xef, 0xe9, 0x1d, 0xbe, 0xab, 0xa1, 0x90, 0x53, 0xce, 0x78, 0xae, 0x26, - 0x89, 0x66, 0x82, 0x67, 0x5c, 0x4b, 0x1d, 0xe6, 0x85, 0x02, 0x45, 0x76, 0x2d, 0x0c, 0x2d, 0xec, - 0xef, 0x09, 0x25, 0x94, 0x21, 0xac, 0xfa, 0xb2, 0xa2, 0xbe, 0x23, 0x94, 0x12, 0x47, 0x9c, 0x99, - 0xbf, 0x71, 0x39, 0x63, 0xd3, 0xb2, 0x88, 0x41, 0xaa, 0xac, 0xe6, 0xee, 0xdf, 0x1c, 0x64, 0xca, - 0x35, 0xc4, 0x69, 0x6e, 0x05, 0xfe, 0xd7, 0x0e, 0xee, 0xbd, 0xaa, 0x12, 0x0e, 0xb3, 0x99, 0x22, - 0x0e, 0xc6, 0x72, 0xca, 0x33, 0x90, 0x33, 0xc9, 0x0b, 0x8a, 0x3c, 0x14, 0xf4, 0xa2, 0x8d, 0x13, - 0xf2, 0x01, 0x63, 0x0d, 0x71, 0x01, 0xa3, 0xca, 0x86, 0x5e, 0xf1, 0x50, 0xb0, 0xbd, 0xdf, 0x0f, - 0x6d, 0x46, 0xd8, 0x64, 0x84, 0xef, 0x9b, 0x8c, 0xc1, 0xbd, 0x93, 0x85, 0xdb, 0x3a, 0x5b, 0xb8, - 0x37, 0xe6, 0x71, 0x7a, 0xf4, 0xcc, 0xff, 0x53, 0xeb, 0x1f, 0xff, 0x70, 0x51, 0xd4, 0x33, 0x07, - 0x95, 0x9c, 0x24, 0x78, 0xab, 0xb9, 0x3a, 0x6d, 0x1b, 0xdf, 0x3b, 0x17, 0x7c, 0x5f, 0xd6, 0x82, - 0xc1, 0xe3, 0xca, 0xf6, 0xd7, 0xc2, 0x25, 0x4d, 0xc9, 0x43, 0x95, 0x4a, 0xe0, 0x69, 0x0e, 0xf3, - 0xb3, 0x85, 0x7b, 0xdd, 0x86, 0x35, 0xcc, 0xff, 0x56, 0x45, 0xad, 0xdd, 0xc9, 0x7d, 0xbc, 0x3b, - 0x29, 0x8b, 0x82, 0x67, 0x30, 0x32, 0xa3, 0xa5, 0x1d, 0x0f, 0x05, 0xed, 0x68, 0xa7, 0x3e, 0x34, - 0xc3, 0x20, 0x5f, 0x10, 0xa6, 0xe7, 0x54, 0xa3, 0x8d, 0xbe, 0xaf, 0x5e, 0xda, 0xf7, 0x83, 0xba, - 0x6f, 0xd7, 0x5e, 0xe5, 0x7f, 0x4e, 0x76, 0x0a, 0x37, 0x37, 0x93, 0x87, 0xeb, 0x89, 0x3c, 0xc5, - 0xb7, 0xac, 0x7e, 0xa2, 0xca, 0x0c, 0x64, 0x26, 0x6c, 0x21, 0x9f, 0xd2, 0xae, 0x87, 0x82, 0xad, - 0x68, 0xcf, 0xd0, 0x17, 0x35, 0x1c, 0x5a, 0x46, 0x9e, 0xe3, 0xfe, 0xbf, 0xd2, 0x12, 0x2e, 0x45, - 0x02, 0xf4, 0x9a, 0x69, 0xf5, 0xf6, 0x85, 0xc0, 0xb7, 0x06, 0xfb, 0xaf, 0xf1, 0xce, 0x1b, 0xbb, - 0x83, 0x43, 0x88, 0x81, 0x93, 0x03, 0xdc, 0xb5, 0xdb, 0x47, 0x91, 0xd7, 0x0e, 0xb6, 0xf7, 0x69, - 0x78, 0x6e, 0x27, 0xc3, 0xf5, 0xe2, 0x0c, 0x3a, 0x55, 0xc3, 0x51, 0xad, 0x1e, 0x1c, 0x9e, 0x2c, - 0x1d, 0x74, 0xba, 0x74, 0xd0, 0xcf, 0xa5, 0x83, 0x8e, 0x57, 0x4e, 0xeb, 0x74, 0xe5, 0xb4, 0xbe, - 0xaf, 0x9c, 0xd6, 0x47, 0x26, 0x24, 0x24, 0xe5, 0x38, 0x9c, 0xa8, 0x94, 0x0d, 0x8d, 0xd7, 0xa3, - 0x77, 0xf1, 0x58, 0xb3, 0xfa, 0x21, 0x7c, 0x3a, 0x60, 0x9f, 0x9b, 0xd7, 0x00, 0xf3, 0x9c, 0xeb, - 0x71, 0xd7, 0x4c, 0xf7, 0xc9, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x93, 0x8b, 0xec, 0x13, 0x2b, - 0x03, 0x00, 0x00, -} - -func (m *EpochInfo) 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 *EpochInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EpochInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CurrentEpochStartHeight != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.CurrentEpochStartHeight)) - i-- - dAtA[i] = 0x38 - } - if m.EpochCountingStarted { - i-- - if m.EpochCountingStarted { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CurrentEpochStartTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.CurrentEpochStartTime):]) - if err1 != nil { - return 0, err1 - } - i -= n1 - i = encodeVarintGenesis(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x2a - if m.CurrentEpoch != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.CurrentEpoch)) - i-- - dAtA[i] = 0x20 - } - n2, err2 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.Duration, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.Duration):]) - if err2 != nil { - return 0, err2 - } - i -= n2 - i = encodeVarintGenesis(dAtA, i, uint64(n2)) - i-- - dAtA[i] = 0x1a - n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.StartTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.StartTime):]) - if err3 != nil { - return 0, err3 - } - i -= n3 - i = encodeVarintGenesis(dAtA, i, uint64(n3)) - i-- - dAtA[i] = 0x12 - if len(m.Identifier) > 0 { - i -= len(m.Identifier) - copy(dAtA[i:], m.Identifier) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Identifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Epochs) > 0 { - for iNdEx := len(m.Epochs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Epochs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *EpochInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Identifier) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.StartTime) - n += 1 + l + sovGenesis(uint64(l)) - l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.Duration) - n += 1 + l + sovGenesis(uint64(l)) - if m.CurrentEpoch != 0 { - n += 1 + sovGenesis(uint64(m.CurrentEpoch)) - } - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CurrentEpochStartTime) - n += 1 + l + sovGenesis(uint64(l)) - if m.EpochCountingStarted { - n += 2 - } - if m.CurrentEpochStartHeight != 0 { - n += 1 + sovGenesis(uint64(m.CurrentEpochStartHeight)) - } - return n -} - -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Epochs) > 0 { - for _, e := range m.Epochs { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *EpochInfo) 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 ErrIntOverflowGenesis - } - 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: EpochInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EpochInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.StartTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.Duration, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentEpoch", wireType) - } - m.CurrentEpoch = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentEpoch |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentEpochStartTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.CurrentEpochStartTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochCountingStarted", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.EpochCountingStarted = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentEpochStartHeight", wireType) - } - m.CurrentEpochStartHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentEpochStartHeight |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GenesisState) 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 ErrIntOverflowGenesis - } - 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: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Epochs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Epochs = append(m.Epochs, EpochInfo{}) - if err := m.Epochs[len(m.Epochs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/epochs/types/query.pb.go b/x/epochs/types/query.pb.go deleted file mode 100644 index c07116165b..0000000000 --- a/x/epochs/types/query.pb.go +++ /dev/null @@ -1,1418 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/epochs/query.proto - -package types - -import ( - context "context" - fmt "fmt" - query "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - 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 - -type QueryEpochsInfoRequest struct { - Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryEpochsInfoRequest) Reset() { *m = QueryEpochsInfoRequest{} } -func (m *QueryEpochsInfoRequest) String() string { return proto.CompactTextString(m) } -func (*QueryEpochsInfoRequest) ProtoMessage() {} -func (*QueryEpochsInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_de81e87fff8f1327, []int{0} -} -func (m *QueryEpochsInfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryEpochsInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryEpochsInfoRequest.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 *QueryEpochsInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryEpochsInfoRequest.Merge(m, src) -} -func (m *QueryEpochsInfoRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryEpochsInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryEpochsInfoRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryEpochsInfoRequest proto.InternalMessageInfo - -func (m *QueryEpochsInfoRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryEpochsInfoResponse struct { - Epochs []EpochInfo `protobuf:"bytes,1,rep,name=epochs,proto3" json:"epochs"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryEpochsInfoResponse) Reset() { *m = QueryEpochsInfoResponse{} } -func (m *QueryEpochsInfoResponse) String() string { return proto.CompactTextString(m) } -func (*QueryEpochsInfoResponse) ProtoMessage() {} -func (*QueryEpochsInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_de81e87fff8f1327, []int{1} -} -func (m *QueryEpochsInfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryEpochsInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryEpochsInfoResponse.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 *QueryEpochsInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryEpochsInfoResponse.Merge(m, src) -} -func (m *QueryEpochsInfoResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryEpochsInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryEpochsInfoResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryEpochsInfoResponse proto.InternalMessageInfo - -func (m *QueryEpochsInfoResponse) GetEpochs() []EpochInfo { - if m != nil { - return m.Epochs - } - return nil -} - -func (m *QueryEpochsInfoResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryCurrentEpochRequest struct { - Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` -} - -func (m *QueryCurrentEpochRequest) Reset() { *m = QueryCurrentEpochRequest{} } -func (m *QueryCurrentEpochRequest) String() string { return proto.CompactTextString(m) } -func (*QueryCurrentEpochRequest) ProtoMessage() {} -func (*QueryCurrentEpochRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_de81e87fff8f1327, []int{2} -} -func (m *QueryCurrentEpochRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryCurrentEpochRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryCurrentEpochRequest.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 *QueryCurrentEpochRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryCurrentEpochRequest.Merge(m, src) -} -func (m *QueryCurrentEpochRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryCurrentEpochRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryCurrentEpochRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryCurrentEpochRequest proto.InternalMessageInfo - -func (m *QueryCurrentEpochRequest) GetIdentifier() string { - if m != nil { - return m.Identifier - } - return "" -} - -type QueryCurrentEpochResponse struct { - CurrentEpoch int64 `protobuf:"varint,1,opt,name=current_epoch,json=currentEpoch,proto3" json:"current_epoch,omitempty"` -} - -func (m *QueryCurrentEpochResponse) Reset() { *m = QueryCurrentEpochResponse{} } -func (m *QueryCurrentEpochResponse) String() string { return proto.CompactTextString(m) } -func (*QueryCurrentEpochResponse) ProtoMessage() {} -func (*QueryCurrentEpochResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_de81e87fff8f1327, []int{3} -} -func (m *QueryCurrentEpochResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryCurrentEpochResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryCurrentEpochResponse.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 *QueryCurrentEpochResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryCurrentEpochResponse.Merge(m, src) -} -func (m *QueryCurrentEpochResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryCurrentEpochResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryCurrentEpochResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryCurrentEpochResponse proto.InternalMessageInfo - -func (m *QueryCurrentEpochResponse) GetCurrentEpoch() int64 { - if m != nil { - return m.CurrentEpoch - } - return 0 -} - -type QueryEpochInfoRequest struct { - Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` -} - -func (m *QueryEpochInfoRequest) Reset() { *m = QueryEpochInfoRequest{} } -func (m *QueryEpochInfoRequest) String() string { return proto.CompactTextString(m) } -func (*QueryEpochInfoRequest) ProtoMessage() {} -func (*QueryEpochInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_de81e87fff8f1327, []int{4} -} -func (m *QueryEpochInfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryEpochInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryEpochInfoRequest.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 *QueryEpochInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryEpochInfoRequest.Merge(m, src) -} -func (m *QueryEpochInfoRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryEpochInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryEpochInfoRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryEpochInfoRequest proto.InternalMessageInfo - -func (m *QueryEpochInfoRequest) GetIdentifier() string { - if m != nil { - return m.Identifier - } - return "" -} - -type QueryEpochInfoResponse struct { - Epoch EpochInfo `protobuf:"bytes,1,opt,name=epoch,proto3" json:"epoch"` -} - -func (m *QueryEpochInfoResponse) Reset() { *m = QueryEpochInfoResponse{} } -func (m *QueryEpochInfoResponse) String() string { return proto.CompactTextString(m) } -func (*QueryEpochInfoResponse) ProtoMessage() {} -func (*QueryEpochInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_de81e87fff8f1327, []int{5} -} -func (m *QueryEpochInfoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryEpochInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryEpochInfoResponse.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 *QueryEpochInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryEpochInfoResponse.Merge(m, src) -} -func (m *QueryEpochInfoResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryEpochInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryEpochInfoResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryEpochInfoResponse proto.InternalMessageInfo - -func (m *QueryEpochInfoResponse) GetEpoch() EpochInfo { - if m != nil { - return m.Epoch - } - return EpochInfo{} -} - -func init() { - proto.RegisterType((*QueryEpochsInfoRequest)(nil), "stride.epochs.QueryEpochsInfoRequest") - proto.RegisterType((*QueryEpochsInfoResponse)(nil), "stride.epochs.QueryEpochsInfoResponse") - proto.RegisterType((*QueryCurrentEpochRequest)(nil), "stride.epochs.QueryCurrentEpochRequest") - proto.RegisterType((*QueryCurrentEpochResponse)(nil), "stride.epochs.QueryCurrentEpochResponse") - proto.RegisterType((*QueryEpochInfoRequest)(nil), "stride.epochs.QueryEpochInfoRequest") - proto.RegisterType((*QueryEpochInfoResponse)(nil), "stride.epochs.QueryEpochInfoResponse") -} - -func init() { proto.RegisterFile("stride/epochs/query.proto", fileDescriptor_de81e87fff8f1327) } - -var fileDescriptor_de81e87fff8f1327 = []byte{ - // 507 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0x4d, 0x6f, 0xd3, 0x30, - 0x18, 0xae, 0x57, 0x36, 0x69, 0xef, 0xb6, 0x8b, 0xc5, 0x47, 0xdb, 0xa1, 0x30, 0xc2, 0xd6, 0x16, - 0x04, 0xb6, 0x56, 0xd0, 0x90, 0x38, 0x21, 0x10, 0xa0, 0x49, 0x08, 0x41, 0xb8, 0x71, 0x19, 0x49, - 0xe6, 0x65, 0x96, 0x36, 0x3b, 0x8b, 0xdd, 0x89, 0x5d, 0x38, 0x70, 0xe0, 0x8c, 0xe0, 0xc6, 0x9d, - 0xff, 0xb2, 0xe3, 0x24, 0x2e, 0x9c, 0x10, 0x6a, 0xf9, 0x21, 0x28, 0xb6, 0xd7, 0x26, 0x2c, 0x55, - 0x4e, 0xad, 0xfc, 0x3e, 0x5f, 0x7e, 0x5e, 0x07, 0xda, 0x4a, 0x67, 0x7c, 0x97, 0x51, 0x96, 0xca, - 0x78, 0x5f, 0xd1, 0xa3, 0x21, 0xcb, 0x4e, 0x48, 0x9a, 0x49, 0x2d, 0xf1, 0x8a, 0x1d, 0x11, 0x3b, - 0xea, 0x5c, 0x4e, 0x64, 0x22, 0xcd, 0x84, 0xe6, 0xff, 0x2c, 0xa8, 0x73, 0x3d, 0x91, 0x32, 0x39, - 0x60, 0x34, 0x4c, 0x39, 0x0d, 0x85, 0x90, 0x3a, 0xd4, 0x5c, 0x0a, 0xe5, 0xa6, 0x77, 0x62, 0xa9, - 0x0e, 0xa5, 0xa2, 0x51, 0xa8, 0x98, 0xd5, 0xa6, 0xc7, 0x9b, 0x11, 0xd3, 0xe1, 0x26, 0x4d, 0xc3, - 0x84, 0x0b, 0x03, 0x76, 0xd8, 0xd5, 0x72, 0x92, 0x84, 0x09, 0xa6, 0xb8, 0x13, 0xf2, 0xdf, 0xc3, - 0xd5, 0x37, 0x39, 0xfd, 0x99, 0x19, 0x6e, 0x8b, 0x3d, 0x19, 0xb0, 0xa3, 0x21, 0x53, 0x1a, 0x3f, - 0x07, 0x98, 0x4a, 0xb5, 0xd0, 0x1a, 0xea, 0x2f, 0x0d, 0xba, 0xc4, 0xfa, 0x92, 0xdc, 0x97, 0xd8, - 0x3b, 0x39, 0x5f, 0xf2, 0x3a, 0x4c, 0x98, 0xe3, 0x06, 0x05, 0xa6, 0xff, 0x1d, 0xc1, 0xb5, 0x0b, - 0x16, 0x2a, 0x95, 0x42, 0x31, 0xbc, 0x05, 0x0b, 0x36, 0x55, 0x0b, 0xad, 0x35, 0xfb, 0x4b, 0x83, - 0x16, 0x29, 0x55, 0x43, 0x0c, 0x25, 0x67, 0x3c, 0xb9, 0x74, 0xfa, 0xfb, 0x46, 0x23, 0x70, 0x68, - 0xfc, 0xa2, 0x94, 0x6d, 0xce, 0x64, 0xeb, 0xd5, 0x66, 0xb3, 0xa6, 0xa5, 0x70, 0x8f, 0xa0, 0x65, - 0xb2, 0x3d, 0x1d, 0x66, 0x19, 0x13, 0xda, 0xf8, 0x9d, 0x17, 0xe0, 0x01, 0xf0, 0x5d, 0x26, 0x34, - 0xdf, 0xe3, 0x2c, 0x33, 0x05, 0x2c, 0x06, 0x85, 0x13, 0xff, 0x31, 0xb4, 0x2b, 0xb8, 0xee, 0x66, - 0xb7, 0x60, 0x25, 0xb6, 0xe7, 0x3b, 0x26, 0xb3, 0xe1, 0x37, 0x83, 0xe5, 0xb8, 0x00, 0xf6, 0x1f, - 0xc2, 0x95, 0x69, 0x33, 0xc5, 0xee, 0xeb, 0xac, 0x5f, 0x15, 0xb7, 0x56, 0x6a, 0xf4, 0x01, 0xcc, - 0x4f, 0xfd, 0xea, 0x0b, 0xb5, 0xe0, 0xc1, 0x8f, 0x26, 0xcc, 0x1b, 0x41, 0xfc, 0x11, 0x60, 0x82, - 0x51, 0x78, 0xe3, 0x3f, 0x7a, 0xf5, 0x53, 0xe9, 0x74, 0xeb, 0x60, 0x36, 0x9c, 0x7f, 0xf3, 0xd3, - 0xcf, 0xbf, 0xdf, 0xe6, 0x56, 0x71, 0x9b, 0xbe, 0x35, 0xf8, 0x83, 0x30, 0x52, 0xb4, 0xf4, 0x3a, - 0xf1, 0x57, 0x04, 0xcb, 0xc5, 0x42, 0x71, 0xaf, 0x4a, 0xbb, 0x62, 0x5d, 0x9d, 0x7e, 0x3d, 0xd0, - 0xc5, 0xa0, 0x26, 0xc6, 0x6d, 0xdc, 0x9b, 0x19, 0x83, 0x96, 0x76, 0x87, 0x3f, 0x23, 0x58, 0x9c, - 0xb4, 0x82, 0xd7, 0x67, 0xde, 0xb6, 0xd8, 0xc9, 0x46, 0x0d, 0xca, 0x65, 0xb9, 0x6b, 0xb2, 0x74, - 0xf1, 0xfa, 0xec, 0x2c, 0xe6, 0x67, 0x87, 0xe7, 0x4b, 0xdb, 0x3e, 0x1d, 0x79, 0xe8, 0x6c, 0xe4, - 0xa1, 0x3f, 0x23, 0x0f, 0x7d, 0x19, 0x7b, 0x8d, 0xb3, 0xb1, 0xd7, 0xf8, 0x35, 0xf6, 0x1a, 0xef, - 0x68, 0xc2, 0xf5, 0xfe, 0x30, 0x22, 0xb1, 0x3c, 0x74, 0x4a, 0xf7, 0x5e, 0x16, 0xa4, 0x8e, 0xb7, - 0xe8, 0x87, 0x73, 0x3d, 0x7d, 0x92, 0x32, 0x15, 0x2d, 0x98, 0xef, 0xff, 0xfe, 0xbf, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x14, 0x90, 0x05, 0x89, 0xa8, 0x04, 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 - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - // EpochInfos provide running epochInfos - EpochInfos(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) - // CurrentEpoch provide current epoch of specified identifier - CurrentEpoch(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) - // CurrentEpoch provide current epoch of specified identifier - EpochInfo(ctx context.Context, in *QueryEpochInfoRequest, opts ...grpc.CallOption) (*QueryEpochInfoResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) EpochInfos(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) { - out := new(QueryEpochsInfoResponse) - err := c.cc.Invoke(ctx, "/stride.epochs.Query/EpochInfos", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) CurrentEpoch(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) { - out := new(QueryCurrentEpochResponse) - err := c.cc.Invoke(ctx, "/stride.epochs.Query/CurrentEpoch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) EpochInfo(ctx context.Context, in *QueryEpochInfoRequest, opts ...grpc.CallOption) (*QueryEpochInfoResponse, error) { - out := new(QueryEpochInfoResponse) - err := c.cc.Invoke(ctx, "/stride.epochs.Query/EpochInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -type QueryServer interface { - // EpochInfos provide running epochInfos - EpochInfos(context.Context, *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) - // CurrentEpoch provide current epoch of specified identifier - CurrentEpoch(context.Context, *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) - // CurrentEpoch provide current epoch of specified identifier - EpochInfo(context.Context, *QueryEpochInfoRequest) (*QueryEpochInfoResponse, error) -} - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (*UnimplementedQueryServer) EpochInfos(ctx context.Context, req *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EpochInfos not implemented") -} -func (*UnimplementedQueryServer) CurrentEpoch(ctx context.Context, req *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CurrentEpoch not implemented") -} -func (*UnimplementedQueryServer) EpochInfo(ctx context.Context, req *QueryEpochInfoRequest) (*QueryEpochInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EpochInfo not implemented") -} - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) -} - -func _Query_EpochInfos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryEpochsInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).EpochInfos(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.epochs.Query/EpochInfos", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EpochInfos(ctx, req.(*QueryEpochsInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_CurrentEpoch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryCurrentEpochRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).CurrentEpoch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.epochs.Query/CurrentEpoch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).CurrentEpoch(ctx, req.(*QueryCurrentEpochRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_EpochInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryEpochInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).EpochInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.epochs.Query/EpochInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EpochInfo(ctx, req.(*QueryEpochInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "stride.epochs.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "EpochInfos", - Handler: _Query_EpochInfos_Handler, - }, - { - MethodName: "CurrentEpoch", - Handler: _Query_CurrentEpoch_Handler, - }, - { - MethodName: "EpochInfo", - Handler: _Query_EpochInfo_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "stride/epochs/query.proto", -} - -func (m *QueryEpochsInfoRequest) 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 *QueryEpochsInfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryEpochsInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryEpochsInfoResponse) 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 *QueryEpochsInfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryEpochsInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Epochs) > 0 { - for iNdEx := len(m.Epochs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Epochs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryCurrentEpochRequest) 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 *QueryCurrentEpochRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryCurrentEpochRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identifier) > 0 { - i -= len(m.Identifier) - copy(dAtA[i:], m.Identifier) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Identifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryCurrentEpochResponse) 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 *QueryCurrentEpochResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryCurrentEpochResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CurrentEpoch != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.CurrentEpoch)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryEpochInfoRequest) 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 *QueryEpochInfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryEpochInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identifier) > 0 { - i -= len(m.Identifier) - copy(dAtA[i:], m.Identifier) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Identifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryEpochInfoResponse) 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 *QueryEpochInfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryEpochInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Epoch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryEpochsInfoRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryEpochsInfoResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Epochs) > 0 { - for _, e := range m.Epochs { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryCurrentEpochRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Identifier) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryCurrentEpochResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.CurrentEpoch != 0 { - n += 1 + sovQuery(uint64(m.CurrentEpoch)) - } - return n -} - -func (m *QueryEpochInfoRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Identifier) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryEpochInfoResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Epoch.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryEpochsInfoRequest) 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 ErrIntOverflowQuery - } - 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: QueryEpochsInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryEpochsInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryEpochsInfoResponse) 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 ErrIntOverflowQuery - } - 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: QueryEpochsInfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryEpochsInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Epochs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Epochs = append(m.Epochs, EpochInfo{}) - if err := m.Epochs[len(m.Epochs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryCurrentEpochRequest) 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 ErrIntOverflowQuery - } - 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: QueryCurrentEpochRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCurrentEpochRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryCurrentEpochResponse) 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 ErrIntOverflowQuery - } - 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: QueryCurrentEpochResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryCurrentEpochResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentEpoch", wireType) - } - m.CurrentEpoch = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentEpoch |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryEpochInfoRequest) 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 ErrIntOverflowQuery - } - 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: QueryEpochInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryEpochInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryEpochInfoResponse) 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 ErrIntOverflowQuery - } - 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: QueryEpochInfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryEpochInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Epoch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/icacallbacks/types/callback_data.pb.go b/x/icacallbacks/types/callback_data.pb.go deleted file mode 100644 index 87886c9586..0000000000 --- a/x/icacallbacks/types/callback_data.pb.go +++ /dev/null @@ -1,564 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/icacallbacks/callback_data.proto - -package types - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - 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 - -type CallbackData struct { - CallbackKey string `protobuf:"bytes,1,opt,name=callback_key,json=callbackKey,proto3" json:"callback_key,omitempty"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - ChannelId string `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` - CallbackId string `protobuf:"bytes,5,opt,name=callback_id,json=callbackId,proto3" json:"callback_id,omitempty"` - CallbackArgs []byte `protobuf:"bytes,6,opt,name=callback_args,json=callbackArgs,proto3" json:"callback_args,omitempty"` -} - -func (m *CallbackData) Reset() { *m = CallbackData{} } -func (m *CallbackData) String() string { return proto.CompactTextString(m) } -func (*CallbackData) ProtoMessage() {} -func (*CallbackData) Descriptor() ([]byte, []int) { - return fileDescriptor_19b6f19ce856679b, []int{0} -} -func (m *CallbackData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CallbackData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CallbackData.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 *CallbackData) XXX_Merge(src proto.Message) { - xxx_messageInfo_CallbackData.Merge(m, src) -} -func (m *CallbackData) XXX_Size() int { - return m.Size() -} -func (m *CallbackData) XXX_DiscardUnknown() { - xxx_messageInfo_CallbackData.DiscardUnknown(m) -} - -var xxx_messageInfo_CallbackData proto.InternalMessageInfo - -func (m *CallbackData) GetCallbackKey() string { - if m != nil { - return m.CallbackKey - } - return "" -} - -func (m *CallbackData) GetPortId() string { - if m != nil { - return m.PortId - } - return "" -} - -func (m *CallbackData) GetChannelId() string { - if m != nil { - return m.ChannelId - } - return "" -} - -func (m *CallbackData) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *CallbackData) GetCallbackId() string { - if m != nil { - return m.CallbackId - } - return "" -} - -func (m *CallbackData) GetCallbackArgs() []byte { - if m != nil { - return m.CallbackArgs - } - return nil -} - -func init() { - proto.RegisterType((*CallbackData)(nil), "stride.icacallbacks.CallbackData") -} - -func init() { - proto.RegisterFile("stride/icacallbacks/callback_data.proto", fileDescriptor_19b6f19ce856679b) -} - -var fileDescriptor_19b6f19ce856679b = []byte{ - // 268 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2f, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0xcf, 0x4c, 0x4e, 0x4c, 0x4e, 0xcc, 0xc9, 0x49, 0x4a, 0x4c, 0xce, 0x2e, 0xd6, - 0x87, 0xb1, 0xe2, 0x53, 0x12, 0x4b, 0x12, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x84, 0x21, - 0x0a, 0xf5, 0x90, 0x15, 0x2a, 0x9d, 0x66, 0xe4, 0xe2, 0x71, 0x86, 0xf2, 0x5c, 0x12, 0x4b, 0x12, - 0x85, 0x14, 0xb9, 0x78, 0xe0, 0x9a, 0xb3, 0x53, 0x2b, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, - 0xb8, 0x61, 0x62, 0xde, 0xa9, 0x95, 0x42, 0xe2, 0x5c, 0xec, 0x05, 0xf9, 0x45, 0x25, 0xf1, 0x99, - 0x29, 0x12, 0x4c, 0x60, 0x59, 0x36, 0x10, 0xd7, 0x33, 0x45, 0x48, 0x96, 0x8b, 0x2b, 0x39, 0x23, - 0x31, 0x2f, 0x2f, 0x35, 0x07, 0x24, 0xc7, 0x0c, 0x96, 0xe3, 0x84, 0x8a, 0x78, 0xa6, 0x08, 0x49, - 0x71, 0x71, 0x14, 0xa7, 0x16, 0x96, 0xa6, 0xe6, 0x25, 0xa7, 0x4a, 0xb0, 0x28, 0x30, 0x6a, 0xb0, - 0x04, 0xc1, 0xf9, 0x42, 0xf2, 0x5c, 0x70, 0x2b, 0x40, 0x7a, 0x59, 0xc1, 0x7a, 0xb9, 0x60, 0x42, - 0x9e, 0x29, 0x42, 0xca, 0x5c, 0xbc, 0x70, 0x05, 0x89, 0x45, 0xe9, 0xc5, 0x12, 0x6c, 0x0a, 0x8c, - 0x1a, 0x3c, 0x41, 0x70, 0xc7, 0x3a, 0x16, 0xa5, 0x17, 0x3b, 0xf9, 0x9f, 0x78, 0x24, 0xc7, 0x78, - 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, - 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x69, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, - 0xae, 0x7e, 0x30, 0x38, 0x1c, 0x74, 0x7d, 0x12, 0x93, 0x8a, 0xf5, 0xa1, 0x81, 0x57, 0x66, 0xa6, - 0x5f, 0x81, 0x1a, 0x82, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0xe0, 0xa0, 0x33, 0x06, 0x04, - 0x00, 0x00, 0xff, 0xff, 0x23, 0x36, 0xe0, 0xf0, 0x65, 0x01, 0x00, 0x00, -} - -func (m *CallbackData) 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 *CallbackData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CallbackData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CallbackArgs) > 0 { - i -= len(m.CallbackArgs) - copy(dAtA[i:], m.CallbackArgs) - i = encodeVarintCallbackData(dAtA, i, uint64(len(m.CallbackArgs))) - i-- - dAtA[i] = 0x32 - } - if len(m.CallbackId) > 0 { - i -= len(m.CallbackId) - copy(dAtA[i:], m.CallbackId) - i = encodeVarintCallbackData(dAtA, i, uint64(len(m.CallbackId))) - i-- - dAtA[i] = 0x2a - } - if m.Sequence != 0 { - i = encodeVarintCallbackData(dAtA, i, uint64(m.Sequence)) - i-- - dAtA[i] = 0x20 - } - if len(m.ChannelId) > 0 { - i -= len(m.ChannelId) - copy(dAtA[i:], m.ChannelId) - i = encodeVarintCallbackData(dAtA, i, uint64(len(m.ChannelId))) - i-- - dAtA[i] = 0x1a - } - if len(m.PortId) > 0 { - i -= len(m.PortId) - copy(dAtA[i:], m.PortId) - i = encodeVarintCallbackData(dAtA, i, uint64(len(m.PortId))) - i-- - dAtA[i] = 0x12 - } - if len(m.CallbackKey) > 0 { - i -= len(m.CallbackKey) - copy(dAtA[i:], m.CallbackKey) - i = encodeVarintCallbackData(dAtA, i, uint64(len(m.CallbackKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintCallbackData(dAtA []byte, offset int, v uint64) int { - offset -= sovCallbackData(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *CallbackData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CallbackKey) - if l > 0 { - n += 1 + l + sovCallbackData(uint64(l)) - } - l = len(m.PortId) - if l > 0 { - n += 1 + l + sovCallbackData(uint64(l)) - } - l = len(m.ChannelId) - if l > 0 { - n += 1 + l + sovCallbackData(uint64(l)) - } - if m.Sequence != 0 { - n += 1 + sovCallbackData(uint64(m.Sequence)) - } - l = len(m.CallbackId) - if l > 0 { - n += 1 + l + sovCallbackData(uint64(l)) - } - l = len(m.CallbackArgs) - if l > 0 { - n += 1 + l + sovCallbackData(uint64(l)) - } - return n -} - -func sovCallbackData(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozCallbackData(x uint64) (n int) { - return sovCallbackData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *CallbackData) 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 ErrIntOverflowCallbackData - } - 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: CallbackData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CallbackData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallbackKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbackData - } - 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 ErrInvalidLengthCallbackData - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbackData - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CallbackKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbackData - } - 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 ErrInvalidLengthCallbackData - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbackData - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PortId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbackData - } - 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 ErrInvalidLengthCallbackData - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbackData - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChannelId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) - } - m.Sequence = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbackData - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Sequence |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallbackId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbackData - } - 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 ErrInvalidLengthCallbackData - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbackData - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CallbackId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallbackArgs", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbackData - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthCallbackData - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCallbackData - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CallbackArgs = append(m.CallbackArgs[:0], dAtA[iNdEx:postIndex]...) - if m.CallbackArgs == nil { - m.CallbackArgs = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCallbackData(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbackData - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipCallbackData(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, ErrIntOverflowCallbackData - } - 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, ErrIntOverflowCallbackData - } - 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, ErrIntOverflowCallbackData - } - 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, ErrInvalidLengthCallbackData - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupCallbackData - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthCallbackData - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthCallbackData = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowCallbackData = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupCallbackData = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/icacallbacks/types/genesis.pb.go b/x/icacallbacks/types/genesis.pb.go deleted file mode 100644 index 36dc282d37..0000000000 --- a/x/icacallbacks/types/genesis.pb.go +++ /dev/null @@ -1,439 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/icacallbacks/genesis.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -// GenesisState defines the icacallbacks module's genesis state. -type GenesisState struct { - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - CallbackDataList []CallbackData `protobuf:"bytes,3,rep,name=callback_data_list,json=callbackDataList,proto3" json:"callback_data_list"` -} - -func (m *GenesisState) Reset() { *m = GenesisState{} } -func (m *GenesisState) String() string { return proto.CompactTextString(m) } -func (*GenesisState) ProtoMessage() {} -func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_8c333baddfa20681, []int{0} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func (m *GenesisState) GetPortId() string { - if m != nil { - return m.PortId - } - return "" -} - -func (m *GenesisState) GetCallbackDataList() []CallbackData { - if m != nil { - return m.CallbackDataList - } - return nil -} - -func init() { - proto.RegisterType((*GenesisState)(nil), "stride.icacallbacks.GenesisState") -} - -func init() { proto.RegisterFile("stride/icacallbacks/genesis.proto", fileDescriptor_8c333baddfa20681) } - -var fileDescriptor_8c333baddfa20681 = []byte{ - // 278 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0xcf, 0x4c, 0x4e, 0x4c, 0x4e, 0xcc, 0xc9, 0x49, 0x4a, 0x4c, 0xce, 0x2e, 0xd6, - 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, - 0x28, 0xd1, 0x43, 0x56, 0x22, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x96, 0xd7, 0x07, 0xb1, 0x20, - 0x4a, 0xa5, 0x14, 0xb0, 0x99, 0x56, 0x90, 0x58, 0x94, 0x98, 0x0b, 0x35, 0x4c, 0x4a, 0x1d, 0x9b, - 0x0a, 0x18, 0x2b, 0x3e, 0x25, 0xb1, 0x24, 0x11, 0xa2, 0x50, 0x69, 0x27, 0x23, 0x17, 0x8f, 0x3b, - 0xc4, 0x1d, 0xc1, 0x25, 0x89, 0x25, 0xa9, 0x42, 0x96, 0x5c, 0x6c, 0x10, 0x93, 0x24, 0x18, 0x15, - 0x18, 0x35, 0xb8, 0x8d, 0xa4, 0xf5, 0xb0, 0xb8, 0x4b, 0x2f, 0x00, 0xac, 0xc4, 0x89, 0xe5, 0xc4, - 0x3d, 0x79, 0x86, 0x20, 0xa8, 0x06, 0x21, 0x71, 0x2e, 0xf6, 0x82, 0xfc, 0xa2, 0x92, 0xf8, 0xcc, - 0x14, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x36, 0x10, 0xd7, 0x33, 0x45, 0x28, 0x94, 0x4b, - 0x08, 0xc5, 0xee, 0xf8, 0x9c, 0xcc, 0xe2, 0x12, 0x09, 0x66, 0x05, 0x66, 0x0d, 0x6e, 0x23, 0x45, - 0xac, 0xe6, 0x3b, 0x43, 0x59, 0x2e, 0x89, 0x25, 0x89, 0x50, 0x5b, 0x04, 0x92, 0x91, 0xc4, 0x7c, - 0x32, 0x8b, 0x4b, 0x9c, 0xfc, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, - 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, - 0x34, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, 0x18, 0x6c, 0xbc, 0xae, - 0x4f, 0x62, 0x52, 0xb1, 0x3e, 0x34, 0x54, 0xca, 0xcc, 0xf4, 0x2b, 0x50, 0x83, 0xa6, 0xa4, 0xb2, - 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x1c, 0x26, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x09, 0xfd, - 0x0a, 0xec, 0xae, 0x01, 0x00, 0x00, -} - -func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CallbackDataList) > 0 { - for iNdEx := len(m.CallbackDataList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CallbackDataList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.PortId) > 0 { - i -= len(m.PortId) - copy(dAtA[i:], m.PortId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.PortId))) - i-- - dAtA[i] = 0x12 - } - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) - l = len(m.PortId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if len(m.CallbackDataList) > 0 { - for _, e := range m.CallbackDataList { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GenesisState) 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 ErrIntOverflowGenesis - } - 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: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PortId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallbackDataList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CallbackDataList = append(m.CallbackDataList, CallbackData{}) - if err := m.CallbackDataList[len(m.CallbackDataList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/icacallbacks/types/packet.pb.go b/x/icacallbacks/types/packet.pb.go deleted file mode 100644 index 9a16292573..0000000000 --- a/x/icacallbacks/types/packet.pb.go +++ /dev/null @@ -1,501 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/icacallbacks/packet.proto - -package types - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - 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 - -type IcacallbacksPacketData struct { - // Types that are valid to be assigned to Packet: - // *IcacallbacksPacketData_NoData - Packet isIcacallbacksPacketData_Packet `protobuf_oneof:"packet"` -} - -func (m *IcacallbacksPacketData) Reset() { *m = IcacallbacksPacketData{} } -func (m *IcacallbacksPacketData) String() string { return proto.CompactTextString(m) } -func (*IcacallbacksPacketData) ProtoMessage() {} -func (*IcacallbacksPacketData) Descriptor() ([]byte, []int) { - return fileDescriptor_e68b4c401320f2a0, []int{0} -} -func (m *IcacallbacksPacketData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IcacallbacksPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IcacallbacksPacketData.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 *IcacallbacksPacketData) XXX_Merge(src proto.Message) { - xxx_messageInfo_IcacallbacksPacketData.Merge(m, src) -} -func (m *IcacallbacksPacketData) XXX_Size() int { - return m.Size() -} -func (m *IcacallbacksPacketData) XXX_DiscardUnknown() { - xxx_messageInfo_IcacallbacksPacketData.DiscardUnknown(m) -} - -var xxx_messageInfo_IcacallbacksPacketData proto.InternalMessageInfo - -type isIcacallbacksPacketData_Packet interface { - isIcacallbacksPacketData_Packet() - MarshalTo([]byte) (int, error) - Size() int -} - -type IcacallbacksPacketData_NoData struct { - NoData *NoData `protobuf:"bytes,1,opt,name=no_data,json=noData,proto3,oneof" json:"no_data,omitempty"` -} - -func (*IcacallbacksPacketData_NoData) isIcacallbacksPacketData_Packet() {} - -func (m *IcacallbacksPacketData) GetPacket() isIcacallbacksPacketData_Packet { - if m != nil { - return m.Packet - } - return nil -} - -func (m *IcacallbacksPacketData) GetNoData() *NoData { - if x, ok := m.GetPacket().(*IcacallbacksPacketData_NoData); ok { - return x.NoData - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*IcacallbacksPacketData) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*IcacallbacksPacketData_NoData)(nil), - } -} - -type NoData struct { -} - -func (m *NoData) Reset() { *m = NoData{} } -func (m *NoData) String() string { return proto.CompactTextString(m) } -func (*NoData) ProtoMessage() {} -func (*NoData) Descriptor() ([]byte, []int) { - return fileDescriptor_e68b4c401320f2a0, []int{1} -} -func (m *NoData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NoData.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 *NoData) XXX_Merge(src proto.Message) { - xxx_messageInfo_NoData.Merge(m, src) -} -func (m *NoData) XXX_Size() int { - return m.Size() -} -func (m *NoData) XXX_DiscardUnknown() { - xxx_messageInfo_NoData.DiscardUnknown(m) -} - -var xxx_messageInfo_NoData proto.InternalMessageInfo - -func init() { - proto.RegisterType((*IcacallbacksPacketData)(nil), "stride.icacallbacks.IcacallbacksPacketData") - proto.RegisterType((*NoData)(nil), "stride.icacallbacks.NoData") -} - -func init() { proto.RegisterFile("stride/icacallbacks/packet.proto", fileDescriptor_e68b4c401320f2a0) } - -var fileDescriptor_e68b4c401320f2a0 = []byte{ - // 194 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x28, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0xcf, 0x4c, 0x4e, 0x4c, 0x4e, 0xcc, 0xc9, 0x49, 0x4a, 0x4c, 0xce, 0x2e, 0xd6, - 0x2f, 0x48, 0x4c, 0xce, 0x4e, 0x2d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0xa8, - 0xd0, 0x43, 0x56, 0xa1, 0x14, 0xc5, 0x25, 0xe6, 0x89, 0xc4, 0x0f, 0x00, 0x6b, 0x70, 0x49, 0x2c, - 0x49, 0x14, 0x32, 0xe3, 0x62, 0xcf, 0xcb, 0x8f, 0x4f, 0x49, 0x2c, 0x49, 0x94, 0x60, 0x54, 0x60, - 0xd4, 0xe0, 0x36, 0x92, 0xd6, 0xc3, 0x62, 0x80, 0x9e, 0x5f, 0x3e, 0x48, 0xb5, 0x07, 0x43, 0x10, - 0x5b, 0x1e, 0x98, 0xe5, 0xc4, 0xc1, 0xc5, 0x06, 0xb1, 0x56, 0x89, 0x83, 0x8b, 0x0d, 0x22, 0xeb, - 0xe4, 0x7f, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, - 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xa6, 0xe9, 0x99, 0x25, - 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xc1, 0x60, 0xe3, 0x75, 0x7d, 0x12, 0x93, 0x8a, - 0xf5, 0xa1, 0xbe, 0x29, 0x33, 0xd3, 0xaf, 0x40, 0xf5, 0x52, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, - 0x1b, 0xd8, 0x4b, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x23, 0x55, 0xd7, 0xf6, 0x00, - 0x00, 0x00, -} - -func (m *IcacallbacksPacketData) 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 *IcacallbacksPacketData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IcacallbacksPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Packet != nil { - { - size := m.Packet.Size() - i -= size - if _, err := m.Packet.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *IcacallbacksPacketData_NoData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IcacallbacksPacketData_NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.NoData != nil { - { - size, err := m.NoData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPacket(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *NoData) 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 *NoData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintPacket(dAtA []byte, offset int, v uint64) int { - offset -= sovPacket(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *IcacallbacksPacketData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Packet != nil { - n += m.Packet.Size() - } - return n -} - -func (m *IcacallbacksPacketData_NoData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NoData != nil { - l = m.NoData.Size() - n += 1 + l + sovPacket(uint64(l)) - } - return n -} -func (m *NoData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovPacket(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozPacket(x uint64) (n int) { - return sovPacket(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *IcacallbacksPacketData) 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 ErrIntOverflowPacket - } - 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: IcacallbacksPacketData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IcacallbacksPacketData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NoData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPacket - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPacket - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPacket - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &NoData{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Packet = &IcacallbacksPacketData_NoData{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPacket(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPacket - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NoData) 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 ErrIntOverflowPacket - } - 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: NoData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NoData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipPacket(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPacket - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipPacket(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, ErrIntOverflowPacket - } - 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, ErrIntOverflowPacket - } - 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, ErrIntOverflowPacket - } - 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, ErrInvalidLengthPacket - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupPacket - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthPacket - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthPacket = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowPacket = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/icacallbacks/types/params.pb.go b/x/icacallbacks/types/params.pb.go deleted file mode 100644 index 94cb6ffbe3..0000000000 --- a/x/icacallbacks/types/params.pb.go +++ /dev/null @@ -1,264 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/icacallbacks/params.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -// Params defines the parameters for the module. -type Params struct { -} - -func (m *Params) Reset() { *m = Params{} } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_4c402599e6cfed62, []int{0} -} -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} -func (m *Params) XXX_Size() int { - return m.Size() -} -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Params)(nil), "stride.icacallbacks.Params") -} - -func init() { proto.RegisterFile("stride/icacallbacks/params.proto", fileDescriptor_4c402599e6cfed62) } - -var fileDescriptor_4c402599e6cfed62 = []byte{ - // 159 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x28, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0xcf, 0x4c, 0x4e, 0x4c, 0x4e, 0xcc, 0xc9, 0x49, 0x4a, 0x4c, 0xce, 0x2e, 0xd6, - 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0xa8, - 0xd0, 0x43, 0x56, 0x21, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x96, 0xd7, 0x07, 0xb1, 0x20, 0x4a, - 0x95, 0xf8, 0xb8, 0xd8, 0x02, 0xc0, 0x5a, 0xad, 0x58, 0x66, 0x2c, 0x90, 0x67, 0x70, 0xf2, 0x3f, - 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, - 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xd3, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, - 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0x60, 0xb0, 0xf9, 0xba, 0x3e, 0x89, 0x49, 0xc5, 0xfa, 0x50, - 0xd7, 0x94, 0x99, 0xe9, 0x57, 0xa0, 0x3a, 0xa9, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x6c, - 0x8f, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x0d, 0xb0, 0x86, 0xec, 0xb6, 0x00, 0x00, 0x00, -} - -func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintParams(dAtA []byte, offset int, v uint64) int { - offset -= sovParams(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovParams(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozParams(x uint64) (n int) { - return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Params) 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 ErrIntOverflowParams - } - 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: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipParams(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, ErrIntOverflowParams - } - 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, ErrIntOverflowParams - } - 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, ErrIntOverflowParams - } - 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, ErrInvalidLengthParams - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupParams - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthParams - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/icacallbacks/types/query.pb.go b/x/icacallbacks/types/query.pb.go deleted file mode 100644 index f1a93ca92e..0000000000 --- a/x/icacallbacks/types/query.pb.go +++ /dev/null @@ -1,1389 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/icacallbacks/query.proto - -package types - -import ( - context "context" - fmt "fmt" - query "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - 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 - -// QueryParamsRequest is request type for the Query/Params RPC method. -type QueryParamsRequest struct { -} - -func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } -func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryParamsRequest) ProtoMessage() {} -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5e73b99abb7e91c2, []int{0} -} -func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsRequest.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 *QueryParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsRequest.Merge(m, src) -} -func (m *QueryParamsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo - -// QueryParamsResponse is response type for the Query/Params RPC method. -type QueryParamsResponse struct { - // params holds all the parameters of this module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` -} - -func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } -func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryParamsResponse) ProtoMessage() {} -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5e73b99abb7e91c2, []int{1} -} -func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsResponse.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 *QueryParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsResponse.Merge(m, src) -} -func (m *QueryParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo - -func (m *QueryParamsResponse) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -type QueryGetCallbackDataRequest struct { - CallbackKey string `protobuf:"bytes,1,opt,name=callback_key,json=callbackKey,proto3" json:"callback_key,omitempty"` -} - -func (m *QueryGetCallbackDataRequest) Reset() { *m = QueryGetCallbackDataRequest{} } -func (m *QueryGetCallbackDataRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetCallbackDataRequest) ProtoMessage() {} -func (*QueryGetCallbackDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5e73b99abb7e91c2, []int{2} -} -func (m *QueryGetCallbackDataRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetCallbackDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetCallbackDataRequest.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 *QueryGetCallbackDataRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetCallbackDataRequest.Merge(m, src) -} -func (m *QueryGetCallbackDataRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetCallbackDataRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetCallbackDataRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetCallbackDataRequest proto.InternalMessageInfo - -func (m *QueryGetCallbackDataRequest) GetCallbackKey() string { - if m != nil { - return m.CallbackKey - } - return "" -} - -type QueryGetCallbackDataResponse struct { - CallbackData CallbackData `protobuf:"bytes,1,opt,name=callback_data,json=callbackData,proto3" json:"callback_data"` -} - -func (m *QueryGetCallbackDataResponse) Reset() { *m = QueryGetCallbackDataResponse{} } -func (m *QueryGetCallbackDataResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetCallbackDataResponse) ProtoMessage() {} -func (*QueryGetCallbackDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5e73b99abb7e91c2, []int{3} -} -func (m *QueryGetCallbackDataResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetCallbackDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetCallbackDataResponse.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 *QueryGetCallbackDataResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetCallbackDataResponse.Merge(m, src) -} -func (m *QueryGetCallbackDataResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetCallbackDataResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetCallbackDataResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetCallbackDataResponse proto.InternalMessageInfo - -func (m *QueryGetCallbackDataResponse) GetCallbackData() CallbackData { - if m != nil { - return m.CallbackData - } - return CallbackData{} -} - -type QueryAllCallbackDataRequest struct { - Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllCallbackDataRequest) Reset() { *m = QueryAllCallbackDataRequest{} } -func (m *QueryAllCallbackDataRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllCallbackDataRequest) ProtoMessage() {} -func (*QueryAllCallbackDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5e73b99abb7e91c2, []int{4} -} -func (m *QueryAllCallbackDataRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllCallbackDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllCallbackDataRequest.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 *QueryAllCallbackDataRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllCallbackDataRequest.Merge(m, src) -} -func (m *QueryAllCallbackDataRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryAllCallbackDataRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllCallbackDataRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllCallbackDataRequest proto.InternalMessageInfo - -func (m *QueryAllCallbackDataRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryAllCallbackDataResponse struct { - CallbackData []CallbackData `protobuf:"bytes,1,rep,name=callback_data,json=callbackData,proto3" json:"callback_data"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllCallbackDataResponse) Reset() { *m = QueryAllCallbackDataResponse{} } -func (m *QueryAllCallbackDataResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllCallbackDataResponse) ProtoMessage() {} -func (*QueryAllCallbackDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5e73b99abb7e91c2, []int{5} -} -func (m *QueryAllCallbackDataResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllCallbackDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllCallbackDataResponse.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 *QueryAllCallbackDataResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllCallbackDataResponse.Merge(m, src) -} -func (m *QueryAllCallbackDataResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryAllCallbackDataResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllCallbackDataResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllCallbackDataResponse proto.InternalMessageInfo - -func (m *QueryAllCallbackDataResponse) GetCallbackData() []CallbackData { - if m != nil { - return m.CallbackData - } - return nil -} - -func (m *QueryAllCallbackDataResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination - } - return nil -} - -func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "stride.icacallbacks.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "stride.icacallbacks.QueryParamsResponse") - proto.RegisterType((*QueryGetCallbackDataRequest)(nil), "stride.icacallbacks.QueryGetCallbackDataRequest") - proto.RegisterType((*QueryGetCallbackDataResponse)(nil), "stride.icacallbacks.QueryGetCallbackDataResponse") - proto.RegisterType((*QueryAllCallbackDataRequest)(nil), "stride.icacallbacks.QueryAllCallbackDataRequest") - proto.RegisterType((*QueryAllCallbackDataResponse)(nil), "stride.icacallbacks.QueryAllCallbackDataResponse") -} - -func init() { proto.RegisterFile("stride/icacallbacks/query.proto", fileDescriptor_5e73b99abb7e91c2) } - -var fileDescriptor_5e73b99abb7e91c2 = []byte{ - // 520 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x4f, 0x6b, 0x14, 0x31, - 0x18, 0xc6, 0x37, 0xb5, 0x2e, 0x98, 0x56, 0x84, 0xb4, 0x07, 0xd9, 0x96, 0x69, 0x3b, 0x07, 0xb7, - 0x0a, 0x26, 0xdd, 0x8a, 0x05, 0x0f, 0xa2, 0xad, 0x7f, 0x7a, 0xb0, 0xe0, 0xba, 0xde, 0xbc, 0xc8, - 0x3b, 0xd3, 0x30, 0x0e, 0xcd, 0x4e, 0xa6, 0x9b, 0x6c, 0x71, 0x11, 0x2f, 0xe2, 0xd1, 0x83, 0xe0, - 0xf7, 0xf0, 0xe6, 0xc5, 0x4f, 0xd0, 0x63, 0xc1, 0x8b, 0x27, 0x91, 0x5d, 0x3f, 0x88, 0x6c, 0x92, - 0xad, 0x33, 0x34, 0xd3, 0xa5, 0xde, 0x42, 0xf2, 0xbc, 0xcf, 0xf3, 0x7b, 0xe7, 0x7d, 0x19, 0xbc, - 0xa2, 0x74, 0x2f, 0xdd, 0xe7, 0x2c, 0x8d, 0x21, 0x06, 0x21, 0x22, 0x88, 0x0f, 0x14, 0x3b, 0xec, - 0xf3, 0xde, 0x80, 0xe6, 0x3d, 0xa9, 0x25, 0x59, 0xb0, 0x02, 0x5a, 0x14, 0x34, 0x16, 0x13, 0x99, - 0x48, 0xf3, 0xce, 0xc6, 0x27, 0x2b, 0x6d, 0x2c, 0x27, 0x52, 0x26, 0x82, 0x33, 0xc8, 0x53, 0x06, - 0x59, 0x26, 0x35, 0xe8, 0x54, 0x66, 0xca, 0xbd, 0xde, 0x8a, 0xa5, 0xea, 0x4a, 0xc5, 0x22, 0x50, - 0xdc, 0x26, 0xb0, 0xa3, 0x56, 0xc4, 0x35, 0xb4, 0x58, 0x0e, 0x49, 0x9a, 0x19, 0xb1, 0xd3, 0xae, - 0xfa, 0xa8, 0x72, 0xe8, 0x41, 0x77, 0xe2, 0xd6, 0xf4, 0x29, 0x26, 0xa7, 0xd7, 0xfb, 0xa0, 0xc1, - 0x0a, 0xc3, 0x45, 0x4c, 0x5e, 0x8c, 0xc3, 0xda, 0xa6, 0xba, 0xc3, 0x0f, 0xfb, 0x5c, 0xe9, 0xb0, - 0x8d, 0x17, 0x4a, 0xb7, 0x2a, 0x97, 0x99, 0xe2, 0xe4, 0x1e, 0xae, 0xdb, 0x94, 0xeb, 0x68, 0x15, - 0xad, 0xcf, 0x6d, 0x2e, 0x51, 0x4f, 0xf7, 0xd4, 0x16, 0xed, 0xcc, 0x1e, 0xff, 0x5a, 0xa9, 0x75, - 0x5c, 0x41, 0xf8, 0x10, 0x2f, 0x19, 0xc7, 0x5d, 0xae, 0x1f, 0x39, 0xe5, 0x63, 0xd0, 0xe0, 0x02, - 0xc9, 0x1a, 0x9e, 0x3f, 0xa5, 0x3b, 0xe0, 0x03, 0xe3, 0x7f, 0xa5, 0x33, 0x37, 0xb9, 0x7b, 0xc6, - 0x07, 0xa1, 0xc0, 0xcb, 0x7e, 0x07, 0x07, 0xb7, 0x87, 0xaf, 0x96, 0x1a, 0x74, 0x8c, 0x6b, 0x5e, - 0xc6, 0xa2, 0x83, 0x23, 0x3d, 0x05, 0x18, 0xdf, 0x85, 0xdc, 0xf1, 0x6e, 0x0b, 0xe1, 0xe3, 0x7d, - 0x8a, 0xf1, 0xbf, 0xa9, 0xb8, 0xa4, 0x1b, 0xd4, 0x8e, 0x90, 0x8e, 0x47, 0x48, 0xed, 0x92, 0xb8, - 0x11, 0xd2, 0x36, 0x24, 0xdc, 0xd5, 0x76, 0x0a, 0x95, 0xe1, 0x37, 0xe4, 0xba, 0x3a, 0x93, 0x53, - 0xdd, 0xd5, 0xa5, 0xff, 0xee, 0x8a, 0xec, 0x96, 0xb0, 0x67, 0x0c, 0x76, 0x73, 0x2a, 0xb6, 0x45, - 0x29, 0x72, 0x6f, 0x7e, 0x9c, 0xc5, 0x97, 0x0d, 0x37, 0xf9, 0x84, 0x70, 0xdd, 0x4e, 0x9c, 0x34, - 0xbd, 0x50, 0x67, 0xd7, 0xab, 0xb1, 0x3e, 0x5d, 0x68, 0x33, 0x43, 0xf6, 0xe1, 0xc7, 0x9f, 0x2f, - 0x33, 0x37, 0x49, 0x93, 0xbd, 0x34, 0x15, 0xb7, 0xf7, 0x20, 0x52, 0xac, 0x7a, 0xfd, 0xc9, 0x77, - 0x84, 0xe7, 0x8b, 0x9f, 0x81, 0x6c, 0x54, 0x67, 0xf9, 0x77, 0xb1, 0xd1, 0xba, 0x40, 0x85, 0xc3, - 0x7c, 0x62, 0x30, 0x1f, 0x90, 0xfb, 0x53, 0x31, 0x4b, 0xc3, 0x64, 0xef, 0x8a, 0x4b, 0xff, 0x9e, - 0x7c, 0x45, 0xf8, 0x5a, 0xd1, 0x7f, 0x5b, 0x88, 0xf3, 0xf8, 0xfd, 0xbb, 0x79, 0x1e, 0x7f, 0xc5, - 0x96, 0x85, 0x5b, 0x86, 0x7f, 0x83, 0xd0, 0x8b, 0xf1, 0xef, 0x3c, 0x3f, 0x1e, 0x06, 0xe8, 0x64, - 0x18, 0xa0, 0xdf, 0xc3, 0x00, 0x7d, 0x1e, 0x05, 0xb5, 0x93, 0x51, 0x50, 0xfb, 0x39, 0x0a, 0x6a, - 0xaf, 0xee, 0x26, 0xa9, 0x7e, 0xd3, 0x8f, 0x68, 0x2c, 0xbb, 0x3e, 0xcf, 0xa3, 0x2d, 0xf6, 0xb6, - 0x6c, 0xac, 0x07, 0x39, 0x57, 0x51, 0xdd, 0xfc, 0x95, 0xee, 0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, - 0xb3, 0x03, 0x4b, 0xdc, 0x78, 0x05, 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 - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - // Parameters queries the parameters of the module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // Queries a CallbackData by index. - CallbackData(ctx context.Context, in *QueryGetCallbackDataRequest, opts ...grpc.CallOption) (*QueryGetCallbackDataResponse, error) - // Queries a list of CallbackData items. - CallbackDataAll(ctx context.Context, in *QueryAllCallbackDataRequest, opts ...grpc.CallOption) (*QueryAllCallbackDataResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/stride.icacallbacks.Query/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) CallbackData(ctx context.Context, in *QueryGetCallbackDataRequest, opts ...grpc.CallOption) (*QueryGetCallbackDataResponse, error) { - out := new(QueryGetCallbackDataResponse) - err := c.cc.Invoke(ctx, "/stride.icacallbacks.Query/CallbackData", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) CallbackDataAll(ctx context.Context, in *QueryAllCallbackDataRequest, opts ...grpc.CallOption) (*QueryAllCallbackDataResponse, error) { - out := new(QueryAllCallbackDataResponse) - err := c.cc.Invoke(ctx, "/stride.icacallbacks.Query/CallbackDataAll", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -type QueryServer interface { - // Parameters queries the parameters of the module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // Queries a CallbackData by index. - CallbackData(context.Context, *QueryGetCallbackDataRequest) (*QueryGetCallbackDataResponse, error) - // Queries a list of CallbackData items. - CallbackDataAll(context.Context, *QueryAllCallbackDataRequest) (*QueryAllCallbackDataResponse, error) -} - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} -func (*UnimplementedQueryServer) CallbackData(ctx context.Context, req *QueryGetCallbackDataRequest) (*QueryGetCallbackDataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CallbackData not implemented") -} -func (*UnimplementedQueryServer) CallbackDataAll(ctx context.Context, req *QueryAllCallbackDataRequest) (*QueryAllCallbackDataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CallbackDataAll not implemented") -} - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) -} - -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.icacallbacks.Query/Params", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_CallbackData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetCallbackDataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).CallbackData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.icacallbacks.Query/CallbackData", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).CallbackData(ctx, req.(*QueryGetCallbackDataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_CallbackDataAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllCallbackDataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).CallbackDataAll(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.icacallbacks.Query/CallbackDataAll", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).CallbackDataAll(ctx, req.(*QueryAllCallbackDataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "stride.icacallbacks.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "CallbackData", - Handler: _Query_CallbackData_Handler, - }, - { - MethodName: "CallbackDataAll", - Handler: _Query_CallbackDataAll_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "stride/icacallbacks/query.proto", -} - -func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryParamsResponse) 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 *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryGetCallbackDataRequest) 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 *QueryGetCallbackDataRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetCallbackDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CallbackKey) > 0 { - i -= len(m.CallbackKey) - copy(dAtA[i:], m.CallbackKey) - i = encodeVarintQuery(dAtA, i, uint64(len(m.CallbackKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryGetCallbackDataResponse) 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 *QueryGetCallbackDataResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetCallbackDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.CallbackData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryAllCallbackDataRequest) 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 *QueryAllCallbackDataRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllCallbackDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryAllCallbackDataResponse) 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 *QueryAllCallbackDataResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllCallbackDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.CallbackData) > 0 { - for iNdEx := len(m.CallbackData) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CallbackData[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryGetCallbackDataRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CallbackKey) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetCallbackDataResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.CallbackData.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryAllCallbackDataRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryAllCallbackDataResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.CallbackData) > 0 { - for _, e := range m.CallbackData { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryParamsRequest) 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 ErrIntOverflowQuery - } - 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: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParamsResponse) 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 ErrIntOverflowQuery - } - 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: QueryParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetCallbackDataRequest) 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 ErrIntOverflowQuery - } - 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: QueryGetCallbackDataRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetCallbackDataRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallbackKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CallbackKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetCallbackDataResponse) 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 ErrIntOverflowQuery - } - 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: QueryGetCallbackDataResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetCallbackDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallbackData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CallbackData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllCallbackDataRequest) 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 ErrIntOverflowQuery - } - 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: QueryAllCallbackDataRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllCallbackDataRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllCallbackDataResponse) 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 ErrIntOverflowQuery - } - 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: QueryAllCallbackDataResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllCallbackDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallbackData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CallbackData = append(m.CallbackData, CallbackData{}) - if err := m.CallbackData[len(m.CallbackData)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/icacallbacks/types/tx.pb.go b/x/icacallbacks/types/tx.pb.go deleted file mode 100644 index 9b186f0433..0000000000 --- a/x/icacallbacks/types/tx.pb.go +++ /dev/null @@ -1,81 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/icacallbacks/tx.proto - -package types - -import ( - context "context" - fmt "fmt" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - grpc "google.golang.org/grpc" - math "math" -) - -// 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 - -func init() { proto.RegisterFile("stride/icacallbacks/tx.proto", fileDescriptor_c4981fec5f7fee51) } - -var fileDescriptor_c4981fec5f7fee51 = []byte{ - // 135 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x29, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0xcf, 0x4c, 0x4e, 0x4c, 0x4e, 0xcc, 0xc9, 0x49, 0x4a, 0x4c, 0xce, 0x2e, 0xd6, - 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0xc8, 0xea, 0x21, 0xcb, 0x1a, - 0xb1, 0x72, 0x31, 0xfb, 0x16, 0xa7, 0x3b, 0xf9, 0x9f, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, - 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, - 0x1c, 0x43, 0x94, 0x69, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x30, - 0xd8, 0x00, 0x5d, 0x9f, 0xc4, 0xa4, 0x62, 0x7d, 0xa8, 0x55, 0x65, 0x66, 0xfa, 0x15, 0x68, 0xf6, - 0x55, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0xed, 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x90, - 0x28, 0xfd, 0xc3, 0x93, 0x00, 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 { -} - -type msgClient struct { - cc grpc1.ClientConn -} - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} -} - -// MsgServer is the server API for Msg service. -type MsgServer interface { -} - -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} - -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) -} - -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "stride.icacallbacks.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{}, - Metadata: "stride/icacallbacks/tx.proto", -} diff --git a/x/interchainquery/types/genesis.pb.go b/x/interchainquery/types/genesis.pb.go deleted file mode 100644 index 38cf14098a..0000000000 --- a/x/interchainquery/types/genesis.pb.go +++ /dev/null @@ -1,1172 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/interchainquery/v1/genesis.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -type Query struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` - ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - QueryType string `protobuf:"bytes,4,opt,name=query_type,json=queryType,proto3" json:"query_type,omitempty"` - Request []byte `protobuf:"bytes,5,opt,name=request,proto3" json:"request,omitempty"` - CallbackId string `protobuf:"bytes,8,opt,name=callback_id,json=callbackId,proto3" json:"callback_id,omitempty"` - Ttl uint64 `protobuf:"varint,9,opt,name=ttl,proto3" json:"ttl,omitempty"` - RequestSent bool `protobuf:"varint,11,opt,name=request_sent,json=requestSent,proto3" json:"request_sent,omitempty"` -} - -func (m *Query) Reset() { *m = Query{} } -func (m *Query) String() string { return proto.CompactTextString(m) } -func (*Query) ProtoMessage() {} -func (*Query) Descriptor() ([]byte, []int) { - return fileDescriptor_74cd646eb05658fd, []int{0} -} -func (m *Query) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Query.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 *Query) XXX_Merge(src proto.Message) { - xxx_messageInfo_Query.Merge(m, src) -} -func (m *Query) XXX_Size() int { - return m.Size() -} -func (m *Query) XXX_DiscardUnknown() { - xxx_messageInfo_Query.DiscardUnknown(m) -} - -var xxx_messageInfo_Query proto.InternalMessageInfo - -func (m *Query) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Query) GetConnectionId() string { - if m != nil { - return m.ConnectionId - } - return "" -} - -func (m *Query) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *Query) GetQueryType() string { - if m != nil { - return m.QueryType - } - return "" -} - -func (m *Query) GetRequest() []byte { - if m != nil { - return m.Request - } - return nil -} - -func (m *Query) GetCallbackId() string { - if m != nil { - return m.CallbackId - } - return "" -} - -func (m *Query) GetTtl() uint64 { - if m != nil { - return m.Ttl - } - return 0 -} - -func (m *Query) GetRequestSent() bool { - if m != nil { - return m.RequestSent - } - return false -} - -type DataPoint struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - RemoteHeight github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=remote_height,json=remoteHeight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"remote_height"` - LocalHeight github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=local_height,json=localHeight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"local_height"` - Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"result,omitempty"` -} - -func (m *DataPoint) Reset() { *m = DataPoint{} } -func (m *DataPoint) String() string { return proto.CompactTextString(m) } -func (*DataPoint) ProtoMessage() {} -func (*DataPoint) Descriptor() ([]byte, []int) { - return fileDescriptor_74cd646eb05658fd, []int{1} -} -func (m *DataPoint) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DataPoint.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 *DataPoint) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataPoint.Merge(m, src) -} -func (m *DataPoint) XXX_Size() int { - return m.Size() -} -func (m *DataPoint) XXX_DiscardUnknown() { - xxx_messageInfo_DataPoint.DiscardUnknown(m) -} - -var xxx_messageInfo_DataPoint proto.InternalMessageInfo - -func (m *DataPoint) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *DataPoint) GetValue() []byte { - if m != nil { - return m.Value - } - return nil -} - -// GenesisState defines the epochs module's genesis state. -type GenesisState struct { - Queries []Query `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries"` -} - -func (m *GenesisState) Reset() { *m = GenesisState{} } -func (m *GenesisState) String() string { return proto.CompactTextString(m) } -func (*GenesisState) ProtoMessage() {} -func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_74cd646eb05658fd, []int{2} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetQueries() []Query { - if m != nil { - return m.Queries - } - return nil -} - -func init() { - proto.RegisterType((*Query)(nil), "stride.interchainquery.v1.Query") - proto.RegisterType((*DataPoint)(nil), "stride.interchainquery.v1.DataPoint") - proto.RegisterType((*GenesisState)(nil), "stride.interchainquery.v1.GenesisState") -} - -func init() { - proto.RegisterFile("stride/interchainquery/v1/genesis.proto", fileDescriptor_74cd646eb05658fd) -} - -var fileDescriptor_74cd646eb05658fd = []byte{ - // 492 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x52, 0x4f, 0x8b, 0xd3, 0x40, - 0x14, 0xef, 0xf4, 0x8f, 0x6d, 0xa7, 0x59, 0x59, 0x86, 0x3d, 0xa4, 0x0b, 0xa6, 0xb1, 0x82, 0x16, - 0xb1, 0x09, 0xab, 0x20, 0x1e, 0x3c, 0x48, 0x11, 0x34, 0xe0, 0x61, 0x4d, 0x3d, 0x79, 0x09, 0xd3, - 0x64, 0x48, 0x87, 0x4d, 0x66, 0xba, 0x99, 0x97, 0x62, 0x3f, 0x83, 0x17, 0x3f, 0x8c, 0x1f, 0x62, - 0x8f, 0x8b, 0x27, 0xf1, 0x50, 0xa4, 0x05, 0x0f, 0x7e, 0x0a, 0xc9, 0x4c, 0x8a, 0xe2, 0xe2, 0xcd, - 0x53, 0xe6, 0xbd, 0xdf, 0x7b, 0xbf, 0xf7, 0x7e, 0x2f, 0x3f, 0xfc, 0x40, 0x41, 0xc1, 0x13, 0xe6, - 0x73, 0x01, 0xac, 0x88, 0x97, 0x94, 0x8b, 0xcb, 0x92, 0x15, 0x1b, 0x7f, 0x7d, 0xe6, 0xa7, 0x4c, - 0x30, 0xc5, 0x95, 0xb7, 0x2a, 0x24, 0x48, 0x32, 0x34, 0x85, 0xde, 0x5f, 0x85, 0xde, 0xfa, 0xec, - 0xf4, 0x24, 0x95, 0xa9, 0xd4, 0x55, 0x7e, 0xf5, 0x32, 0x0d, 0xa7, 0xc3, 0x58, 0xaa, 0x5c, 0xaa, - 0xc8, 0x00, 0x26, 0x30, 0xd0, 0xf8, 0x07, 0xc2, 0x9d, 0xb7, 0x55, 0x37, 0xb9, 0x8d, 0x9b, 0x3c, - 0xb1, 0x91, 0x8b, 0x26, 0xfd, 0xb0, 0xc9, 0x13, 0x72, 0x0f, 0x1f, 0xc5, 0x52, 0x08, 0x16, 0x03, - 0x97, 0x22, 0xe2, 0x89, 0xdd, 0xd4, 0x90, 0xf5, 0x3b, 0x19, 0x24, 0x64, 0x88, 0x7b, 0x7a, 0x81, - 0x0a, 0x6f, 0x69, 0xbc, 0xab, 0xe3, 0x20, 0x21, 0x77, 0x30, 0xd6, 0x6b, 0x45, 0xb0, 0x59, 0x31, - 0xbb, 0xad, 0xc1, 0xbe, 0xce, 0xbc, 0xdb, 0xac, 0x18, 0xb1, 0x71, 0xb7, 0x60, 0x97, 0x25, 0x53, - 0x60, 0x77, 0x5c, 0x34, 0xb1, 0xc2, 0x43, 0x48, 0x46, 0x78, 0x10, 0xd3, 0x2c, 0x5b, 0xd0, 0xf8, - 0xa2, 0xa2, 0xed, 0xe9, 0x4e, 0x7c, 0x48, 0x05, 0x09, 0x39, 0xc6, 0x2d, 0x80, 0xcc, 0xee, 0xbb, - 0x68, 0xd2, 0x0e, 0xab, 0x27, 0xb9, 0x8b, 0xad, 0xba, 0x3b, 0x52, 0x4c, 0x80, 0x3d, 0x70, 0xd1, - 0xa4, 0x17, 0x0e, 0xea, 0xdc, 0x9c, 0x09, 0x18, 0x7f, 0x6c, 0xe2, 0xfe, 0x4b, 0x0a, 0xf4, 0x5c, - 0x72, 0x01, 0x37, 0xc4, 0x52, 0x7c, 0x54, 0xb0, 0x5c, 0x02, 0x8b, 0x96, 0x8c, 0xa7, 0x4b, 0x30, - 0x62, 0x67, 0xcf, 0xaf, 0xb6, 0xa3, 0xc6, 0xb7, 0xed, 0xe8, 0x7e, 0xca, 0x61, 0x59, 0x2e, 0xbc, - 0x58, 0xe6, 0xf5, 0xf9, 0xea, 0xcf, 0x54, 0x25, 0x17, 0x7e, 0x25, 0x50, 0x79, 0x81, 0x80, 0x2f, - 0x9f, 0xa7, 0xb8, 0xbe, 0x6e, 0x20, 0x20, 0xb4, 0x0c, 0xe5, 0x6b, 0xcd, 0x48, 0x22, 0x6c, 0x65, - 0x32, 0xa6, 0xd9, 0x61, 0x42, 0xeb, 0x3f, 0x4c, 0x18, 0x68, 0xc6, 0x7a, 0xc0, 0x43, 0xdc, 0x59, - 0xd3, 0xac, 0x34, 0xb7, 0xb6, 0x66, 0x27, 0x3f, 0xb7, 0xa3, 0xe3, 0x82, 0xa9, 0x32, 0x83, 0x47, - 0x32, 0xe7, 0xc0, 0xf2, 0x15, 0x6c, 0x42, 0x53, 0x32, 0x3e, 0xc7, 0xd6, 0x2b, 0xe3, 0xa9, 0x39, - 0x50, 0x60, 0xe4, 0x05, 0xee, 0x56, 0xbf, 0x86, 0x33, 0x65, 0x23, 0xb7, 0x35, 0x19, 0x3c, 0x76, - 0xbd, 0x7f, 0x9a, 0xcc, 0xd3, 0x7e, 0x99, 0xb5, 0xab, 0xcd, 0xc3, 0x43, 0xdb, 0x2c, 0xbc, 0xda, - 0x39, 0xe8, 0x7a, 0xe7, 0xa0, 0xef, 0x3b, 0x07, 0x7d, 0xda, 0x3b, 0x8d, 0xeb, 0xbd, 0xd3, 0xf8, - 0xba, 0x77, 0x1a, 0xef, 0x9f, 0xfd, 0x21, 0x6d, 0xae, 0x49, 0xa7, 0x6f, 0xe8, 0x42, 0xf9, 0xb5, - 0xdd, 0xd7, 0x4f, 0xfd, 0x0f, 0x37, 0x3c, 0xaf, 0x05, 0x2f, 0x6e, 0x69, 0x8f, 0x3e, 0xf9, 0x15, - 0x00, 0x00, 0xff, 0xff, 0x04, 0x1f, 0x57, 0xfb, 0x1a, 0x03, 0x00, 0x00, -} - -func (m *Query) 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 *Query) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Query) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RequestSent { - i-- - if m.RequestSent { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x58 - } - if m.Ttl != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.Ttl)) - i-- - dAtA[i] = 0x48 - } - if len(m.CallbackId) > 0 { - i -= len(m.CallbackId) - copy(dAtA[i:], m.CallbackId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.CallbackId))) - i-- - dAtA[i] = 0x42 - } - if len(m.Request) > 0 { - i -= len(m.Request) - copy(dAtA[i:], m.Request) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Request))) - i-- - dAtA[i] = 0x2a - } - if len(m.QueryType) > 0 { - i -= len(m.QueryType) - copy(dAtA[i:], m.QueryType) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.QueryType))) - i-- - dAtA[i] = 0x22 - } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0x1a - } - if len(m.ConnectionId) > 0 { - i -= len(m.ConnectionId) - copy(dAtA[i:], m.ConnectionId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.ConnectionId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DataPoint) 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 *DataPoint) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x22 - } - { - size := m.LocalHeight.Size() - i -= size - if _, err := m.LocalHeight.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size := m.RemoteHeight.Size() - i -= size - if _, err := m.RemoteHeight.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Queries) > 0 { - for iNdEx := len(m.Queries) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Queries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Query) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.ConnectionId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.QueryType) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.Request) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.CallbackId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if m.Ttl != 0 { - n += 1 + sovGenesis(uint64(m.Ttl)) - } - if m.RequestSent { - n += 2 - } - return n -} - -func (m *DataPoint) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = m.RemoteHeight.Size() - n += 1 + l + sovGenesis(uint64(l)) - l = m.LocalHeight.Size() - n += 1 + l + sovGenesis(uint64(l)) - l = len(m.Value) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - return n -} - -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Queries) > 0 { - for _, e := range m.Queries { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Query) 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 ErrIntOverflowGenesis - } - 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: Query: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Query: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConnectionId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.QueryType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Request = append(m.Request[:0], dAtA[iNdEx:postIndex]...) - if m.Request == nil { - m.Request = []byte{} - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallbackId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CallbackId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Ttl", wireType) - } - m.Ttl = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Ttl |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestSent", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RequestSent = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DataPoint) 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 ErrIntOverflowGenesis - } - 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: DataPoint: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DataPoint: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RemoteHeight", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RemoteHeight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LocalHeight", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LocalHeight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) - if m.Value == nil { - m.Value = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GenesisState) 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 ErrIntOverflowGenesis - } - 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: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queries", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queries = append(m.Queries, Query{}) - if err := m.Queries[len(m.Queries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/interchainquery/types/messages.pb.go b/x/interchainquery/types/messages.pb.go deleted file mode 100644 index 086676845e..0000000000 --- a/x/interchainquery/types/messages.pb.go +++ /dev/null @@ -1,759 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/interchainquery/v1/messages.proto - -package types - -import ( - context "context" - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - crypto "github.com/tendermint/tendermint/proto/tendermint/crypto" - _ "google.golang.org/genproto/googleapis/api/annotations" - 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 - -// MsgSubmitQueryResponse represents a message type to fulfil a query request. -type MsgSubmitQueryResponse struct { - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"` - QueryId string `protobuf:"bytes,2,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty" yaml:"query_id"` - Result []byte `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty" yaml:"result"` - ProofOps *crypto.ProofOps `protobuf:"bytes,4,opt,name=proof_ops,json=proofOps,proto3" json:"proof_ops,omitempty" yaml:"proof_ops"` - Height int64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty" yaml:"height"` - FromAddress string `protobuf:"bytes,6,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` -} - -func (m *MsgSubmitQueryResponse) Reset() { *m = MsgSubmitQueryResponse{} } -func (m *MsgSubmitQueryResponse) String() string { return proto.CompactTextString(m) } -func (*MsgSubmitQueryResponse) ProtoMessage() {} -func (*MsgSubmitQueryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_25adad4f8ed32400, []int{0} -} -func (m *MsgSubmitQueryResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgSubmitQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgSubmitQueryResponse.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 *MsgSubmitQueryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSubmitQueryResponse.Merge(m, src) -} -func (m *MsgSubmitQueryResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgSubmitQueryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSubmitQueryResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgSubmitQueryResponse proto.InternalMessageInfo - -// MsgSubmitQueryResponseResponse defines the MsgSubmitQueryResponse response -// type. -type MsgSubmitQueryResponseResponse struct { -} - -func (m *MsgSubmitQueryResponseResponse) Reset() { *m = MsgSubmitQueryResponseResponse{} } -func (m *MsgSubmitQueryResponseResponse) String() string { return proto.CompactTextString(m) } -func (*MsgSubmitQueryResponseResponse) ProtoMessage() {} -func (*MsgSubmitQueryResponseResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_25adad4f8ed32400, []int{1} -} -func (m *MsgSubmitQueryResponseResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgSubmitQueryResponseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgSubmitQueryResponseResponse.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 *MsgSubmitQueryResponseResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSubmitQueryResponseResponse.Merge(m, src) -} -func (m *MsgSubmitQueryResponseResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgSubmitQueryResponseResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSubmitQueryResponseResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgSubmitQueryResponseResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*MsgSubmitQueryResponse)(nil), "stride.interchainquery.v1.MsgSubmitQueryResponse") - proto.RegisterType((*MsgSubmitQueryResponseResponse)(nil), "stride.interchainquery.v1.MsgSubmitQueryResponseResponse") -} - -func init() { - proto.RegisterFile("stride/interchainquery/v1/messages.proto", fileDescriptor_25adad4f8ed32400) -} - -var fileDescriptor_25adad4f8ed32400 = []byte{ - // 512 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x3f, 0x8f, 0xd3, 0x3e, - 0x18, 0xc7, 0xeb, 0xf6, 0xf7, 0xeb, 0xdd, 0xe5, 0x8a, 0x80, 0x5c, 0x85, 0x72, 0x05, 0x92, 0xca, - 0x0b, 0x05, 0x71, 0xb6, 0x5a, 0x24, 0x04, 0x65, 0xa2, 0xdb, 0x49, 0x1c, 0x7f, 0xd2, 0x8d, 0xa5, - 0x4a, 0x1a, 0x9f, 0x6b, 0xa9, 0x89, 0x83, 0xed, 0x56, 0xd7, 0x95, 0x89, 0x11, 0x89, 0x85, 0xb1, - 0x2f, 0x02, 0x89, 0x91, 0x95, 0xf1, 0x04, 0x0b, 0x53, 0x85, 0x5a, 0x06, 0x58, 0xfb, 0x0a, 0x50, - 0xec, 0x04, 0xd0, 0x5d, 0x19, 0x98, 0xfc, 0xe4, 0xf9, 0x7e, 0x9e, 0x7f, 0xf1, 0x63, 0xab, 0x25, - 0x95, 0x60, 0x11, 0xc1, 0x2c, 0x51, 0x44, 0x0c, 0x47, 0x01, 0x4b, 0x5e, 0x4c, 0x88, 0x98, 0xe1, - 0x69, 0x1b, 0xc7, 0x44, 0xca, 0x80, 0x12, 0x89, 0x52, 0xc1, 0x15, 0xb7, 0xf7, 0x0d, 0x89, 0xce, - 0x90, 0x68, 0xda, 0x6e, 0xd4, 0x29, 0xa7, 0x5c, 0x53, 0x38, 0xb3, 0x4c, 0x40, 0x63, 0x7f, 0xc8, - 0x65, 0xcc, 0xe5, 0xc0, 0x08, 0xe6, 0x23, 0x97, 0xae, 0x51, 0xce, 0xe9, 0x98, 0xe0, 0x20, 0x65, - 0x38, 0x48, 0x12, 0xae, 0x02, 0xc5, 0x78, 0x52, 0xa8, 0xd7, 0x15, 0x49, 0x22, 0x22, 0x62, 0x96, - 0x28, 0x3c, 0x14, 0xb3, 0x54, 0x71, 0x9c, 0x0a, 0xce, 0x8f, 0x8d, 0x0c, 0x7f, 0x94, 0xad, 0x2b, - 0x47, 0x92, 0xf6, 0x27, 0x61, 0xcc, 0xd4, 0xb3, 0xac, 0x07, 0x9f, 0xc8, 0x94, 0x27, 0x92, 0xd8, - 0xc8, 0xda, 0xd6, 0x9d, 0x0d, 0x58, 0xe4, 0x80, 0x26, 0x68, 0xed, 0xf4, 0xf6, 0xd6, 0x0b, 0xef, - 0xe2, 0x2c, 0x88, 0xc7, 0x5d, 0x58, 0x28, 0xd0, 0xdf, 0xd2, 0xe6, 0x61, 0x94, 0xf1, 0x7a, 0x88, - 0x8c, 0x2f, 0x9f, 0xe5, 0x0b, 0x05, 0xfa, 0x5b, 0xda, 0x3c, 0x8c, 0xec, 0x9b, 0x56, 0x55, 0x10, - 0x39, 0x19, 0x2b, 0xa7, 0xd2, 0x04, 0xad, 0x5a, 0xef, 0xf2, 0x7a, 0xe1, 0x5d, 0x30, 0xb4, 0xf1, - 0x43, 0x3f, 0x07, 0xec, 0xc7, 0xd6, 0x8e, 0x6e, 0x7a, 0xc0, 0x53, 0xe9, 0xfc, 0xd7, 0x04, 0xad, - 0xdd, 0xce, 0x55, 0xf4, 0x7b, 0x30, 0x64, 0x06, 0x43, 0x4f, 0x33, 0xe6, 0x49, 0x2a, 0x7b, 0xf5, - 0xf5, 0xc2, 0xbb, 0x64, 0x52, 0xfd, 0x8a, 0x83, 0xfe, 0x76, 0x9a, 0xeb, 0x59, 0xe9, 0x11, 0x61, - 0x74, 0xa4, 0x9c, 0xff, 0x9b, 0xa0, 0x55, 0xf9, 0xb3, 0xb4, 0xf1, 0x43, 0x3f, 0x07, 0xec, 0x07, - 0x56, 0xed, 0x58, 0xf0, 0x78, 0x10, 0x44, 0x91, 0x20, 0x52, 0x3a, 0x55, 0x3d, 0x99, 0xf3, 0xe9, - 0xdd, 0x41, 0x3d, 0xbf, 0x85, 0x87, 0x46, 0xe9, 0x2b, 0xc1, 0x12, 0xea, 0xef, 0x66, 0x74, 0xee, - 0xea, 0xd6, 0x5e, 0xcd, 0xbd, 0xd2, 0xdb, 0xb9, 0x07, 0xbe, 0xcf, 0xbd, 0x12, 0x6c, 0x5a, 0xee, - 0xe6, 0x5f, 0x5d, 0x9c, 0x9d, 0x0f, 0xc0, 0xaa, 0x1c, 0x49, 0x6a, 0xbf, 0x07, 0xd6, 0xde, 0xa6, - 0x2b, 0x69, 0xa3, 0xbf, 0xee, 0x0d, 0xda, 0x9c, 0xba, 0x71, 0xff, 0x9f, 0x43, 0x8a, 0x13, 0x76, - 0x5e, 0x7e, 0xfe, 0xf6, 0xa6, 0x7c, 0x1b, 0xde, 0x38, 0xb7, 0xd0, 0xea, 0x04, 0x4f, 0xdb, 0x21, - 0x51, 0x41, 0x1b, 0x4b, 0x9d, 0x40, 0xbb, 0xbb, 0xe0, 0x56, 0xcf, 0xff, 0xb8, 0x74, 0xc1, 0xe9, - 0xd2, 0x05, 0x5f, 0x97, 0x2e, 0x78, 0xbd, 0x72, 0x4b, 0xa7, 0x2b, 0xb7, 0xf4, 0x65, 0xe5, 0x96, - 0x9e, 0xdf, 0xa3, 0x4c, 0x8d, 0x26, 0x21, 0x1a, 0xf2, 0x18, 0xf7, 0x75, 0x4b, 0x07, 0x8f, 0x82, - 0x50, 0xe2, 0xfc, 0xcd, 0x4c, 0xef, 0xe2, 0x93, 0xf3, 0x75, 0x66, 0x29, 0x91, 0x61, 0x55, 0xaf, - 0xea, 0x9d, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x0e, 0x52, 0xe8, 0xca, 0x5f, 0x03, 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 { - // SubmitQueryResponse defines a method for submit query responses. - SubmitQueryResponse(ctx context.Context, in *MsgSubmitQueryResponse, opts ...grpc.CallOption) (*MsgSubmitQueryResponseResponse, error) -} - -type msgClient struct { - cc grpc1.ClientConn -} - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} -} - -func (c *msgClient) SubmitQueryResponse(ctx context.Context, in *MsgSubmitQueryResponse, opts ...grpc.CallOption) (*MsgSubmitQueryResponseResponse, error) { - out := new(MsgSubmitQueryResponseResponse) - err := c.cc.Invoke(ctx, "/stride.interchainquery.v1.Msg/SubmitQueryResponse", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MsgServer is the server API for Msg service. -type MsgServer interface { - // SubmitQueryResponse defines a method for submit query responses. - SubmitQueryResponse(context.Context, *MsgSubmitQueryResponse) (*MsgSubmitQueryResponseResponse, error) -} - -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} - -func (*UnimplementedMsgServer) SubmitQueryResponse(ctx context.Context, req *MsgSubmitQueryResponse) (*MsgSubmitQueryResponseResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SubmitQueryResponse not implemented") -} - -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) -} - -func _Msg_SubmitQueryResponse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSubmitQueryResponse) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SubmitQueryResponse(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.interchainquery.v1.Msg/SubmitQueryResponse", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SubmitQueryResponse(ctx, req.(*MsgSubmitQueryResponse)) - } - return interceptor(ctx, in, info, handler) -} - -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "stride.interchainquery.v1.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "SubmitQueryResponse", - Handler: _Msg_SubmitQueryResponse_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "stride/interchainquery/v1/messages.proto", -} - -func (m *MsgSubmitQueryResponse) 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 *MsgSubmitQueryResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgSubmitQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.FromAddress) > 0 { - i -= len(m.FromAddress) - copy(dAtA[i:], m.FromAddress) - i = encodeVarintMessages(dAtA, i, uint64(len(m.FromAddress))) - i-- - dAtA[i] = 0x32 - } - if m.Height != 0 { - i = encodeVarintMessages(dAtA, i, uint64(m.Height)) - i-- - dAtA[i] = 0x28 - } - if m.ProofOps != nil { - { - size, err := m.ProofOps.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMessages(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Result) > 0 { - i -= len(m.Result) - copy(dAtA[i:], m.Result) - i = encodeVarintMessages(dAtA, i, uint64(len(m.Result))) - i-- - dAtA[i] = 0x1a - } - if len(m.QueryId) > 0 { - i -= len(m.QueryId) - copy(dAtA[i:], m.QueryId) - i = encodeVarintMessages(dAtA, i, uint64(len(m.QueryId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintMessages(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgSubmitQueryResponseResponse) 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 *MsgSubmitQueryResponseResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgSubmitQueryResponseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintMessages(dAtA []byte, offset int, v uint64) int { - offset -= sovMessages(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *MsgSubmitQueryResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovMessages(uint64(l)) - } - l = len(m.QueryId) - if l > 0 { - n += 1 + l + sovMessages(uint64(l)) - } - l = len(m.Result) - if l > 0 { - n += 1 + l + sovMessages(uint64(l)) - } - if m.ProofOps != nil { - l = m.ProofOps.Size() - n += 1 + l + sovMessages(uint64(l)) - } - if m.Height != 0 { - n += 1 + sovMessages(uint64(m.Height)) - } - l = len(m.FromAddress) - if l > 0 { - n += 1 + l + sovMessages(uint64(l)) - } - return n -} - -func (m *MsgSubmitQueryResponseResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovMessages(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozMessages(x uint64) (n int) { - return sovMessages(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *MsgSubmitQueryResponse) 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 ErrIntOverflowMessages - } - 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: MsgSubmitQueryResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSubmitQueryResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - 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 ErrInvalidLengthMessages - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMessages - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - 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 ErrInvalidLengthMessages - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMessages - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.QueryId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMessages - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMessages - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Result = append(m.Result[:0], dAtA[iNdEx:postIndex]...) - if m.Result == nil { - m.Result = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProofOps", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMessages - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMessages - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ProofOps == nil { - m.ProofOps = &crypto.ProofOps{} - } - if err := m.ProofOps.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - m.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Height |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FromAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessages - } - 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 ErrInvalidLengthMessages - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMessages - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FromAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMessages(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMessages - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgSubmitQueryResponseResponse) 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 ErrIntOverflowMessages - } - 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: MsgSubmitQueryResponseResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSubmitQueryResponseResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipMessages(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMessages - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipMessages(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, ErrIntOverflowMessages - } - 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, ErrIntOverflowMessages - } - 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, ErrIntOverflowMessages - } - 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, ErrInvalidLengthMessages - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupMessages - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthMessages - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthMessages = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMessages = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupMessages = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/interchainquery/types/query.pb.go b/x/interchainquery/types/query.pb.go deleted file mode 100644 index 4a041a0f20..0000000000 --- a/x/interchainquery/types/query.pb.go +++ /dev/null @@ -1,543 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/interchainquery/v1/query.proto - -package types - -import ( - context "context" - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - 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 - -type QueryPendingQueriesRequest struct { -} - -func (m *QueryPendingQueriesRequest) Reset() { *m = QueryPendingQueriesRequest{} } -func (m *QueryPendingQueriesRequest) String() string { return proto.CompactTextString(m) } -func (*QueryPendingQueriesRequest) ProtoMessage() {} -func (*QueryPendingQueriesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b720c147b9144d5b, []int{0} -} -func (m *QueryPendingQueriesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryPendingQueriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryPendingQueriesRequest.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 *QueryPendingQueriesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPendingQueriesRequest.Merge(m, src) -} -func (m *QueryPendingQueriesRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryPendingQueriesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPendingQueriesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryPendingQueriesRequest proto.InternalMessageInfo - -type QueryPendingQueriesResponse struct { - PendingQueries []Query `protobuf:"bytes,1,rep,name=pending_queries,json=pendingQueries,proto3" json:"pending_queries"` -} - -func (m *QueryPendingQueriesResponse) Reset() { *m = QueryPendingQueriesResponse{} } -func (m *QueryPendingQueriesResponse) String() string { return proto.CompactTextString(m) } -func (*QueryPendingQueriesResponse) ProtoMessage() {} -func (*QueryPendingQueriesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b720c147b9144d5b, []int{1} -} -func (m *QueryPendingQueriesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryPendingQueriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryPendingQueriesResponse.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 *QueryPendingQueriesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPendingQueriesResponse.Merge(m, src) -} -func (m *QueryPendingQueriesResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryPendingQueriesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPendingQueriesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryPendingQueriesResponse proto.InternalMessageInfo - -func (m *QueryPendingQueriesResponse) GetPendingQueries() []Query { - if m != nil { - return m.PendingQueries - } - return nil -} - -func init() { - proto.RegisterType((*QueryPendingQueriesRequest)(nil), "stride.interchainquery.v1.QueryPendingQueriesRequest") - proto.RegisterType((*QueryPendingQueriesResponse)(nil), "stride.interchainquery.v1.QueryPendingQueriesResponse") -} - -func init() { - proto.RegisterFile("stride/interchainquery/v1/query.proto", fileDescriptor_b720c147b9144d5b) -} - -var fileDescriptor_b720c147b9144d5b = []byte{ - // 313 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2d, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0x4a, 0xce, 0x48, 0xcc, 0xcc, 0x2b, 0x2c, 0x4d, - 0x2d, 0xaa, 0xd4, 0x2f, 0x33, 0xd4, 0x07, 0x33, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x24, - 0x21, 0xca, 0xf4, 0xd0, 0x94, 0xe9, 0x95, 0x19, 0x4a, 0xa9, 0xe3, 0x36, 0x21, 0x3d, 0x35, 0x2f, - 0xb5, 0x38, 0xb3, 0x18, 0x62, 0x86, 0x94, 0x4c, 0x7a, 0x7e, 0x7e, 0x7a, 0x4e, 0xaa, 0x7e, 0x62, - 0x41, 0xa6, 0x7e, 0x62, 0x5e, 0x5e, 0x7e, 0x49, 0x62, 0x49, 0x66, 0x7e, 0x1e, 0x4c, 0x56, 0x24, - 0x3d, 0x3f, 0x3d, 0x1f, 0xcc, 0xd4, 0x07, 0xb1, 0x20, 0xa2, 0x4a, 0x32, 0x5c, 0x52, 0x81, 0x20, - 0xd3, 0x02, 0x52, 0xf3, 0x52, 0x32, 0xf3, 0xd2, 0x41, 0xec, 0xcc, 0xd4, 0xe2, 0xa0, 0xd4, 0xc2, - 0xd2, 0xd4, 0xe2, 0x12, 0xa5, 0x3c, 0x2e, 0x69, 0xac, 0xb2, 0xc5, 0x05, 0xf9, 0x79, 0xc5, 0xa9, - 0x42, 0xfe, 0x5c, 0xfc, 0x05, 0x10, 0x99, 0xf8, 0x42, 0x88, 0x94, 0x04, 0xa3, 0x02, 0xb3, 0x06, - 0xb7, 0x91, 0x82, 0x1e, 0x4e, 0xef, 0xe8, 0x81, 0x0d, 0x74, 0x62, 0x39, 0x71, 0x4f, 0x9e, 0x21, - 0x88, 0xaf, 0x00, 0xc5, 0x60, 0xa3, 0xb3, 0x8c, 0x5c, 0x3c, 0x60, 0xf9, 0xe0, 0xd4, 0xa2, 0xb2, - 0xcc, 0xe4, 0x54, 0xa1, 0x3d, 0x8c, 0x5c, 0x7c, 0xa8, 0x96, 0x0b, 0x99, 0x12, 0x32, 0x1b, 0xab, - 0x57, 0xa4, 0xcc, 0x48, 0xd5, 0x06, 0xf1, 0xa3, 0x92, 0x75, 0xd3, 0xe5, 0x27, 0x93, 0x99, 0x4c, - 0x85, 0x8c, 0xf5, 0x83, 0xc1, 0xfa, 0x75, 0x7d, 0x12, 0x93, 0x8a, 0xf5, 0x71, 0x44, 0x09, 0x5a, - 0x68, 0x38, 0x05, 0x9d, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, - 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x45, 0x7a, - 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0x2e, 0x36, 0x83, 0xcb, 0xcc, 0xf4, 0x2b, 0x30, - 0x4c, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x47, 0x9c, 0x31, 0x20, 0x00, 0x00, 0xff, - 0xff, 0x29, 0x11, 0x53, 0x55, 0x59, 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 - -// QueryServiceClient is the client API for QueryService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryServiceClient interface { - PendingQueries(ctx context.Context, in *QueryPendingQueriesRequest, opts ...grpc.CallOption) (*QueryPendingQueriesResponse, error) -} - -type queryServiceClient struct { - cc grpc1.ClientConn -} - -func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { - return &queryServiceClient{cc} -} - -func (c *queryServiceClient) PendingQueries(ctx context.Context, in *QueryPendingQueriesRequest, opts ...grpc.CallOption) (*QueryPendingQueriesResponse, error) { - out := new(QueryPendingQueriesResponse) - err := c.cc.Invoke(ctx, "/stride.interchainquery.v1.QueryService/PendingQueries", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServiceServer is the server API for QueryService service. -type QueryServiceServer interface { - PendingQueries(context.Context, *QueryPendingQueriesRequest) (*QueryPendingQueriesResponse, error) -} - -// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServiceServer struct { -} - -func (*UnimplementedQueryServiceServer) PendingQueries(ctx context.Context, req *QueryPendingQueriesRequest) (*QueryPendingQueriesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PendingQueries not implemented") -} - -func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { - s.RegisterService(&_QueryService_serviceDesc, srv) -} - -func _QueryService_PendingQueries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryPendingQueriesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).PendingQueries(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.interchainquery.v1.QueryService/PendingQueries", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).PendingQueries(ctx, req.(*QueryPendingQueriesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _QueryService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "stride.interchainquery.v1.QueryService", - HandlerType: (*QueryServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "PendingQueries", - Handler: _QueryService_PendingQueries_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "stride/interchainquery/v1/query.proto", -} - -func (m *QueryPendingQueriesRequest) 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 *QueryPendingQueriesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryPendingQueriesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryPendingQueriesResponse) 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 *QueryPendingQueriesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryPendingQueriesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PendingQueries) > 0 { - for iNdEx := len(m.PendingQueries) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PendingQueries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryPendingQueriesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryPendingQueriesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.PendingQueries) > 0 { - for _, e := range m.PendingQueries { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryPendingQueriesRequest) 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 ErrIntOverflowQuery - } - 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: QueryPendingQueriesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPendingQueriesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryPendingQueriesResponse) 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 ErrIntOverflowQuery - } - 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: QueryPendingQueriesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPendingQueriesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PendingQueries", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PendingQueries = append(m.PendingQueries, Query{}) - if err := m.PendingQueries[len(m.PendingQueries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/mint/types/genesis.pb.go b/x/mint/types/genesis.pb.go deleted file mode 100644 index b5e3080bfb..0000000000 --- a/x/mint/types/genesis.pb.go +++ /dev/null @@ -1,417 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/mint/v1beta1/genesis.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -// GenesisState defines the mint module's genesis state. -type GenesisState struct { - // minter is a space for holding current rewards information. - Minter Minter `protobuf:"bytes,1,opt,name=minter,proto3" json:"minter"` - // params defines all the paramaters of the module. - Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` - // current reduction period start epoch - ReductionStartedEpoch int64 `protobuf:"varint,3,opt,name=reduction_started_epoch,json=reductionStartedEpoch,proto3" json:"reduction_started_epoch,omitempty" yaml:"reduction_started_epoch"` -} - -func (m *GenesisState) Reset() { *m = GenesisState{} } -func (m *GenesisState) String() string { return proto.CompactTextString(m) } -func (*GenesisState) ProtoMessage() {} -func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_f4521d63f51851f3, []int{0} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetMinter() Minter { - if m != nil { - return m.Minter - } - return Minter{} -} - -func (m *GenesisState) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func (m *GenesisState) GetReductionStartedEpoch() int64 { - if m != nil { - return m.ReductionStartedEpoch - } - return 0 -} - -func init() { - proto.RegisterType((*GenesisState)(nil), "stride.mint.v1beta1.GenesisState") -} - -func init() { proto.RegisterFile("stride/mint/v1beta1/genesis.proto", fileDescriptor_f4521d63f51851f3) } - -var fileDescriptor_f4521d63f51851f3 = []byte{ - // 282 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0xcf, 0xcd, 0xcc, 0x2b, 0xd1, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, - 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, - 0x28, 0xd1, 0x03, 0x29, 0xd1, 0x83, 0x2a, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xcb, 0xeb, - 0x83, 0x58, 0x10, 0xa5, 0x52, 0x72, 0xd8, 0x4c, 0x03, 0xeb, 0x03, 0xcb, 0x2b, 0x3d, 0x60, 0xe4, - 0xe2, 0x71, 0x87, 0x18, 0x1e, 0x5c, 0x92, 0x58, 0x92, 0x2a, 0x64, 0xc9, 0xc5, 0x06, 0x92, 0x4e, - 0x2d, 0x92, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x36, 0x92, 0xd6, 0xc3, 0x62, 0x99, 0x9e, 0x2f, 0x58, - 0x89, 0x13, 0xcb, 0x89, 0x7b, 0xf2, 0x0c, 0x41, 0x50, 0x0d, 0x20, 0xad, 0x05, 0x89, 0x45, 0x89, - 0xb9, 0xc5, 0x12, 0x4c, 0x78, 0xb4, 0x06, 0x80, 0x95, 0xc0, 0xb4, 0x42, 0x34, 0x08, 0x45, 0x71, - 0x89, 0x17, 0xa5, 0xa6, 0x94, 0x26, 0x97, 0x64, 0xe6, 0xe7, 0xc5, 0x17, 0x97, 0x24, 0x16, 0x95, - 0xa4, 0xa6, 0xc4, 0xa7, 0x16, 0xe4, 0x27, 0x67, 0x48, 0x30, 0x2b, 0x30, 0x6a, 0x30, 0x3b, 0x29, - 0x7d, 0xba, 0x27, 0x2f, 0x57, 0x99, 0x98, 0x9b, 0x63, 0xa5, 0x84, 0x43, 0xa1, 0x52, 0x90, 0x28, - 0x5c, 0x26, 0x18, 0x22, 0xe1, 0x0a, 0x12, 0x77, 0x72, 0x3f, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, - 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, - 0x63, 0x39, 0x86, 0x28, 0xdd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, - 0x60, 0xb0, 0x53, 0x75, 0x7d, 0x12, 0x93, 0x8a, 0xf5, 0xa1, 0x61, 0x56, 0x66, 0xa6, 0x5f, 0x01, - 0x09, 0xb8, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0x70, 0x90, 0x19, 0x03, 0x02, 0x00, 0x00, - 0xff, 0xff, 0xa7, 0xee, 0xff, 0xcb, 0xa2, 0x01, 0x00, 0x00, -} - -func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ReductionStartedEpoch != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.ReductionStartedEpoch)) - i-- - dAtA[i] = 0x18 - } - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.Minter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Minter.Size() - n += 1 + l + sovGenesis(uint64(l)) - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) - if m.ReductionStartedEpoch != 0 { - n += 1 + sovGenesis(uint64(m.ReductionStartedEpoch)) - } - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GenesisState) 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 ErrIntOverflowGenesis - } - 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: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Minter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Minter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReductionStartedEpoch", wireType) - } - m.ReductionStartedEpoch = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReductionStartedEpoch |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/mint/types/mint.pb.go b/x/mint/types/mint.pb.go deleted file mode 100644 index 961185d399..0000000000 --- a/x/mint/types/mint.pb.go +++ /dev/null @@ -1,1105 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/mint/v1beta1/mint.proto - -package types - -import ( - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -// Minter represents the minting state. -type Minter struct { - // current epoch provisions - EpochProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=epoch_provisions,json=epochProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"epoch_provisions" yaml:"epoch_provisions"` -} - -func (m *Minter) Reset() { *m = Minter{} } -func (m *Minter) String() string { return proto.CompactTextString(m) } -func (*Minter) ProtoMessage() {} -func (*Minter) Descriptor() ([]byte, []int) { - return fileDescriptor_5ad5fa4b1fdb702f, []int{0} -} -func (m *Minter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Minter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Minter.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 *Minter) XXX_Merge(src proto.Message) { - xxx_messageInfo_Minter.Merge(m, src) -} -func (m *Minter) XXX_Size() int { - return m.Size() -} -func (m *Minter) XXX_DiscardUnknown() { - xxx_messageInfo_Minter.DiscardUnknown(m) -} - -var xxx_messageInfo_Minter proto.InternalMessageInfo - -// next id: 5 -type DistributionProportions struct { - // staking defines the proportion of the minted minted_denom that is to be - // allocated as staking rewards. - Staking github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=staking,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"staking" yaml:"staking"` - // community_pool defines the proportion of the minted mint_denom that is - // to be allocated to the community pool: growth. - CommunityPoolGrowth github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=community_pool_growth,json=communityPoolGrowth,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"community_pool_growth" yaml:"community_pool"` - // community_pool defines the proportion of the minted mint_denom that is - // to be allocated to the community pool: security budget. - CommunityPoolSecurityBudget github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=community_pool_security_budget,json=communityPoolSecurityBudget,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"community_pool_security_budget" yaml:"community_pool"` - // strategic_reserve defines the proportion of the minted mint_denom that is - // to be allocated to the pool: strategic reserve. - StrategicReserve github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=strategic_reserve,json=strategicReserve,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"strategic_reserve" yaml:"community_pool"` -} - -func (m *DistributionProportions) Reset() { *m = DistributionProportions{} } -func (m *DistributionProportions) String() string { return proto.CompactTextString(m) } -func (*DistributionProportions) ProtoMessage() {} -func (*DistributionProportions) Descriptor() ([]byte, []int) { - return fileDescriptor_5ad5fa4b1fdb702f, []int{1} -} -func (m *DistributionProportions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DistributionProportions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DistributionProportions.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 *DistributionProportions) XXX_Merge(src proto.Message) { - xxx_messageInfo_DistributionProportions.Merge(m, src) -} -func (m *DistributionProportions) XXX_Size() int { - return m.Size() -} -func (m *DistributionProportions) XXX_DiscardUnknown() { - xxx_messageInfo_DistributionProportions.DiscardUnknown(m) -} - -var xxx_messageInfo_DistributionProportions proto.InternalMessageInfo - -// Params holds parameters for the mint module. -type Params struct { - // type of coin to mint - MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` - // epoch provisions from the first epoch - GenesisEpochProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=genesis_epoch_provisions,json=genesisEpochProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"genesis_epoch_provisions" yaml:"genesis_epoch_provisions"` - // mint epoch identifier - EpochIdentifier string `protobuf:"bytes,3,opt,name=epoch_identifier,json=epochIdentifier,proto3" json:"epoch_identifier,omitempty" yaml:"epoch_identifier"` - // number of epochs take to reduce rewards - ReductionPeriodInEpochs int64 `protobuf:"varint,4,opt,name=reduction_period_in_epochs,json=reductionPeriodInEpochs,proto3" json:"reduction_period_in_epochs,omitempty" yaml:"reduction_period_in_epochs"` - // reduction multiplier to execute on each period - ReductionFactor github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=reduction_factor,json=reductionFactor,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"reduction_factor" yaml:"reduction_factor"` - // distribution_proportions defines the proportion of the minted denom - DistributionProportions DistributionProportions `protobuf:"bytes,6,opt,name=distribution_proportions,json=distributionProportions,proto3" json:"distribution_proportions"` - // start epoch to distribute minting rewards - MintingRewardsDistributionStartEpoch int64 `protobuf:"varint,7,opt,name=minting_rewards_distribution_start_epoch,json=mintingRewardsDistributionStartEpoch,proto3" json:"minting_rewards_distribution_start_epoch,omitempty" yaml:"minting_rewards_distribution_start_epoch"` -} - -func (m *Params) Reset() { *m = Params{} } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_5ad5fa4b1fdb702f, []int{2} -} -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} -func (m *Params) XXX_Size() int { - return m.Size() -} -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -func (m *Params) GetMintDenom() string { - if m != nil { - return m.MintDenom - } - return "" -} - -func (m *Params) GetEpochIdentifier() string { - if m != nil { - return m.EpochIdentifier - } - return "" -} - -func (m *Params) GetReductionPeriodInEpochs() int64 { - if m != nil { - return m.ReductionPeriodInEpochs - } - return 0 -} - -func (m *Params) GetDistributionProportions() DistributionProportions { - if m != nil { - return m.DistributionProportions - } - return DistributionProportions{} -} - -func (m *Params) GetMintingRewardsDistributionStartEpoch() int64 { - if m != nil { - return m.MintingRewardsDistributionStartEpoch - } - return 0 -} - -func init() { - proto.RegisterType((*Minter)(nil), "stride.mint.v1beta1.Minter") - proto.RegisterType((*DistributionProportions)(nil), "stride.mint.v1beta1.DistributionProportions") - proto.RegisterType((*Params)(nil), "stride.mint.v1beta1.Params") -} - -func init() { proto.RegisterFile("stride/mint/v1beta1/mint.proto", fileDescriptor_5ad5fa4b1fdb702f) } - -var fileDescriptor_5ad5fa4b1fdb702f = []byte{ - // 632 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4d, 0x6f, 0xd3, 0x40, - 0x10, 0x8d, 0x69, 0x9b, 0xaa, 0x8b, 0x44, 0x8b, 0x4b, 0x89, 0xd5, 0x0a, 0xbb, 0x58, 0x80, 0x7a, - 0xa0, 0xb6, 0x4a, 0x25, 0x0e, 0x3d, 0xa1, 0xa8, 0xb4, 0x8a, 0x04, 0x52, 0x70, 0x6e, 0xbd, 0x58, - 0xfe, 0xd8, 0x3a, 0xab, 0xc6, 0xbb, 0xd6, 0xee, 0x3a, 0x25, 0x42, 0xe2, 0x0f, 0x94, 0x03, 0x47, - 0x8e, 0xfc, 0x9c, 0x1e, 0x7b, 0x44, 0x3d, 0x44, 0x28, 0xf9, 0x07, 0xb9, 0x70, 0x45, 0xbb, 0xeb, - 0x7c, 0x42, 0x24, 0x22, 0x7a, 0x8a, 0xf7, 0xcd, 0xec, 0xbc, 0x97, 0xb7, 0x33, 0x03, 0x4c, 0xc6, - 0x29, 0x8a, 0xa1, 0x9b, 0x22, 0xcc, 0xdd, 0xf6, 0x41, 0x08, 0x79, 0x70, 0x20, 0x0f, 0x4e, 0x46, - 0x09, 0x27, 0xfa, 0xa6, 0x8a, 0x3b, 0x12, 0x2a, 0xe2, 0xdb, 0x8f, 0x12, 0x92, 0x10, 0x19, 0x77, - 0xc5, 0x97, 0x4a, 0xb5, 0x3f, 0x83, 0xf2, 0x7b, 0x84, 0x39, 0xa4, 0x3a, 0x07, 0x1b, 0x30, 0x23, - 0x51, 0xd3, 0xcf, 0x28, 0x69, 0x23, 0x86, 0x08, 0x66, 0x86, 0xb6, 0xab, 0xed, 0xad, 0x55, 0x6b, - 0xd7, 0x5d, 0xab, 0x74, 0xdb, 0xb5, 0x5e, 0x24, 0x88, 0x37, 0xf3, 0xd0, 0x89, 0x48, 0xea, 0x46, - 0x84, 0xa5, 0x84, 0x15, 0x3f, 0xfb, 0x2c, 0xbe, 0x70, 0x79, 0x27, 0x83, 0xcc, 0x39, 0x86, 0xd1, - 0xa0, 0x6b, 0x55, 0x3a, 0x41, 0xda, 0x3a, 0xb2, 0x67, 0xeb, 0xd9, 0xde, 0xba, 0x84, 0xea, 0x63, - 0xe4, 0xd7, 0x12, 0xa8, 0x1c, 0x23, 0xa1, 0x37, 0xcc, 0x39, 0x22, 0xb8, 0x4e, 0x49, 0x46, 0xa8, - 0xf8, 0x62, 0xfa, 0x19, 0x58, 0x65, 0x3c, 0xb8, 0x40, 0x38, 0x29, 0x84, 0xbc, 0x59, 0x58, 0xc8, - 0x03, 0x25, 0xa4, 0x28, 0x63, 0x7b, 0xc3, 0x82, 0xfa, 0x27, 0xb0, 0x15, 0x91, 0x34, 0xcd, 0x31, - 0xe2, 0x1d, 0x3f, 0x23, 0xa4, 0xe5, 0x27, 0x94, 0x5c, 0xf2, 0xa6, 0x71, 0x4f, 0x32, 0x9d, 0x2e, - 0xcc, 0xb4, 0xa5, 0x98, 0xa6, 0x8b, 0xda, 0xde, 0xe6, 0x08, 0xa8, 0x13, 0xd2, 0x3a, 0x95, 0x1c, - 0xfa, 0x17, 0x0d, 0x98, 0x33, 0xec, 0x0c, 0x46, 0x39, 0x15, 0xa7, 0x30, 0x8f, 0x13, 0xc8, 0x8d, - 0xa5, 0xbb, 0x95, 0xb1, 0x33, 0x25, 0xa3, 0x51, 0x90, 0x55, 0x25, 0x97, 0xce, 0xc1, 0x43, 0xc6, - 0x69, 0xc0, 0x61, 0x82, 0x22, 0x9f, 0x42, 0x06, 0x69, 0x1b, 0x1a, 0xcb, 0x77, 0x2b, 0x60, 0x63, - 0xc4, 0xe0, 0x29, 0x02, 0xfb, 0x76, 0x05, 0x94, 0xeb, 0x01, 0x0d, 0x52, 0xa6, 0x3f, 0x01, 0x40, - 0xb4, 0xaa, 0x1f, 0x43, 0x4c, 0x52, 0xf5, 0xd6, 0xde, 0x9a, 0x40, 0x8e, 0x05, 0xa0, 0x5f, 0x69, - 0xc0, 0x48, 0x20, 0x86, 0x0c, 0x31, 0xff, 0x8f, 0x16, 0x55, 0xef, 0xf5, 0x61, 0x61, 0x9d, 0x96, - 0xd2, 0x39, 0xaf, 0xae, 0xed, 0x3d, 0x2e, 0x42, 0x6f, 0xa7, 0x3b, 0x56, 0x3f, 0x19, 0xce, 0x09, - 0x8a, 0x21, 0xe6, 0xe8, 0x1c, 0x41, 0x5a, 0xbc, 0xd6, 0xce, 0x6c, 0xe7, 0x8f, 0x33, 0x86, 0x9d, - 0x5f, 0x1b, 0x21, 0x7a, 0x08, 0xb6, 0x29, 0x8c, 0xf3, 0x48, 0xf4, 0xba, 0x9f, 0x41, 0x8a, 0x48, - 0xec, 0x23, 0xac, 0x84, 0x30, 0x69, 0xff, 0x52, 0xf5, 0xf9, 0xa0, 0x6b, 0x3d, 0x55, 0x15, 0xe7, - 0xe7, 0xda, 0x5e, 0x65, 0x14, 0xac, 0xcb, 0x58, 0x0d, 0x4b, 0xd1, 0x4c, 0xcc, 0xf4, 0xf8, 0xde, - 0x79, 0x10, 0x71, 0x42, 0x8d, 0x95, 0xff, 0x9b, 0xe9, 0xd9, 0x7a, 0xb6, 0xb7, 0x3e, 0x82, 0x4e, - 0x24, 0xa2, 0xa7, 0xc0, 0x88, 0x27, 0x46, 0x5a, 0xb8, 0x3a, 0x9c, 0x69, 0xa3, 0xbc, 0xab, 0xed, - 0xdd, 0x7f, 0xf5, 0xd2, 0xf9, 0xcb, 0x86, 0x72, 0xe6, 0xec, 0x81, 0xea, 0xb2, 0xd0, 0xea, 0x55, - 0xe2, 0x39, 0x6b, 0xe2, 0x4a, 0x03, 0x7b, 0xa2, 0x0e, 0xc2, 0x89, 0x4f, 0xe1, 0x65, 0x40, 0x63, - 0xe6, 0x4f, 0xf1, 0x33, 0x1e, 0x50, 0xae, 0xcc, 0x32, 0x56, 0xa5, 0xaf, 0x87, 0x83, 0xae, 0xe5, - 0xaa, 0xff, 0xf3, 0xaf, 0x37, 0x6d, 0xef, 0x59, 0x91, 0xea, 0xa9, 0xcc, 0x49, 0xb5, 0x0d, 0x91, - 0x27, 0x3d, 0x3f, 0x5a, 0xfe, 0xf6, 0xdd, 0x2a, 0x55, 0x4f, 0xaf, 0x7b, 0xa6, 0x76, 0xd3, 0x33, - 0xb5, 0x9f, 0x3d, 0x53, 0xfb, 0xda, 0x37, 0x4b, 0x37, 0x7d, 0xb3, 0xf4, 0xa3, 0x6f, 0x96, 0xce, - 0xf6, 0x27, 0x0c, 0x6f, 0x48, 0x13, 0xf6, 0xdf, 0x05, 0x21, 0x73, 0x8b, 0x95, 0xde, 0x7e, 0xed, - 0x7e, 0x54, 0x7b, 0x5d, 0x7a, 0x1f, 0x96, 0xe5, 0x9a, 0x3e, 0xfc, 0x1d, 0x00, 0x00, 0xff, 0xff, - 0xf5, 0xff, 0xb9, 0xdb, 0xf3, 0x05, 0x00, 0x00, -} - -func (m *Minter) 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 *Minter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Minter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.EpochProvisions.Size() - i -= size - if _, err := m.EpochProvisions.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DistributionProportions) 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 *DistributionProportions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DistributionProportions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.StrategicReserve.Size() - i -= size - if _, err := m.StrategicReserve.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - { - size := m.CommunityPoolSecurityBudget.Size() - i -= size - if _, err := m.CommunityPoolSecurityBudget.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size := m.CommunityPoolGrowth.Size() - i -= size - if _, err := m.CommunityPoolGrowth.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size := m.Staking.Size() - i -= size - if _, err := m.Staking.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MintingRewardsDistributionStartEpoch != 0 { - i = encodeVarintMint(dAtA, i, uint64(m.MintingRewardsDistributionStartEpoch)) - i-- - dAtA[i] = 0x38 - } - { - size, err := m.DistributionProportions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMint(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - { - size := m.ReductionFactor.Size() - i -= size - if _, err := m.ReductionFactor.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - if m.ReductionPeriodInEpochs != 0 { - i = encodeVarintMint(dAtA, i, uint64(m.ReductionPeriodInEpochs)) - i-- - dAtA[i] = 0x20 - } - if len(m.EpochIdentifier) > 0 { - i -= len(m.EpochIdentifier) - copy(dAtA[i:], m.EpochIdentifier) - i = encodeVarintMint(dAtA, i, uint64(len(m.EpochIdentifier))) - i-- - dAtA[i] = 0x1a - } - { - size := m.GenesisEpochProvisions.Size() - i -= size - if _, err := m.GenesisEpochProvisions.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintMint(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.MintDenom) > 0 { - i -= len(m.MintDenom) - copy(dAtA[i:], m.MintDenom) - i = encodeVarintMint(dAtA, i, uint64(len(m.MintDenom))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintMint(dAtA []byte, offset int, v uint64) int { - offset -= sovMint(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Minter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.EpochProvisions.Size() - n += 1 + l + sovMint(uint64(l)) - return n -} - -func (m *DistributionProportions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Staking.Size() - n += 1 + l + sovMint(uint64(l)) - l = m.CommunityPoolGrowth.Size() - n += 1 + l + sovMint(uint64(l)) - l = m.CommunityPoolSecurityBudget.Size() - n += 1 + l + sovMint(uint64(l)) - l = m.StrategicReserve.Size() - n += 1 + l + sovMint(uint64(l)) - return n -} - -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MintDenom) - if l > 0 { - n += 1 + l + sovMint(uint64(l)) - } - l = m.GenesisEpochProvisions.Size() - n += 1 + l + sovMint(uint64(l)) - l = len(m.EpochIdentifier) - if l > 0 { - n += 1 + l + sovMint(uint64(l)) - } - if m.ReductionPeriodInEpochs != 0 { - n += 1 + sovMint(uint64(m.ReductionPeriodInEpochs)) - } - l = m.ReductionFactor.Size() - n += 1 + l + sovMint(uint64(l)) - l = m.DistributionProportions.Size() - n += 1 + l + sovMint(uint64(l)) - if m.MintingRewardsDistributionStartEpoch != 0 { - n += 1 + sovMint(uint64(m.MintingRewardsDistributionStartEpoch)) - } - return n -} - -func sovMint(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozMint(x uint64) (n int) { - return sovMint(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Minter) 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 ErrIntOverflowMint - } - 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: Minter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Minter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochProvisions", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - 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 ErrInvalidLengthMint - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMint - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.EpochProvisions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMint(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMint - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DistributionProportions) 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 ErrIntOverflowMint - } - 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: DistributionProportions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DistributionProportions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Staking", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - 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 ErrInvalidLengthMint - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMint - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Staking.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolGrowth", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - 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 ErrInvalidLengthMint - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMint - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CommunityPoolGrowth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolSecurityBudget", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - 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 ErrInvalidLengthMint - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMint - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CommunityPoolSecurityBudget.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StrategicReserve", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - 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 ErrInvalidLengthMint - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMint - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.StrategicReserve.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMint(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMint - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Params) 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 ErrIntOverflowMint - } - 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: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MintDenom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - 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 ErrInvalidLengthMint - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMint - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MintDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GenesisEpochProvisions", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - 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 ErrInvalidLengthMint - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMint - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.GenesisEpochProvisions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochIdentifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - 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 ErrInvalidLengthMint - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMint - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EpochIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReductionPeriodInEpochs", wireType) - } - m.ReductionPeriodInEpochs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReductionPeriodInEpochs |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReductionFactor", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - 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 ErrInvalidLengthMint - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMint - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ReductionFactor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DistributionProportions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMint - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMint - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.DistributionProportions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MintingRewardsDistributionStartEpoch", wireType) - } - m.MintingRewardsDistributionStartEpoch = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMint - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MintingRewardsDistributionStartEpoch |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipMint(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMint - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipMint(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, ErrIntOverflowMint - } - 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, ErrIntOverflowMint - } - 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, ErrIntOverflowMint - } - 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, ErrInvalidLengthMint - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupMint - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthMint - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthMint = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMint = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupMint = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/mint/types/query.pb.go b/x/mint/types/query.pb.go deleted file mode 100644 index b4c9d1c19c..0000000000 --- a/x/mint/types/query.pb.go +++ /dev/null @@ -1,870 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/mint/v1beta1/query.proto - -package types - -import ( - context "context" - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - 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 - -// QueryParamsRequest is the request type for the Query/Params RPC method. -type QueryParamsRequest struct { -} - -func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } -func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryParamsRequest) ProtoMessage() {} -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b5a371e09ad2a41a, []int{0} -} -func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsRequest.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 *QueryParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsRequest.Merge(m, src) -} -func (m *QueryParamsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo - -// QueryParamsResponse is the response type for the Query/Params RPC method. -type QueryParamsResponse struct { - // params defines the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` -} - -func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } -func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryParamsResponse) ProtoMessage() {} -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b5a371e09ad2a41a, []int{1} -} -func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsResponse.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 *QueryParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsResponse.Merge(m, src) -} -func (m *QueryParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo - -func (m *QueryParamsResponse) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -// QueryEpochProvisionsRequest is the request type for the -// Query/EpochProvisions RPC method. -type QueryEpochProvisionsRequest struct { -} - -func (m *QueryEpochProvisionsRequest) Reset() { *m = QueryEpochProvisionsRequest{} } -func (m *QueryEpochProvisionsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryEpochProvisionsRequest) ProtoMessage() {} -func (*QueryEpochProvisionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b5a371e09ad2a41a, []int{2} -} -func (m *QueryEpochProvisionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryEpochProvisionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryEpochProvisionsRequest.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 *QueryEpochProvisionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryEpochProvisionsRequest.Merge(m, src) -} -func (m *QueryEpochProvisionsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryEpochProvisionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryEpochProvisionsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryEpochProvisionsRequest proto.InternalMessageInfo - -// QueryEpochProvisionsResponse is the response type for the -// Query/EpochProvisions RPC method. -type QueryEpochProvisionsResponse struct { - // epoch_provisions is the current minting per epoch provisions value. - EpochProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=epoch_provisions,json=epochProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"epoch_provisions"` -} - -func (m *QueryEpochProvisionsResponse) Reset() { *m = QueryEpochProvisionsResponse{} } -func (m *QueryEpochProvisionsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryEpochProvisionsResponse) ProtoMessage() {} -func (*QueryEpochProvisionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b5a371e09ad2a41a, []int{3} -} -func (m *QueryEpochProvisionsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryEpochProvisionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryEpochProvisionsResponse.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 *QueryEpochProvisionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryEpochProvisionsResponse.Merge(m, src) -} -func (m *QueryEpochProvisionsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryEpochProvisionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryEpochProvisionsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryEpochProvisionsResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "stride.mint.v1beta1.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "stride.mint.v1beta1.QueryParamsResponse") - proto.RegisterType((*QueryEpochProvisionsRequest)(nil), "stride.mint.v1beta1.QueryEpochProvisionsRequest") - proto.RegisterType((*QueryEpochProvisionsResponse)(nil), "stride.mint.v1beta1.QueryEpochProvisionsResponse") -} - -func init() { proto.RegisterFile("stride/mint/v1beta1/query.proto", fileDescriptor_b5a371e09ad2a41a) } - -var fileDescriptor_b5a371e09ad2a41a = []byte{ - // 394 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x41, 0x4b, 0xe3, 0x40, - 0x18, 0x4d, 0xca, 0x6e, 0x0f, 0xb3, 0x0b, 0x5d, 0xa6, 0x65, 0x91, 0xb4, 0x4e, 0x4b, 0x0e, 0xb5, - 0x97, 0xce, 0xd8, 0x0a, 0x82, 0xd7, 0xa2, 0x78, 0xf1, 0x50, 0xeb, 0x49, 0x2f, 0x92, 0xa4, 0x43, - 0x1a, 0x34, 0x99, 0x34, 0x33, 0x2d, 0xe6, 0xea, 0x2f, 0x10, 0xbc, 0x7b, 0xf1, 0xcf, 0xf4, 0x58, - 0xf0, 0x22, 0x1e, 0x8a, 0xb4, 0xfe, 0x10, 0xc9, 0x64, 0x14, 0x53, 0x23, 0xe2, 0x29, 0x61, 0xde, - 0xfb, 0xde, 0x7b, 0xdf, 0x9b, 0x01, 0x75, 0x2e, 0x22, 0x6f, 0x48, 0x89, 0xef, 0x05, 0x82, 0x4c, - 0x3b, 0x36, 0x15, 0x56, 0x87, 0x8c, 0x27, 0x34, 0x8a, 0x71, 0x18, 0x31, 0xc1, 0x60, 0x39, 0x25, - 0xe0, 0x84, 0x80, 0x15, 0xc1, 0xa8, 0xb8, 0xcc, 0x65, 0x12, 0x27, 0xc9, 0x5f, 0x4a, 0x35, 0x6a, - 0x2e, 0x63, 0xee, 0x25, 0x25, 0x56, 0xe8, 0x11, 0x2b, 0x08, 0x98, 0xb0, 0x84, 0xc7, 0x02, 0xae, - 0x50, 0x94, 0xe7, 0x24, 0x55, 0x25, 0x6e, 0x56, 0x00, 0x3c, 0x4e, 0x7c, 0xfb, 0x56, 0x64, 0xf9, - 0x7c, 0x40, 0xc7, 0x13, 0xca, 0x85, 0xd9, 0x07, 0xe5, 0xcc, 0x29, 0x0f, 0x59, 0xc0, 0x29, 0xdc, - 0x03, 0xc5, 0x50, 0x9e, 0x6c, 0xe8, 0x0d, 0xbd, 0xf5, 0xa7, 0x5b, 0xc5, 0x39, 0x31, 0x71, 0x3a, - 0xd4, 0xfb, 0x35, 0x5b, 0xd4, 0xb5, 0x81, 0x1a, 0x30, 0x37, 0x41, 0x55, 0x2a, 0x1e, 0x84, 0xcc, - 0x19, 0xf5, 0x23, 0x36, 0xf5, 0x78, 0x92, 0xf2, 0xcd, 0x30, 0x06, 0xb5, 0x7c, 0x58, 0x39, 0x9f, - 0x82, 0x7f, 0x34, 0x81, 0xce, 0xc3, 0x77, 0x4c, 0x66, 0xf8, 0xdb, 0xc3, 0x89, 0xcd, 0xd3, 0xa2, - 0xde, 0x74, 0x3d, 0x31, 0x9a, 0xd8, 0xd8, 0x61, 0x3e, 0x71, 0x18, 0xf7, 0x19, 0x57, 0x9f, 0x36, - 0x1f, 0x5e, 0x10, 0x11, 0x87, 0x94, 0xe3, 0x7d, 0xea, 0x0c, 0x4a, 0x34, 0x6b, 0xd1, 0xbd, 0x2f, - 0x80, 0xdf, 0xd2, 0x1b, 0xc6, 0xa0, 0x98, 0x66, 0x87, 0x5b, 0xb9, 0x8b, 0x7d, 0x2e, 0xca, 0x68, - 0x7d, 0x4f, 0x4c, 0x37, 0x30, 0x6b, 0xd7, 0x0f, 0x2f, 0xb7, 0x85, 0xff, 0xb0, 0x92, 0xbd, 0x8a, - 0xb4, 0x1e, 0x78, 0xa7, 0x83, 0xd2, 0xda, 0xee, 0x70, 0xfb, 0x6b, 0xed, 0xfc, 0x16, 0x8d, 0xce, - 0x0f, 0x26, 0x54, 0xac, 0xa6, 0x8c, 0xd5, 0x80, 0x28, 0x1b, 0x6b, 0xbd, 0xec, 0xde, 0xe1, 0x6c, - 0x89, 0xf4, 0xf9, 0x12, 0xe9, 0xcf, 0x4b, 0xa4, 0xdf, 0xac, 0x90, 0x36, 0x5f, 0x21, 0xed, 0x71, - 0x85, 0xb4, 0xb3, 0xf6, 0x87, 0xe2, 0x4f, 0xa4, 0x7d, 0xfb, 0xc8, 0xb2, 0x39, 0x51, 0x0f, 0x6f, - 0xba, 0x4b, 0xae, 0x52, 0x6d, 0x79, 0x07, 0x76, 0x51, 0xbe, 0xbb, 0x9d, 0xd7, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x30, 0x13, 0xe9, 0xdc, 0x03, 0x03, 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 - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - // Params returns the total set of minting parameters. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // EpochProvisions current minting epoch provisions value. - EpochProvisions(ctx context.Context, in *QueryEpochProvisionsRequest, opts ...grpc.CallOption) (*QueryEpochProvisionsResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/stride.mint.v1beta1.Query/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) EpochProvisions(ctx context.Context, in *QueryEpochProvisionsRequest, opts ...grpc.CallOption) (*QueryEpochProvisionsResponse, error) { - out := new(QueryEpochProvisionsResponse) - err := c.cc.Invoke(ctx, "/stride.mint.v1beta1.Query/EpochProvisions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -type QueryServer interface { - // Params returns the total set of minting parameters. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // EpochProvisions current minting epoch provisions value. - EpochProvisions(context.Context, *QueryEpochProvisionsRequest) (*QueryEpochProvisionsResponse, error) -} - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} -func (*UnimplementedQueryServer) EpochProvisions(ctx context.Context, req *QueryEpochProvisionsRequest) (*QueryEpochProvisionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EpochProvisions not implemented") -} - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) -} - -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.mint.v1beta1.Query/Params", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_EpochProvisions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryEpochProvisionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).EpochProvisions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.mint.v1beta1.Query/EpochProvisions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EpochProvisions(ctx, req.(*QueryEpochProvisionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "stride.mint.v1beta1.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "EpochProvisions", - Handler: _Query_EpochProvisions_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "stride/mint/v1beta1/query.proto", -} - -func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryParamsResponse) 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 *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryEpochProvisionsRequest) 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 *QueryEpochProvisionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryEpochProvisionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryEpochProvisionsResponse) 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 *QueryEpochProvisionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryEpochProvisionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.EpochProvisions.Size() - i -= size - if _, err := m.EpochProvisions.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryEpochProvisionsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryEpochProvisionsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.EpochProvisions.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryParamsRequest) 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 ErrIntOverflowQuery - } - 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: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParamsResponse) 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 ErrIntOverflowQuery - } - 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: QueryParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryEpochProvisionsRequest) 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 ErrIntOverflowQuery - } - 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: QueryEpochProvisionsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryEpochProvisionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryEpochProvisionsResponse) 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 ErrIntOverflowQuery - } - 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: QueryEpochProvisionsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryEpochProvisionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochProvisions", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.EpochProvisions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/ratelimit/types/genesis.pb.go b/x/ratelimit/types/genesis.pb.go deleted file mode 100644 index e4638bdb52..0000000000 --- a/x/ratelimit/types/genesis.pb.go +++ /dev/null @@ -1,389 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/ratelimit/genesis.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -// GenesisState defines the ratelimit module's genesis state. -type GenesisState struct { - // params defines all the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"` - // list of rate limits - RateLimits []RateLimit `protobuf:"bytes,2,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits" yaml:"rate_limits"` -} - -func (m *GenesisState) Reset() { *m = GenesisState{} } -func (m *GenesisState) String() string { return proto.CompactTextString(m) } -func (*GenesisState) ProtoMessage() {} -func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_9e224b293959881c, []int{0} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func (m *GenesisState) GetRateLimits() []RateLimit { - if m != nil { - return m.RateLimits - } - return nil -} - -func init() { - proto.RegisterType((*GenesisState)(nil), "stride.ratelimit.GenesisState") -} - -func init() { proto.RegisterFile("stride/ratelimit/genesis.proto", fileDescriptor_9e224b293959881c) } - -var fileDescriptor_9e224b293959881c = []byte{ - // 264 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2b, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0x2f, 0x4a, 0x2c, 0x49, 0xcd, 0xc9, 0xcc, 0xcd, 0x2c, 0xd1, 0x4f, 0x4f, 0xcd, - 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0xc8, 0xeb, 0xc1, - 0xe5, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x92, 0xfa, 0x20, 0x16, 0x44, 0x9d, 0x94, 0x2c, - 0x86, 0x39, 0x05, 0x89, 0x45, 0x89, 0xb9, 0x50, 0x63, 0xa4, 0x14, 0x30, 0xa4, 0xe1, 0x2c, 0x88, - 0x0a, 0xa5, 0x8d, 0x8c, 0x5c, 0x3c, 0xee, 0x10, 0xab, 0x83, 0x4b, 0x12, 0x4b, 0x52, 0x85, 0xdc, - 0xb9, 0xd8, 0x20, 0x46, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x49, 0xe8, 0xa1, 0x3b, 0x45, - 0x2f, 0x00, 0x2c, 0xef, 0x24, 0x7a, 0xe2, 0x9e, 0x3c, 0xc3, 0xa7, 0x7b, 0xf2, 0xbc, 0x95, 0x89, - 0xb9, 0x39, 0x56, 0x4a, 0x10, 0x5d, 0x4a, 0x41, 0x50, 0xed, 0x42, 0x11, 0x5c, 0xdc, 0x20, 0x2d, - 0xf1, 0x60, 0x3d, 0xc5, 0x12, 0x4c, 0x0a, 0xcc, 0x1a, 0xdc, 0x46, 0xd2, 0x98, 0xa6, 0x05, 0x25, - 0x96, 0xa4, 0xfa, 0x80, 0x58, 0x4e, 0x52, 0x50, 0x03, 0x85, 0x20, 0x06, 0x22, 0xe9, 0x56, 0x0a, - 0xe2, 0x2a, 0x82, 0x29, 0x2b, 0x76, 0xf2, 0x39, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, - 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, - 0x86, 0x28, 0xa3, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0x60, 0xb0, - 0x45, 0xba, 0x3e, 0x89, 0x49, 0xc5, 0xfa, 0xd0, 0x60, 0x28, 0x33, 0xd3, 0xaf, 0x40, 0x0a, 0x8b, - 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0x70, 0x40, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, - 0xb1, 0x57, 0x96, 0xc5, 0x93, 0x01, 0x00, 0x00, -} - -func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RateLimits) > 0 { - for iNdEx := len(m.RateLimits) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RateLimits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) - if len(m.RateLimits) > 0 { - for _, e := range m.RateLimits { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GenesisState) 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 ErrIntOverflowGenesis - } - 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: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RateLimits", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RateLimits = append(m.RateLimits, RateLimit{}) - if err := m.RateLimits[len(m.RateLimits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/ratelimit/types/gov.pb.go b/x/ratelimit/types/gov.pb.go deleted file mode 100644 index d15f424e23..0000000000 --- a/x/ratelimit/types/gov.pb.go +++ /dev/null @@ -1,1922 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/ratelimit/gov.proto - -package types - -import ( - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -type AddRateLimitProposal struct { - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` - ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - MaxPercentSend github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=max_percent_send,json=maxPercentSend,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"max_percent_send"` - MaxPercentRecv github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=max_percent_recv,json=maxPercentRecv,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"max_percent_recv"` - DurationHours uint64 `protobuf:"varint,7,opt,name=duration_hours,json=durationHours,proto3" json:"duration_hours,omitempty"` - Deposit string `protobuf:"bytes,8,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"` -} - -func (m *AddRateLimitProposal) Reset() { *m = AddRateLimitProposal{} } -func (*AddRateLimitProposal) ProtoMessage() {} -func (*AddRateLimitProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_3ad7ef7cb59a1c37, []int{0} -} -func (m *AddRateLimitProposal) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AddRateLimitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AddRateLimitProposal.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 *AddRateLimitProposal) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddRateLimitProposal.Merge(m, src) -} -func (m *AddRateLimitProposal) XXX_Size() int { - return m.Size() -} -func (m *AddRateLimitProposal) XXX_DiscardUnknown() { - xxx_messageInfo_AddRateLimitProposal.DiscardUnknown(m) -} - -var xxx_messageInfo_AddRateLimitProposal proto.InternalMessageInfo - -type UpdateRateLimitProposal struct { - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` - ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - MaxPercentSend github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=max_percent_send,json=maxPercentSend,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"max_percent_send"` - MaxPercentRecv github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=max_percent_recv,json=maxPercentRecv,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"max_percent_recv"` - DurationHours uint64 `protobuf:"varint,7,opt,name=duration_hours,json=durationHours,proto3" json:"duration_hours,omitempty"` - Deposit string `protobuf:"bytes,8,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"` -} - -func (m *UpdateRateLimitProposal) Reset() { *m = UpdateRateLimitProposal{} } -func (*UpdateRateLimitProposal) ProtoMessage() {} -func (*UpdateRateLimitProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_3ad7ef7cb59a1c37, []int{1} -} -func (m *UpdateRateLimitProposal) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateRateLimitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpdateRateLimitProposal.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 *UpdateRateLimitProposal) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateRateLimitProposal.Merge(m, src) -} -func (m *UpdateRateLimitProposal) XXX_Size() int { - return m.Size() -} -func (m *UpdateRateLimitProposal) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateRateLimitProposal.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateRateLimitProposal proto.InternalMessageInfo - -type RemoveRateLimitProposal struct { - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` - ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - Deposit string `protobuf:"bytes,5,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"` -} - -func (m *RemoveRateLimitProposal) Reset() { *m = RemoveRateLimitProposal{} } -func (*RemoveRateLimitProposal) ProtoMessage() {} -func (*RemoveRateLimitProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_3ad7ef7cb59a1c37, []int{2} -} -func (m *RemoveRateLimitProposal) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoveRateLimitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemoveRateLimitProposal.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 *RemoveRateLimitProposal) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveRateLimitProposal.Merge(m, src) -} -func (m *RemoveRateLimitProposal) XXX_Size() int { - return m.Size() -} -func (m *RemoveRateLimitProposal) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveRateLimitProposal.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoveRateLimitProposal proto.InternalMessageInfo - -type ResetRateLimitProposal struct { - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` - ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - Deposit string `protobuf:"bytes,5,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"` -} - -func (m *ResetRateLimitProposal) Reset() { *m = ResetRateLimitProposal{} } -func (*ResetRateLimitProposal) ProtoMessage() {} -func (*ResetRateLimitProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_3ad7ef7cb59a1c37, []int{3} -} -func (m *ResetRateLimitProposal) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResetRateLimitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResetRateLimitProposal.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 *ResetRateLimitProposal) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResetRateLimitProposal.Merge(m, src) -} -func (m *ResetRateLimitProposal) XXX_Size() int { - return m.Size() -} -func (m *ResetRateLimitProposal) XXX_DiscardUnknown() { - xxx_messageInfo_ResetRateLimitProposal.DiscardUnknown(m) -} - -var xxx_messageInfo_ResetRateLimitProposal proto.InternalMessageInfo - -func init() { - proto.RegisterType((*AddRateLimitProposal)(nil), "stride.ratelimit.AddRateLimitProposal") - proto.RegisterType((*UpdateRateLimitProposal)(nil), "stride.ratelimit.UpdateRateLimitProposal") - proto.RegisterType((*RemoveRateLimitProposal)(nil), "stride.ratelimit.RemoveRateLimitProposal") - proto.RegisterType((*ResetRateLimitProposal)(nil), "stride.ratelimit.ResetRateLimitProposal") -} - -func init() { proto.RegisterFile("stride/ratelimit/gov.proto", fileDescriptor_3ad7ef7cb59a1c37) } - -var fileDescriptor_3ad7ef7cb59a1c37 = []byte{ - // 437 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x54, 0x41, 0x6b, 0x13, 0x41, - 0x14, 0xde, 0x31, 0x4d, 0x6b, 0x47, 0x0d, 0x65, 0x08, 0x76, 0x28, 0xb8, 0x1b, 0x02, 0x4a, 0x0f, - 0x76, 0x17, 0x14, 0x3c, 0xf4, 0x66, 0x4f, 0x16, 0x72, 0x28, 0x53, 0x04, 0xf1, 0x12, 0x26, 0x3b, - 0x8f, 0x64, 0x70, 0x67, 0x66, 0x99, 0x99, 0x2c, 0xe9, 0x3f, 0xf0, 0xe8, 0x51, 0x04, 0x21, 0x7f, - 0x45, 0x4f, 0x3d, 0xf6, 0x28, 0x1e, 0x82, 0x24, 0x17, 0xcf, 0xfe, 0x02, 0xd9, 0xd9, 0x54, 0x02, - 0x9e, 0xc4, 0x83, 0x0a, 0x9e, 0x76, 0xdf, 0xf7, 0x7d, 0xef, 0x0d, 0x1f, 0xef, 0xf1, 0xe1, 0x03, - 0xe7, 0xad, 0x14, 0x90, 0x59, 0xee, 0xa1, 0x90, 0x4a, 0xfa, 0x6c, 0x6c, 0xaa, 0xb4, 0xb4, 0xc6, - 0x1b, 0xb2, 0xd7, 0x70, 0xe9, 0x0f, 0xee, 0xa0, 0x3b, 0x36, 0x63, 0x13, 0xc8, 0xac, 0xfe, 0x6b, - 0x74, 0xfd, 0x77, 0x2d, 0xdc, 0x7d, 0x2a, 0x04, 0xe3, 0x1e, 0x06, 0xb5, 0xec, 0xcc, 0x9a, 0xd2, - 0x38, 0x5e, 0x90, 0x2e, 0x6e, 0x7b, 0xe9, 0x0b, 0xa0, 0xa8, 0x87, 0x0e, 0x77, 0x59, 0x53, 0x90, - 0x1e, 0xbe, 0x25, 0xc0, 0xe5, 0x56, 0x96, 0x5e, 0x1a, 0x4d, 0x6f, 0x04, 0x6e, 0x13, 0xaa, 0xfb, - 0x04, 0x68, 0xa3, 0x68, 0xab, 0xe9, 0x0b, 0x05, 0xb9, 0x87, 0x71, 0x3e, 0xe1, 0x5a, 0x43, 0x31, - 0x94, 0x82, 0x6e, 0x05, 0x6a, 0x77, 0x8d, 0x9c, 0x0a, 0xf2, 0x02, 0xef, 0x29, 0x3e, 0x1b, 0x96, - 0x60, 0x73, 0xd0, 0x7e, 0xe8, 0x40, 0x0b, 0xda, 0xae, 0x45, 0x27, 0xe9, 0xe5, 0x22, 0x89, 0x3e, - 0x2f, 0x92, 0x07, 0x63, 0xe9, 0x27, 0xd3, 0x51, 0x9a, 0x1b, 0x95, 0xe5, 0xc6, 0x29, 0xe3, 0xd6, - 0x9f, 0x23, 0x27, 0x5e, 0x65, 0xfe, 0xa2, 0x04, 0x97, 0x9e, 0x6a, 0xcf, 0x3a, 0x8a, 0xcf, 0xce, - 0x9a, 0x31, 0xe7, 0xa0, 0x7f, 0x9a, 0x6c, 0x21, 0xaf, 0xe8, 0xf6, 0xef, 0x4e, 0x66, 0x90, 0x57, - 0xe4, 0x3e, 0xee, 0x88, 0xa9, 0xe5, 0xb5, 0xe9, 0xe1, 0xc4, 0x4c, 0xad, 0xa3, 0x3b, 0x3d, 0x74, - 0xb8, 0xc5, 0xee, 0x5c, 0xa3, 0xcf, 0x6a, 0x90, 0x3c, 0xc4, 0x3b, 0x02, 0x4a, 0xe3, 0xa4, 0xa7, - 0x37, 0xc3, 0xbb, 0xe4, 0xdb, 0x22, 0xe9, 0x5c, 0x70, 0x55, 0x1c, 0xf7, 0xd7, 0x44, 0x9f, 0x5d, - 0x4b, 0x8e, 0x6f, 0xbf, 0x9e, 0x27, 0xd1, 0xdb, 0x79, 0x12, 0x7d, 0x9d, 0x27, 0xa8, 0xff, 0xbe, - 0x85, 0xf7, 0x9f, 0x97, 0x82, 0x7b, 0xf8, 0xbf, 0x9f, 0xbf, 0x71, 0x3f, 0x1f, 0x11, 0xde, 0x67, - 0xa0, 0x4c, 0xf5, 0xa7, 0xf7, 0xb3, 0x61, 0xa2, 0xfd, 0xab, 0x26, 0x3e, 0x20, 0x7c, 0x97, 0x81, - 0x03, 0xff, 0xef, 0x7a, 0x38, 0x19, 0x5c, 0x2e, 0x63, 0x74, 0xb5, 0x8c, 0xd1, 0x97, 0x65, 0x8c, - 0xde, 0xac, 0xe2, 0xe8, 0x6a, 0x15, 0x47, 0x9f, 0x56, 0x71, 0xf4, 0xf2, 0xd1, 0xc6, 0xf5, 0x9c, - 0x87, 0x48, 0x3c, 0x1a, 0xf0, 0x91, 0xcb, 0xd6, 0xd1, 0x59, 0x3d, 0xc9, 0x66, 0x1b, 0xf9, 0x19, - 0xae, 0x69, 0xb4, 0x1d, 0xa2, 0xf1, 0xf1, 0xf7, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x17, 0xe2, - 0x0c, 0x60, 0x05, 0x00, 0x00, -} - -func (this *AddRateLimitProposal) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*AddRateLimitProposal) - if !ok { - that2, ok := that.(AddRateLimitProposal) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Title != that1.Title { - return false - } - if this.Description != that1.Description { - return false - } - if this.Denom != that1.Denom { - return false - } - if this.ChannelId != that1.ChannelId { - return false - } - if !this.MaxPercentSend.Equal(that1.MaxPercentSend) { - return false - } - if !this.MaxPercentRecv.Equal(that1.MaxPercentRecv) { - return false - } - if this.DurationHours != that1.DurationHours { - return false - } - if this.Deposit != that1.Deposit { - return false - } - return true -} -func (this *UpdateRateLimitProposal) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*UpdateRateLimitProposal) - if !ok { - that2, ok := that.(UpdateRateLimitProposal) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Title != that1.Title { - return false - } - if this.Description != that1.Description { - return false - } - if this.Denom != that1.Denom { - return false - } - if this.ChannelId != that1.ChannelId { - return false - } - if !this.MaxPercentSend.Equal(that1.MaxPercentSend) { - return false - } - if !this.MaxPercentRecv.Equal(that1.MaxPercentRecv) { - return false - } - if this.DurationHours != that1.DurationHours { - return false - } - if this.Deposit != that1.Deposit { - return false - } - return true -} -func (this *RemoveRateLimitProposal) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*RemoveRateLimitProposal) - if !ok { - that2, ok := that.(RemoveRateLimitProposal) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Title != that1.Title { - return false - } - if this.Description != that1.Description { - return false - } - if this.Denom != that1.Denom { - return false - } - if this.ChannelId != that1.ChannelId { - return false - } - if this.Deposit != that1.Deposit { - return false - } - return true -} -func (this *ResetRateLimitProposal) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*ResetRateLimitProposal) - if !ok { - that2, ok := that.(ResetRateLimitProposal) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Title != that1.Title { - return false - } - if this.Description != that1.Description { - return false - } - if this.Denom != that1.Denom { - return false - } - if this.ChannelId != that1.ChannelId { - return false - } - if this.Deposit != that1.Deposit { - return false - } - return true -} -func (m *AddRateLimitProposal) 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 *AddRateLimitProposal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AddRateLimitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Deposit) > 0 { - i -= len(m.Deposit) - copy(dAtA[i:], m.Deposit) - i = encodeVarintGov(dAtA, i, uint64(len(m.Deposit))) - i-- - dAtA[i] = 0x42 - } - if m.DurationHours != 0 { - i = encodeVarintGov(dAtA, i, uint64(m.DurationHours)) - i-- - dAtA[i] = 0x38 - } - { - size := m.MaxPercentRecv.Size() - i -= size - if _, err := m.MaxPercentRecv.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGov(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - { - size := m.MaxPercentSend.Size() - i -= size - if _, err := m.MaxPercentSend.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGov(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - if len(m.ChannelId) > 0 { - i -= len(m.ChannelId) - copy(dAtA[i:], m.ChannelId) - i = encodeVarintGov(dAtA, i, uint64(len(m.ChannelId))) - i-- - dAtA[i] = 0x22 - } - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintGov(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x1a - } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintGov(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintGov(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *UpdateRateLimitProposal) 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 *UpdateRateLimitProposal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateRateLimitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Deposit) > 0 { - i -= len(m.Deposit) - copy(dAtA[i:], m.Deposit) - i = encodeVarintGov(dAtA, i, uint64(len(m.Deposit))) - i-- - dAtA[i] = 0x42 - } - if m.DurationHours != 0 { - i = encodeVarintGov(dAtA, i, uint64(m.DurationHours)) - i-- - dAtA[i] = 0x38 - } - { - size := m.MaxPercentRecv.Size() - i -= size - if _, err := m.MaxPercentRecv.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGov(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - { - size := m.MaxPercentSend.Size() - i -= size - if _, err := m.MaxPercentSend.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGov(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - if len(m.ChannelId) > 0 { - i -= len(m.ChannelId) - copy(dAtA[i:], m.ChannelId) - i = encodeVarintGov(dAtA, i, uint64(len(m.ChannelId))) - i-- - dAtA[i] = 0x22 - } - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintGov(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x1a - } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintGov(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintGov(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RemoveRateLimitProposal) 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 *RemoveRateLimitProposal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoveRateLimitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Deposit) > 0 { - i -= len(m.Deposit) - copy(dAtA[i:], m.Deposit) - i = encodeVarintGov(dAtA, i, uint64(len(m.Deposit))) - i-- - dAtA[i] = 0x2a - } - if len(m.ChannelId) > 0 { - i -= len(m.ChannelId) - copy(dAtA[i:], m.ChannelId) - i = encodeVarintGov(dAtA, i, uint64(len(m.ChannelId))) - i-- - dAtA[i] = 0x22 - } - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintGov(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x1a - } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintGov(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintGov(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ResetRateLimitProposal) 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 *ResetRateLimitProposal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResetRateLimitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Deposit) > 0 { - i -= len(m.Deposit) - copy(dAtA[i:], m.Deposit) - i = encodeVarintGov(dAtA, i, uint64(len(m.Deposit))) - i-- - dAtA[i] = 0x2a - } - if len(m.ChannelId) > 0 { - i -= len(m.ChannelId) - copy(dAtA[i:], m.ChannelId) - i = encodeVarintGov(dAtA, i, uint64(len(m.ChannelId))) - i-- - dAtA[i] = 0x22 - } - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintGov(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x1a - } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintGov(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintGov(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintGov(dAtA []byte, offset int, v uint64) int { - offset -= sovGov(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AddRateLimitProposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Title) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.ChannelId) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = m.MaxPercentSend.Size() - n += 1 + l + sovGov(uint64(l)) - l = m.MaxPercentRecv.Size() - n += 1 + l + sovGov(uint64(l)) - if m.DurationHours != 0 { - n += 1 + sovGov(uint64(m.DurationHours)) - } - l = len(m.Deposit) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - return n -} - -func (m *UpdateRateLimitProposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Title) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.ChannelId) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = m.MaxPercentSend.Size() - n += 1 + l + sovGov(uint64(l)) - l = m.MaxPercentRecv.Size() - n += 1 + l + sovGov(uint64(l)) - if m.DurationHours != 0 { - n += 1 + sovGov(uint64(m.DurationHours)) - } - l = len(m.Deposit) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - return n -} - -func (m *RemoveRateLimitProposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Title) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.ChannelId) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Deposit) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - return n -} - -func (m *ResetRateLimitProposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Title) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.ChannelId) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Deposit) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - return n -} - -func sovGov(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGov(x uint64) (n int) { - return sovGov(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *AddRateLimitProposal) 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 ErrIntOverflowGov - } - 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: AddRateLimitProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddRateLimitProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Title = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChannelId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxPercentSend", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.MaxPercentSend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxPercentRecv", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.MaxPercentRecv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DurationHours", wireType) - } - m.DurationHours = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DurationHours |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Deposit = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGov(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGov - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateRateLimitProposal) 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 ErrIntOverflowGov - } - 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: UpdateRateLimitProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateRateLimitProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Title = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChannelId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxPercentSend", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.MaxPercentSend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxPercentRecv", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.MaxPercentRecv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DurationHours", wireType) - } - m.DurationHours = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DurationHours |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Deposit = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGov(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGov - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoveRateLimitProposal) 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 ErrIntOverflowGov - } - 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: RemoveRateLimitProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveRateLimitProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Title = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChannelId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Deposit = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGov(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGov - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResetRateLimitProposal) 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 ErrIntOverflowGov - } - 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: ResetRateLimitProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResetRateLimitProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Title = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChannelId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Deposit = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGov(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGov - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGov(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, ErrIntOverflowGov - } - 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, ErrIntOverflowGov - } - 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, ErrIntOverflowGov - } - 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, ErrInvalidLengthGov - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGov - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGov - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGov = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGov = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/ratelimit/types/params.pb.go b/x/ratelimit/types/params.pb.go deleted file mode 100644 index 3092994d46..0000000000 --- a/x/ratelimit/types/params.pb.go +++ /dev/null @@ -1,263 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/ratelimit/params.proto - -package types - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - 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 - -// Params defines the ratelimit module's parameters. -type Params struct { -} - -func (m *Params) Reset() { *m = Params{} } -func (m *Params) String() string { return proto.CompactTextString(m) } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_7af4964ecd08f136, []int{0} -} -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} -func (m *Params) XXX_Size() int { - return m.Size() -} -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Params)(nil), "stride.ratelimit.Params") -} - -func init() { proto.RegisterFile("stride/ratelimit/params.proto", fileDescriptor_7af4964ecd08f136) } - -var fileDescriptor_7af4964ecd08f136 = []byte{ - // 137 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2d, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0x2f, 0x4a, 0x2c, 0x49, 0xcd, 0xc9, 0xcc, 0xcd, 0x2c, 0xd1, 0x2f, 0x48, 0x2c, - 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0x48, 0xeb, 0xc1, 0xa5, - 0x95, 0x38, 0xb8, 0xd8, 0x02, 0xc0, 0x2a, 0x9c, 0x7c, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, - 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, - 0x58, 0x8e, 0x21, 0xca, 0x28, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, - 0x18, 0x6c, 0x80, 0xae, 0x4f, 0x62, 0x52, 0xb1, 0x3e, 0xd4, 0xae, 0x32, 0x33, 0xfd, 0x0a, 0x24, - 0x0b, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x16, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, - 0xff, 0xc5, 0x48, 0x18, 0x68, 0x91, 0x00, 0x00, 0x00, -} - -func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintParams(dAtA []byte, offset int, v uint64) int { - offset -= sovParams(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovParams(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozParams(x uint64) (n int) { - return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Params) 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 ErrIntOverflowParams - } - 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: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipParams(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, ErrIntOverflowParams - } - 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, ErrIntOverflowParams - } - 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, ErrIntOverflowParams - } - 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, ErrInvalidLengthParams - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupParams - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthParams - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/ratelimit/types/query.pb.go b/x/ratelimit/types/query.pb.go deleted file mode 100644 index ee2799bfd5..0000000000 --- a/x/ratelimit/types/query.pb.go +++ /dev/null @@ -1,1765 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/ratelimit/query.proto - -package types - -import ( - context "context" - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - 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 - -type QueryAllRateLimitsRequest struct { -} - -func (m *QueryAllRateLimitsRequest) Reset() { *m = QueryAllRateLimitsRequest{} } -func (m *QueryAllRateLimitsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllRateLimitsRequest) ProtoMessage() {} -func (*QueryAllRateLimitsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_97a373ef8fcef03b, []int{0} -} -func (m *QueryAllRateLimitsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllRateLimitsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllRateLimitsRequest.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 *QueryAllRateLimitsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllRateLimitsRequest.Merge(m, src) -} -func (m *QueryAllRateLimitsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryAllRateLimitsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllRateLimitsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllRateLimitsRequest proto.InternalMessageInfo - -type QueryAllRateLimitsResponse struct { - RateLimits []RateLimit `protobuf:"bytes,1,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits"` -} - -func (m *QueryAllRateLimitsResponse) Reset() { *m = QueryAllRateLimitsResponse{} } -func (m *QueryAllRateLimitsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllRateLimitsResponse) ProtoMessage() {} -func (*QueryAllRateLimitsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_97a373ef8fcef03b, []int{1} -} -func (m *QueryAllRateLimitsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllRateLimitsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllRateLimitsResponse.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 *QueryAllRateLimitsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllRateLimitsResponse.Merge(m, src) -} -func (m *QueryAllRateLimitsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryAllRateLimitsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllRateLimitsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllRateLimitsResponse proto.InternalMessageInfo - -func (m *QueryAllRateLimitsResponse) GetRateLimits() []RateLimit { - if m != nil { - return m.RateLimits - } - return nil -} - -type QueryRateLimitRequest struct { - Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` - ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` -} - -func (m *QueryRateLimitRequest) Reset() { *m = QueryRateLimitRequest{} } -func (m *QueryRateLimitRequest) String() string { return proto.CompactTextString(m) } -func (*QueryRateLimitRequest) ProtoMessage() {} -func (*QueryRateLimitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_97a373ef8fcef03b, []int{2} -} -func (m *QueryRateLimitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryRateLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryRateLimitRequest.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 *QueryRateLimitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRateLimitRequest.Merge(m, src) -} -func (m *QueryRateLimitRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryRateLimitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRateLimitRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryRateLimitRequest proto.InternalMessageInfo - -func (m *QueryRateLimitRequest) GetDenom() string { - if m != nil { - return m.Denom - } - return "" -} - -func (m *QueryRateLimitRequest) GetChannelId() string { - if m != nil { - return m.ChannelId - } - return "" -} - -type QueryRateLimitResponse struct { - RateLimit *RateLimit `protobuf:"bytes,1,opt,name=rate_limit,json=rateLimit,proto3" json:"rate_limit,omitempty"` -} - -func (m *QueryRateLimitResponse) Reset() { *m = QueryRateLimitResponse{} } -func (m *QueryRateLimitResponse) String() string { return proto.CompactTextString(m) } -func (*QueryRateLimitResponse) ProtoMessage() {} -func (*QueryRateLimitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_97a373ef8fcef03b, []int{3} -} -func (m *QueryRateLimitResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryRateLimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryRateLimitResponse.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 *QueryRateLimitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRateLimitResponse.Merge(m, src) -} -func (m *QueryRateLimitResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryRateLimitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRateLimitResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryRateLimitResponse proto.InternalMessageInfo - -func (m *QueryRateLimitResponse) GetRateLimit() *RateLimit { - if m != nil { - return m.RateLimit - } - return nil -} - -type QueryRateLimitsByChainIdRequest struct { - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` -} - -func (m *QueryRateLimitsByChainIdRequest) Reset() { *m = QueryRateLimitsByChainIdRequest{} } -func (m *QueryRateLimitsByChainIdRequest) String() string { return proto.CompactTextString(m) } -func (*QueryRateLimitsByChainIdRequest) ProtoMessage() {} -func (*QueryRateLimitsByChainIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_97a373ef8fcef03b, []int{4} -} -func (m *QueryRateLimitsByChainIdRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryRateLimitsByChainIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryRateLimitsByChainIdRequest.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 *QueryRateLimitsByChainIdRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRateLimitsByChainIdRequest.Merge(m, src) -} -func (m *QueryRateLimitsByChainIdRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryRateLimitsByChainIdRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRateLimitsByChainIdRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryRateLimitsByChainIdRequest proto.InternalMessageInfo - -func (m *QueryRateLimitsByChainIdRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -type QueryRateLimitsByChainIdResponse struct { - RateLimits []RateLimit `protobuf:"bytes,1,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits"` -} - -func (m *QueryRateLimitsByChainIdResponse) Reset() { *m = QueryRateLimitsByChainIdResponse{} } -func (m *QueryRateLimitsByChainIdResponse) String() string { return proto.CompactTextString(m) } -func (*QueryRateLimitsByChainIdResponse) ProtoMessage() {} -func (*QueryRateLimitsByChainIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_97a373ef8fcef03b, []int{5} -} -func (m *QueryRateLimitsByChainIdResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryRateLimitsByChainIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryRateLimitsByChainIdResponse.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 *QueryRateLimitsByChainIdResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRateLimitsByChainIdResponse.Merge(m, src) -} -func (m *QueryRateLimitsByChainIdResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryRateLimitsByChainIdResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRateLimitsByChainIdResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryRateLimitsByChainIdResponse proto.InternalMessageInfo - -func (m *QueryRateLimitsByChainIdResponse) GetRateLimits() []RateLimit { - if m != nil { - return m.RateLimits - } - return nil -} - -type QueryRateLimitsByChannelIdRequest struct { - ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` -} - -func (m *QueryRateLimitsByChannelIdRequest) Reset() { *m = QueryRateLimitsByChannelIdRequest{} } -func (m *QueryRateLimitsByChannelIdRequest) String() string { return proto.CompactTextString(m) } -func (*QueryRateLimitsByChannelIdRequest) ProtoMessage() {} -func (*QueryRateLimitsByChannelIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_97a373ef8fcef03b, []int{6} -} -func (m *QueryRateLimitsByChannelIdRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryRateLimitsByChannelIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryRateLimitsByChannelIdRequest.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 *QueryRateLimitsByChannelIdRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRateLimitsByChannelIdRequest.Merge(m, src) -} -func (m *QueryRateLimitsByChannelIdRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryRateLimitsByChannelIdRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRateLimitsByChannelIdRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryRateLimitsByChannelIdRequest proto.InternalMessageInfo - -func (m *QueryRateLimitsByChannelIdRequest) GetChannelId() string { - if m != nil { - return m.ChannelId - } - return "" -} - -type QueryRateLimitsByChannelIdResponse struct { - RateLimits []RateLimit `protobuf:"bytes,1,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits"` -} - -func (m *QueryRateLimitsByChannelIdResponse) Reset() { *m = QueryRateLimitsByChannelIdResponse{} } -func (m *QueryRateLimitsByChannelIdResponse) String() string { return proto.CompactTextString(m) } -func (*QueryRateLimitsByChannelIdResponse) ProtoMessage() {} -func (*QueryRateLimitsByChannelIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_97a373ef8fcef03b, []int{7} -} -func (m *QueryRateLimitsByChannelIdResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryRateLimitsByChannelIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryRateLimitsByChannelIdResponse.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 *QueryRateLimitsByChannelIdResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRateLimitsByChannelIdResponse.Merge(m, src) -} -func (m *QueryRateLimitsByChannelIdResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryRateLimitsByChannelIdResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRateLimitsByChannelIdResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryRateLimitsByChannelIdResponse proto.InternalMessageInfo - -func (m *QueryRateLimitsByChannelIdResponse) GetRateLimits() []RateLimit { - if m != nil { - return m.RateLimits - } - return nil -} - -func init() { - proto.RegisterType((*QueryAllRateLimitsRequest)(nil), "stride.ratelimit.QueryAllRateLimitsRequest") - proto.RegisterType((*QueryAllRateLimitsResponse)(nil), "stride.ratelimit.QueryAllRateLimitsResponse") - proto.RegisterType((*QueryRateLimitRequest)(nil), "stride.ratelimit.QueryRateLimitRequest") - proto.RegisterType((*QueryRateLimitResponse)(nil), "stride.ratelimit.QueryRateLimitResponse") - proto.RegisterType((*QueryRateLimitsByChainIdRequest)(nil), "stride.ratelimit.QueryRateLimitsByChainIdRequest") - proto.RegisterType((*QueryRateLimitsByChainIdResponse)(nil), "stride.ratelimit.QueryRateLimitsByChainIdResponse") - proto.RegisterType((*QueryRateLimitsByChannelIdRequest)(nil), "stride.ratelimit.QueryRateLimitsByChannelIdRequest") - proto.RegisterType((*QueryRateLimitsByChannelIdResponse)(nil), "stride.ratelimit.QueryRateLimitsByChannelIdResponse") -} - -func init() { proto.RegisterFile("stride/ratelimit/query.proto", fileDescriptor_97a373ef8fcef03b) } - -var fileDescriptor_97a373ef8fcef03b = []byte{ - // 537 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xcf, 0x6e, 0xd3, 0x40, - 0x10, 0xc6, 0xb3, 0x85, 0x00, 0x99, 0x0a, 0x09, 0x2d, 0x2d, 0x4a, 0xdd, 0xe2, 0x06, 0x5f, 0x88, - 0xf8, 0xe3, 0x85, 0x84, 0x82, 0x04, 0x54, 0x08, 0x23, 0x0e, 0x95, 0x72, 0xc1, 0x70, 0xe2, 0x12, - 0x9c, 0x78, 0x71, 0x2c, 0x39, 0xde, 0xd4, 0xbb, 0x41, 0x44, 0xa8, 0x17, 0x9e, 0x00, 0x89, 0x2b, - 0x57, 0x1e, 0x82, 0x23, 0xb7, 0x9e, 0x50, 0x25, 0x2e, 0x9c, 0x10, 0x4a, 0x78, 0x10, 0xe4, 0x5d, - 0xc7, 0x25, 0x89, 0xd3, 0x3a, 0x52, 0x6e, 0x9b, 0x9d, 0x99, 0x6f, 0x7e, 0x33, 0xfe, 0x36, 0xb0, - 0xc5, 0x45, 0xe4, 0xbb, 0x94, 0x44, 0x8e, 0xa0, 0x81, 0xdf, 0xf5, 0x05, 0xd9, 0xef, 0xd3, 0x68, - 0x60, 0xf6, 0x22, 0x26, 0x18, 0xbe, 0xa4, 0xa2, 0x66, 0x1a, 0xd5, 0x2a, 0x33, 0xf9, 0xe9, 0x49, - 0xd5, 0x68, 0x5b, 0x1e, 0x63, 0x5e, 0x40, 0x89, 0xd3, 0xf3, 0x89, 0x13, 0x86, 0x4c, 0x38, 0xc2, - 0x67, 0x21, 0x4f, 0xa2, 0x6b, 0x1e, 0xf3, 0x98, 0x3c, 0x92, 0xf8, 0xa4, 0x6e, 0x8d, 0x4d, 0xd8, - 0x78, 0x11, 0xb7, 0x7d, 0x1a, 0x04, 0xb6, 0x23, 0x68, 0x23, 0x96, 0xe3, 0x36, 0xdd, 0xef, 0x53, - 0x2e, 0x8c, 0x37, 0xa0, 0x65, 0x05, 0x79, 0x8f, 0x85, 0x9c, 0x62, 0x0b, 0x56, 0x63, 0x82, 0xa6, - 0x44, 0xe0, 0x65, 0x54, 0x39, 0x53, 0x5d, 0xad, 0x6d, 0x9a, 0xd3, 0xe0, 0x66, 0x5a, 0x6a, 0x9d, - 0x3d, 0xfc, 0xbd, 0x5d, 0xb0, 0x21, 0x4a, 0xb5, 0x8c, 0x06, 0xac, 0xcb, 0x0e, 0x69, 0x4e, 0xd2, - 0x1a, 0xaf, 0x41, 0xd1, 0xa5, 0x21, 0xeb, 0x96, 0x51, 0x05, 0x55, 0x4b, 0xb6, 0xfa, 0x81, 0xaf, - 0x02, 0xb4, 0x3b, 0x4e, 0x18, 0xd2, 0xa0, 0xe9, 0xbb, 0xe5, 0x15, 0x19, 0x2a, 0x25, 0x37, 0x7b, - 0xae, 0xf1, 0x0a, 0xae, 0x4c, 0xab, 0x25, 0xac, 0x0f, 0x01, 0x8e, 0x59, 0xa5, 0xe6, 0xc9, 0xa8, - 0x76, 0x29, 0x85, 0x34, 0x1e, 0xc3, 0xf6, 0xa4, 0x2a, 0xb7, 0x06, 0xcf, 0x3a, 0x8e, 0x1f, 0xee, - 0xb9, 0x63, 0xda, 0x0d, 0xb8, 0xd0, 0x8e, 0x6f, 0x62, 0x2a, 0x05, 0x7c, 0xbe, 0xad, 0x32, 0x8c, - 0xb7, 0x50, 0x99, 0x5f, 0xbd, 0xc4, 0x4d, 0x5a, 0x70, 0x2d, 0xab, 0x8f, 0xda, 0xcc, 0x98, 0x73, - 0x72, 0x7f, 0x68, 0x7a, 0x7f, 0x1d, 0x30, 0x4e, 0xd2, 0x58, 0x1e, 0x6d, 0xed, 0x47, 0x11, 0x8a, - 0xb2, 0x15, 0xfe, 0x82, 0xe0, 0xe2, 0x84, 0xbf, 0xf0, 0xcd, 0x59, 0xa9, 0xb9, 0x16, 0xd5, 0x6e, - 0xe5, 0x4b, 0x56, 0xe8, 0xc6, 0x9d, 0x8f, 0x3f, 0xff, 0x7e, 0x5e, 0xb9, 0x81, 0xab, 0xe4, 0xa5, - 0xac, 0xba, 0xdd, 0x70, 0x5a, 0x9c, 0xcc, 0x7f, 0x58, 0x1c, 0x7f, 0x45, 0x50, 0x4a, 0x85, 0xf0, - 0xf5, 0x39, 0xdd, 0xa6, 0xed, 0xab, 0x55, 0x4f, 0x4f, 0x4c, 0x90, 0x9e, 0x4b, 0xa4, 0x27, 0x78, - 0x37, 0x27, 0x12, 0xf9, 0x70, 0xfc, 0x05, 0x0f, 0x48, 0x6b, 0xd0, 0x54, 0x2f, 0xe3, 0x1b, 0x82, - 0xcb, 0x19, 0x16, 0xc3, 0x77, 0x4f, 0x03, 0x99, 0x31, 0xb3, 0x56, 0x5b, 0xa4, 0x24, 0x99, 0xe2, - 0x91, 0x9c, 0x62, 0x07, 0xd7, 0xf3, 0x2e, 0x56, 0x8e, 0x21, 0x1f, 0xcc, 0x01, 0xfe, 0x8e, 0x60, - 0x3d, 0xd3, 0x72, 0xb8, 0x9e, 0x0f, 0x65, 0xc2, 0xe4, 0xda, 0xbd, 0xc5, 0x8a, 0x92, 0x09, 0x76, - 0xe5, 0x04, 0x0f, 0xf0, 0xce, 0x42, 0x13, 0x8c, 0x3f, 0x84, 0xd5, 0x38, 0x1c, 0xea, 0xe8, 0x68, - 0xa8, 0xa3, 0x3f, 0x43, 0x1d, 0x7d, 0x1a, 0xe9, 0x85, 0xa3, 0x91, 0x5e, 0xf8, 0x35, 0xd2, 0x0b, - 0xaf, 0x6b, 0x9e, 0x2f, 0x3a, 0xfd, 0x96, 0xd9, 0x66, 0xdd, 0x2c, 0xe9, 0x77, 0xf7, 0xc9, 0xfb, - 0xff, 0xf4, 0xc5, 0xa0, 0x47, 0x79, 0xeb, 0x9c, 0xfc, 0x73, 0xae, 0xff, 0x0b, 0x00, 0x00, 0xff, - 0xff, 0xe2, 0x2d, 0xc0, 0x4e, 0x24, 0x06, 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 - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - AllRateLimits(ctx context.Context, in *QueryAllRateLimitsRequest, opts ...grpc.CallOption) (*QueryAllRateLimitsResponse, error) - RateLimit(ctx context.Context, in *QueryRateLimitRequest, opts ...grpc.CallOption) (*QueryRateLimitResponse, error) - RateLimitsByChainId(ctx context.Context, in *QueryRateLimitsByChainIdRequest, opts ...grpc.CallOption) (*QueryRateLimitsByChainIdResponse, error) - RateLimitsByChannelId(ctx context.Context, in *QueryRateLimitsByChannelIdRequest, opts ...grpc.CallOption) (*QueryRateLimitsByChannelIdResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) AllRateLimits(ctx context.Context, in *QueryAllRateLimitsRequest, opts ...grpc.CallOption) (*QueryAllRateLimitsResponse, error) { - out := new(QueryAllRateLimitsResponse) - err := c.cc.Invoke(ctx, "/stride.ratelimit.Query/AllRateLimits", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) RateLimit(ctx context.Context, in *QueryRateLimitRequest, opts ...grpc.CallOption) (*QueryRateLimitResponse, error) { - out := new(QueryRateLimitResponse) - err := c.cc.Invoke(ctx, "/stride.ratelimit.Query/RateLimit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) RateLimitsByChainId(ctx context.Context, in *QueryRateLimitsByChainIdRequest, opts ...grpc.CallOption) (*QueryRateLimitsByChainIdResponse, error) { - out := new(QueryRateLimitsByChainIdResponse) - err := c.cc.Invoke(ctx, "/stride.ratelimit.Query/RateLimitsByChainId", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) RateLimitsByChannelId(ctx context.Context, in *QueryRateLimitsByChannelIdRequest, opts ...grpc.CallOption) (*QueryRateLimitsByChannelIdResponse, error) { - out := new(QueryRateLimitsByChannelIdResponse) - err := c.cc.Invoke(ctx, "/stride.ratelimit.Query/RateLimitsByChannelId", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -type QueryServer interface { - AllRateLimits(context.Context, *QueryAllRateLimitsRequest) (*QueryAllRateLimitsResponse, error) - RateLimit(context.Context, *QueryRateLimitRequest) (*QueryRateLimitResponse, error) - RateLimitsByChainId(context.Context, *QueryRateLimitsByChainIdRequest) (*QueryRateLimitsByChainIdResponse, error) - RateLimitsByChannelId(context.Context, *QueryRateLimitsByChannelIdRequest) (*QueryRateLimitsByChannelIdResponse, error) -} - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (*UnimplementedQueryServer) AllRateLimits(ctx context.Context, req *QueryAllRateLimitsRequest) (*QueryAllRateLimitsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AllRateLimits not implemented") -} -func (*UnimplementedQueryServer) RateLimit(ctx context.Context, req *QueryRateLimitRequest) (*QueryRateLimitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RateLimit not implemented") -} -func (*UnimplementedQueryServer) RateLimitsByChainId(ctx context.Context, req *QueryRateLimitsByChainIdRequest) (*QueryRateLimitsByChainIdResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RateLimitsByChainId not implemented") -} -func (*UnimplementedQueryServer) RateLimitsByChannelId(ctx context.Context, req *QueryRateLimitsByChannelIdRequest) (*QueryRateLimitsByChannelIdResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RateLimitsByChannelId not implemented") -} - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) -} - -func _Query_AllRateLimits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllRateLimitsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).AllRateLimits(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.ratelimit.Query/AllRateLimits", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AllRateLimits(ctx, req.(*QueryAllRateLimitsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_RateLimit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryRateLimitRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).RateLimit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.ratelimit.Query/RateLimit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).RateLimit(ctx, req.(*QueryRateLimitRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_RateLimitsByChainId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryRateLimitsByChainIdRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).RateLimitsByChainId(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.ratelimit.Query/RateLimitsByChainId", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).RateLimitsByChainId(ctx, req.(*QueryRateLimitsByChainIdRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_RateLimitsByChannelId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryRateLimitsByChannelIdRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).RateLimitsByChannelId(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.ratelimit.Query/RateLimitsByChannelId", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).RateLimitsByChannelId(ctx, req.(*QueryRateLimitsByChannelIdRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "stride.ratelimit.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "AllRateLimits", - Handler: _Query_AllRateLimits_Handler, - }, - { - MethodName: "RateLimit", - Handler: _Query_RateLimit_Handler, - }, - { - MethodName: "RateLimitsByChainId", - Handler: _Query_RateLimitsByChainId_Handler, - }, - { - MethodName: "RateLimitsByChannelId", - Handler: _Query_RateLimitsByChannelId_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "stride/ratelimit/query.proto", -} - -func (m *QueryAllRateLimitsRequest) 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 *QueryAllRateLimitsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllRateLimitsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryAllRateLimitsResponse) 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 *QueryAllRateLimitsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllRateLimitsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RateLimits) > 0 { - for iNdEx := len(m.RateLimits) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RateLimits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryRateLimitRequest) 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 *QueryRateLimitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryRateLimitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ChannelId) > 0 { - i -= len(m.ChannelId) - copy(dAtA[i:], m.ChannelId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ChannelId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryRateLimitResponse) 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 *QueryRateLimitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryRateLimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RateLimit != nil { - { - size, err := m.RateLimit.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryRateLimitsByChainIdRequest) 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 *QueryRateLimitsByChainIdRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryRateLimitsByChainIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryRateLimitsByChainIdResponse) 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 *QueryRateLimitsByChainIdResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryRateLimitsByChainIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RateLimits) > 0 { - for iNdEx := len(m.RateLimits) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RateLimits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryRateLimitsByChannelIdRequest) 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 *QueryRateLimitsByChannelIdRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryRateLimitsByChannelIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ChannelId) > 0 { - i -= len(m.ChannelId) - copy(dAtA[i:], m.ChannelId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ChannelId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryRateLimitsByChannelIdResponse) 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 *QueryRateLimitsByChannelIdResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryRateLimitsByChannelIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RateLimits) > 0 { - for iNdEx := len(m.RateLimits) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RateLimits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryAllRateLimitsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryAllRateLimitsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.RateLimits) > 0 { - for _, e := range m.RateLimits { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func (m *QueryRateLimitRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.ChannelId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryRateLimitResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RateLimit != nil { - l = m.RateLimit.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryRateLimitsByChainIdRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryRateLimitsByChainIdResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.RateLimits) > 0 { - for _, e := range m.RateLimits { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func (m *QueryRateLimitsByChannelIdRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChannelId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryRateLimitsByChannelIdResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.RateLimits) > 0 { - for _, e := range m.RateLimits { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryAllRateLimitsRequest) 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 ErrIntOverflowQuery - } - 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: QueryAllRateLimitsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllRateLimitsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllRateLimitsResponse) 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 ErrIntOverflowQuery - } - 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: QueryAllRateLimitsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllRateLimitsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RateLimits", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RateLimits = append(m.RateLimits, RateLimit{}) - if err := m.RateLimits[len(m.RateLimits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryRateLimitRequest) 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 ErrIntOverflowQuery - } - 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: QueryRateLimitRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRateLimitRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChannelId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryRateLimitResponse) 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 ErrIntOverflowQuery - } - 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: QueryRateLimitResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRateLimitResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RateLimit", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RateLimit == nil { - m.RateLimit = &RateLimit{} - } - if err := m.RateLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryRateLimitsByChainIdRequest) 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 ErrIntOverflowQuery - } - 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: QueryRateLimitsByChainIdRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRateLimitsByChainIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryRateLimitsByChainIdResponse) 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 ErrIntOverflowQuery - } - 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: QueryRateLimitsByChainIdResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRateLimitsByChainIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RateLimits", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RateLimits = append(m.RateLimits, RateLimit{}) - if err := m.RateLimits[len(m.RateLimits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryRateLimitsByChannelIdRequest) 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 ErrIntOverflowQuery - } - 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: QueryRateLimitsByChannelIdRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRateLimitsByChannelIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChannelId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryRateLimitsByChannelIdResponse) 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 ErrIntOverflowQuery - } - 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: QueryRateLimitsByChannelIdResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryRateLimitsByChannelIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RateLimits", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RateLimits = append(m.RateLimits, RateLimit{}) - if err := m.RateLimits[len(m.RateLimits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/ratelimit/types/ratelimit.pb.go b/x/ratelimit/types/ratelimit.pb.go deleted file mode 100644 index b5b8fa3a12..0000000000 --- a/x/ratelimit/types/ratelimit.pb.go +++ /dev/null @@ -1,1220 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/ratelimit/ratelimit.proto - -package types - -import ( - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -type PacketDirection int32 - -const ( - PACKET_SEND PacketDirection = 0 - PACKET_RECV PacketDirection = 1 -) - -var PacketDirection_name = map[int32]string{ - 0: "PACKET_SEND", - 1: "PACKET_RECV", -} - -var PacketDirection_value = map[string]int32{ - "PACKET_SEND": 0, - "PACKET_RECV": 1, -} - -func (x PacketDirection) String() string { - return proto.EnumName(PacketDirection_name, int32(x)) -} - -func (PacketDirection) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a3e00ee2c967d747, []int{0} -} - -type Path struct { - Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` - ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` -} - -func (m *Path) Reset() { *m = Path{} } -func (m *Path) String() string { return proto.CompactTextString(m) } -func (*Path) ProtoMessage() {} -func (*Path) Descriptor() ([]byte, []int) { - return fileDescriptor_a3e00ee2c967d747, []int{0} -} -func (m *Path) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Path) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Path.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 *Path) XXX_Merge(src proto.Message) { - xxx_messageInfo_Path.Merge(m, src) -} -func (m *Path) XXX_Size() int { - return m.Size() -} -func (m *Path) XXX_DiscardUnknown() { - xxx_messageInfo_Path.DiscardUnknown(m) -} - -var xxx_messageInfo_Path proto.InternalMessageInfo - -func (m *Path) GetDenom() string { - if m != nil { - return m.Denom - } - return "" -} - -func (m *Path) GetChannelId() string { - if m != nil { - return m.ChannelId - } - return "" -} - -type Quota struct { - MaxPercentSend github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=max_percent_send,json=maxPercentSend,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"max_percent_send"` - MaxPercentRecv github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=max_percent_recv,json=maxPercentRecv,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"max_percent_recv"` - DurationHours uint64 `protobuf:"varint,3,opt,name=duration_hours,json=durationHours,proto3" json:"duration_hours,omitempty"` -} - -func (m *Quota) Reset() { *m = Quota{} } -func (m *Quota) String() string { return proto.CompactTextString(m) } -func (*Quota) ProtoMessage() {} -func (*Quota) Descriptor() ([]byte, []int) { - return fileDescriptor_a3e00ee2c967d747, []int{1} -} -func (m *Quota) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Quota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Quota.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 *Quota) XXX_Merge(src proto.Message) { - xxx_messageInfo_Quota.Merge(m, src) -} -func (m *Quota) XXX_Size() int { - return m.Size() -} -func (m *Quota) XXX_DiscardUnknown() { - xxx_messageInfo_Quota.DiscardUnknown(m) -} - -var xxx_messageInfo_Quota proto.InternalMessageInfo - -func (m *Quota) GetDurationHours() uint64 { - if m != nil { - return m.DurationHours - } - return 0 -} - -type Flow struct { - Inflow github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=inflow,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"inflow"` - Outflow github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=outflow,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"outflow"` - ChannelValue github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=channel_value,json=channelValue,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"channel_value"` -} - -func (m *Flow) Reset() { *m = Flow{} } -func (m *Flow) String() string { return proto.CompactTextString(m) } -func (*Flow) ProtoMessage() {} -func (*Flow) Descriptor() ([]byte, []int) { - return fileDescriptor_a3e00ee2c967d747, []int{2} -} -func (m *Flow) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Flow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Flow.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 *Flow) XXX_Merge(src proto.Message) { - xxx_messageInfo_Flow.Merge(m, src) -} -func (m *Flow) XXX_Size() int { - return m.Size() -} -func (m *Flow) XXX_DiscardUnknown() { - xxx_messageInfo_Flow.DiscardUnknown(m) -} - -var xxx_messageInfo_Flow proto.InternalMessageInfo - -type RateLimit struct { - Path *Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Quota *Quota `protobuf:"bytes,2,opt,name=quota,proto3" json:"quota,omitempty"` - Flow *Flow `protobuf:"bytes,3,opt,name=flow,proto3" json:"flow,omitempty"` -} - -func (m *RateLimit) Reset() { *m = RateLimit{} } -func (m *RateLimit) String() string { return proto.CompactTextString(m) } -func (*RateLimit) ProtoMessage() {} -func (*RateLimit) Descriptor() ([]byte, []int) { - return fileDescriptor_a3e00ee2c967d747, []int{3} -} -func (m *RateLimit) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RateLimit.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 *RateLimit) XXX_Merge(src proto.Message) { - xxx_messageInfo_RateLimit.Merge(m, src) -} -func (m *RateLimit) XXX_Size() int { - return m.Size() -} -func (m *RateLimit) XXX_DiscardUnknown() { - xxx_messageInfo_RateLimit.DiscardUnknown(m) -} - -var xxx_messageInfo_RateLimit proto.InternalMessageInfo - -func (m *RateLimit) GetPath() *Path { - if m != nil { - return m.Path - } - return nil -} - -func (m *RateLimit) GetQuota() *Quota { - if m != nil { - return m.Quota - } - return nil -} - -func (m *RateLimit) GetFlow() *Flow { - if m != nil { - return m.Flow - } - return nil -} - -func init() { - proto.RegisterEnum("stride.ratelimit.PacketDirection", PacketDirection_name, PacketDirection_value) - proto.RegisterType((*Path)(nil), "stride.ratelimit.Path") - proto.RegisterType((*Quota)(nil), "stride.ratelimit.Quota") - proto.RegisterType((*Flow)(nil), "stride.ratelimit.Flow") - proto.RegisterType((*RateLimit)(nil), "stride.ratelimit.RateLimit") -} - -func init() { proto.RegisterFile("stride/ratelimit/ratelimit.proto", fileDescriptor_a3e00ee2c967d747) } - -var fileDescriptor_a3e00ee2c967d747 = []byte{ - // 478 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xc1, 0x6a, 0x13, 0x41, - 0x18, 0xc7, 0x77, 0xec, 0xa6, 0x92, 0x2f, 0xb6, 0x0d, 0x43, 0xd1, 0x50, 0x70, 0x1b, 0x02, 0x4a, - 0x29, 0x64, 0x17, 0x22, 0x08, 0xe2, 0xc9, 0xb6, 0x29, 0x2d, 0x06, 0x89, 0x13, 0x29, 0xe2, 0x65, - 0x99, 0xec, 0x8e, 0xd9, 0xa5, 0xbb, 0x33, 0x71, 0x67, 0x36, 0x8d, 0x6f, 0xe0, 0x51, 0x7c, 0x05, - 0x5f, 0xa6, 0xc7, 0x1e, 0xc5, 0x43, 0x91, 0xe4, 0xec, 0x3b, 0xc8, 0xcc, 0x6e, 0x34, 0x54, 0x3c, - 0x98, 0x9e, 0x76, 0xf6, 0x9b, 0xff, 0xfc, 0x76, 0xff, 0xdf, 0xfc, 0x3f, 0x68, 0x4a, 0x95, 0xc5, - 0x21, 0xf3, 0x32, 0xaa, 0x58, 0x12, 0xa7, 0xb1, 0xfa, 0xb3, 0x72, 0xc7, 0x99, 0x50, 0x02, 0xd7, - 0x0b, 0x85, 0xfb, 0xbb, 0xbe, 0xb3, 0x3d, 0x12, 0x23, 0x61, 0x36, 0x3d, 0xbd, 0x2a, 0x74, 0xad, - 0xe7, 0x60, 0xf7, 0xa9, 0x8a, 0xf0, 0x36, 0x54, 0x42, 0xc6, 0x45, 0xda, 0x40, 0x4d, 0xb4, 0x57, - 0x25, 0xc5, 0x0b, 0x7e, 0x08, 0x10, 0x44, 0x94, 0x73, 0x96, 0xf8, 0x71, 0xd8, 0xb8, 0x63, 0xb6, - 0xaa, 0x65, 0xe5, 0x34, 0x6c, 0xcd, 0x10, 0x54, 0x5e, 0xe7, 0x42, 0x51, 0xfc, 0x16, 0xea, 0x29, - 0x9d, 0xfa, 0x63, 0x96, 0x05, 0x8c, 0x2b, 0x5f, 0x32, 0x1e, 0x16, 0xa4, 0x03, 0xf7, 0xf2, 0x7a, - 0xd7, 0xfa, 0x7e, 0xbd, 0xfb, 0x78, 0x14, 0xab, 0x28, 0x1f, 0xba, 0x81, 0x48, 0xbd, 0x40, 0xc8, - 0x54, 0xc8, 0xf2, 0xd1, 0x96, 0xe1, 0xb9, 0xa7, 0x3e, 0x8e, 0x99, 0x74, 0x4f, 0xb9, 0x22, 0x9b, - 0x29, 0x9d, 0xf6, 0x0b, 0xcc, 0x80, 0xf1, 0xf0, 0x26, 0x39, 0x63, 0xc1, 0xa4, 0xf8, 0x91, 0xdb, - 0x90, 0x09, 0x0b, 0x26, 0xf8, 0x11, 0x6c, 0x86, 0x79, 0x46, 0x55, 0x2c, 0xb8, 0x1f, 0x89, 0x3c, - 0x93, 0x8d, 0xb5, 0x26, 0xda, 0xb3, 0xc9, 0xc6, 0xa2, 0x7a, 0xa2, 0x8b, 0xad, 0x9f, 0x08, 0xec, - 0xe3, 0x44, 0x5c, 0xe0, 0x63, 0x58, 0x8f, 0xf9, 0xfb, 0x44, 0x5c, 0xac, 0xe8, 0xac, 0x3c, 0x8d, - 0x4f, 0xe0, 0xae, 0xc8, 0x95, 0x01, 0xad, 0x66, 0x64, 0x71, 0x1c, 0x0f, 0x60, 0x63, 0x71, 0x3d, - 0x13, 0x9a, 0xe4, 0xcc, 0x18, 0xf8, 0x7f, 0xde, 0xbd, 0x12, 0x72, 0xa6, 0x19, 0xad, 0x2f, 0x08, - 0xaa, 0x84, 0x2a, 0xd6, 0xd3, 0xa9, 0xc1, 0xfb, 0x60, 0x8f, 0xa9, 0x8a, 0x8c, 0xe5, 0x5a, 0xe7, - 0xbe, 0x7b, 0x33, 0x56, 0xae, 0x4e, 0x0f, 0x31, 0x1a, 0xdc, 0x86, 0xca, 0x07, 0x9d, 0x06, 0x63, - 0xab, 0xd6, 0x79, 0xf0, 0xb7, 0xd8, 0x84, 0x85, 0x14, 0x2a, 0x8d, 0x36, 0x4d, 0x58, 0xfb, 0x17, - 0x5a, 0x77, 0x9d, 0x18, 0xcd, 0xfe, 0x33, 0xd8, 0xea, 0xd3, 0xe0, 0x9c, 0xa9, 0xa3, 0x38, 0x63, - 0x81, 0xbe, 0x1c, 0xbc, 0x05, 0xb5, 0xfe, 0x8b, 0xc3, 0x97, 0xdd, 0x37, 0xfe, 0xa0, 0xfb, 0xea, - 0xa8, 0x6e, 0x2d, 0x15, 0x48, 0xf7, 0xf0, 0xac, 0x8e, 0x76, 0xec, 0x4f, 0x5f, 0x1d, 0xeb, 0xa0, - 0x77, 0x39, 0x73, 0xd0, 0xd5, 0xcc, 0x41, 0x3f, 0x66, 0x0e, 0xfa, 0x3c, 0x77, 0xac, 0xab, 0xb9, - 0x63, 0x7d, 0x9b, 0x3b, 0xd6, 0xbb, 0xce, 0x52, 0x7f, 0x06, 0xe6, 0xe3, 0xed, 0x1e, 0x1d, 0x4a, - 0xaf, 0x1c, 0xae, 0xc9, 0x53, 0x6f, 0xba, 0x34, 0x61, 0xa6, 0x5f, 0xc3, 0x75, 0x33, 0x36, 0x4f, - 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0xcc, 0x20, 0x10, 0x74, 0x82, 0x03, 0x00, 0x00, -} - -func (m *Path) 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 *Path) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Path) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ChannelId) > 0 { - i -= len(m.ChannelId) - copy(dAtA[i:], m.ChannelId) - i = encodeVarintRatelimit(dAtA, i, uint64(len(m.ChannelId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintRatelimit(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Quota) 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 *Quota) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Quota) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DurationHours != 0 { - i = encodeVarintRatelimit(dAtA, i, uint64(m.DurationHours)) - i-- - dAtA[i] = 0x18 - } - { - size := m.MaxPercentRecv.Size() - i -= size - if _, err := m.MaxPercentRecv.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintRatelimit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size := m.MaxPercentSend.Size() - i -= size - if _, err := m.MaxPercentSend.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintRatelimit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Flow) 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 *Flow) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Flow) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.ChannelValue.Size() - i -= size - if _, err := m.ChannelValue.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintRatelimit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size := m.Outflow.Size() - i -= size - if _, err := m.Outflow.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintRatelimit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size := m.Inflow.Size() - i -= size - if _, err := m.Inflow.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintRatelimit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RateLimit) 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 *RateLimit) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RateLimit) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Flow != nil { - { - size, err := m.Flow.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRatelimit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Quota != nil { - { - size, err := m.Quota.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRatelimit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Path != nil { - { - size, err := m.Path.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRatelimit(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintRatelimit(dAtA []byte, offset int, v uint64) int { - offset -= sovRatelimit(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Path) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovRatelimit(uint64(l)) - } - l = len(m.ChannelId) - if l > 0 { - n += 1 + l + sovRatelimit(uint64(l)) - } - return n -} - -func (m *Quota) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.MaxPercentSend.Size() - n += 1 + l + sovRatelimit(uint64(l)) - l = m.MaxPercentRecv.Size() - n += 1 + l + sovRatelimit(uint64(l)) - if m.DurationHours != 0 { - n += 1 + sovRatelimit(uint64(m.DurationHours)) - } - return n -} - -func (m *Flow) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Inflow.Size() - n += 1 + l + sovRatelimit(uint64(l)) - l = m.Outflow.Size() - n += 1 + l + sovRatelimit(uint64(l)) - l = m.ChannelValue.Size() - n += 1 + l + sovRatelimit(uint64(l)) - return n -} - -func (m *RateLimit) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Path != nil { - l = m.Path.Size() - n += 1 + l + sovRatelimit(uint64(l)) - } - if m.Quota != nil { - l = m.Quota.Size() - n += 1 + l + sovRatelimit(uint64(l)) - } - if m.Flow != nil { - l = m.Flow.Size() - n += 1 + l + sovRatelimit(uint64(l)) - } - return n -} - -func sovRatelimit(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozRatelimit(x uint64) (n int) { - return sovRatelimit(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Path) 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 ErrIntOverflowRatelimit - } - 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: Path: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Path: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRatelimit - } - 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 ErrInvalidLengthRatelimit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRatelimit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRatelimit - } - 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 ErrInvalidLengthRatelimit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRatelimit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChannelId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipRatelimit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRatelimit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Quota) 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 ErrIntOverflowRatelimit - } - 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: Quota: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Quota: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxPercentSend", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRatelimit - } - 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 ErrInvalidLengthRatelimit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRatelimit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.MaxPercentSend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxPercentRecv", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRatelimit - } - 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 ErrInvalidLengthRatelimit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRatelimit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.MaxPercentRecv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DurationHours", wireType) - } - m.DurationHours = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRatelimit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DurationHours |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipRatelimit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRatelimit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Flow) 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 ErrIntOverflowRatelimit - } - 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: Flow: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Flow: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Inflow", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRatelimit - } - 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 ErrInvalidLengthRatelimit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRatelimit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Inflow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Outflow", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRatelimit - } - 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 ErrInvalidLengthRatelimit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRatelimit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Outflow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRatelimit - } - 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 ErrInvalidLengthRatelimit - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRatelimit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ChannelValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipRatelimit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRatelimit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RateLimit) 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 ErrIntOverflowRatelimit - } - 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: RateLimit: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RateLimit: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRatelimit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthRatelimit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRatelimit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Path == nil { - m.Path = &Path{} - } - if err := m.Path.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Quota", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRatelimit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthRatelimit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRatelimit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Quota == nil { - m.Quota = &Quota{} - } - if err := m.Quota.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Flow", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRatelimit - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthRatelimit - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRatelimit - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Flow == nil { - m.Flow = &Flow{} - } - if err := m.Flow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipRatelimit(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRatelimit - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipRatelimit(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, ErrIntOverflowRatelimit - } - 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, ErrIntOverflowRatelimit - } - 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, ErrIntOverflowRatelimit - } - 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, ErrInvalidLengthRatelimit - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupRatelimit - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthRatelimit - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthRatelimit = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowRatelimit = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupRatelimit = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/records/migrations/v2/types/genesis.pb.go b/x/records/migrations/v2/types/genesis.pb.go deleted file mode 100644 index 4c7e5c7679..0000000000 --- a/x/records/migrations/v2/types/genesis.pb.go +++ /dev/null @@ -1,2806 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/records/genesis.proto - -package types - -import ( - context "context" - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - grpc "google.golang.org/grpc" - 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 - -type DepositRecord_Status int32 - -const ( - // in transfer queue to be sent to the delegation ICA - DepositRecord_TRANSFER_QUEUE DepositRecord_Status = 0 - // transfer in progress (IBC packet sent, ack not received) - DepositRecord_TRANSFER_IN_PROGRESS DepositRecord_Status = 2 - // in staking queue on delegation ICA - DepositRecord_DELEGATION_QUEUE DepositRecord_Status = 1 - // staking in progress (ICA packet sent, ack not received) - DepositRecord_DELEGATION_IN_PROGRESS DepositRecord_Status = 3 -) - -var DepositRecord_Status_name = map[int32]string{ - 0: "TRANSFER_QUEUE", - 2: "TRANSFER_IN_PROGRESS", - 1: "DELEGATION_QUEUE", - 3: "DELEGATION_IN_PROGRESS", -} - -var DepositRecord_Status_value = map[string]int32{ - "TRANSFER_QUEUE": 0, - "TRANSFER_IN_PROGRESS": 2, - "DELEGATION_QUEUE": 1, - "DELEGATION_IN_PROGRESS": 3, -} - -func (x DepositRecord_Status) String() string { - return proto.EnumName(DepositRecord_Status_name, int32(x)) -} - -func (DepositRecord_Status) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{4, 0} -} - -type DepositRecord_Source int32 - -const ( - DepositRecord_STRIDE DepositRecord_Source = 0 - DepositRecord_WITHDRAWAL_ICA DepositRecord_Source = 1 -) - -var DepositRecord_Source_name = map[int32]string{ - 0: "STRIDE", - 1: "WITHDRAWAL_ICA", -} - -var DepositRecord_Source_value = map[string]int32{ - "STRIDE": 0, - "WITHDRAWAL_ICA": 1, -} - -func (x DepositRecord_Source) String() string { - return proto.EnumName(DepositRecord_Source_name, int32(x)) -} - -func (DepositRecord_Source) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{4, 1} -} - -type HostZoneUnbonding_Status int32 - -const ( - // tokens bonded on delegate account - HostZoneUnbonding_UNBONDING_QUEUE HostZoneUnbonding_Status = 0 - HostZoneUnbonding_UNBONDING_IN_PROGRESS HostZoneUnbonding_Status = 3 - // unbonding completed on delegate account - HostZoneUnbonding_EXIT_TRANSFER_QUEUE HostZoneUnbonding_Status = 1 - HostZoneUnbonding_EXIT_TRANSFER_IN_PROGRESS HostZoneUnbonding_Status = 4 - // transfer success - HostZoneUnbonding_CLAIMABLE HostZoneUnbonding_Status = 2 -) - -var HostZoneUnbonding_Status_name = map[int32]string{ - 0: "UNBONDING_QUEUE", - 3: "UNBONDING_IN_PROGRESS", - 1: "EXIT_TRANSFER_QUEUE", - 4: "EXIT_TRANSFER_IN_PROGRESS", - 2: "CLAIMABLE", -} - -var HostZoneUnbonding_Status_value = map[string]int32{ - "UNBONDING_QUEUE": 0, - "UNBONDING_IN_PROGRESS": 3, - "EXIT_TRANSFER_QUEUE": 1, - "EXIT_TRANSFER_IN_PROGRESS": 4, - "CLAIMABLE": 2, -} - -func (x HostZoneUnbonding_Status) String() string { - return proto.EnumName(HostZoneUnbonding_Status_name, int32(x)) -} - -func (HostZoneUnbonding_Status) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{5, 0} -} - -type UserRedemptionRecord struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` - Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` - Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` - Denom string `protobuf:"bytes,5,opt,name=denom,proto3" json:"denom,omitempty"` - HostZoneId string `protobuf:"bytes,6,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` - EpochNumber uint64 `protobuf:"varint,7,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` - ClaimIsPending bool `protobuf:"varint,8,opt,name=claim_is_pending,json=claimIsPending,proto3" json:"claim_is_pending,omitempty"` -} - -func (m *UserRedemptionRecord) Reset() { *m = UserRedemptionRecord{} } -func (m *UserRedemptionRecord) String() string { return proto.CompactTextString(m) } -func (*UserRedemptionRecord) ProtoMessage() {} -func (*UserRedemptionRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{0} -} -func (m *UserRedemptionRecord) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UserRedemptionRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UserRedemptionRecord.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 *UserRedemptionRecord) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserRedemptionRecord.Merge(m, src) -} -func (m *UserRedemptionRecord) XXX_Size() int { - return m.Size() -} -func (m *UserRedemptionRecord) XXX_DiscardUnknown() { - xxx_messageInfo_UserRedemptionRecord.DiscardUnknown(m) -} - -var xxx_messageInfo_UserRedemptionRecord proto.InternalMessageInfo - -func (m *UserRedemptionRecord) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserRedemptionRecord) GetSender() string { - if m != nil { - return m.Sender - } - return "" -} - -func (m *UserRedemptionRecord) GetReceiver() string { - if m != nil { - return m.Receiver - } - return "" -} - -func (m *UserRedemptionRecord) GetAmount() uint64 { - if m != nil { - return m.Amount - } - return 0 -} - -func (m *UserRedemptionRecord) GetDenom() string { - if m != nil { - return m.Denom - } - return "" -} - -func (m *UserRedemptionRecord) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -func (m *UserRedemptionRecord) GetEpochNumber() uint64 { - if m != nil { - return m.EpochNumber - } - return 0 -} - -func (m *UserRedemptionRecord) GetClaimIsPending() bool { - if m != nil { - return m.ClaimIsPending - } - return false -} - -// Params defines the parameters for the module. -type Params struct { -} - -func (m *Params) Reset() { *m = Params{} } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{1} -} -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} -func (m *Params) XXX_Size() int { - return m.Size() -} -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -type RecordsPacketData struct { - // Types that are valid to be assigned to Packet: - // *RecordsPacketData_NoData - Packet isRecordsPacketData_Packet `protobuf_oneof:"packet"` -} - -func (m *RecordsPacketData) Reset() { *m = RecordsPacketData{} } -func (m *RecordsPacketData) String() string { return proto.CompactTextString(m) } -func (*RecordsPacketData) ProtoMessage() {} -func (*RecordsPacketData) Descriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{2} -} -func (m *RecordsPacketData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecordsPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecordsPacketData.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 *RecordsPacketData) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecordsPacketData.Merge(m, src) -} -func (m *RecordsPacketData) XXX_Size() int { - return m.Size() -} -func (m *RecordsPacketData) XXX_DiscardUnknown() { - xxx_messageInfo_RecordsPacketData.DiscardUnknown(m) -} - -var xxx_messageInfo_RecordsPacketData proto.InternalMessageInfo - -type isRecordsPacketData_Packet interface { - isRecordsPacketData_Packet() - MarshalTo([]byte) (int, error) - Size() int -} - -type RecordsPacketData_NoData struct { - NoData *NoData `protobuf:"bytes,1,opt,name=no_data,json=noData,proto3,oneof" json:"no_data,omitempty"` -} - -func (*RecordsPacketData_NoData) isRecordsPacketData_Packet() {} - -func (m *RecordsPacketData) GetPacket() isRecordsPacketData_Packet { - if m != nil { - return m.Packet - } - return nil -} - -func (m *RecordsPacketData) GetNoData() *NoData { - if x, ok := m.GetPacket().(*RecordsPacketData_NoData); ok { - return x.NoData - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*RecordsPacketData) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*RecordsPacketData_NoData)(nil), - } -} - -type NoData struct { -} - -func (m *NoData) Reset() { *m = NoData{} } -func (m *NoData) String() string { return proto.CompactTextString(m) } -func (*NoData) ProtoMessage() {} -func (*NoData) Descriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{3} -} -func (m *NoData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NoData.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 *NoData) XXX_Merge(src proto.Message) { - xxx_messageInfo_NoData.Merge(m, src) -} -func (m *NoData) XXX_Size() int { - return m.Size() -} -func (m *NoData) XXX_DiscardUnknown() { - xxx_messageInfo_NoData.DiscardUnknown(m) -} - -var xxx_messageInfo_NoData proto.InternalMessageInfo - -type DepositRecord struct { - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` - Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` - HostZoneId string `protobuf:"bytes,4,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` - Status DepositRecord_Status `protobuf:"varint,6,opt,name=status,proto3,enum=stride.records.DepositRecord_Status" json:"status,omitempty"` - DepositEpochNumber uint64 `protobuf:"varint,7,opt,name=deposit_epoch_number,json=depositEpochNumber,proto3" json:"deposit_epoch_number,omitempty"` - Source DepositRecord_Source `protobuf:"varint,8,opt,name=source,proto3,enum=stride.records.DepositRecord_Source" json:"source,omitempty"` -} - -func (m *DepositRecord) Reset() { *m = DepositRecord{} } -func (m *DepositRecord) String() string { return proto.CompactTextString(m) } -func (*DepositRecord) ProtoMessage() {} -func (*DepositRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{4} -} -func (m *DepositRecord) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DepositRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DepositRecord.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 *DepositRecord) XXX_Merge(src proto.Message) { - xxx_messageInfo_DepositRecord.Merge(m, src) -} -func (m *DepositRecord) XXX_Size() int { - return m.Size() -} -func (m *DepositRecord) XXX_DiscardUnknown() { - xxx_messageInfo_DepositRecord.DiscardUnknown(m) -} - -var xxx_messageInfo_DepositRecord proto.InternalMessageInfo - -func (m *DepositRecord) GetId() uint64 { - if m != nil { - return m.Id - } - return 0 -} - -func (m *DepositRecord) GetAmount() int64 { - if m != nil { - return m.Amount - } - return 0 -} - -func (m *DepositRecord) GetDenom() string { - if m != nil { - return m.Denom - } - return "" -} - -func (m *DepositRecord) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -func (m *DepositRecord) GetStatus() DepositRecord_Status { - if m != nil { - return m.Status - } - return DepositRecord_TRANSFER_QUEUE -} - -func (m *DepositRecord) GetDepositEpochNumber() uint64 { - if m != nil { - return m.DepositEpochNumber - } - return 0 -} - -func (m *DepositRecord) GetSource() DepositRecord_Source { - if m != nil { - return m.Source - } - return DepositRecord_STRIDE -} - -type HostZoneUnbonding struct { - StTokenAmount uint64 `protobuf:"varint,1,opt,name=st_token_amount,json=stTokenAmount,proto3" json:"st_token_amount,omitempty"` - NativeTokenAmount uint64 `protobuf:"varint,2,opt,name=native_token_amount,json=nativeTokenAmount,proto3" json:"native_token_amount,omitempty"` - Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` - HostZoneId string `protobuf:"bytes,4,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` - UnbondingTime uint64 `protobuf:"varint,5,opt,name=unbonding_time,json=unbondingTime,proto3" json:"unbonding_time,omitempty"` - Status HostZoneUnbonding_Status `protobuf:"varint,6,opt,name=status,proto3,enum=stride.records.HostZoneUnbonding_Status" json:"status,omitempty"` - UserRedemptionRecords []string `protobuf:"bytes,7,rep,name=user_redemption_records,json=userRedemptionRecords,proto3" json:"user_redemption_records,omitempty"` -} - -func (m *HostZoneUnbonding) Reset() { *m = HostZoneUnbonding{} } -func (m *HostZoneUnbonding) String() string { return proto.CompactTextString(m) } -func (*HostZoneUnbonding) ProtoMessage() {} -func (*HostZoneUnbonding) Descriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{5} -} -func (m *HostZoneUnbonding) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HostZoneUnbonding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HostZoneUnbonding.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 *HostZoneUnbonding) XXX_Merge(src proto.Message) { - xxx_messageInfo_HostZoneUnbonding.Merge(m, src) -} -func (m *HostZoneUnbonding) XXX_Size() int { - return m.Size() -} -func (m *HostZoneUnbonding) XXX_DiscardUnknown() { - xxx_messageInfo_HostZoneUnbonding.DiscardUnknown(m) -} - -var xxx_messageInfo_HostZoneUnbonding proto.InternalMessageInfo - -func (m *HostZoneUnbonding) GetStTokenAmount() uint64 { - if m != nil { - return m.StTokenAmount - } - return 0 -} - -func (m *HostZoneUnbonding) GetNativeTokenAmount() uint64 { - if m != nil { - return m.NativeTokenAmount - } - return 0 -} - -func (m *HostZoneUnbonding) GetDenom() string { - if m != nil { - return m.Denom - } - return "" -} - -func (m *HostZoneUnbonding) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -func (m *HostZoneUnbonding) GetUnbondingTime() uint64 { - if m != nil { - return m.UnbondingTime - } - return 0 -} - -func (m *HostZoneUnbonding) GetStatus() HostZoneUnbonding_Status { - if m != nil { - return m.Status - } - return HostZoneUnbonding_UNBONDING_QUEUE -} - -func (m *HostZoneUnbonding) GetUserRedemptionRecords() []string { - if m != nil { - return m.UserRedemptionRecords - } - return nil -} - -type EpochUnbondingRecord struct { - EpochNumber uint64 `protobuf:"varint,1,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` - HostZoneUnbondings []*HostZoneUnbonding `protobuf:"bytes,3,rep,name=host_zone_unbondings,json=hostZoneUnbondings,proto3" json:"host_zone_unbondings,omitempty"` -} - -func (m *EpochUnbondingRecord) Reset() { *m = EpochUnbondingRecord{} } -func (m *EpochUnbondingRecord) String() string { return proto.CompactTextString(m) } -func (*EpochUnbondingRecord) ProtoMessage() {} -func (*EpochUnbondingRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{6} -} -func (m *EpochUnbondingRecord) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EpochUnbondingRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EpochUnbondingRecord.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 *EpochUnbondingRecord) XXX_Merge(src proto.Message) { - xxx_messageInfo_EpochUnbondingRecord.Merge(m, src) -} -func (m *EpochUnbondingRecord) XXX_Size() int { - return m.Size() -} -func (m *EpochUnbondingRecord) XXX_DiscardUnknown() { - xxx_messageInfo_EpochUnbondingRecord.DiscardUnknown(m) -} - -var xxx_messageInfo_EpochUnbondingRecord proto.InternalMessageInfo - -func (m *EpochUnbondingRecord) GetEpochNumber() uint64 { - if m != nil { - return m.EpochNumber - } - return 0 -} - -func (m *EpochUnbondingRecord) GetHostZoneUnbondings() []*HostZoneUnbonding { - if m != nil { - return m.HostZoneUnbondings - } - return nil -} - -// GenesisState defines the recordπs module's genesis state. -// next id: 9 -type GenesisState struct { - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - UserRedemptionRecordList []UserRedemptionRecord `protobuf:"bytes,3,rep,name=user_redemption_record_list,json=userRedemptionRecordList,proto3" json:"user_redemption_record_list"` - UserRedemptionRecordCount uint64 `protobuf:"varint,4,opt,name=user_redemption_record_count,json=userRedemptionRecordCount,proto3" json:"user_redemption_record_count,omitempty"` - EpochUnbondingRecordList []EpochUnbondingRecord `protobuf:"bytes,5,rep,name=epoch_unbonding_record_list,json=epochUnbondingRecordList,proto3" json:"epoch_unbonding_record_list"` - DepositRecordList []DepositRecord `protobuf:"bytes,7,rep,name=deposit_record_list,json=depositRecordList,proto3" json:"deposit_record_list"` - DepositRecordCount uint64 `protobuf:"varint,8,opt,name=deposit_record_count,json=depositRecordCount,proto3" json:"deposit_record_count,omitempty"` -} - -func (m *GenesisState) Reset() { *m = GenesisState{} } -func (m *GenesisState) String() string { return proto.CompactTextString(m) } -func (*GenesisState) ProtoMessage() {} -func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{7} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func (m *GenesisState) GetPortId() string { - if m != nil { - return m.PortId - } - return "" -} - -func (m *GenesisState) GetUserRedemptionRecordList() []UserRedemptionRecord { - if m != nil { - return m.UserRedemptionRecordList - } - return nil -} - -func (m *GenesisState) GetUserRedemptionRecordCount() uint64 { - if m != nil { - return m.UserRedemptionRecordCount - } - return 0 -} - -func (m *GenesisState) GetEpochUnbondingRecordList() []EpochUnbondingRecord { - if m != nil { - return m.EpochUnbondingRecordList - } - return nil -} - -func (m *GenesisState) GetDepositRecordList() []DepositRecord { - if m != nil { - return m.DepositRecordList - } - return nil -} - -func (m *GenesisState) GetDepositRecordCount() uint64 { - if m != nil { - return m.DepositRecordCount - } - return 0 -} - -func init() { - proto.RegisterEnum("stride.records.V2DepositRecord_Status", DepositRecord_Status_name, DepositRecord_Status_value) - proto.RegisterEnum("stride.records.V2DepositRecord_Source", DepositRecord_Source_name, DepositRecord_Source_value) - proto.RegisterEnum("stride.records.V2HostZoneUnbonding_Status", HostZoneUnbonding_Status_name, HostZoneUnbonding_Status_value) - proto.RegisterType((*UserRedemptionRecord)(nil), "stride.records.V2UserRedemptionRecord") - proto.RegisterType((*Params)(nil), "stride.records.V2Params") - proto.RegisterType((*RecordsPacketData)(nil), "stride.records.V2RecordsPacketData") - proto.RegisterType((*NoData)(nil), "stride.records.V2NoData") - proto.RegisterType((*DepositRecord)(nil), "stride.records.V2DepositRecord") - proto.RegisterType((*HostZoneUnbonding)(nil), "stride.records.V2HostZoneUnbonding") - proto.RegisterType((*EpochUnbondingRecord)(nil), "stride.records.V2EpochUnbondingRecord") - proto.RegisterType((*GenesisState)(nil), "stride.records.V2GenesisState") -} - -func init() { proto.RegisterFile("stride/records/genesis.proto", fileDescriptor_98cfd0253c8b6797) } - -var fileDescriptor_98cfd0253c8b6797 = []byte{ - // 944 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcf, 0x6e, 0xdb, 0xc6, - 0x13, 0x16, 0x45, 0x8a, 0x92, 0xc7, 0xb6, 0x22, 0xaf, 0x15, 0x9b, 0x76, 0x12, 0x45, 0x21, 0x7e, - 0xbf, 0x42, 0x97, 0x4a, 0xa9, 0x1b, 0xf4, 0x50, 0x14, 0x68, 0x25, 0x4b, 0xb5, 0x69, 0x28, 0xb2, - 0xba, 0x92, 0x90, 0x22, 0x17, 0x82, 0x12, 0x17, 0xd2, 0x22, 0x11, 0x57, 0xe0, 0xae, 0x8c, 0xb6, - 0x97, 0xbe, 0x42, 0x0f, 0x3d, 0xf4, 0xd8, 0xb7, 0xe8, 0x13, 0x14, 0xc8, 0x31, 0xc7, 0x9e, 0x8a, - 0xc2, 0x7e, 0x88, 0x1e, 0x7a, 0x29, 0xb8, 0x5c, 0xcb, 0xd4, 0x9f, 0x24, 0x40, 0x6f, 0xdc, 0x6f, - 0x66, 0x76, 0x66, 0xbe, 0x19, 0x7e, 0x0b, 0x0f, 0xb9, 0x08, 0xa9, 0x4f, 0x6a, 0x21, 0x19, 0xb1, - 0xd0, 0xe7, 0xb5, 0x31, 0x09, 0x08, 0xa7, 0xbc, 0x3a, 0x0b, 0x99, 0x60, 0x28, 0x1f, 0x5b, 0xab, - 0xca, 0x7a, 0x5c, 0x1c, 0xb3, 0x31, 0x93, 0xa6, 0x5a, 0xf4, 0x15, 0x7b, 0xd9, 0x7f, 0x6b, 0x50, - 0x1c, 0x70, 0x12, 0x62, 0xe2, 0x93, 0xe9, 0x4c, 0x50, 0x16, 0x60, 0xe9, 0x8f, 0xf2, 0x90, 0xa6, - 0xbe, 0xa5, 0x95, 0xb5, 0xca, 0x16, 0x4e, 0x53, 0x1f, 0x1d, 0x80, 0xc9, 0x49, 0xe0, 0x93, 0xd0, - 0x4a, 0x4b, 0x4c, 0x9d, 0xd0, 0x31, 0xe4, 0x42, 0x32, 0x22, 0xf4, 0x8a, 0x84, 0x96, 0x2e, 0x2d, - 0x8b, 0x73, 0x14, 0xe3, 0x4d, 0xd9, 0x3c, 0x10, 0x96, 0x51, 0xd6, 0x2a, 0x06, 0x56, 0x27, 0x54, - 0x84, 0x8c, 0x4f, 0x02, 0x36, 0xb5, 0x32, 0x32, 0x20, 0x3e, 0xa0, 0x32, 0xec, 0x4c, 0x18, 0x17, - 0xee, 0x0f, 0x2c, 0x20, 0x2e, 0xf5, 0x2d, 0x53, 0x1a, 0x21, 0xc2, 0x5e, 0xb2, 0x80, 0x38, 0x3e, - 0x7a, 0x02, 0x3b, 0x64, 0xc6, 0x46, 0x13, 0x37, 0x98, 0x4f, 0x87, 0x24, 0xb4, 0xb2, 0xf2, 0xd6, - 0x6d, 0x89, 0x75, 0x24, 0x84, 0x2a, 0x50, 0x18, 0xbd, 0xf6, 0xe8, 0xd4, 0xa5, 0xdc, 0x9d, 0x91, - 0xc0, 0xa7, 0xc1, 0xd8, 0xca, 0x95, 0xb5, 0x4a, 0x0e, 0xe7, 0x25, 0xee, 0xf0, 0x6e, 0x8c, 0xda, - 0x79, 0x30, 0xbb, 0x5e, 0xe8, 0x4d, 0xf9, 0xe7, 0xc6, 0x2f, 0xbf, 0x3e, 0x4e, 0xd9, 0x5d, 0xd8, - 0x8b, 0x5b, 0xe7, 0x5d, 0x6f, 0xf4, 0x8a, 0x88, 0xa6, 0x27, 0x3c, 0xf4, 0x09, 0x64, 0x03, 0xe6, - 0xfa, 0x9e, 0xf0, 0x24, 0x15, 0xdb, 0x27, 0x07, 0xd5, 0x65, 0x5a, 0xab, 0x1d, 0x16, 0x39, 0x9e, - 0xa7, 0xb0, 0x19, 0xc8, 0xaf, 0x46, 0x0e, 0xcc, 0x99, 0xbc, 0xc0, 0xce, 0x81, 0x19, 0x5b, 0xed, - 0xdf, 0x74, 0xd8, 0x6d, 0x92, 0x19, 0xe3, 0x54, 0xac, 0xd1, 0x6b, 0xdc, 0xd2, 0xab, 0xa8, 0x8a, - 0xe8, 0xd5, 0xd7, 0xa9, 0xd2, 0xdf, 0x47, 0x95, 0xb1, 0x46, 0xd5, 0x17, 0x60, 0x72, 0xe1, 0x89, - 0x39, 0x97, 0x34, 0xe6, 0x4f, 0xfe, 0xb7, 0x5a, 0xf7, 0x52, 0x39, 0xd5, 0x9e, 0xf4, 0xc5, 0x2a, - 0x06, 0x3d, 0x85, 0xa2, 0x1f, 0xdb, 0xdd, 0x0d, 0x84, 0x23, 0x65, 0x6b, 0x25, 0x78, 0x8f, 0xf2, - 0xb1, 0x79, 0x38, 0x22, 0x92, 0xed, 0x0f, 0xe7, 0x93, 0xbe, 0x58, 0xc5, 0xd8, 0x13, 0x30, 0xe3, - 0x0a, 0x10, 0x82, 0x7c, 0x1f, 0xd7, 0x3b, 0xbd, 0xaf, 0x5b, 0xd8, 0xfd, 0x66, 0xd0, 0x1a, 0xb4, - 0x0a, 0x29, 0x64, 0x41, 0x71, 0x81, 0x39, 0x1d, 0xb7, 0x8b, 0x2f, 0xcf, 0x70, 0xab, 0xd7, 0x2b, - 0xa4, 0x51, 0x11, 0x0a, 0xcd, 0x56, 0xbb, 0x75, 0x56, 0xef, 0x3b, 0x97, 0x1d, 0xe5, 0xaf, 0xa1, - 0x63, 0x38, 0x48, 0xa0, 0xc9, 0x08, 0xdd, 0xae, 0x80, 0x19, 0xe7, 0x46, 0x00, 0x66, 0xaf, 0x8f, - 0x9d, 0x66, 0x94, 0x01, 0x41, 0xfe, 0x85, 0xd3, 0x3f, 0x6f, 0xe2, 0xfa, 0x8b, 0x7a, 0xdb, 0x75, - 0x4e, 0xeb, 0x05, 0xed, 0xc2, 0xc8, 0x65, 0x0a, 0xa6, 0xfd, 0xbb, 0x0e, 0x7b, 0xe7, 0x8a, 0xd6, - 0x41, 0x30, 0x64, 0x72, 0x77, 0xd0, 0x47, 0x70, 0x8f, 0x0b, 0x57, 0xb0, 0x57, 0x24, 0x70, 0xd5, - 0xd8, 0xe2, 0x51, 0xee, 0x72, 0xd1, 0x8f, 0xd0, 0x7a, 0x3c, 0xbd, 0x2a, 0xec, 0x07, 0x9e, 0xa0, - 0x57, 0x64, 0xd9, 0x37, 0x2d, 0x7d, 0xf7, 0x62, 0x53, 0xd2, 0xff, 0xbf, 0x4e, 0xfb, 0xff, 0x90, - 0x9f, 0xdf, 0x16, 0xe7, 0x0a, 0x3a, 0x25, 0xf2, 0xcf, 0x32, 0xf0, 0xee, 0x02, 0xed, 0xd3, 0x29, - 0x41, 0x5f, 0xad, 0x2c, 0x45, 0x65, 0x75, 0x48, 0x6b, 0x9d, 0xae, 0x2e, 0xc6, 0x67, 0x70, 0x38, - 0xe7, 0x24, 0x74, 0xc3, 0x85, 0x5c, 0xb8, 0x2a, 0xd6, 0xca, 0x96, 0xf5, 0xca, 0x16, 0xbe, 0x3f, - 0xdf, 0x20, 0x26, 0xdc, 0xfe, 0x71, 0x31, 0xe0, 0x7d, 0xb8, 0x37, 0xe8, 0x34, 0x2e, 0x3b, 0x4d, - 0xa7, 0x73, 0xb6, 0x98, 0xf0, 0x11, 0xdc, 0xbf, 0x03, 0x97, 0x06, 0x86, 0x0e, 0x61, 0xbf, 0xf5, - 0xad, 0xd3, 0x77, 0x57, 0xb6, 0x42, 0x43, 0x8f, 0xe0, 0x68, 0xd9, 0x90, 0x8c, 0x33, 0xd0, 0x2e, - 0x6c, 0x9d, 0xb6, 0xeb, 0xce, 0xf3, 0x7a, 0xa3, 0xdd, 0x2a, 0xa4, 0xed, 0x9f, 0x35, 0x28, 0xca, - 0x7d, 0x5d, 0xb4, 0xa6, 0x7e, 0xc4, 0x55, 0x4d, 0xd1, 0xd6, 0x35, 0xa5, 0x07, 0xc5, 0x3b, 0xfe, - 0x17, 0x8c, 0x72, 0x4b, 0x2f, 0xeb, 0x95, 0xed, 0x93, 0x27, 0x1f, 0x24, 0x11, 0xa3, 0xc9, 0x2a, - 0xc4, 0x2f, 0x8c, 0x5c, 0xba, 0xa0, 0xdb, 0xff, 0xe8, 0xb0, 0x73, 0x16, 0xcb, 0x76, 0xc4, 0x0f, - 0x41, 0xcf, 0x22, 0xf5, 0x88, 0x54, 0xe9, 0x5d, 0x7a, 0x13, 0x6b, 0x56, 0xc3, 0x78, 0xf3, 0xe7, - 0xe3, 0x14, 0x56, 0xbe, 0xe8, 0x10, 0xb2, 0x33, 0x16, 0x8a, 0x68, 0x39, 0x94, 0x3a, 0x47, 0x47, - 0xc7, 0x47, 0x14, 0x1e, 0x6c, 0x9e, 0x97, 0xfb, 0x9a, 0x72, 0xa1, 0x3a, 0x58, 0xfb, 0x57, 0x37, - 0x3d, 0x08, 0x2a, 0xa3, 0xb5, 0x69, 0xbe, 0x6d, 0xca, 0x05, 0xfa, 0x12, 0x1e, 0xbe, 0x23, 0xd5, - 0x28, 0xf1, 0x04, 0x1c, 0x6d, 0x8a, 0x3f, 0x95, 0xcb, 0x4f, 0xe1, 0x41, 0x3c, 0x89, 0xbb, 0x55, - 0x4e, 0xd6, 0x9a, 0xd9, 0x5c, 0xeb, 0xa6, 0xa1, 0xde, 0xd6, 0x4a, 0x36, 0xd8, 0x64, 0xad, 0x3d, - 0xd8, 0xbf, 0xd5, 0xb7, 0x64, 0x8a, 0xac, 0x4c, 0xf1, 0xe8, 0xbd, 0xd2, 0xa5, 0xee, 0xde, 0xf3, - 0x93, 0xa0, 0xbc, 0x34, 0x21, 0x9a, 0x4b, 0x8d, 0xe7, 0x96, 0x44, 0x33, 0xd1, 0xf1, 0x49, 0x06, - 0xf4, 0xe7, 0x7c, 0xdc, 0xb8, 0x78, 0x73, 0x5d, 0xd2, 0xde, 0x5e, 0x97, 0xb4, 0xbf, 0xae, 0x4b, - 0xda, 0x4f, 0x37, 0xa5, 0xd4, 0xdb, 0x9b, 0x52, 0xea, 0x8f, 0x9b, 0x52, 0xea, 0xe5, 0xd3, 0x31, - 0x15, 0x93, 0xf9, 0xb0, 0x3a, 0x62, 0xd3, 0x5a, 0x4f, 0x16, 0xf5, 0x71, 0xdb, 0x1b, 0xf2, 0x9a, - 0x7a, 0xf8, 0xaf, 0x9e, 0xd5, 0xbe, 0x5b, 0xbc, 0xfe, 0xe2, 0xfb, 0x19, 0xe1, 0x43, 0x53, 0x3e, - 0xeb, 0x9f, 0xfe, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x71, 0xad, 0x82, 0x28, 0x1c, 0x08, 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 { -} - -type msgClient struct { - cc grpc1.ClientConn -} - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} -} - -// MsgServer is the server API for Msg service. -type MsgServer interface { -} - -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} - -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) -} - -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "stride.records.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{}, - Metadata: "stride/records/genesis.proto", -} - -func (m *UserRedemptionRecord) 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 *UserRedemptionRecord) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UserRedemptionRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ClaimIsPending { - i-- - if m.ClaimIsPending { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if m.EpochNumber != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.EpochNumber)) - i-- - dAtA[i] = 0x38 - } - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0x32 - } - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x2a - } - if m.Amount != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.Amount)) - i-- - dAtA[i] = 0x20 - } - if len(m.Receiver) > 0 { - i -= len(m.Receiver) - copy(dAtA[i:], m.Receiver) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Receiver))) - i-- - dAtA[i] = 0x1a - } - if len(m.Sender) > 0 { - i -= len(m.Sender) - copy(dAtA[i:], m.Sender) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Sender))) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RecordsPacketData) 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 *RecordsPacketData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordsPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Packet != nil { - { - size := m.Packet.Size() - i -= size - if _, err := m.Packet.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *RecordsPacketData_NoData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordsPacketData_NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.NoData != nil { - { - size, err := m.NoData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *NoData) 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 *NoData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *DepositRecord) 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 *DepositRecord) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DepositRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Source != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.Source)) - i-- - dAtA[i] = 0x40 - } - if m.DepositEpochNumber != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.DepositEpochNumber)) - i-- - dAtA[i] = 0x38 - } - if m.Status != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x30 - } - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0x22 - } - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x1a - } - if m.Amount != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.Amount)) - i-- - dAtA[i] = 0x10 - } - if m.Id != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *HostZoneUnbonding) 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 *HostZoneUnbonding) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HostZoneUnbonding) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.UserRedemptionRecords) > 0 { - for iNdEx := len(m.UserRedemptionRecords) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.UserRedemptionRecords[iNdEx]) - copy(dAtA[i:], m.UserRedemptionRecords[iNdEx]) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.UserRedemptionRecords[iNdEx]))) - i-- - dAtA[i] = 0x3a - } - } - if m.Status != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x30 - } - if m.UnbondingTime != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.UnbondingTime)) - i-- - dAtA[i] = 0x28 - } - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0x22 - } - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x1a - } - if m.NativeTokenAmount != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.NativeTokenAmount)) - i-- - dAtA[i] = 0x10 - } - if m.StTokenAmount != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.StTokenAmount)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *EpochUnbondingRecord) 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 *EpochUnbondingRecord) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EpochUnbondingRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.HostZoneUnbondings) > 0 { - for iNdEx := len(m.HostZoneUnbondings) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.HostZoneUnbondings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.EpochNumber != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.EpochNumber)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DepositRecordCount != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.DepositRecordCount)) - i-- - dAtA[i] = 0x40 - } - if len(m.DepositRecordList) > 0 { - for iNdEx := len(m.DepositRecordList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DepositRecordList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - } - if len(m.EpochUnbondingRecordList) > 0 { - for iNdEx := len(m.EpochUnbondingRecordList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.EpochUnbondingRecordList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if m.UserRedemptionRecordCount != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.UserRedemptionRecordCount)) - i-- - dAtA[i] = 0x20 - } - if len(m.UserRedemptionRecordList) > 0 { - for iNdEx := len(m.UserRedemptionRecordList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.UserRedemptionRecordList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.PortId) > 0 { - i -= len(m.PortId) - copy(dAtA[i:], m.PortId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.PortId))) - i-- - dAtA[i] = 0x12 - } - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *UserRedemptionRecord) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.Sender) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.Receiver) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if m.Amount != 0 { - n += 1 + sovGenesis(uint64(m.Amount)) - } - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if m.EpochNumber != 0 { - n += 1 + sovGenesis(uint64(m.EpochNumber)) - } - if m.ClaimIsPending { - n += 2 - } - return n -} - -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RecordsPacketData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Packet != nil { - n += m.Packet.Size() - } - return n -} - -func (m *RecordsPacketData_NoData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NoData != nil { - l = m.NoData.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - return n -} -func (m *NoData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *DepositRecord) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Id != 0 { - n += 1 + sovGenesis(uint64(m.Id)) - } - if m.Amount != 0 { - n += 1 + sovGenesis(uint64(m.Amount)) - } - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if m.Status != 0 { - n += 1 + sovGenesis(uint64(m.Status)) - } - if m.DepositEpochNumber != 0 { - n += 1 + sovGenesis(uint64(m.DepositEpochNumber)) - } - if m.Source != 0 { - n += 1 + sovGenesis(uint64(m.Source)) - } - return n -} - -func (m *HostZoneUnbonding) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StTokenAmount != 0 { - n += 1 + sovGenesis(uint64(m.StTokenAmount)) - } - if m.NativeTokenAmount != 0 { - n += 1 + sovGenesis(uint64(m.NativeTokenAmount)) - } - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if m.UnbondingTime != 0 { - n += 1 + sovGenesis(uint64(m.UnbondingTime)) - } - if m.Status != 0 { - n += 1 + sovGenesis(uint64(m.Status)) - } - if len(m.UserRedemptionRecords) > 0 { - for _, s := range m.UserRedemptionRecords { - l = len(s) - n += 1 + l + sovGenesis(uint64(l)) - } - } - return n -} - -func (m *EpochUnbondingRecord) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EpochNumber != 0 { - n += 1 + sovGenesis(uint64(m.EpochNumber)) - } - if len(m.HostZoneUnbondings) > 0 { - for _, e := range m.HostZoneUnbondings { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - return n -} - -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) - l = len(m.PortId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if len(m.UserRedemptionRecordList) > 0 { - for _, e := range m.UserRedemptionRecordList { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - if m.UserRedemptionRecordCount != 0 { - n += 1 + sovGenesis(uint64(m.UserRedemptionRecordCount)) - } - if len(m.EpochUnbondingRecordList) > 0 { - for _, e := range m.EpochUnbondingRecordList { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - if len(m.DepositRecordList) > 0 { - for _, e := range m.DepositRecordList { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - if m.DepositRecordCount != 0 { - n += 1 + sovGenesis(uint64(m.DepositRecordCount)) - } - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *UserRedemptionRecord) 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 ErrIntOverflowGenesis - } - 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: UserRedemptionRecord: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UserRedemptionRecord: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Sender = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Receiver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - m.Amount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Amount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) - } - m.EpochNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EpochNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimIsPending", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ClaimIsPending = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Params) 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 ErrIntOverflowGenesis - } - 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: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecordsPacketData) 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 ErrIntOverflowGenesis - } - 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: RecordsPacketData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordsPacketData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NoData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &NoData{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Packet = &RecordsPacketData_NoData{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NoData) 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 ErrIntOverflowGenesis - } - 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: NoData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NoData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DepositRecord) 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 ErrIntOverflowGenesis - } - 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: DepositRecord: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DepositRecord: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - m.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - m.Amount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Amount |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= DepositRecord_Status(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositEpochNumber", wireType) - } - m.DepositEpochNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DepositEpochNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) - } - m.Source = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Source |= DepositRecord_Source(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HostZoneUnbonding) 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 ErrIntOverflowGenesis - } - 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: HostZoneUnbonding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HostZoneUnbonding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StTokenAmount", wireType) - } - m.StTokenAmount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StTokenAmount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NativeTokenAmount", wireType) - } - m.NativeTokenAmount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NativeTokenAmount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UnbondingTime", wireType) - } - m.UnbondingTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UnbondingTime |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= HostZoneUnbonding_Status(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecords", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserRedemptionRecords = append(m.UserRedemptionRecords, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EpochUnbondingRecord) 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 ErrIntOverflowGenesis - } - 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: EpochUnbondingRecord: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EpochUnbondingRecord: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) - } - m.EpochNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EpochNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneUnbondings", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneUnbondings = append(m.HostZoneUnbondings, &HostZoneUnbonding{}) - if err := m.HostZoneUnbondings[len(m.HostZoneUnbondings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GenesisState) 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 ErrIntOverflowGenesis - } - 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: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PortId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecordList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserRedemptionRecordList = append(m.UserRedemptionRecordList, UserRedemptionRecord{}) - if err := m.UserRedemptionRecordList[len(m.UserRedemptionRecordList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecordCount", wireType) - } - m.UserRedemptionRecordCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UserRedemptionRecordCount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochUnbondingRecordList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EpochUnbondingRecordList = append(m.EpochUnbondingRecordList, EpochUnbondingRecord{}) - if err := m.EpochUnbondingRecordList[len(m.EpochUnbondingRecordList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositRecordList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DepositRecordList = append(m.DepositRecordList, DepositRecord{}) - if err := m.DepositRecordList[len(m.DepositRecordList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositRecordCount", wireType) - } - m.DepositRecordCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DepositRecordCount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/records/types/callbacks.pb.go b/x/records/types/callbacks.pb.go deleted file mode 100644 index 44f21cdd8f..0000000000 --- a/x/records/types/callbacks.pb.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/records/callbacks.proto - -package types - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - 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 - -// ---------------------- Transfer Callback ---------------------- // -type TransferCallback struct { - DepositRecordId uint64 `protobuf:"varint,1,opt,name=deposit_record_id,json=depositRecordId,proto3" json:"deposit_record_id,omitempty"` -} - -func (m *TransferCallback) Reset() { *m = TransferCallback{} } -func (m *TransferCallback) String() string { return proto.CompactTextString(m) } -func (*TransferCallback) ProtoMessage() {} -func (*TransferCallback) Descriptor() ([]byte, []int) { - return fileDescriptor_6f7cdd5c1d8b3a46, []int{0} -} -func (m *TransferCallback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TransferCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TransferCallback.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 *TransferCallback) XXX_Merge(src proto.Message) { - xxx_messageInfo_TransferCallback.Merge(m, src) -} -func (m *TransferCallback) XXX_Size() int { - return m.Size() -} -func (m *TransferCallback) XXX_DiscardUnknown() { - xxx_messageInfo_TransferCallback.DiscardUnknown(m) -} - -var xxx_messageInfo_TransferCallback proto.InternalMessageInfo - -func (m *TransferCallback) GetDepositRecordId() uint64 { - if m != nil { - return m.DepositRecordId - } - return 0 -} - -func init() { - proto.RegisterType((*TransferCallback)(nil), "stride.records.TransferCallback") -} - -func init() { proto.RegisterFile("stride/records/callbacks.proto", fileDescriptor_6f7cdd5c1d8b3a46) } - -var fileDescriptor_6f7cdd5c1d8b3a46 = []byte{ - // 178 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2b, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0x2f, 0x4a, 0x4d, 0xce, 0x2f, 0x4a, 0x29, 0xd6, 0x4f, 0x4e, 0xcc, 0xc9, 0x49, - 0x4a, 0x4c, 0xce, 0x2e, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x83, 0xc8, 0xeb, 0x41, - 0xe5, 0x95, 0xec, 0xb8, 0x04, 0x42, 0x8a, 0x12, 0xf3, 0x8a, 0xd3, 0x52, 0x8b, 0x9c, 0xa1, 0x4a, - 0x85, 0xb4, 0xb8, 0x04, 0x53, 0x52, 0x0b, 0xf2, 0x8b, 0x33, 0x4b, 0xe2, 0x21, 0xca, 0xe2, 0x33, - 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0x58, 0x82, 0xf8, 0xa1, 0x12, 0x41, 0x60, 0x71, 0xcf, 0x14, - 0x27, 0xaf, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, - 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x32, 0x48, 0xcf, 0x2c, - 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x0f, 0x06, 0x5b, 0xaa, 0xeb, 0x93, 0x98, 0x54, - 0xac, 0x0f, 0x75, 0x60, 0x99, 0x99, 0x7e, 0x05, 0xdc, 0x95, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, - 0x6c, 0x60, 0x27, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x15, 0x21, 0x27, 0xc4, 0x00, - 0x00, 0x00, -} - -func (m *TransferCallback) 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 *TransferCallback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TransferCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DepositRecordId != 0 { - i = encodeVarintCallbacks(dAtA, i, uint64(m.DepositRecordId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintCallbacks(dAtA []byte, offset int, v uint64) int { - offset -= sovCallbacks(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *TransferCallback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DepositRecordId != 0 { - n += 1 + sovCallbacks(uint64(m.DepositRecordId)) - } - return n -} - -func sovCallbacks(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozCallbacks(x uint64) (n int) { - return sovCallbacks(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *TransferCallback) 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 ErrIntOverflowCallbacks - } - 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: TransferCallback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TransferCallback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositRecordId", wireType) - } - m.DepositRecordId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DepositRecordId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipCallbacks(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, ErrIntOverflowCallbacks - } - 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, ErrIntOverflowCallbacks - } - 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, ErrIntOverflowCallbacks - } - 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, ErrInvalidLengthCallbacks - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupCallbacks - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthCallbacks - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthCallbacks = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowCallbacks = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupCallbacks = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/records/types/genesis.pb.go b/x/records/types/genesis.pb.go deleted file mode 100644 index b928363531..0000000000 --- a/x/records/types/genesis.pb.go +++ /dev/null @@ -1,2858 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/records/genesis.proto - -package types - -import ( - context "context" - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - grpc "google.golang.org/grpc" - 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 - -type DepositRecord_Status int32 - -const ( - // in transfer queue to be sent to the delegation ICA - DepositRecord_TRANSFER_QUEUE DepositRecord_Status = 0 - // transfer in progress (IBC packet sent, ack not received) - DepositRecord_TRANSFER_IN_PROGRESS DepositRecord_Status = 2 - // in staking queue on delegation ICA - DepositRecord_DELEGATION_QUEUE DepositRecord_Status = 1 - // staking in progress (ICA packet sent, ack not received) - DepositRecord_DELEGATION_IN_PROGRESS DepositRecord_Status = 3 -) - -var DepositRecord_Status_name = map[int32]string{ - 0: "TRANSFER_QUEUE", - 2: "TRANSFER_IN_PROGRESS", - 1: "DELEGATION_QUEUE", - 3: "DELEGATION_IN_PROGRESS", -} - -var DepositRecord_Status_value = map[string]int32{ - "TRANSFER_QUEUE": 0, - "TRANSFER_IN_PROGRESS": 2, - "DELEGATION_QUEUE": 1, - "DELEGATION_IN_PROGRESS": 3, -} - -func (x DepositRecord_Status) String() string { - return proto.EnumName(DepositRecord_Status_name, int32(x)) -} - -func (DepositRecord_Status) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{4, 0} -} - -type DepositRecord_Source int32 - -const ( - DepositRecord_STRIDE DepositRecord_Source = 0 - DepositRecord_WITHDRAWAL_ICA DepositRecord_Source = 1 -) - -var DepositRecord_Source_name = map[int32]string{ - 0: "STRIDE", - 1: "WITHDRAWAL_ICA", -} - -var DepositRecord_Source_value = map[string]int32{ - "STRIDE": 0, - "WITHDRAWAL_ICA": 1, -} - -func (x DepositRecord_Source) String() string { - return proto.EnumName(DepositRecord_Source_name, int32(x)) -} - -func (DepositRecord_Source) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{4, 1} -} - -type HostZoneUnbonding_Status int32 - -const ( - // tokens bonded on delegate account - HostZoneUnbonding_UNBONDING_QUEUE HostZoneUnbonding_Status = 0 - HostZoneUnbonding_UNBONDING_IN_PROGRESS HostZoneUnbonding_Status = 3 - // unbonding completed on delegate account - HostZoneUnbonding_EXIT_TRANSFER_QUEUE HostZoneUnbonding_Status = 1 - HostZoneUnbonding_EXIT_TRANSFER_IN_PROGRESS HostZoneUnbonding_Status = 4 - // transfer success - HostZoneUnbonding_CLAIMABLE HostZoneUnbonding_Status = 2 -) - -var HostZoneUnbonding_Status_name = map[int32]string{ - 0: "UNBONDING_QUEUE", - 3: "UNBONDING_IN_PROGRESS", - 1: "EXIT_TRANSFER_QUEUE", - 4: "EXIT_TRANSFER_IN_PROGRESS", - 2: "CLAIMABLE", -} - -var HostZoneUnbonding_Status_value = map[string]int32{ - "UNBONDING_QUEUE": 0, - "UNBONDING_IN_PROGRESS": 3, - "EXIT_TRANSFER_QUEUE": 1, - "EXIT_TRANSFER_IN_PROGRESS": 4, - "CLAIMABLE": 2, -} - -func (x HostZoneUnbonding_Status) String() string { - return proto.EnumName(HostZoneUnbonding_Status_name, int32(x)) -} - -func (HostZoneUnbonding_Status) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{5, 0} -} - -type UserRedemptionRecord struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` - Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` - Denom string `protobuf:"bytes,5,opt,name=denom,proto3" json:"denom,omitempty"` - HostZoneId string `protobuf:"bytes,6,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` - EpochNumber uint64 `protobuf:"varint,7,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` - ClaimIsPending bool `protobuf:"varint,8,opt,name=claim_is_pending,json=claimIsPending,proto3" json:"claim_is_pending,omitempty"` -} - -func (m *UserRedemptionRecord) Reset() { *m = UserRedemptionRecord{} } -func (m *UserRedemptionRecord) String() string { return proto.CompactTextString(m) } -func (*UserRedemptionRecord) ProtoMessage() {} -func (*UserRedemptionRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{0} -} -func (m *UserRedemptionRecord) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UserRedemptionRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UserRedemptionRecord.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 *UserRedemptionRecord) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserRedemptionRecord.Merge(m, src) -} -func (m *UserRedemptionRecord) XXX_Size() int { - return m.Size() -} -func (m *UserRedemptionRecord) XXX_DiscardUnknown() { - xxx_messageInfo_UserRedemptionRecord.DiscardUnknown(m) -} - -var xxx_messageInfo_UserRedemptionRecord proto.InternalMessageInfo - -func (m *UserRedemptionRecord) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserRedemptionRecord) GetSender() string { - if m != nil { - return m.Sender - } - return "" -} - -func (m *UserRedemptionRecord) GetReceiver() string { - if m != nil { - return m.Receiver - } - return "" -} - -func (m *UserRedemptionRecord) GetDenom() string { - if m != nil { - return m.Denom - } - return "" -} - -func (m *UserRedemptionRecord) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -func (m *UserRedemptionRecord) GetEpochNumber() uint64 { - if m != nil { - return m.EpochNumber - } - return 0 -} - -func (m *UserRedemptionRecord) GetClaimIsPending() bool { - if m != nil { - return m.ClaimIsPending - } - return false -} - -// Params defines the parameters for the module. -type Params struct { -} - -func (m *Params) Reset() { *m = Params{} } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{1} -} -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} -func (m *Params) XXX_Size() int { - return m.Size() -} -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -type RecordsPacketData struct { - // Types that are valid to be assigned to Packet: - // *RecordsPacketData_NoData - Packet isRecordsPacketData_Packet `protobuf_oneof:"packet"` -} - -func (m *RecordsPacketData) Reset() { *m = RecordsPacketData{} } -func (m *RecordsPacketData) String() string { return proto.CompactTextString(m) } -func (*RecordsPacketData) ProtoMessage() {} -func (*RecordsPacketData) Descriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{2} -} -func (m *RecordsPacketData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RecordsPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RecordsPacketData.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 *RecordsPacketData) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecordsPacketData.Merge(m, src) -} -func (m *RecordsPacketData) XXX_Size() int { - return m.Size() -} -func (m *RecordsPacketData) XXX_DiscardUnknown() { - xxx_messageInfo_RecordsPacketData.DiscardUnknown(m) -} - -var xxx_messageInfo_RecordsPacketData proto.InternalMessageInfo - -type isRecordsPacketData_Packet interface { - isRecordsPacketData_Packet() - MarshalTo([]byte) (int, error) - Size() int -} - -type RecordsPacketData_NoData struct { - NoData *NoData `protobuf:"bytes,1,opt,name=no_data,json=noData,proto3,oneof" json:"no_data,omitempty"` -} - -func (*RecordsPacketData_NoData) isRecordsPacketData_Packet() {} - -func (m *RecordsPacketData) GetPacket() isRecordsPacketData_Packet { - if m != nil { - return m.Packet - } - return nil -} - -func (m *RecordsPacketData) GetNoData() *NoData { - if x, ok := m.GetPacket().(*RecordsPacketData_NoData); ok { - return x.NoData - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*RecordsPacketData) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*RecordsPacketData_NoData)(nil), - } -} - -type NoData struct { -} - -func (m *NoData) Reset() { *m = NoData{} } -func (m *NoData) String() string { return proto.CompactTextString(m) } -func (*NoData) ProtoMessage() {} -func (*NoData) Descriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{3} -} -func (m *NoData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NoData.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 *NoData) XXX_Merge(src proto.Message) { - xxx_messageInfo_NoData.Merge(m, src) -} -func (m *NoData) XXX_Size() int { - return m.Size() -} -func (m *NoData) XXX_DiscardUnknown() { - xxx_messageInfo_NoData.DiscardUnknown(m) -} - -var xxx_messageInfo_NoData proto.InternalMessageInfo - -type DepositRecord struct { - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` - Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` - HostZoneId string `protobuf:"bytes,4,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` - Status DepositRecord_Status `protobuf:"varint,6,opt,name=status,proto3,enum=stride.records.DepositRecord_Status" json:"status,omitempty"` - DepositEpochNumber uint64 `protobuf:"varint,7,opt,name=deposit_epoch_number,json=depositEpochNumber,proto3" json:"deposit_epoch_number,omitempty"` - Source DepositRecord_Source `protobuf:"varint,8,opt,name=source,proto3,enum=stride.records.DepositRecord_Source" json:"source,omitempty"` -} - -func (m *DepositRecord) Reset() { *m = DepositRecord{} } -func (m *DepositRecord) String() string { return proto.CompactTextString(m) } -func (*DepositRecord) ProtoMessage() {} -func (*DepositRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{4} -} -func (m *DepositRecord) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DepositRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DepositRecord.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 *DepositRecord) XXX_Merge(src proto.Message) { - xxx_messageInfo_DepositRecord.Merge(m, src) -} -func (m *DepositRecord) XXX_Size() int { - return m.Size() -} -func (m *DepositRecord) XXX_DiscardUnknown() { - xxx_messageInfo_DepositRecord.DiscardUnknown(m) -} - -var xxx_messageInfo_DepositRecord proto.InternalMessageInfo - -func (m *DepositRecord) GetId() uint64 { - if m != nil { - return m.Id - } - return 0 -} - -func (m *DepositRecord) GetDenom() string { - if m != nil { - return m.Denom - } - return "" -} - -func (m *DepositRecord) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -func (m *DepositRecord) GetStatus() DepositRecord_Status { - if m != nil { - return m.Status - } - return DepositRecord_TRANSFER_QUEUE -} - -func (m *DepositRecord) GetDepositEpochNumber() uint64 { - if m != nil { - return m.DepositEpochNumber - } - return 0 -} - -func (m *DepositRecord) GetSource() DepositRecord_Source { - if m != nil { - return m.Source - } - return DepositRecord_STRIDE -} - -type HostZoneUnbonding struct { - StTokenAmount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=st_token_amount,json=stTokenAmount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"st_token_amount"` - NativeTokenAmount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=native_token_amount,json=nativeTokenAmount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"native_token_amount"` - Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` - HostZoneId string `protobuf:"bytes,4,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` - UnbondingTime uint64 `protobuf:"varint,5,opt,name=unbonding_time,json=unbondingTime,proto3" json:"unbonding_time,omitempty"` - Status HostZoneUnbonding_Status `protobuf:"varint,6,opt,name=status,proto3,enum=stride.records.HostZoneUnbonding_Status" json:"status,omitempty"` - UserRedemptionRecords []string `protobuf:"bytes,7,rep,name=user_redemption_records,json=userRedemptionRecords,proto3" json:"user_redemption_records,omitempty"` -} - -func (m *HostZoneUnbonding) Reset() { *m = HostZoneUnbonding{} } -func (m *HostZoneUnbonding) String() string { return proto.CompactTextString(m) } -func (*HostZoneUnbonding) ProtoMessage() {} -func (*HostZoneUnbonding) Descriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{5} -} -func (m *HostZoneUnbonding) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HostZoneUnbonding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HostZoneUnbonding.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 *HostZoneUnbonding) XXX_Merge(src proto.Message) { - xxx_messageInfo_HostZoneUnbonding.Merge(m, src) -} -func (m *HostZoneUnbonding) XXX_Size() int { - return m.Size() -} -func (m *HostZoneUnbonding) XXX_DiscardUnknown() { - xxx_messageInfo_HostZoneUnbonding.DiscardUnknown(m) -} - -var xxx_messageInfo_HostZoneUnbonding proto.InternalMessageInfo - -func (m *HostZoneUnbonding) GetDenom() string { - if m != nil { - return m.Denom - } - return "" -} - -func (m *HostZoneUnbonding) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -func (m *HostZoneUnbonding) GetUnbondingTime() uint64 { - if m != nil { - return m.UnbondingTime - } - return 0 -} - -func (m *HostZoneUnbonding) GetStatus() HostZoneUnbonding_Status { - if m != nil { - return m.Status - } - return HostZoneUnbonding_UNBONDING_QUEUE -} - -func (m *HostZoneUnbonding) GetUserRedemptionRecords() []string { - if m != nil { - return m.UserRedemptionRecords - } - return nil -} - -type EpochUnbondingRecord struct { - EpochNumber uint64 `protobuf:"varint,1,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` - HostZoneUnbondings []*HostZoneUnbonding `protobuf:"bytes,3,rep,name=host_zone_unbondings,json=hostZoneUnbondings,proto3" json:"host_zone_unbondings,omitempty"` -} - -func (m *EpochUnbondingRecord) Reset() { *m = EpochUnbondingRecord{} } -func (m *EpochUnbondingRecord) String() string { return proto.CompactTextString(m) } -func (*EpochUnbondingRecord) ProtoMessage() {} -func (*EpochUnbondingRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{6} -} -func (m *EpochUnbondingRecord) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EpochUnbondingRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EpochUnbondingRecord.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 *EpochUnbondingRecord) XXX_Merge(src proto.Message) { - xxx_messageInfo_EpochUnbondingRecord.Merge(m, src) -} -func (m *EpochUnbondingRecord) XXX_Size() int { - return m.Size() -} -func (m *EpochUnbondingRecord) XXX_DiscardUnknown() { - xxx_messageInfo_EpochUnbondingRecord.DiscardUnknown(m) -} - -var xxx_messageInfo_EpochUnbondingRecord proto.InternalMessageInfo - -func (m *EpochUnbondingRecord) GetEpochNumber() uint64 { - if m != nil { - return m.EpochNumber - } - return 0 -} - -func (m *EpochUnbondingRecord) GetHostZoneUnbondings() []*HostZoneUnbonding { - if m != nil { - return m.HostZoneUnbondings - } - return nil -} - -// GenesisState defines the recordπs module's genesis state. -// next id: 9 -type GenesisState struct { - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - UserRedemptionRecordList []UserRedemptionRecord `protobuf:"bytes,3,rep,name=user_redemption_record_list,json=userRedemptionRecordList,proto3" json:"user_redemption_record_list"` - UserRedemptionRecordCount uint64 `protobuf:"varint,4,opt,name=user_redemption_record_count,json=userRedemptionRecordCount,proto3" json:"user_redemption_record_count,omitempty"` - EpochUnbondingRecordList []EpochUnbondingRecord `protobuf:"bytes,5,rep,name=epoch_unbonding_record_list,json=epochUnbondingRecordList,proto3" json:"epoch_unbonding_record_list"` - DepositRecordList []DepositRecord `protobuf:"bytes,7,rep,name=deposit_record_list,json=depositRecordList,proto3" json:"deposit_record_list"` - DepositRecordCount uint64 `protobuf:"varint,8,opt,name=deposit_record_count,json=depositRecordCount,proto3" json:"deposit_record_count,omitempty"` -} - -func (m *GenesisState) Reset() { *m = GenesisState{} } -func (m *GenesisState) String() string { return proto.CompactTextString(m) } -func (*GenesisState) ProtoMessage() {} -func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_98cfd0253c8b6797, []int{7} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func (m *GenesisState) GetPortId() string { - if m != nil { - return m.PortId - } - return "" -} - -func (m *GenesisState) GetUserRedemptionRecordList() []UserRedemptionRecord { - if m != nil { - return m.UserRedemptionRecordList - } - return nil -} - -func (m *GenesisState) GetUserRedemptionRecordCount() uint64 { - if m != nil { - return m.UserRedemptionRecordCount - } - return 0 -} - -func (m *GenesisState) GetEpochUnbondingRecordList() []EpochUnbondingRecord { - if m != nil { - return m.EpochUnbondingRecordList - } - return nil -} - -func (m *GenesisState) GetDepositRecordList() []DepositRecord { - if m != nil { - return m.DepositRecordList - } - return nil -} - -func (m *GenesisState) GetDepositRecordCount() uint64 { - if m != nil { - return m.DepositRecordCount - } - return 0 -} - -func init() { - proto.RegisterEnum("stride.records.DepositRecord_Status", DepositRecord_Status_name, DepositRecord_Status_value) - proto.RegisterEnum("stride.records.DepositRecord_Source", DepositRecord_Source_name, DepositRecord_Source_value) - proto.RegisterEnum("stride.records.HostZoneUnbonding_Status", HostZoneUnbonding_Status_name, HostZoneUnbonding_Status_value) - proto.RegisterType((*UserRedemptionRecord)(nil), "stride.records.UserRedemptionRecord") - proto.RegisterType((*Params)(nil), "stride.records.Params") - proto.RegisterType((*RecordsPacketData)(nil), "stride.records.RecordsPacketData") - proto.RegisterType((*NoData)(nil), "stride.records.NoData") - proto.RegisterType((*DepositRecord)(nil), "stride.records.DepositRecord") - proto.RegisterType((*HostZoneUnbonding)(nil), "stride.records.HostZoneUnbonding") - proto.RegisterType((*EpochUnbondingRecord)(nil), "stride.records.EpochUnbondingRecord") - proto.RegisterType((*GenesisState)(nil), "stride.records.GenesisState") -} - -func init() { proto.RegisterFile("stride/records/genesis.proto", fileDescriptor_98cfd0253c8b6797) } - -var fileDescriptor_98cfd0253c8b6797 = []byte{ - // 977 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x3d, 0x6f, 0xdb, 0x46, - 0x18, 0x16, 0x45, 0x8a, 0x92, 0x5f, 0xdb, 0x8a, 0x7c, 0x56, 0x6c, 0xda, 0x49, 0x64, 0x85, 0x68, - 0x0b, 0x2d, 0x91, 0x52, 0xb7, 0xc8, 0x50, 0x14, 0x68, 0x25, 0x4b, 0xb1, 0x69, 0x28, 0xb2, 0x7a, - 0x92, 0x9a, 0x22, 0x43, 0x09, 0x4a, 0x3c, 0x48, 0x84, 0x43, 0x9e, 0xc0, 0x3b, 0x19, 0x6d, 0x97, - 0xfe, 0x85, 0x0e, 0x1d, 0x3a, 0x76, 0x29, 0xfa, 0x57, 0x32, 0x66, 0x2c, 0x3a, 0x04, 0x85, 0x3d, - 0xf4, 0x47, 0x74, 0x29, 0x78, 0xa4, 0x69, 0xea, 0x23, 0x09, 0x60, 0x64, 0x92, 0xf8, 0x7e, 0xdf, - 0xfb, 0x3c, 0x7c, 0x8e, 0x70, 0x9f, 0x71, 0xdf, 0xb1, 0x49, 0xcd, 0x27, 0x23, 0xea, 0xdb, 0xac, - 0x36, 0x26, 0x1e, 0x61, 0x0e, 0xab, 0x4e, 0x7d, 0xca, 0x29, 0xca, 0x87, 0xde, 0x6a, 0xe4, 0xdd, - 0x2f, 0x8e, 0xe9, 0x98, 0x0a, 0x57, 0x2d, 0xf8, 0x17, 0x46, 0xe9, 0x7f, 0xa6, 0xa1, 0x38, 0x60, - 0xc4, 0xc7, 0xc4, 0x26, 0xee, 0x94, 0x3b, 0xd4, 0xc3, 0x22, 0x1e, 0xe5, 0x21, 0xed, 0xd8, 0x9a, - 0x54, 0x96, 0x2a, 0x6b, 0x38, 0xed, 0xd8, 0x68, 0x07, 0x54, 0x46, 0x3c, 0x9b, 0xf8, 0x5a, 0x5a, - 0xd8, 0xa2, 0x27, 0xb4, 0x0f, 0x39, 0x9f, 0x8c, 0x88, 0x73, 0x41, 0x7c, 0x4d, 0x16, 0x9e, 0xf8, - 0x19, 0x3d, 0x05, 0xd5, 0x72, 0xe9, 0xcc, 0xe3, 0x9a, 0x12, 0x78, 0x1a, 0xd5, 0x57, 0x6f, 0x0e, - 0x52, 0x7f, 0xbf, 0x39, 0xf8, 0x64, 0xec, 0xf0, 0xc9, 0x6c, 0x58, 0x1d, 0x51, 0xb7, 0x36, 0xa2, - 0xcc, 0xa5, 0x2c, 0xfa, 0x79, 0xc4, 0xec, 0xf3, 0x1a, 0xff, 0x71, 0x4a, 0x58, 0xd5, 0xf0, 0x38, - 0x8e, 0xb2, 0x51, 0x11, 0x32, 0x36, 0xf1, 0xa8, 0xab, 0x65, 0x44, 0x83, 0xf0, 0x01, 0x95, 0x61, - 0x63, 0x42, 0x19, 0x37, 0x7f, 0xa2, 0x1e, 0x31, 0x1d, 0x5b, 0x53, 0x85, 0x13, 0x02, 0xdb, 0x0b, - 0xea, 0x11, 0xc3, 0x46, 0x0f, 0x61, 0x83, 0x4c, 0xe9, 0x68, 0x62, 0x7a, 0x33, 0x77, 0x48, 0x7c, - 0x2d, 0x5b, 0x96, 0x2a, 0x0a, 0x5e, 0x17, 0xb6, 0x8e, 0x30, 0xa1, 0x0a, 0x14, 0x46, 0x2f, 0x2d, - 0xc7, 0x35, 0x1d, 0x66, 0x4e, 0x89, 0x67, 0x3b, 0xde, 0x58, 0xcb, 0x95, 0xa5, 0x4a, 0x0e, 0xe7, - 0x85, 0xdd, 0x60, 0xdd, 0xd0, 0xaa, 0xe7, 0x41, 0xed, 0x5a, 0xbe, 0xe5, 0xb2, 0x2f, 0x94, 0xdf, - 0x7e, 0x3f, 0x48, 0xe9, 0x5d, 0xd8, 0x0a, 0x57, 0xc5, 0xba, 0xd6, 0xe8, 0x9c, 0xf0, 0xa6, 0xc5, - 0x2d, 0xf4, 0x29, 0x64, 0x3d, 0x6a, 0xda, 0x16, 0xb7, 0xc4, 0xea, 0xd6, 0x0f, 0x77, 0xaa, 0xf3, - 0x30, 0x54, 0x3b, 0x34, 0x08, 0x3c, 0x49, 0x61, 0xd5, 0x13, 0xff, 0x1a, 0x39, 0x50, 0xa7, 0xa2, - 0x80, 0x9e, 0x03, 0x35, 0xf4, 0xea, 0xff, 0xca, 0xb0, 0xd9, 0x24, 0x53, 0xca, 0x1c, 0xbe, 0x04, - 0x87, 0x22, 0xe0, 0xb8, 0x59, 0x6d, 0xfa, 0xc3, 0xac, 0x56, 0x7e, 0xd7, 0x6a, 0x95, 0xa5, 0xd5, - 0x7e, 0x09, 0x2a, 0xe3, 0x16, 0x9f, 0x31, 0xb1, 0xf6, 0xfc, 0xe1, 0x47, 0x8b, 0xe7, 0x9c, 0x1b, - 0xbf, 0xda, 0x13, 0xb1, 0x38, 0xca, 0x41, 0x8f, 0xa1, 0x68, 0x87, 0x7e, 0x73, 0x05, 0x40, 0x28, - 0xf2, 0xb5, 0x12, 0x38, 0x05, 0xfd, 0xe8, 0xcc, 0x1f, 0x11, 0x81, 0xce, 0xfb, 0xfb, 0x89, 0x58, - 0x1c, 0xe5, 0xe8, 0x13, 0x50, 0xc3, 0x09, 0x10, 0x82, 0x7c, 0x1f, 0xd7, 0x3b, 0xbd, 0xa7, 0x2d, - 0x6c, 0x7e, 0x33, 0x68, 0x0d, 0x5a, 0x85, 0x14, 0xd2, 0xa0, 0x18, 0xdb, 0x8c, 0x8e, 0xd9, 0xc5, - 0x67, 0xc7, 0xb8, 0xd5, 0xeb, 0x15, 0xd2, 0xa8, 0x08, 0x85, 0x66, 0xab, 0xdd, 0x3a, 0xae, 0xf7, - 0x8d, 0xb3, 0x4e, 0x14, 0x2f, 0xa1, 0x7d, 0xd8, 0x49, 0x58, 0x93, 0x19, 0xb2, 0x5e, 0x01, 0x35, - 0xec, 0x8d, 0x00, 0xd4, 0x5e, 0x1f, 0x1b, 0xcd, 0xa0, 0x03, 0x82, 0xfc, 0x73, 0xa3, 0x7f, 0xd2, - 0xc4, 0xf5, 0xe7, 0xf5, 0xb6, 0x69, 0x1c, 0xd5, 0x0b, 0xd2, 0xa9, 0x92, 0xcb, 0x14, 0x54, 0xfd, - 0x0f, 0x05, 0xb6, 0x4e, 0xa2, 0xb5, 0x0e, 0xbc, 0x21, 0x15, 0x5c, 0x43, 0xdf, 0xc2, 0x1d, 0xc6, - 0x4d, 0x4e, 0xcf, 0x89, 0x67, 0x46, 0x30, 0x4b, 0xb7, 0x82, 0x79, 0x93, 0xf1, 0x7e, 0x50, 0xa5, - 0x1e, 0xa2, 0xfd, 0x3d, 0x6c, 0x7b, 0x16, 0x77, 0x2e, 0xc8, 0x7c, 0xed, 0xdb, 0x51, 0x68, 0x2b, - 0x2c, 0x95, 0xac, 0x7f, 0x5b, 0x36, 0x7d, 0x0c, 0xf9, 0xd9, 0xf5, 0xe1, 0x4d, 0xee, 0xb8, 0x44, - 0xbc, 0xe9, 0x0a, 0xde, 0x8c, 0xad, 0x7d, 0xc7, 0x25, 0xe8, 0xeb, 0x05, 0xd2, 0x55, 0x16, 0x49, - 0xb0, 0xb4, 0xc9, 0x45, 0xe2, 0x3d, 0x81, 0xdd, 0x19, 0x23, 0xbe, 0xe9, 0xc7, 0x72, 0x67, 0x46, - 0xb9, 0x5a, 0xb6, 0x2c, 0x57, 0xd6, 0xf0, 0xdd, 0xd9, 0x0a, 0x31, 0x64, 0xfa, 0xcf, 0x31, 0x81, - 0xb6, 0xe1, 0xce, 0xa0, 0xd3, 0x38, 0xeb, 0x34, 0x8d, 0xce, 0x71, 0xcc, 0xa0, 0x3d, 0xb8, 0x7b, - 0x63, 0x9c, 0x23, 0x04, 0xda, 0x85, 0xed, 0xd6, 0x77, 0x46, 0xdf, 0x5c, 0x60, 0x9d, 0x84, 0x1e, - 0xc0, 0xde, 0xbc, 0x23, 0x99, 0xa7, 0xa0, 0x4d, 0x58, 0x3b, 0x6a, 0xd7, 0x8d, 0x67, 0xf5, 0x46, - 0xbb, 0x55, 0x48, 0xeb, 0xbf, 0x4a, 0x50, 0x14, 0xef, 0x43, 0x7c, 0xb4, 0x48, 0x18, 0x16, 0x35, - 0x4e, 0x5a, 0xd6, 0xb8, 0x1e, 0x14, 0x6f, 0xf6, 0x1f, 0x6f, 0x94, 0x69, 0x72, 0x59, 0xae, 0xac, - 0x1f, 0x3e, 0x7c, 0xef, 0x12, 0x31, 0x9a, 0x2c, 0x9a, 0xd8, 0xa9, 0x92, 0x4b, 0x17, 0x64, 0xfd, - 0x3f, 0x19, 0x36, 0x8e, 0xc3, 0x6b, 0x27, 0xd8, 0x0f, 0x41, 0x9f, 0x07, 0x6a, 0x16, 0xa8, 0xe4, - 0xdb, 0xf4, 0x2f, 0xd4, 0xd0, 0x86, 0x12, 0x90, 0x0d, 0x47, 0xb1, 0x68, 0x17, 0xb2, 0x53, 0xea, - 0xf3, 0x80, 0x1c, 0xd1, 0xed, 0x12, 0x3c, 0x1a, 0x36, 0x72, 0xe0, 0xde, 0x6a, 0xbc, 0xcc, 0x97, - 0x0e, 0xe3, 0xd1, 0x09, 0x96, 0xb4, 0x60, 0xd5, 0x85, 0x16, 0x75, 0xd4, 0x56, 0xe1, 0xdb, 0x76, - 0x18, 0x47, 0x5f, 0xc1, 0xfd, 0xb7, 0xb4, 0x1a, 0xc5, 0x57, 0x98, 0x82, 0xf7, 0x56, 0xe5, 0x1f, - 0x09, 0xf2, 0x3b, 0x70, 0x2f, 0x44, 0xe2, 0x86, 0xca, 0xc9, 0x59, 0x33, 0xab, 0x67, 0x5d, 0x05, - 0xea, 0xf5, 0xac, 0x64, 0x85, 0x4f, 0xcc, 0xda, 0x83, 0xed, 0x6b, 0xfd, 0x4c, 0xb6, 0xc8, 0x8a, - 0x16, 0x0f, 0xde, 0x29, 0x8d, 0x51, 0xed, 0x2d, 0x3b, 0x69, 0x14, 0x45, 0x13, 0xa2, 0x3c, 0x77, - 0xf0, 0xdc, 0x9c, 0x28, 0x27, 0x4e, 0x7c, 0x98, 0x01, 0xf9, 0x19, 0x1b, 0x37, 0x4e, 0x5f, 0x5d, - 0x96, 0xa4, 0xd7, 0x97, 0x25, 0xe9, 0x9f, 0xcb, 0x92, 0xf4, 0xcb, 0x55, 0x29, 0xf5, 0xfa, 0xaa, - 0x94, 0xfa, 0xeb, 0xaa, 0x94, 0x7a, 0xf1, 0x38, 0x21, 0x25, 0x3d, 0x31, 0xd4, 0xa3, 0xb6, 0x35, - 0x64, 0xb5, 0xe8, 0xc3, 0xe5, 0xe2, 0x49, 0xed, 0x87, 0xf8, 0xeb, 0x45, 0x08, 0xcb, 0x50, 0x15, - 0x9f, 0x25, 0x9f, 0xfd, 0x1f, 0x00, 0x00, 0xff, 0xff, 0x5b, 0x13, 0x03, 0x97, 0xdc, 0x08, 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 { -} - -type msgClient struct { - cc grpc1.ClientConn -} - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} -} - -// MsgServer is the server API for Msg service. -type MsgServer interface { -} - -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} - -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) -} - -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "stride.records.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{}, - Metadata: "stride/records/genesis.proto", -} - -func (m *UserRedemptionRecord) 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 *UserRedemptionRecord) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UserRedemptionRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ClaimIsPending { - i-- - if m.ClaimIsPending { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if m.EpochNumber != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.EpochNumber)) - i-- - dAtA[i] = 0x38 - } - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0x32 - } - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x2a - } - { - size := m.Amount.Size() - i -= size - if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - if len(m.Receiver) > 0 { - i -= len(m.Receiver) - copy(dAtA[i:], m.Receiver) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Receiver))) - i-- - dAtA[i] = 0x1a - } - if len(m.Sender) > 0 { - i -= len(m.Sender) - copy(dAtA[i:], m.Sender) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Sender))) - i-- - dAtA[i] = 0x12 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RecordsPacketData) 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 *RecordsPacketData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordsPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Packet != nil { - { - size := m.Packet.Size() - i -= size - if _, err := m.Packet.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *RecordsPacketData_NoData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecordsPacketData_NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.NoData != nil { - { - size, err := m.NoData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *NoData) 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 *NoData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *DepositRecord) 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 *DepositRecord) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DepositRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Source != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.Source)) - i-- - dAtA[i] = 0x40 - } - if m.DepositEpochNumber != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.DepositEpochNumber)) - i-- - dAtA[i] = 0x38 - } - if m.Status != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x30 - } - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0x22 - } - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x1a - } - { - size := m.Amount.Size() - i -= size - if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if m.Id != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *HostZoneUnbonding) 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 *HostZoneUnbonding) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HostZoneUnbonding) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.UserRedemptionRecords) > 0 { - for iNdEx := len(m.UserRedemptionRecords) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.UserRedemptionRecords[iNdEx]) - copy(dAtA[i:], m.UserRedemptionRecords[iNdEx]) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.UserRedemptionRecords[iNdEx]))) - i-- - dAtA[i] = 0x3a - } - } - if m.Status != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x30 - } - if m.UnbondingTime != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.UnbondingTime)) - i-- - dAtA[i] = 0x28 - } - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0x22 - } - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x1a - } - { - size := m.NativeTokenAmount.Size() - i -= size - if _, err := m.NativeTokenAmount.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size := m.StTokenAmount.Size() - i -= size - if _, err := m.StTokenAmount.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *EpochUnbondingRecord) 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 *EpochUnbondingRecord) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EpochUnbondingRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.HostZoneUnbondings) > 0 { - for iNdEx := len(m.HostZoneUnbondings) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.HostZoneUnbondings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.EpochNumber != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.EpochNumber)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DepositRecordCount != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.DepositRecordCount)) - i-- - dAtA[i] = 0x40 - } - if len(m.DepositRecordList) > 0 { - for iNdEx := len(m.DepositRecordList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DepositRecordList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - } - if len(m.EpochUnbondingRecordList) > 0 { - for iNdEx := len(m.EpochUnbondingRecordList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.EpochUnbondingRecordList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if m.UserRedemptionRecordCount != 0 { - i = encodeVarintGenesis(dAtA, i, uint64(m.UserRedemptionRecordCount)) - i-- - dAtA[i] = 0x20 - } - if len(m.UserRedemptionRecordList) > 0 { - for iNdEx := len(m.UserRedemptionRecordList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.UserRedemptionRecordList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.PortId) > 0 { - i -= len(m.PortId) - copy(dAtA[i:], m.PortId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.PortId))) - i-- - dAtA[i] = 0x12 - } - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *UserRedemptionRecord) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.Sender) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.Receiver) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = m.Amount.Size() - n += 1 + l + sovGenesis(uint64(l)) - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if m.EpochNumber != 0 { - n += 1 + sovGenesis(uint64(m.EpochNumber)) - } - if m.ClaimIsPending { - n += 2 - } - return n -} - -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RecordsPacketData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Packet != nil { - n += m.Packet.Size() - } - return n -} - -func (m *RecordsPacketData_NoData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NoData != nil { - l = m.NoData.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - return n -} -func (m *NoData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *DepositRecord) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Id != 0 { - n += 1 + sovGenesis(uint64(m.Id)) - } - l = m.Amount.Size() - n += 1 + l + sovGenesis(uint64(l)) - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if m.Status != 0 { - n += 1 + sovGenesis(uint64(m.Status)) - } - if m.DepositEpochNumber != 0 { - n += 1 + sovGenesis(uint64(m.DepositEpochNumber)) - } - if m.Source != 0 { - n += 1 + sovGenesis(uint64(m.Source)) - } - return n -} - -func (m *HostZoneUnbonding) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.StTokenAmount.Size() - n += 1 + l + sovGenesis(uint64(l)) - l = m.NativeTokenAmount.Size() - n += 1 + l + sovGenesis(uint64(l)) - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if m.UnbondingTime != 0 { - n += 1 + sovGenesis(uint64(m.UnbondingTime)) - } - if m.Status != 0 { - n += 1 + sovGenesis(uint64(m.Status)) - } - if len(m.UserRedemptionRecords) > 0 { - for _, s := range m.UserRedemptionRecords { - l = len(s) - n += 1 + l + sovGenesis(uint64(l)) - } - } - return n -} - -func (m *EpochUnbondingRecord) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EpochNumber != 0 { - n += 1 + sovGenesis(uint64(m.EpochNumber)) - } - if len(m.HostZoneUnbondings) > 0 { - for _, e := range m.HostZoneUnbondings { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - return n -} - -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) - l = len(m.PortId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if len(m.UserRedemptionRecordList) > 0 { - for _, e := range m.UserRedemptionRecordList { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - if m.UserRedemptionRecordCount != 0 { - n += 1 + sovGenesis(uint64(m.UserRedemptionRecordCount)) - } - if len(m.EpochUnbondingRecordList) > 0 { - for _, e := range m.EpochUnbondingRecordList { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - if len(m.DepositRecordList) > 0 { - for _, e := range m.DepositRecordList { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - if m.DepositRecordCount != 0 { - n += 1 + sovGenesis(uint64(m.DepositRecordCount)) - } - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *UserRedemptionRecord) 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 ErrIntOverflowGenesis - } - 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: UserRedemptionRecord: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UserRedemptionRecord: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Sender = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Receiver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) - } - m.EpochNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EpochNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimIsPending", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ClaimIsPending = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Params) 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 ErrIntOverflowGenesis - } - 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: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecordsPacketData) 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 ErrIntOverflowGenesis - } - 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: RecordsPacketData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordsPacketData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NoData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &NoData{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Packet = &RecordsPacketData_NoData{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NoData) 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 ErrIntOverflowGenesis - } - 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: NoData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NoData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DepositRecord) 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 ErrIntOverflowGenesis - } - 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: DepositRecord: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DepositRecord: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - m.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= DepositRecord_Status(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositEpochNumber", wireType) - } - m.DepositEpochNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DepositEpochNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) - } - m.Source = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Source |= DepositRecord_Source(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HostZoneUnbonding) 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 ErrIntOverflowGenesis - } - 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: HostZoneUnbonding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HostZoneUnbonding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StTokenAmount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.StTokenAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NativeTokenAmount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.NativeTokenAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UnbondingTime", wireType) - } - m.UnbondingTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UnbondingTime |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= HostZoneUnbonding_Status(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecords", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserRedemptionRecords = append(m.UserRedemptionRecords, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EpochUnbondingRecord) 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 ErrIntOverflowGenesis - } - 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: EpochUnbondingRecord: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EpochUnbondingRecord: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) - } - m.EpochNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EpochNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneUnbondings", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneUnbondings = append(m.HostZoneUnbondings, &HostZoneUnbonding{}) - if err := m.HostZoneUnbondings[len(m.HostZoneUnbondings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GenesisState) 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 ErrIntOverflowGenesis - } - 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: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PortId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecordList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserRedemptionRecordList = append(m.UserRedemptionRecordList, UserRedemptionRecord{}) - if err := m.UserRedemptionRecordList[len(m.UserRedemptionRecordList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecordCount", wireType) - } - m.UserRedemptionRecordCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UserRedemptionRecordCount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochUnbondingRecordList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EpochUnbondingRecordList = append(m.EpochUnbondingRecordList, EpochUnbondingRecord{}) - if err := m.EpochUnbondingRecordList[len(m.EpochUnbondingRecordList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositRecordList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DepositRecordList = append(m.DepositRecordList, DepositRecord{}) - if err := m.DepositRecordList[len(m.DepositRecordList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositRecordCount", wireType) - } - m.DepositRecordCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DepositRecordCount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/records/types/query.pb.go b/x/records/types/query.pb.go deleted file mode 100644 index 46829f8665..0000000000 --- a/x/records/types/query.pb.go +++ /dev/null @@ -1,4091 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/records/query.proto - -package types - -import ( - context "context" - fmt "fmt" - query "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - 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 - -// QueryParamsRequest is request type for the Query/Params RPC method. -type QueryParamsRequest struct { -} - -func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } -func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryParamsRequest) ProtoMessage() {} -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{0} -} -func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsRequest.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 *QueryParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsRequest.Merge(m, src) -} -func (m *QueryParamsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo - -// QueryParamsResponse is response type for the Query/Params RPC method. -type QueryParamsResponse struct { - // params holds all the parameters of this module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` -} - -func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } -func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryParamsResponse) ProtoMessage() {} -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{1} -} -func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsResponse.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 *QueryParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsResponse.Merge(m, src) -} -func (m *QueryParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo - -func (m *QueryParamsResponse) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -type QueryGetDepositRecordRequest struct { - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (m *QueryGetDepositRecordRequest) Reset() { *m = QueryGetDepositRecordRequest{} } -func (m *QueryGetDepositRecordRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetDepositRecordRequest) ProtoMessage() {} -func (*QueryGetDepositRecordRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{2} -} -func (m *QueryGetDepositRecordRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetDepositRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetDepositRecordRequest.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 *QueryGetDepositRecordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetDepositRecordRequest.Merge(m, src) -} -func (m *QueryGetDepositRecordRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetDepositRecordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetDepositRecordRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetDepositRecordRequest proto.InternalMessageInfo - -func (m *QueryGetDepositRecordRequest) GetId() uint64 { - if m != nil { - return m.Id - } - return 0 -} - -type QueryGetDepositRecordResponse struct { - DepositRecord DepositRecord `protobuf:"bytes,1,opt,name=deposit_record,json=depositRecord,proto3" json:"deposit_record"` -} - -func (m *QueryGetDepositRecordResponse) Reset() { *m = QueryGetDepositRecordResponse{} } -func (m *QueryGetDepositRecordResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetDepositRecordResponse) ProtoMessage() {} -func (*QueryGetDepositRecordResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{3} -} -func (m *QueryGetDepositRecordResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetDepositRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetDepositRecordResponse.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 *QueryGetDepositRecordResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetDepositRecordResponse.Merge(m, src) -} -func (m *QueryGetDepositRecordResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetDepositRecordResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetDepositRecordResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetDepositRecordResponse proto.InternalMessageInfo - -func (m *QueryGetDepositRecordResponse) GetDepositRecord() DepositRecord { - if m != nil { - return m.DepositRecord - } - return DepositRecord{} -} - -type QueryAllDepositRecordRequest struct { - Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllDepositRecordRequest) Reset() { *m = QueryAllDepositRecordRequest{} } -func (m *QueryAllDepositRecordRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllDepositRecordRequest) ProtoMessage() {} -func (*QueryAllDepositRecordRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{4} -} -func (m *QueryAllDepositRecordRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllDepositRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllDepositRecordRequest.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 *QueryAllDepositRecordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllDepositRecordRequest.Merge(m, src) -} -func (m *QueryAllDepositRecordRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryAllDepositRecordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllDepositRecordRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllDepositRecordRequest proto.InternalMessageInfo - -func (m *QueryAllDepositRecordRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryAllDepositRecordResponse struct { - DepositRecord []DepositRecord `protobuf:"bytes,1,rep,name=deposit_record,json=depositRecord,proto3" json:"deposit_record"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllDepositRecordResponse) Reset() { *m = QueryAllDepositRecordResponse{} } -func (m *QueryAllDepositRecordResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllDepositRecordResponse) ProtoMessage() {} -func (*QueryAllDepositRecordResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{5} -} -func (m *QueryAllDepositRecordResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllDepositRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllDepositRecordResponse.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 *QueryAllDepositRecordResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllDepositRecordResponse.Merge(m, src) -} -func (m *QueryAllDepositRecordResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryAllDepositRecordResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllDepositRecordResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllDepositRecordResponse proto.InternalMessageInfo - -func (m *QueryAllDepositRecordResponse) GetDepositRecord() []DepositRecord { - if m != nil { - return m.DepositRecord - } - return nil -} - -func (m *QueryAllDepositRecordResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryDepositRecordByHostRequest struct { - HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` -} - -func (m *QueryDepositRecordByHostRequest) Reset() { *m = QueryDepositRecordByHostRequest{} } -func (m *QueryDepositRecordByHostRequest) String() string { return proto.CompactTextString(m) } -func (*QueryDepositRecordByHostRequest) ProtoMessage() {} -func (*QueryDepositRecordByHostRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{6} -} -func (m *QueryDepositRecordByHostRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryDepositRecordByHostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryDepositRecordByHostRequest.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 *QueryDepositRecordByHostRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryDepositRecordByHostRequest.Merge(m, src) -} -func (m *QueryDepositRecordByHostRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryDepositRecordByHostRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryDepositRecordByHostRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryDepositRecordByHostRequest proto.InternalMessageInfo - -func (m *QueryDepositRecordByHostRequest) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -type QueryDepositRecordByHostResponse struct { - DepositRecord []DepositRecord `protobuf:"bytes,1,rep,name=deposit_record,json=depositRecord,proto3" json:"deposit_record"` -} - -func (m *QueryDepositRecordByHostResponse) Reset() { *m = QueryDepositRecordByHostResponse{} } -func (m *QueryDepositRecordByHostResponse) String() string { return proto.CompactTextString(m) } -func (*QueryDepositRecordByHostResponse) ProtoMessage() {} -func (*QueryDepositRecordByHostResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{7} -} -func (m *QueryDepositRecordByHostResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryDepositRecordByHostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryDepositRecordByHostResponse.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 *QueryDepositRecordByHostResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryDepositRecordByHostResponse.Merge(m, src) -} -func (m *QueryDepositRecordByHostResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryDepositRecordByHostResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryDepositRecordByHostResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryDepositRecordByHostResponse proto.InternalMessageInfo - -func (m *QueryDepositRecordByHostResponse) GetDepositRecord() []DepositRecord { - if m != nil { - return m.DepositRecord - } - return nil -} - -type QueryGetUserRedemptionRecordRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (m *QueryGetUserRedemptionRecordRequest) Reset() { *m = QueryGetUserRedemptionRecordRequest{} } -func (m *QueryGetUserRedemptionRecordRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetUserRedemptionRecordRequest) ProtoMessage() {} -func (*QueryGetUserRedemptionRecordRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{8} -} -func (m *QueryGetUserRedemptionRecordRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetUserRedemptionRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetUserRedemptionRecordRequest.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 *QueryGetUserRedemptionRecordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetUserRedemptionRecordRequest.Merge(m, src) -} -func (m *QueryGetUserRedemptionRecordRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetUserRedemptionRecordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetUserRedemptionRecordRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetUserRedemptionRecordRequest proto.InternalMessageInfo - -func (m *QueryGetUserRedemptionRecordRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type QueryGetUserRedemptionRecordResponse struct { - UserRedemptionRecord UserRedemptionRecord `protobuf:"bytes,1,opt,name=user_redemption_record,json=userRedemptionRecord,proto3" json:"user_redemption_record"` -} - -func (m *QueryGetUserRedemptionRecordResponse) Reset() { *m = QueryGetUserRedemptionRecordResponse{} } -func (m *QueryGetUserRedemptionRecordResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetUserRedemptionRecordResponse) ProtoMessage() {} -func (*QueryGetUserRedemptionRecordResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{9} -} -func (m *QueryGetUserRedemptionRecordResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetUserRedemptionRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetUserRedemptionRecordResponse.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 *QueryGetUserRedemptionRecordResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetUserRedemptionRecordResponse.Merge(m, src) -} -func (m *QueryGetUserRedemptionRecordResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetUserRedemptionRecordResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetUserRedemptionRecordResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetUserRedemptionRecordResponse proto.InternalMessageInfo - -func (m *QueryGetUserRedemptionRecordResponse) GetUserRedemptionRecord() UserRedemptionRecord { - if m != nil { - return m.UserRedemptionRecord - } - return UserRedemptionRecord{} -} - -type QueryAllUserRedemptionRecordRequest struct { - Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllUserRedemptionRecordRequest) Reset() { *m = QueryAllUserRedemptionRecordRequest{} } -func (m *QueryAllUserRedemptionRecordRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllUserRedemptionRecordRequest) ProtoMessage() {} -func (*QueryAllUserRedemptionRecordRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{10} -} -func (m *QueryAllUserRedemptionRecordRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllUserRedemptionRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllUserRedemptionRecordRequest.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 *QueryAllUserRedemptionRecordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllUserRedemptionRecordRequest.Merge(m, src) -} -func (m *QueryAllUserRedemptionRecordRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryAllUserRedemptionRecordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllUserRedemptionRecordRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllUserRedemptionRecordRequest proto.InternalMessageInfo - -func (m *QueryAllUserRedemptionRecordRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryAllUserRedemptionRecordResponse struct { - UserRedemptionRecord []UserRedemptionRecord `protobuf:"bytes,1,rep,name=user_redemption_record,json=userRedemptionRecord,proto3" json:"user_redemption_record"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllUserRedemptionRecordResponse) Reset() { *m = QueryAllUserRedemptionRecordResponse{} } -func (m *QueryAllUserRedemptionRecordResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllUserRedemptionRecordResponse) ProtoMessage() {} -func (*QueryAllUserRedemptionRecordResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{11} -} -func (m *QueryAllUserRedemptionRecordResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllUserRedemptionRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllUserRedemptionRecordResponse.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 *QueryAllUserRedemptionRecordResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllUserRedemptionRecordResponse.Merge(m, src) -} -func (m *QueryAllUserRedemptionRecordResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryAllUserRedemptionRecordResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllUserRedemptionRecordResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllUserRedemptionRecordResponse proto.InternalMessageInfo - -func (m *QueryAllUserRedemptionRecordResponse) GetUserRedemptionRecord() []UserRedemptionRecord { - if m != nil { - return m.UserRedemptionRecord - } - return nil -} - -func (m *QueryAllUserRedemptionRecordResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination - } - return nil -} - -// Query UserRedemptionRecords by chainId / userId pair -type QueryAllUserRedemptionRecordForUserRequest struct { - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - Day uint64 `protobuf:"varint,2,opt,name=day,proto3" json:"day,omitempty"` - Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` - Limit uint64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` - Pagination *query.PageRequest `protobuf:"bytes,5,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllUserRedemptionRecordForUserRequest) Reset() { - *m = QueryAllUserRedemptionRecordForUserRequest{} -} -func (m *QueryAllUserRedemptionRecordForUserRequest) String() string { - return proto.CompactTextString(m) -} -func (*QueryAllUserRedemptionRecordForUserRequest) ProtoMessage() {} -func (*QueryAllUserRedemptionRecordForUserRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{12} -} -func (m *QueryAllUserRedemptionRecordForUserRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllUserRedemptionRecordForUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllUserRedemptionRecordForUserRequest.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 *QueryAllUserRedemptionRecordForUserRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllUserRedemptionRecordForUserRequest.Merge(m, src) -} -func (m *QueryAllUserRedemptionRecordForUserRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryAllUserRedemptionRecordForUserRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllUserRedemptionRecordForUserRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllUserRedemptionRecordForUserRequest proto.InternalMessageInfo - -func (m *QueryAllUserRedemptionRecordForUserRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *QueryAllUserRedemptionRecordForUserRequest) GetDay() uint64 { - if m != nil { - return m.Day - } - return 0 -} - -func (m *QueryAllUserRedemptionRecordForUserRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *QueryAllUserRedemptionRecordForUserRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *QueryAllUserRedemptionRecordForUserRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryAllUserRedemptionRecordForUserResponse struct { - UserRedemptionRecord []UserRedemptionRecord `protobuf:"bytes,1,rep,name=user_redemption_record,json=userRedemptionRecord,proto3" json:"user_redemption_record"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllUserRedemptionRecordForUserResponse) Reset() { - *m = QueryAllUserRedemptionRecordForUserResponse{} -} -func (m *QueryAllUserRedemptionRecordForUserResponse) String() string { - return proto.CompactTextString(m) -} -func (*QueryAllUserRedemptionRecordForUserResponse) ProtoMessage() {} -func (*QueryAllUserRedemptionRecordForUserResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{13} -} -func (m *QueryAllUserRedemptionRecordForUserResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllUserRedemptionRecordForUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllUserRedemptionRecordForUserResponse.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 *QueryAllUserRedemptionRecordForUserResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllUserRedemptionRecordForUserResponse.Merge(m, src) -} -func (m *QueryAllUserRedemptionRecordForUserResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryAllUserRedemptionRecordForUserResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllUserRedemptionRecordForUserResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllUserRedemptionRecordForUserResponse proto.InternalMessageInfo - -func (m *QueryAllUserRedemptionRecordForUserResponse) GetUserRedemptionRecord() []UserRedemptionRecord { - if m != nil { - return m.UserRedemptionRecord - } - return nil -} - -func (m *QueryAllUserRedemptionRecordForUserResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryGetEpochUnbondingRecordRequest struct { - EpochNumber uint64 `protobuf:"varint,1,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` -} - -func (m *QueryGetEpochUnbondingRecordRequest) Reset() { *m = QueryGetEpochUnbondingRecordRequest{} } -func (m *QueryGetEpochUnbondingRecordRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetEpochUnbondingRecordRequest) ProtoMessage() {} -func (*QueryGetEpochUnbondingRecordRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{14} -} -func (m *QueryGetEpochUnbondingRecordRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetEpochUnbondingRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetEpochUnbondingRecordRequest.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 *QueryGetEpochUnbondingRecordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetEpochUnbondingRecordRequest.Merge(m, src) -} -func (m *QueryGetEpochUnbondingRecordRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetEpochUnbondingRecordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetEpochUnbondingRecordRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetEpochUnbondingRecordRequest proto.InternalMessageInfo - -func (m *QueryGetEpochUnbondingRecordRequest) GetEpochNumber() uint64 { - if m != nil { - return m.EpochNumber - } - return 0 -} - -type QueryGetEpochUnbondingRecordResponse struct { - EpochUnbondingRecord EpochUnbondingRecord `protobuf:"bytes,1,opt,name=epoch_unbonding_record,json=epochUnbondingRecord,proto3" json:"epoch_unbonding_record"` -} - -func (m *QueryGetEpochUnbondingRecordResponse) Reset() { *m = QueryGetEpochUnbondingRecordResponse{} } -func (m *QueryGetEpochUnbondingRecordResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetEpochUnbondingRecordResponse) ProtoMessage() {} -func (*QueryGetEpochUnbondingRecordResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{15} -} -func (m *QueryGetEpochUnbondingRecordResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetEpochUnbondingRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetEpochUnbondingRecordResponse.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 *QueryGetEpochUnbondingRecordResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetEpochUnbondingRecordResponse.Merge(m, src) -} -func (m *QueryGetEpochUnbondingRecordResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetEpochUnbondingRecordResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetEpochUnbondingRecordResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetEpochUnbondingRecordResponse proto.InternalMessageInfo - -func (m *QueryGetEpochUnbondingRecordResponse) GetEpochUnbondingRecord() EpochUnbondingRecord { - if m != nil { - return m.EpochUnbondingRecord - } - return EpochUnbondingRecord{} -} - -type QueryAllEpochUnbondingRecordRequest struct { - Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllEpochUnbondingRecordRequest) Reset() { *m = QueryAllEpochUnbondingRecordRequest{} } -func (m *QueryAllEpochUnbondingRecordRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllEpochUnbondingRecordRequest) ProtoMessage() {} -func (*QueryAllEpochUnbondingRecordRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{16} -} -func (m *QueryAllEpochUnbondingRecordRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllEpochUnbondingRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllEpochUnbondingRecordRequest.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 *QueryAllEpochUnbondingRecordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllEpochUnbondingRecordRequest.Merge(m, src) -} -func (m *QueryAllEpochUnbondingRecordRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryAllEpochUnbondingRecordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllEpochUnbondingRecordRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllEpochUnbondingRecordRequest proto.InternalMessageInfo - -func (m *QueryAllEpochUnbondingRecordRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryAllEpochUnbondingRecordResponse struct { - EpochUnbondingRecord []EpochUnbondingRecord `protobuf:"bytes,1,rep,name=epoch_unbonding_record,json=epochUnbondingRecord,proto3" json:"epoch_unbonding_record"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllEpochUnbondingRecordResponse) Reset() { *m = QueryAllEpochUnbondingRecordResponse{} } -func (m *QueryAllEpochUnbondingRecordResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllEpochUnbondingRecordResponse) ProtoMessage() {} -func (*QueryAllEpochUnbondingRecordResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_25e7cc311be81f7b, []int{17} -} -func (m *QueryAllEpochUnbondingRecordResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllEpochUnbondingRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllEpochUnbondingRecordResponse.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 *QueryAllEpochUnbondingRecordResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllEpochUnbondingRecordResponse.Merge(m, src) -} -func (m *QueryAllEpochUnbondingRecordResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryAllEpochUnbondingRecordResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllEpochUnbondingRecordResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllEpochUnbondingRecordResponse proto.InternalMessageInfo - -func (m *QueryAllEpochUnbondingRecordResponse) GetEpochUnbondingRecord() []EpochUnbondingRecord { - if m != nil { - return m.EpochUnbondingRecord - } - return nil -} - -func (m *QueryAllEpochUnbondingRecordResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination - } - return nil -} - -func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "stride.records.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "stride.records.QueryParamsResponse") - proto.RegisterType((*QueryGetDepositRecordRequest)(nil), "stride.records.QueryGetDepositRecordRequest") - proto.RegisterType((*QueryGetDepositRecordResponse)(nil), "stride.records.QueryGetDepositRecordResponse") - proto.RegisterType((*QueryAllDepositRecordRequest)(nil), "stride.records.QueryAllDepositRecordRequest") - proto.RegisterType((*QueryAllDepositRecordResponse)(nil), "stride.records.QueryAllDepositRecordResponse") - proto.RegisterType((*QueryDepositRecordByHostRequest)(nil), "stride.records.QueryDepositRecordByHostRequest") - proto.RegisterType((*QueryDepositRecordByHostResponse)(nil), "stride.records.QueryDepositRecordByHostResponse") - proto.RegisterType((*QueryGetUserRedemptionRecordRequest)(nil), "stride.records.QueryGetUserRedemptionRecordRequest") - proto.RegisterType((*QueryGetUserRedemptionRecordResponse)(nil), "stride.records.QueryGetUserRedemptionRecordResponse") - proto.RegisterType((*QueryAllUserRedemptionRecordRequest)(nil), "stride.records.QueryAllUserRedemptionRecordRequest") - proto.RegisterType((*QueryAllUserRedemptionRecordResponse)(nil), "stride.records.QueryAllUserRedemptionRecordResponse") - proto.RegisterType((*QueryAllUserRedemptionRecordForUserRequest)(nil), "stride.records.QueryAllUserRedemptionRecordForUserRequest") - proto.RegisterType((*QueryAllUserRedemptionRecordForUserResponse)(nil), "stride.records.QueryAllUserRedemptionRecordForUserResponse") - proto.RegisterType((*QueryGetEpochUnbondingRecordRequest)(nil), "stride.records.QueryGetEpochUnbondingRecordRequest") - proto.RegisterType((*QueryGetEpochUnbondingRecordResponse)(nil), "stride.records.QueryGetEpochUnbondingRecordResponse") - proto.RegisterType((*QueryAllEpochUnbondingRecordRequest)(nil), "stride.records.QueryAllEpochUnbondingRecordRequest") - proto.RegisterType((*QueryAllEpochUnbondingRecordResponse)(nil), "stride.records.QueryAllEpochUnbondingRecordResponse") -} - -func init() { proto.RegisterFile("stride/records/query.proto", fileDescriptor_25e7cc311be81f7b) } - -var fileDescriptor_25e7cc311be81f7b = []byte{ - // 1002 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0x4f, 0x6f, 0xdc, 0x44, - 0x14, 0xcf, 0x64, 0x93, 0x94, 0xbe, 0x36, 0x51, 0x35, 0x5d, 0x95, 0xb0, 0xb4, 0xdb, 0xd4, 0xa9, - 0xf8, 0x13, 0x52, 0x4f, 0x93, 0x06, 0x2a, 0xca, 0x01, 0xa5, 0x85, 0x34, 0x29, 0xa8, 0x2a, 0x46, - 0xbd, 0xf4, 0x80, 0x6b, 0xaf, 0x27, 0x8e, 0x85, 0xd7, 0xe3, 0x7a, 0xbc, 0x15, 0xcb, 0xb2, 0x17, - 0x4e, 0x1c, 0x91, 0xf8, 0x08, 0x88, 0x6f, 0xc0, 0x85, 0x1b, 0xe2, 0x94, 0x03, 0x87, 0x56, 0x5c, - 0x7a, 0x42, 0x28, 0xe1, 0x73, 0x20, 0xe4, 0x99, 0xd9, 0x64, 0xbd, 0x1d, 0x3b, 0xbb, 0xab, 0xe5, - 0xc0, 0xcd, 0x9e, 0xf7, 0xef, 0xf7, 0x7b, 0xf3, 0xde, 0xbc, 0x19, 0xa8, 0xf1, 0x34, 0x09, 0x3c, - 0x4a, 0x12, 0xda, 0x60, 0x89, 0xc7, 0xc9, 0x93, 0x16, 0x4d, 0xda, 0x66, 0x9c, 0xb0, 0x94, 0xe1, - 0x05, 0x29, 0x33, 0x95, 0xac, 0x56, 0xf5, 0x99, 0xcf, 0x84, 0x88, 0x64, 0x5f, 0x52, 0xab, 0x76, - 0xd1, 0x67, 0xcc, 0x0f, 0x29, 0x71, 0xe2, 0x80, 0x38, 0x51, 0xc4, 0x52, 0x27, 0x0d, 0x58, 0xc4, - 0x95, 0x74, 0xa5, 0xc1, 0x78, 0x93, 0x71, 0xe2, 0x3a, 0x9c, 0x4a, 0xe7, 0xe4, 0xe9, 0x9a, 0x4b, - 0x53, 0x67, 0x8d, 0xc4, 0x8e, 0x1f, 0x44, 0x42, 0xb9, 0xe7, 0x69, 0x00, 0x8b, 0x4f, 0x23, 0xca, - 0x03, 0xe5, 0xc9, 0xa8, 0x02, 0xfe, 0x2c, 0xb3, 0x7f, 0xe0, 0x24, 0x4e, 0x93, 0x5b, 0xf4, 0x49, - 0x8b, 0xf2, 0xd4, 0xf8, 0x04, 0xce, 0xe7, 0x56, 0x79, 0xcc, 0x22, 0x4e, 0xf1, 0x06, 0xcc, 0xc5, - 0x62, 0x65, 0x11, 0x2d, 0xa1, 0xb7, 0xce, 0xac, 0x5f, 0x30, 0xf3, 0x5c, 0x4c, 0xa9, 0x7f, 0x7b, - 0x66, 0xff, 0xcf, 0xcb, 0x53, 0x96, 0xd2, 0x35, 0x4c, 0xb8, 0x28, 0x9c, 0xdd, 0xa5, 0xe9, 0x47, - 0x34, 0x66, 0x3c, 0x48, 0x2d, 0xa1, 0xae, 0x82, 0xe1, 0x05, 0x98, 0x0e, 0x3c, 0xe1, 0x71, 0xc6, - 0x9a, 0x0e, 0x3c, 0xe3, 0x4b, 0xb8, 0x54, 0xa0, 0xaf, 0x60, 0xdc, 0x83, 0x05, 0x4f, 0x0a, 0x6c, - 0x19, 0x58, 0xc1, 0xb9, 0x34, 0x08, 0x27, 0x67, 0xae, 0x50, 0xcd, 0x7b, 0xfd, 0x8b, 0xc6, 0xae, - 0x02, 0xb7, 0x19, 0x86, 0x5a, 0x70, 0x5b, 0x00, 0xc7, 0x19, 0x55, 0x71, 0xde, 0x30, 0x65, 0xfa, - 0xcd, 0x2c, 0xfd, 0xa6, 0xdc, 0x5b, 0x95, 0x7e, 0xf3, 0x81, 0xe3, 0x53, 0x65, 0x6b, 0xf5, 0x59, - 0x1a, 0x3f, 0x23, 0xc5, 0xea, 0xe5, 0x40, 0x25, 0xac, 0x2a, 0xe3, 0xb1, 0xc2, 0x77, 0x73, 0xa8, - 0xa7, 0x05, 0xea, 0x37, 0x4f, 0x44, 0x2d, 0x81, 0xe4, 0x60, 0xdf, 0x81, 0xcb, 0x02, 0x75, 0x3e, - 0x66, 0x7b, 0x9b, 0xf1, 0xb4, 0x97, 0xa1, 0x25, 0x38, 0xbb, 0xc7, 0x78, 0x6a, 0x7f, 0xcd, 0x22, - 0x6a, 0xab, 0x8d, 0x3c, 0x6d, 0x41, 0xb6, 0xf6, 0x88, 0x45, 0x74, 0xc7, 0x33, 0x22, 0x58, 0x2a, - 0x76, 0x32, 0x79, 0xf6, 0xc6, 0xbb, 0xb0, 0xdc, 0x2b, 0xa0, 0x87, 0x9c, 0x26, 0x16, 0xf5, 0x68, - 0x33, 0xce, 0xe8, 0x14, 0xd5, 0xdd, 0x69, 0x51, 0x77, 0xdf, 0x21, 0xb8, 0x5a, 0x6e, 0xa7, 0xb0, - 0x3e, 0x86, 0x0b, 0x2d, 0x4e, 0x13, 0x3b, 0x39, 0x52, 0xc8, 0xd7, 0xe1, 0xd5, 0x41, 0xcc, 0x3a, - 0x6f, 0x0a, 0x7a, 0xb5, 0xa5, 0x91, 0x19, 0x4d, 0xc5, 0x60, 0x33, 0x0c, 0xcb, 0x18, 0x4c, 0xaa, - 0x38, 0x9f, 0xf7, 0x98, 0x17, 0xc6, 0x1b, 0x82, 0x79, 0x65, 0x12, 0xcc, 0x27, 0x57, 0xb9, 0xcf, - 0x11, 0xac, 0x94, 0x71, 0xda, 0x62, 0x89, 0x5c, 0x96, 0xa9, 0x7c, 0x0d, 0x5e, 0x69, 0xec, 0x39, - 0x41, 0x74, 0x5c, 0xc1, 0xa7, 0xc4, 0xff, 0x8e, 0x87, 0xcf, 0x41, 0xc5, 0x73, 0xda, 0x02, 0xcb, - 0x8c, 0x95, 0x7d, 0xe2, 0x45, 0x38, 0xe5, 0x78, 0x5e, 0x42, 0x39, 0x5f, 0xac, 0x48, 0x5d, 0xf5, - 0x8b, 0xab, 0x30, 0x1b, 0x06, 0xcd, 0x20, 0x5d, 0x9c, 0x11, 0xda, 0xf2, 0x67, 0x60, 0x9f, 0x66, - 0xc7, 0xde, 0xa7, 0x17, 0x08, 0xde, 0x19, 0x8a, 0xd3, 0xff, 0x6f, 0xbb, 0xb6, 0x8f, 0x7b, 0xf6, - 0xe3, 0x98, 0x35, 0xf6, 0x1e, 0x46, 0x2e, 0x8b, 0xbc, 0x20, 0xf2, 0xf3, 0x15, 0x7f, 0x05, 0xce, - 0xd2, 0x4c, 0x6c, 0x47, 0xad, 0xa6, 0x4b, 0x13, 0x35, 0x35, 0xce, 0x88, 0xb5, 0xfb, 0x62, 0x29, - 0xd7, 0xc6, 0x7a, 0x57, 0xc7, 0xd9, 0x91, 0xbe, 0x5a, 0x3d, 0x85, 0x13, 0xda, 0x58, 0xe7, 0xad, - 0x97, 0x1d, 0xaa, 0x91, 0xf5, 0xb7, 0x71, 0x19, 0xa9, 0xff, 0xa2, 0x8d, 0xc7, 0x66, 0x5e, 0x99, - 0x04, 0xf3, 0x89, 0xd5, 0xc5, 0xfa, 0x2f, 0xf3, 0x30, 0x2b, 0x38, 0xe1, 0x6f, 0x60, 0x4e, 0x5e, - 0x2f, 0xb0, 0x31, 0x08, 0xef, 0xe5, 0x1b, 0x4c, 0x6d, 0xb9, 0x54, 0x47, 0x06, 0x32, 0xde, 0xfe, - 0xf6, 0x8f, 0xbf, 0x7f, 0x98, 0x5e, 0xc6, 0x57, 0xc8, 0xe7, 0x42, 0xf9, 0x53, 0xc7, 0xe5, 0x64, - 0xe0, 0xba, 0x24, 0x2f, 0x31, 0xf8, 0x37, 0x04, 0x55, 0x5d, 0x77, 0xe0, 0x1b, 0xda, 0x40, 0xe5, - 0xa3, 0xa7, 0xb6, 0x31, 0x9a, 0x91, 0x82, 0xfb, 0xa1, 0x80, 0xfb, 0x3e, 0xbe, 0xa9, 0xe0, 0x5e, - 0xd3, 0xe1, 0xd5, 0x37, 0x3c, 0xe9, 0x04, 0x5e, 0x17, 0xff, 0x8a, 0xe0, 0x55, 0x5d, 0x84, 0xcd, - 0x30, 0x2c, 0xe0, 0x51, 0x3e, 0x80, 0x0a, 0x78, 0x9c, 0x30, 0x45, 0x8c, 0x5b, 0x82, 0xc7, 0x06, - 0x5e, 0x1f, 0x9d, 0x07, 0xfe, 0x07, 0xc1, 0xeb, 0x25, 0x47, 0x1f, 0xbe, 0x35, 0x0a, 0xa2, 0xfc, - 0x0c, 0xa8, 0x7d, 0x30, 0x96, 0xad, 0x22, 0xb5, 0x2b, 0x48, 0x3d, 0xc6, 0x5f, 0x8c, 0x4e, 0xca, - 0xde, 0x65, 0x89, 0x9d, 0x89, 0x48, 0xa7, 0x37, 0x83, 0xba, 0xa4, 0xe3, 0x39, 0xed, 0x2e, 0xe9, - 0xa8, 0xc1, 0xd2, 0x25, 0x1d, 0x31, 0x4a, 0xba, 0xf8, 0x77, 0x04, 0x55, 0x5d, 0x3b, 0x16, 0x17, - 0x62, 0xc9, 0xd1, 0x53, 0x5c, 0x88, 0x65, 0xe7, 0x87, 0xb1, 0x23, 0xb8, 0xde, 0xc1, 0x9b, 0x65, - 0x5c, 0xf5, 0x27, 0x0c, 0xe9, 0xf4, 0x9f, 0xdf, 0xb2, 0x24, 0x75, 0xb1, 0x4a, 0x4b, 0x72, 0x74, - 0x46, 0x27, 0x9c, 0x88, 0xc3, 0x95, 0xa4, 0x9e, 0x11, 0xfe, 0x09, 0xc1, 0x7c, 0xee, 0x56, 0x8a, - 0x57, 0x8b, 0xb2, 0xaa, 0x7b, 0x62, 0xd4, 0xae, 0x0d, 0xa9, 0xad, 0xa0, 0xde, 0x14, 0x50, 0xd7, - 0x30, 0x29, 0x83, 0x9a, 0xbf, 0x4b, 0xcb, 0xee, 0xff, 0x11, 0xc1, 0xb9, 0x9c, 0xcb, 0x2c, 0xc7, - 0xab, 0x45, 0xe9, 0x1a, 0x01, 0x6a, 0xd1, 0x93, 0xc6, 0x58, 0x17, 0x50, 0x57, 0xf1, 0xca, 0xf0, - 0x50, 0xf1, 0x3e, 0x82, 0xf3, 0x9a, 0x87, 0x02, 0x26, 0xda, 0xd0, 0xc5, 0xef, 0x92, 0xda, 0xf5, - 0xe1, 0x0d, 0x14, 0xdc, 0xfb, 0x02, 0xee, 0x36, 0xde, 0x1a, 0x1e, 0xae, 0xed, 0xb6, 0xed, 0xa3, - 0xd7, 0x0f, 0xe9, 0xf4, 0x3f, 0x84, 0xba, 0xb7, 0xef, 0xed, 0x1f, 0xd4, 0xd1, 0xb3, 0x83, 0x3a, - 0xfa, 0xeb, 0xa0, 0x8e, 0xbe, 0x3f, 0xac, 0x4f, 0x3d, 0x3b, 0xac, 0x4f, 0xbd, 0x38, 0xac, 0x4f, - 0x3d, 0xba, 0xee, 0x07, 0xe9, 0x5e, 0xcb, 0x35, 0x1b, 0xac, 0xa9, 0x8b, 0xf5, 0xf4, 0x3d, 0xf2, - 0xd5, 0x51, 0xc0, 0xb4, 0x1d, 0x53, 0xee, 0xce, 0x89, 0xe7, 0xfa, 0x8d, 0x7f, 0x03, 0x00, 0x00, - 0xff, 0xff, 0x8a, 0x39, 0xac, 0x60, 0x5a, 0x10, 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 - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - // Parameters queries the parameters of the module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // Queries a UserRedemptionRecord by id. - UserRedemptionRecord(ctx context.Context, in *QueryGetUserRedemptionRecordRequest, opts ...grpc.CallOption) (*QueryGetUserRedemptionRecordResponse, error) - // Queries a list of UserRedemptionRecord items. - UserRedemptionRecordAll(ctx context.Context, in *QueryAllUserRedemptionRecordRequest, opts ...grpc.CallOption) (*QueryAllUserRedemptionRecordResponse, error) - // Queries a list of UserRedemptionRecord items by chainId / userId pair. - UserRedemptionRecordForUser(ctx context.Context, in *QueryAllUserRedemptionRecordForUserRequest, opts ...grpc.CallOption) (*QueryAllUserRedemptionRecordForUserResponse, error) - // Queries a EpochUnbondingRecord by id. - EpochUnbondingRecord(ctx context.Context, in *QueryGetEpochUnbondingRecordRequest, opts ...grpc.CallOption) (*QueryGetEpochUnbondingRecordResponse, error) - // Queries a list of EpochUnbondingRecord items. - EpochUnbondingRecordAll(ctx context.Context, in *QueryAllEpochUnbondingRecordRequest, opts ...grpc.CallOption) (*QueryAllEpochUnbondingRecordResponse, error) - // Queries a DepositRecord by id. - DepositRecord(ctx context.Context, in *QueryGetDepositRecordRequest, opts ...grpc.CallOption) (*QueryGetDepositRecordResponse, error) - // Queries a list of DepositRecord items. - DepositRecordAll(ctx context.Context, in *QueryAllDepositRecordRequest, opts ...grpc.CallOption) (*QueryAllDepositRecordResponse, error) - // Queries a list of DepositRecord items for a given host zone - DepositRecordByHost(ctx context.Context, in *QueryDepositRecordByHostRequest, opts ...grpc.CallOption) (*QueryDepositRecordByHostResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/stride.records.Query/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) UserRedemptionRecord(ctx context.Context, in *QueryGetUserRedemptionRecordRequest, opts ...grpc.CallOption) (*QueryGetUserRedemptionRecordResponse, error) { - out := new(QueryGetUserRedemptionRecordResponse) - err := c.cc.Invoke(ctx, "/stride.records.Query/UserRedemptionRecord", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) UserRedemptionRecordAll(ctx context.Context, in *QueryAllUserRedemptionRecordRequest, opts ...grpc.CallOption) (*QueryAllUserRedemptionRecordResponse, error) { - out := new(QueryAllUserRedemptionRecordResponse) - err := c.cc.Invoke(ctx, "/stride.records.Query/UserRedemptionRecordAll", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) UserRedemptionRecordForUser(ctx context.Context, in *QueryAllUserRedemptionRecordForUserRequest, opts ...grpc.CallOption) (*QueryAllUserRedemptionRecordForUserResponse, error) { - out := new(QueryAllUserRedemptionRecordForUserResponse) - err := c.cc.Invoke(ctx, "/stride.records.Query/UserRedemptionRecordForUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) EpochUnbondingRecord(ctx context.Context, in *QueryGetEpochUnbondingRecordRequest, opts ...grpc.CallOption) (*QueryGetEpochUnbondingRecordResponse, error) { - out := new(QueryGetEpochUnbondingRecordResponse) - err := c.cc.Invoke(ctx, "/stride.records.Query/EpochUnbondingRecord", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) EpochUnbondingRecordAll(ctx context.Context, in *QueryAllEpochUnbondingRecordRequest, opts ...grpc.CallOption) (*QueryAllEpochUnbondingRecordResponse, error) { - out := new(QueryAllEpochUnbondingRecordResponse) - err := c.cc.Invoke(ctx, "/stride.records.Query/EpochUnbondingRecordAll", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) DepositRecord(ctx context.Context, in *QueryGetDepositRecordRequest, opts ...grpc.CallOption) (*QueryGetDepositRecordResponse, error) { - out := new(QueryGetDepositRecordResponse) - err := c.cc.Invoke(ctx, "/stride.records.Query/DepositRecord", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) DepositRecordAll(ctx context.Context, in *QueryAllDepositRecordRequest, opts ...grpc.CallOption) (*QueryAllDepositRecordResponse, error) { - out := new(QueryAllDepositRecordResponse) - err := c.cc.Invoke(ctx, "/stride.records.Query/DepositRecordAll", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) DepositRecordByHost(ctx context.Context, in *QueryDepositRecordByHostRequest, opts ...grpc.CallOption) (*QueryDepositRecordByHostResponse, error) { - out := new(QueryDepositRecordByHostResponse) - err := c.cc.Invoke(ctx, "/stride.records.Query/DepositRecordByHost", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -type QueryServer interface { - // Parameters queries the parameters of the module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // Queries a UserRedemptionRecord by id. - UserRedemptionRecord(context.Context, *QueryGetUserRedemptionRecordRequest) (*QueryGetUserRedemptionRecordResponse, error) - // Queries a list of UserRedemptionRecord items. - UserRedemptionRecordAll(context.Context, *QueryAllUserRedemptionRecordRequest) (*QueryAllUserRedemptionRecordResponse, error) - // Queries a list of UserRedemptionRecord items by chainId / userId pair. - UserRedemptionRecordForUser(context.Context, *QueryAllUserRedemptionRecordForUserRequest) (*QueryAllUserRedemptionRecordForUserResponse, error) - // Queries a EpochUnbondingRecord by id. - EpochUnbondingRecord(context.Context, *QueryGetEpochUnbondingRecordRequest) (*QueryGetEpochUnbondingRecordResponse, error) - // Queries a list of EpochUnbondingRecord items. - EpochUnbondingRecordAll(context.Context, *QueryAllEpochUnbondingRecordRequest) (*QueryAllEpochUnbondingRecordResponse, error) - // Queries a DepositRecord by id. - DepositRecord(context.Context, *QueryGetDepositRecordRequest) (*QueryGetDepositRecordResponse, error) - // Queries a list of DepositRecord items. - DepositRecordAll(context.Context, *QueryAllDepositRecordRequest) (*QueryAllDepositRecordResponse, error) - // Queries a list of DepositRecord items for a given host zone - DepositRecordByHost(context.Context, *QueryDepositRecordByHostRequest) (*QueryDepositRecordByHostResponse, error) -} - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} -func (*UnimplementedQueryServer) UserRedemptionRecord(ctx context.Context, req *QueryGetUserRedemptionRecordRequest) (*QueryGetUserRedemptionRecordResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserRedemptionRecord not implemented") -} -func (*UnimplementedQueryServer) UserRedemptionRecordAll(ctx context.Context, req *QueryAllUserRedemptionRecordRequest) (*QueryAllUserRedemptionRecordResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserRedemptionRecordAll not implemented") -} -func (*UnimplementedQueryServer) UserRedemptionRecordForUser(ctx context.Context, req *QueryAllUserRedemptionRecordForUserRequest) (*QueryAllUserRedemptionRecordForUserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserRedemptionRecordForUser not implemented") -} -func (*UnimplementedQueryServer) EpochUnbondingRecord(ctx context.Context, req *QueryGetEpochUnbondingRecordRequest) (*QueryGetEpochUnbondingRecordResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EpochUnbondingRecord not implemented") -} -func (*UnimplementedQueryServer) EpochUnbondingRecordAll(ctx context.Context, req *QueryAllEpochUnbondingRecordRequest) (*QueryAllEpochUnbondingRecordResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EpochUnbondingRecordAll not implemented") -} -func (*UnimplementedQueryServer) DepositRecord(ctx context.Context, req *QueryGetDepositRecordRequest) (*QueryGetDepositRecordResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DepositRecord not implemented") -} -func (*UnimplementedQueryServer) DepositRecordAll(ctx context.Context, req *QueryAllDepositRecordRequest) (*QueryAllDepositRecordResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DepositRecordAll not implemented") -} -func (*UnimplementedQueryServer) DepositRecordByHost(ctx context.Context, req *QueryDepositRecordByHostRequest) (*QueryDepositRecordByHostResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DepositRecordByHost not implemented") -} - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) -} - -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.records.Query/Params", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_UserRedemptionRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetUserRedemptionRecordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).UserRedemptionRecord(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.records.Query/UserRedemptionRecord", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).UserRedemptionRecord(ctx, req.(*QueryGetUserRedemptionRecordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_UserRedemptionRecordAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllUserRedemptionRecordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).UserRedemptionRecordAll(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.records.Query/UserRedemptionRecordAll", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).UserRedemptionRecordAll(ctx, req.(*QueryAllUserRedemptionRecordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_UserRedemptionRecordForUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllUserRedemptionRecordForUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).UserRedemptionRecordForUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.records.Query/UserRedemptionRecordForUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).UserRedemptionRecordForUser(ctx, req.(*QueryAllUserRedemptionRecordForUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_EpochUnbondingRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetEpochUnbondingRecordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).EpochUnbondingRecord(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.records.Query/EpochUnbondingRecord", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EpochUnbondingRecord(ctx, req.(*QueryGetEpochUnbondingRecordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_EpochUnbondingRecordAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllEpochUnbondingRecordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).EpochUnbondingRecordAll(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.records.Query/EpochUnbondingRecordAll", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EpochUnbondingRecordAll(ctx, req.(*QueryAllEpochUnbondingRecordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_DepositRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetDepositRecordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).DepositRecord(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.records.Query/DepositRecord", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).DepositRecord(ctx, req.(*QueryGetDepositRecordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_DepositRecordAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllDepositRecordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).DepositRecordAll(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.records.Query/DepositRecordAll", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).DepositRecordAll(ctx, req.(*QueryAllDepositRecordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_DepositRecordByHost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryDepositRecordByHostRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).DepositRecordByHost(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.records.Query/DepositRecordByHost", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).DepositRecordByHost(ctx, req.(*QueryDepositRecordByHostRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "stride.records.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "UserRedemptionRecord", - Handler: _Query_UserRedemptionRecord_Handler, - }, - { - MethodName: "UserRedemptionRecordAll", - Handler: _Query_UserRedemptionRecordAll_Handler, - }, - { - MethodName: "UserRedemptionRecordForUser", - Handler: _Query_UserRedemptionRecordForUser_Handler, - }, - { - MethodName: "EpochUnbondingRecord", - Handler: _Query_EpochUnbondingRecord_Handler, - }, - { - MethodName: "EpochUnbondingRecordAll", - Handler: _Query_EpochUnbondingRecordAll_Handler, - }, - { - MethodName: "DepositRecord", - Handler: _Query_DepositRecord_Handler, - }, - { - MethodName: "DepositRecordAll", - Handler: _Query_DepositRecordAll_Handler, - }, - { - MethodName: "DepositRecordByHost", - Handler: _Query_DepositRecordByHost_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "stride/records/query.proto", -} - -func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryParamsResponse) 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 *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryGetDepositRecordRequest) 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 *QueryGetDepositRecordRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetDepositRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Id != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryGetDepositRecordResponse) 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 *QueryGetDepositRecordResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetDepositRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.DepositRecord.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryAllDepositRecordRequest) 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 *QueryAllDepositRecordRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllDepositRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryAllDepositRecordResponse) 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 *QueryAllDepositRecordResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllDepositRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.DepositRecord) > 0 { - for iNdEx := len(m.DepositRecord) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DepositRecord[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryDepositRecordByHostRequest) 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 *QueryDepositRecordByHostRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryDepositRecordByHostRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryDepositRecordByHostResponse) 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 *QueryDepositRecordByHostResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryDepositRecordByHostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DepositRecord) > 0 { - for iNdEx := len(m.DepositRecord) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DepositRecord[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryGetUserRedemptionRecordRequest) 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 *QueryGetUserRedemptionRecordRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetUserRedemptionRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryGetUserRedemptionRecordResponse) 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 *QueryGetUserRedemptionRecordResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetUserRedemptionRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.UserRedemptionRecord.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryAllUserRedemptionRecordRequest) 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 *QueryAllUserRedemptionRecordRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllUserRedemptionRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryAllUserRedemptionRecordResponse) 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 *QueryAllUserRedemptionRecordResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllUserRedemptionRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.UserRedemptionRecord) > 0 { - for iNdEx := len(m.UserRedemptionRecord) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.UserRedemptionRecord[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryAllUserRedemptionRecordForUserRequest) 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 *QueryAllUserRedemptionRecordForUserRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllUserRedemptionRecordForUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Limit != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x20 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x1a - } - if m.Day != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Day)) - i-- - dAtA[i] = 0x10 - } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryAllUserRedemptionRecordForUserResponse) 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 *QueryAllUserRedemptionRecordForUserResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllUserRedemptionRecordForUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.UserRedemptionRecord) > 0 { - for iNdEx := len(m.UserRedemptionRecord) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.UserRedemptionRecord[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryGetEpochUnbondingRecordRequest) 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 *QueryGetEpochUnbondingRecordRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetEpochUnbondingRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EpochNumber != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.EpochNumber)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryGetEpochUnbondingRecordResponse) 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 *QueryGetEpochUnbondingRecordResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetEpochUnbondingRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.EpochUnbondingRecord.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryAllEpochUnbondingRecordRequest) 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 *QueryAllEpochUnbondingRecordRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllEpochUnbondingRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryAllEpochUnbondingRecordResponse) 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 *QueryAllEpochUnbondingRecordResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllEpochUnbondingRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.EpochUnbondingRecord) > 0 { - for iNdEx := len(m.EpochUnbondingRecord) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.EpochUnbondingRecord[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryGetDepositRecordRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Id != 0 { - n += 1 + sovQuery(uint64(m.Id)) - } - return n -} - -func (m *QueryGetDepositRecordResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.DepositRecord.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryAllDepositRecordRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryAllDepositRecordResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.DepositRecord) > 0 { - for _, e := range m.DepositRecord { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryDepositRecordByHostRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryDepositRecordByHostResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.DepositRecord) > 0 { - for _, e := range m.DepositRecord { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func (m *QueryGetUserRedemptionRecordRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetUserRedemptionRecordResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.UserRedemptionRecord.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryAllUserRedemptionRecordRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryAllUserRedemptionRecordResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.UserRedemptionRecord) > 0 { - for _, e := range m.UserRedemptionRecord { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryAllUserRedemptionRecordForUserRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Day != 0 { - n += 1 + sovQuery(uint64(m.Day)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - if m.Limit != 0 { - n += 1 + sovQuery(uint64(m.Limit)) - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryAllUserRedemptionRecordForUserResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.UserRedemptionRecord) > 0 { - for _, e := range m.UserRedemptionRecord { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetEpochUnbondingRecordRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EpochNumber != 0 { - n += 1 + sovQuery(uint64(m.EpochNumber)) - } - return n -} - -func (m *QueryGetEpochUnbondingRecordResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.EpochUnbondingRecord.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryAllEpochUnbondingRecordRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryAllEpochUnbondingRecordResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.EpochUnbondingRecord) > 0 { - for _, e := range m.EpochUnbondingRecord { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryParamsRequest) 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 ErrIntOverflowQuery - } - 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: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParamsResponse) 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 ErrIntOverflowQuery - } - 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: QueryParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetDepositRecordRequest) 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 ErrIntOverflowQuery - } - 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: QueryGetDepositRecordRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetDepositRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - m.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetDepositRecordResponse) 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 ErrIntOverflowQuery - } - 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: QueryGetDepositRecordResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetDepositRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositRecord", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.DepositRecord.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllDepositRecordRequest) 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 ErrIntOverflowQuery - } - 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: QueryAllDepositRecordRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllDepositRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllDepositRecordResponse) 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 ErrIntOverflowQuery - } - 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: QueryAllDepositRecordResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllDepositRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositRecord", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DepositRecord = append(m.DepositRecord, DepositRecord{}) - if err := m.DepositRecord[len(m.DepositRecord)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryDepositRecordByHostRequest) 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 ErrIntOverflowQuery - } - 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: QueryDepositRecordByHostRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDepositRecordByHostRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryDepositRecordByHostResponse) 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 ErrIntOverflowQuery - } - 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: QueryDepositRecordByHostResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDepositRecordByHostResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositRecord", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DepositRecord = append(m.DepositRecord, DepositRecord{}) - if err := m.DepositRecord[len(m.DepositRecord)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetUserRedemptionRecordRequest) 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 ErrIntOverflowQuery - } - 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: QueryGetUserRedemptionRecordRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetUserRedemptionRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetUserRedemptionRecordResponse) 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 ErrIntOverflowQuery - } - 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: QueryGetUserRedemptionRecordResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetUserRedemptionRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecord", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.UserRedemptionRecord.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllUserRedemptionRecordRequest) 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 ErrIntOverflowQuery - } - 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: QueryAllUserRedemptionRecordRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllUserRedemptionRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllUserRedemptionRecordResponse) 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 ErrIntOverflowQuery - } - 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: QueryAllUserRedemptionRecordResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllUserRedemptionRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecord", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserRedemptionRecord = append(m.UserRedemptionRecord, UserRedemptionRecord{}) - if err := m.UserRedemptionRecord[len(m.UserRedemptionRecord)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllUserRedemptionRecordForUserRequest) 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 ErrIntOverflowQuery - } - 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: QueryAllUserRedemptionRecordForUserRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllUserRedemptionRecordForUserRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Day", wireType) - } - m.Day = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Day |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - m.Limit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Limit |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllUserRedemptionRecordForUserResponse) 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 ErrIntOverflowQuery - } - 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: QueryAllUserRedemptionRecordForUserResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllUserRedemptionRecordForUserResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecord", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserRedemptionRecord = append(m.UserRedemptionRecord, UserRedemptionRecord{}) - if err := m.UserRedemptionRecord[len(m.UserRedemptionRecord)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetEpochUnbondingRecordRequest) 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 ErrIntOverflowQuery - } - 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: QueryGetEpochUnbondingRecordRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetEpochUnbondingRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) - } - m.EpochNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EpochNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetEpochUnbondingRecordResponse) 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 ErrIntOverflowQuery - } - 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: QueryGetEpochUnbondingRecordResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetEpochUnbondingRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochUnbondingRecord", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.EpochUnbondingRecord.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllEpochUnbondingRecordRequest) 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 ErrIntOverflowQuery - } - 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: QueryAllEpochUnbondingRecordRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllEpochUnbondingRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllEpochUnbondingRecordResponse) 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 ErrIntOverflowQuery - } - 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: QueryAllEpochUnbondingRecordResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllEpochUnbondingRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochUnbondingRecord", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EpochUnbondingRecord = append(m.EpochUnbondingRecord, EpochUnbondingRecord{}) - if err := m.EpochUnbondingRecord[len(m.EpochUnbondingRecord)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/stakeibc/migrations/v2/types/callbacks.pb.go b/x/stakeibc/migrations/v2/types/callbacks.pb.go deleted file mode 100644 index a17458ac27..0000000000 --- a/x/stakeibc/migrations/v2/types/callbacks.pb.go +++ /dev/null @@ -1,2238 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/stakeibc/callbacks.proto - -package types - -import ( - fmt "fmt" - types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -// ---------------------- Delegation Callbacks ---------------------- // -type SplitDelegation struct { - Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` - Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` -} - -func (m *SplitDelegation) Reset() { *m = SplitDelegation{} } -func (m *SplitDelegation) String() string { return proto.CompactTextString(m) } -func (*SplitDelegation) ProtoMessage() {} -func (*SplitDelegation) Descriptor() ([]byte, []int) { - return fileDescriptor_f41c99b09b96a5ac, []int{0} -} -func (m *SplitDelegation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SplitDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SplitDelegation.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 *SplitDelegation) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitDelegation.Merge(m, src) -} -func (m *SplitDelegation) XXX_Size() int { - return m.Size() -} -func (m *SplitDelegation) XXX_DiscardUnknown() { - xxx_messageInfo_SplitDelegation.DiscardUnknown(m) -} - -var xxx_messageInfo_SplitDelegation proto.InternalMessageInfo - -func (m *SplitDelegation) GetValidator() string { - if m != nil { - return m.Validator - } - return "" -} - -func (m *SplitDelegation) GetAmount() uint64 { - if m != nil { - return m.Amount - } - return 0 -} - -type DelegateCallback struct { - HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` - DepositRecordId uint64 `protobuf:"varint,2,opt,name=deposit_record_id,json=depositRecordId,proto3" json:"deposit_record_id,omitempty"` - SplitDelegations []*SplitDelegation `protobuf:"bytes,3,rep,name=split_delegations,json=splitDelegations,proto3" json:"split_delegations,omitempty"` -} - -func (m *DelegateCallback) Reset() { *m = DelegateCallback{} } -func (m *DelegateCallback) String() string { return proto.CompactTextString(m) } -func (*DelegateCallback) ProtoMessage() {} -func (*DelegateCallback) Descriptor() ([]byte, []int) { - return fileDescriptor_f41c99b09b96a5ac, []int{1} -} -func (m *DelegateCallback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DelegateCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DelegateCallback.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 *DelegateCallback) XXX_Merge(src proto.Message) { - xxx_messageInfo_DelegateCallback.Merge(m, src) -} -func (m *DelegateCallback) XXX_Size() int { - return m.Size() -} -func (m *DelegateCallback) XXX_DiscardUnknown() { - xxx_messageInfo_DelegateCallback.DiscardUnknown(m) -} - -var xxx_messageInfo_DelegateCallback proto.InternalMessageInfo - -func (m *DelegateCallback) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -func (m *DelegateCallback) GetDepositRecordId() uint64 { - if m != nil { - return m.DepositRecordId - } - return 0 -} - -func (m *DelegateCallback) GetSplitDelegations() []*SplitDelegation { - if m != nil { - return m.SplitDelegations - } - return nil -} - -type ClaimCallback struct { - UserRedemptionRecordId string `protobuf:"bytes,1,opt,name=user_redemption_record_id,json=userRedemptionRecordId,proto3" json:"user_redemption_record_id,omitempty"` - ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - EpochNumber uint64 `protobuf:"varint,3,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` -} - -func (m *ClaimCallback) Reset() { *m = ClaimCallback{} } -func (m *ClaimCallback) String() string { return proto.CompactTextString(m) } -func (*ClaimCallback) ProtoMessage() {} -func (*ClaimCallback) Descriptor() ([]byte, []int) { - return fileDescriptor_f41c99b09b96a5ac, []int{2} -} -func (m *ClaimCallback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClaimCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClaimCallback.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 *ClaimCallback) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClaimCallback.Merge(m, src) -} -func (m *ClaimCallback) XXX_Size() int { - return m.Size() -} -func (m *ClaimCallback) XXX_DiscardUnknown() { - xxx_messageInfo_ClaimCallback.DiscardUnknown(m) -} - -var xxx_messageInfo_ClaimCallback proto.InternalMessageInfo - -func (m *ClaimCallback) GetUserRedemptionRecordId() string { - if m != nil { - return m.UserRedemptionRecordId - } - return "" -} - -func (m *ClaimCallback) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *ClaimCallback) GetEpochNumber() uint64 { - if m != nil { - return m.EpochNumber - } - return 0 -} - -// ---------------------- Reinvest Callback ---------------------- // -type ReinvestCallback struct { - ReinvestAmount types.Coin `protobuf:"bytes,1,opt,name=reinvest_amount,json=reinvestAmount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"reinvest_amount"` - HostZoneId string `protobuf:"bytes,3,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` -} - -func (m *ReinvestCallback) Reset() { *m = ReinvestCallback{} } -func (m *ReinvestCallback) String() string { return proto.CompactTextString(m) } -func (*ReinvestCallback) ProtoMessage() {} -func (*ReinvestCallback) Descriptor() ([]byte, []int) { - return fileDescriptor_f41c99b09b96a5ac, []int{3} -} -func (m *ReinvestCallback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReinvestCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReinvestCallback.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 *ReinvestCallback) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReinvestCallback.Merge(m, src) -} -func (m *ReinvestCallback) XXX_Size() int { - return m.Size() -} -func (m *ReinvestCallback) XXX_DiscardUnknown() { - xxx_messageInfo_ReinvestCallback.DiscardUnknown(m) -} - -var xxx_messageInfo_ReinvestCallback proto.InternalMessageInfo - -func (m *ReinvestCallback) GetReinvestAmount() types.Coin { - if m != nil { - return m.ReinvestAmount - } - return types.Coin{} -} - -func (m *ReinvestCallback) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -// ---------------------- Undelegation Callbacks ---------------------- // -type UndelegateCallback struct { - HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` - SplitDelegations []*SplitDelegation `protobuf:"bytes,2,rep,name=split_delegations,json=splitDelegations,proto3" json:"split_delegations,omitempty"` - EpochUnbondingRecordIds []uint64 `protobuf:"varint,3,rep,packed,name=epoch_unbonding_record_ids,json=epochUnbondingRecordIds,proto3" json:"epoch_unbonding_record_ids,omitempty"` -} - -func (m *UndelegateCallback) Reset() { *m = UndelegateCallback{} } -func (m *UndelegateCallback) String() string { return proto.CompactTextString(m) } -func (*UndelegateCallback) ProtoMessage() {} -func (*UndelegateCallback) Descriptor() ([]byte, []int) { - return fileDescriptor_f41c99b09b96a5ac, []int{4} -} -func (m *UndelegateCallback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UndelegateCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UndelegateCallback.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 *UndelegateCallback) XXX_Merge(src proto.Message) { - xxx_messageInfo_UndelegateCallback.Merge(m, src) -} -func (m *UndelegateCallback) XXX_Size() int { - return m.Size() -} -func (m *UndelegateCallback) XXX_DiscardUnknown() { - xxx_messageInfo_UndelegateCallback.DiscardUnknown(m) -} - -var xxx_messageInfo_UndelegateCallback proto.InternalMessageInfo - -func (m *UndelegateCallback) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -func (m *UndelegateCallback) GetSplitDelegations() []*SplitDelegation { - if m != nil { - return m.SplitDelegations - } - return nil -} - -func (m *UndelegateCallback) GetEpochUnbondingRecordIds() []uint64 { - if m != nil { - return m.EpochUnbondingRecordIds - } - return nil -} - -// ---------------------- Redemption Callbacks ---------------------- // -type RedemptionCallback struct { - HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` - EpochUnbondingRecordIds []uint64 `protobuf:"varint,2,rep,packed,name=epoch_unbonding_record_ids,json=epochUnbondingRecordIds,proto3" json:"epoch_unbonding_record_ids,omitempty"` -} - -func (m *RedemptionCallback) Reset() { *m = RedemptionCallback{} } -func (m *RedemptionCallback) String() string { return proto.CompactTextString(m) } -func (*RedemptionCallback) ProtoMessage() {} -func (*RedemptionCallback) Descriptor() ([]byte, []int) { - return fileDescriptor_f41c99b09b96a5ac, []int{5} -} -func (m *RedemptionCallback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RedemptionCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RedemptionCallback.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 *RedemptionCallback) XXX_Merge(src proto.Message) { - xxx_messageInfo_RedemptionCallback.Merge(m, src) -} -func (m *RedemptionCallback) XXX_Size() int { - return m.Size() -} -func (m *RedemptionCallback) XXX_DiscardUnknown() { - xxx_messageInfo_RedemptionCallback.DiscardUnknown(m) -} - -var xxx_messageInfo_RedemptionCallback proto.InternalMessageInfo - -func (m *RedemptionCallback) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -func (m *RedemptionCallback) GetEpochUnbondingRecordIds() []uint64 { - if m != nil { - return m.EpochUnbondingRecordIds - } - return nil -} - -type Rebalancing struct { - SrcValidator string `protobuf:"bytes,1,opt,name=src_validator,json=srcValidator,proto3" json:"src_validator,omitempty"` - DstValidator string `protobuf:"bytes,2,opt,name=dst_validator,json=dstValidator,proto3" json:"dst_validator,omitempty"` - Amt uint64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"` -} - -func (m *Rebalancing) Reset() { *m = Rebalancing{} } -func (m *Rebalancing) String() string { return proto.CompactTextString(m) } -func (*Rebalancing) ProtoMessage() {} -func (*Rebalancing) Descriptor() ([]byte, []int) { - return fileDescriptor_f41c99b09b96a5ac, []int{6} -} -func (m *Rebalancing) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Rebalancing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Rebalancing.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 *Rebalancing) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rebalancing.Merge(m, src) -} -func (m *Rebalancing) XXX_Size() int { - return m.Size() -} -func (m *Rebalancing) XXX_DiscardUnknown() { - xxx_messageInfo_Rebalancing.DiscardUnknown(m) -} - -var xxx_messageInfo_Rebalancing proto.InternalMessageInfo - -func (m *Rebalancing) GetSrcValidator() string { - if m != nil { - return m.SrcValidator - } - return "" -} - -func (m *Rebalancing) GetDstValidator() string { - if m != nil { - return m.DstValidator - } - return "" -} - -func (m *Rebalancing) GetAmt() uint64 { - if m != nil { - return m.Amt - } - return 0 -} - -type RebalanceCallback struct { - HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` - Rebalancings []*Rebalancing `protobuf:"bytes,2,rep,name=rebalancings,proto3" json:"rebalancings,omitempty"` -} - -func (m *RebalanceCallback) Reset() { *m = RebalanceCallback{} } -func (m *RebalanceCallback) String() string { return proto.CompactTextString(m) } -func (*RebalanceCallback) ProtoMessage() {} -func (*RebalanceCallback) Descriptor() ([]byte, []int) { - return fileDescriptor_f41c99b09b96a5ac, []int{7} -} -func (m *RebalanceCallback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RebalanceCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RebalanceCallback.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 *RebalanceCallback) XXX_Merge(src proto.Message) { - xxx_messageInfo_RebalanceCallback.Merge(m, src) -} -func (m *RebalanceCallback) XXX_Size() int { - return m.Size() -} -func (m *RebalanceCallback) XXX_DiscardUnknown() { - xxx_messageInfo_RebalanceCallback.DiscardUnknown(m) -} - -var xxx_messageInfo_RebalanceCallback proto.InternalMessageInfo - -func (m *RebalanceCallback) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -func (m *RebalanceCallback) GetRebalancings() []*Rebalancing { - if m != nil { - return m.Rebalancings - } - return nil -} - -func init() { - proto.RegisterType((*SplitDelegation)(nil), "stride.stakeibc.V2SplitDelegation") - proto.RegisterType((*DelegateCallback)(nil), "stride.stakeibc.V2DelegateCallback") - proto.RegisterType((*ClaimCallback)(nil), "stride.stakeibc.V2laimCallback") - proto.RegisterType((*ReinvestCallback)(nil), "stride.stakeibc.V2ReinvestCallback") - proto.RegisterType((*UndelegateCallback)(nil), "stride.stakeibc.V2UndelegateCallback") - proto.RegisterType((*RedemptionCallback)(nil), "stride.stakeibc.V2RedemptionCallback") - proto.RegisterType((*Rebalancing)(nil), "stride.stakeibc.V2Rebalancing") - proto.RegisterType((*RebalanceCallback)(nil), "stride.stakeibc.V2RebalanceCallback") -} - -func init() { proto.RegisterFile("stride/stakeibc/callbacks.proto", fileDescriptor_f41c99b09b96a5ac) } - -var fileDescriptor_f41c99b09b96a5ac = []byte{ - // 610 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0x8e, 0x9b, 0xaa, 0xd0, 0x49, 0x4a, 0x52, 0x0b, 0x95, 0xb4, 0xaa, 0xdc, 0xe0, 0x1e, 0xa8, - 0x90, 0x6a, 0xab, 0x85, 0x0b, 0xe2, 0x02, 0x2d, 0x12, 0xaa, 0xf8, 0x39, 0xb8, 0x2a, 0x87, 0x5e, - 0xac, 0xf5, 0xee, 0x2a, 0x59, 0xd5, 0xde, 0x8d, 0x76, 0x36, 0xe1, 0xe7, 0x09, 0x38, 0xf2, 0x1a, - 0x70, 0xe1, 0x1d, 0x38, 0xf5, 0xd8, 0x23, 0x27, 0x40, 0xed, 0x8b, 0x20, 0xaf, 0xed, 0x24, 0x4d, - 0x51, 0xa5, 0x72, 0xb2, 0xf7, 0x9b, 0x6f, 0x67, 0xbe, 0xd9, 0x6f, 0x76, 0x61, 0x03, 0x8d, 0x16, - 0x8c, 0x87, 0x68, 0xc8, 0x09, 0x17, 0x09, 0x0d, 0x29, 0x49, 0xd3, 0x84, 0xd0, 0x13, 0x0c, 0x06, - 0x5a, 0x19, 0xe5, 0xb6, 0x0a, 0x42, 0x50, 0x11, 0xd6, 0xee, 0xf6, 0x54, 0x4f, 0xd9, 0x58, 0x98, - 0xff, 0x15, 0xb4, 0x35, 0x8f, 0x2a, 0xcc, 0x14, 0x86, 0x09, 0x41, 0x1e, 0x8e, 0x76, 0x12, 0x6e, - 0xc8, 0x4e, 0x48, 0x95, 0x90, 0x45, 0xdc, 0x7f, 0x09, 0xad, 0xc3, 0x41, 0x2a, 0xcc, 0x0b, 0x9e, - 0xf2, 0x1e, 0x31, 0x42, 0x49, 0x77, 0x1d, 0x16, 0x47, 0x24, 0x15, 0x8c, 0x18, 0xa5, 0x3b, 0x4e, - 0xd7, 0xd9, 0x5a, 0x8c, 0x26, 0x80, 0xbb, 0x02, 0x0b, 0x24, 0x53, 0x43, 0x69, 0x3a, 0x73, 0x5d, - 0x67, 0x6b, 0x3e, 0x2a, 0x57, 0xfe, 0x77, 0x07, 0xda, 0x65, 0x12, 0xbe, 0x5f, 0x6a, 0x75, 0xbb, - 0xd0, 0xec, 0x2b, 0x34, 0xf1, 0x27, 0x25, 0x79, 0x2c, 0x58, 0x99, 0x0d, 0x72, 0xec, 0x58, 0x49, - 0x7e, 0xc0, 0xdc, 0x87, 0xb0, 0xcc, 0xf8, 0x40, 0xa1, 0x30, 0xb1, 0xe6, 0x54, 0x69, 0x96, 0xd3, - 0x8a, 0xcc, 0xad, 0x32, 0x10, 0x59, 0xfc, 0x80, 0xb9, 0x6f, 0x60, 0x19, 0x73, 0xad, 0x31, 0x1b, - 0x8b, 0xc5, 0x4e, 0xbd, 0x5b, 0xdf, 0x6a, 0xec, 0x76, 0x83, 0x99, 0xe3, 0x08, 0x66, 0xba, 0x8a, - 0xda, 0x78, 0x19, 0x40, 0xff, 0xb3, 0x03, 0x4b, 0xfb, 0x29, 0x11, 0xd9, 0x58, 0xee, 0x13, 0x58, - 0x1d, 0x22, 0xd7, 0xb1, 0xe6, 0x8c, 0x67, 0x83, 0x9c, 0x35, 0x25, 0xaa, 0xd0, 0xbe, 0x92, 0x13, - 0xa2, 0x71, 0x7c, 0xac, 0x6d, 0x15, 0x6e, 0xd3, 0x3e, 0x11, 0xb2, 0x92, 0xbf, 0x18, 0xdd, 0xb2, - 0xeb, 0x03, 0xe6, 0xde, 0x87, 0x26, 0x1f, 0x28, 0xda, 0x8f, 0xe5, 0x30, 0x4b, 0xb8, 0xee, 0xd4, - 0x6d, 0x77, 0x0d, 0x8b, 0xbd, 0xb5, 0x90, 0xff, 0xd5, 0x81, 0x76, 0xc4, 0x85, 0x1c, 0x71, 0x34, - 0x63, 0x35, 0x08, 0x2d, 0x5d, 0x62, 0x71, 0x79, 0xe4, 0xb9, 0x86, 0xc6, 0xee, 0x6a, 0x50, 0x98, - 0x1a, 0xe4, 0xa6, 0x06, 0xa5, 0xa9, 0xc1, 0xbe, 0x12, 0x72, 0x2f, 0x3c, 0xfd, 0xb5, 0x51, 0xfb, - 0xf6, 0x7b, 0xe3, 0x41, 0x4f, 0x98, 0xfe, 0x30, 0x09, 0xa8, 0xca, 0xc2, 0x72, 0x02, 0x8a, 0xcf, - 0x36, 0xb2, 0x93, 0xd0, 0x7c, 0x1c, 0x70, 0xb4, 0x1b, 0xa2, 0x3b, 0x55, 0x89, 0xe7, 0xb6, 0xc2, - 0x15, 0xc7, 0xea, 0xb3, 0x8e, 0xf9, 0x3f, 0x1c, 0x70, 0x8f, 0x24, 0xbb, 0xb9, 0xd5, 0xff, 0xb4, - 0x6f, 0xee, 0x7f, 0xed, 0x73, 0x9f, 0xc2, 0x5a, 0x71, 0xac, 0x43, 0x99, 0x28, 0xc9, 0x84, 0xec, - 0x4d, 0xcc, 0x2a, 0xc6, 0x62, 0x3e, 0xba, 0x67, 0x19, 0x47, 0x15, 0xa1, 0x72, 0x0b, 0x7d, 0x04, - 0x77, 0x62, 0xe2, 0x0d, 0x7a, 0xb8, 0xbe, 0xe8, 0xdc, 0xf5, 0x45, 0x05, 0x34, 0x22, 0x9e, 0x90, - 0x94, 0x48, 0x2a, 0x64, 0xcf, 0xdd, 0x84, 0x25, 0xd4, 0x34, 0x9e, 0xbd, 0x6b, 0x4d, 0xd4, 0xf4, - 0xdd, 0xf8, 0xba, 0x6d, 0xc2, 0x12, 0x43, 0x33, 0x45, 0x2a, 0x86, 0xab, 0xc9, 0xd0, 0x4c, 0x48, - 0x6d, 0xa8, 0x93, 0xcc, 0x94, 0x83, 0x95, 0xff, 0xfa, 0xef, 0x61, 0xb9, 0x2a, 0x75, 0x13, 0x8b, - 0x9e, 0x41, 0x53, 0x4f, 0x14, 0x56, 0xee, 0xac, 0x5f, 0x71, 0x67, 0xaa, 0x8d, 0xe8, 0xd2, 0x8e, - 0xbd, 0x57, 0xa7, 0xe7, 0x9e, 0x73, 0x76, 0xee, 0x39, 0x7f, 0xce, 0x3d, 0xe7, 0xcb, 0x85, 0x57, - 0x3b, 0xbb, 0xf0, 0x6a, 0x3f, 0x2f, 0xbc, 0xda, 0xf1, 0xce, 0xd4, 0x48, 0x1e, 0xda, 0x7c, 0xdb, - 0xaf, 0x49, 0x82, 0x61, 0xf9, 0xd0, 0x8d, 0x1e, 0x87, 0x1f, 0x26, 0xaf, 0x9d, 0x9d, 0xd0, 0x64, - 0xc1, 0xbe, 0x51, 0x8f, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0xe7, 0x83, 0x0f, 0xbb, 0x0d, 0x05, - 0x00, 0x00, -} - -func (m *SplitDelegation) 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 *SplitDelegation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SplitDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Amount != 0 { - i = encodeVarintCallbacks(dAtA, i, uint64(m.Amount)) - i-- - dAtA[i] = 0x10 - } - if len(m.Validator) > 0 { - i -= len(m.Validator) - copy(dAtA[i:], m.Validator) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.Validator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DelegateCallback) 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 *DelegateCallback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DelegateCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SplitDelegations) > 0 { - for iNdEx := len(m.SplitDelegations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SplitDelegations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCallbacks(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.DepositRecordId != 0 { - i = encodeVarintCallbacks(dAtA, i, uint64(m.DepositRecordId)) - i-- - dAtA[i] = 0x10 - } - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ClaimCallback) 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 *ClaimCallback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClaimCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EpochNumber != 0 { - i = encodeVarintCallbacks(dAtA, i, uint64(m.EpochNumber)) - i-- - dAtA[i] = 0x18 - } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0x12 - } - if len(m.UserRedemptionRecordId) > 0 { - i -= len(m.UserRedemptionRecordId) - copy(dAtA[i:], m.UserRedemptionRecordId) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.UserRedemptionRecordId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ReinvestCallback) 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 *ReinvestCallback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReinvestCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0x1a - } - { - size, err := m.ReinvestAmount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCallbacks(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *UndelegateCallback) 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 *UndelegateCallback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UndelegateCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.EpochUnbondingRecordIds) > 0 { - dAtA3 := make([]byte, len(m.EpochUnbondingRecordIds)*10) - var j2 int - for _, num := range m.EpochUnbondingRecordIds { - for num >= 1<<7 { - dAtA3[j2] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j2++ - } - dAtA3[j2] = uint8(num) - j2++ - } - i -= j2 - copy(dAtA[i:], dAtA3[:j2]) - i = encodeVarintCallbacks(dAtA, i, uint64(j2)) - i-- - dAtA[i] = 0x1a - } - if len(m.SplitDelegations) > 0 { - for iNdEx := len(m.SplitDelegations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SplitDelegations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCallbacks(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RedemptionCallback) 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 *RedemptionCallback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RedemptionCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.EpochUnbondingRecordIds) > 0 { - dAtA5 := make([]byte, len(m.EpochUnbondingRecordIds)*10) - var j4 int - for _, num := range m.EpochUnbondingRecordIds { - for num >= 1<<7 { - dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j4++ - } - dAtA5[j4] = uint8(num) - j4++ - } - i -= j4 - copy(dAtA[i:], dAtA5[:j4]) - i = encodeVarintCallbacks(dAtA, i, uint64(j4)) - i-- - dAtA[i] = 0x12 - } - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Rebalancing) 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 *Rebalancing) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Rebalancing) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Amt != 0 { - i = encodeVarintCallbacks(dAtA, i, uint64(m.Amt)) - i-- - dAtA[i] = 0x18 - } - if len(m.DstValidator) > 0 { - i -= len(m.DstValidator) - copy(dAtA[i:], m.DstValidator) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.DstValidator))) - i-- - dAtA[i] = 0x12 - } - if len(m.SrcValidator) > 0 { - i -= len(m.SrcValidator) - copy(dAtA[i:], m.SrcValidator) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.SrcValidator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RebalanceCallback) 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 *RebalanceCallback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RebalanceCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Rebalancings) > 0 { - for iNdEx := len(m.Rebalancings) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rebalancings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCallbacks(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintCallbacks(dAtA []byte, offset int, v uint64) int { - offset -= sovCallbacks(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *SplitDelegation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Validator) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - if m.Amount != 0 { - n += 1 + sovCallbacks(uint64(m.Amount)) - } - return n -} - -func (m *DelegateCallback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - if m.DepositRecordId != 0 { - n += 1 + sovCallbacks(uint64(m.DepositRecordId)) - } - if len(m.SplitDelegations) > 0 { - for _, e := range m.SplitDelegations { - l = e.Size() - n += 1 + l + sovCallbacks(uint64(l)) - } - } - return n -} - -func (m *ClaimCallback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.UserRedemptionRecordId) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - if m.EpochNumber != 0 { - n += 1 + sovCallbacks(uint64(m.EpochNumber)) - } - return n -} - -func (m *ReinvestCallback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ReinvestAmount.Size() - n += 1 + l + sovCallbacks(uint64(l)) - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - return n -} - -func (m *UndelegateCallback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - if len(m.SplitDelegations) > 0 { - for _, e := range m.SplitDelegations { - l = e.Size() - n += 1 + l + sovCallbacks(uint64(l)) - } - } - if len(m.EpochUnbondingRecordIds) > 0 { - l = 0 - for _, e := range m.EpochUnbondingRecordIds { - l += sovCallbacks(uint64(e)) - } - n += 1 + sovCallbacks(uint64(l)) + l - } - return n -} - -func (m *RedemptionCallback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - if len(m.EpochUnbondingRecordIds) > 0 { - l = 0 - for _, e := range m.EpochUnbondingRecordIds { - l += sovCallbacks(uint64(e)) - } - n += 1 + sovCallbacks(uint64(l)) + l - } - return n -} - -func (m *Rebalancing) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SrcValidator) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - l = len(m.DstValidator) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - if m.Amt != 0 { - n += 1 + sovCallbacks(uint64(m.Amt)) - } - return n -} - -func (m *RebalanceCallback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - if len(m.Rebalancings) > 0 { - for _, e := range m.Rebalancings { - l = e.Size() - n += 1 + l + sovCallbacks(uint64(l)) - } - } - return n -} - -func sovCallbacks(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozCallbacks(x uint64) (n int) { - return sovCallbacks(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *SplitDelegation) 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 ErrIntOverflowCallbacks - } - 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: SplitDelegation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SplitDelegation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Validator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - m.Amount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Amount |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DelegateCallback) 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 ErrIntOverflowCallbacks - } - 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: DelegateCallback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DelegateCallback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositRecordId", wireType) - } - m.DepositRecordId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DepositRecordId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SplitDelegations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCallbacks - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SplitDelegations = append(m.SplitDelegations, &SplitDelegation{}) - if err := m.SplitDelegations[len(m.SplitDelegations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClaimCallback) 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 ErrIntOverflowCallbacks - } - 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: ClaimCallback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClaimCallback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecordId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserRedemptionRecordId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) - } - m.EpochNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EpochNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReinvestCallback) 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 ErrIntOverflowCallbacks - } - 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: ReinvestCallback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReinvestCallback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReinvestAmount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCallbacks - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ReinvestAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UndelegateCallback) 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 ErrIntOverflowCallbacks - } - 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: UndelegateCallback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UndelegateCallback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SplitDelegations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCallbacks - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SplitDelegations = append(m.SplitDelegations, &SplitDelegation{}) - if err := m.SplitDelegations[len(m.SplitDelegations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.EpochUnbondingRecordIds = append(m.EpochUnbondingRecordIds, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthCallbacks - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.EpochUnbondingRecordIds) == 0 { - m.EpochUnbondingRecordIds = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.EpochUnbondingRecordIds = append(m.EpochUnbondingRecordIds, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field EpochUnbondingRecordIds", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RedemptionCallback) 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 ErrIntOverflowCallbacks - } - 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: RedemptionCallback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RedemptionCallback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.EpochUnbondingRecordIds = append(m.EpochUnbondingRecordIds, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthCallbacks - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.EpochUnbondingRecordIds) == 0 { - m.EpochUnbondingRecordIds = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.EpochUnbondingRecordIds = append(m.EpochUnbondingRecordIds, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field EpochUnbondingRecordIds", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Rebalancing) 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 ErrIntOverflowCallbacks - } - 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: Rebalancing: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Rebalancing: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SrcValidator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SrcValidator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DstValidator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DstValidator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Amt", wireType) - } - m.Amt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Amt |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RebalanceCallback) 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 ErrIntOverflowCallbacks - } - 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: RebalanceCallback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RebalanceCallback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rebalancings", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCallbacks - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rebalancings = append(m.Rebalancings, &Rebalancing{}) - if err := m.Rebalancings[len(m.Rebalancings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipCallbacks(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, ErrIntOverflowCallbacks - } - 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, ErrIntOverflowCallbacks - } - 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, ErrIntOverflowCallbacks - } - 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, ErrInvalidLengthCallbacks - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupCallbacks - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthCallbacks - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthCallbacks = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowCallbacks = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupCallbacks = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/stakeibc/migrations/v2/types/host_zone.pb.go b/x/stakeibc/migrations/v2/types/host_zone.pb.go deleted file mode 100644 index c61faeb6ef..0000000000 --- a/x/stakeibc/migrations/v2/types/host_zone.pb.go +++ /dev/null @@ -1,1193 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/stakeibc/host_zone.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -// next id: 19 -type HostZone struct { - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` - Bech32Prefix string `protobuf:"bytes,17,opt,name=bech32prefix,proto3" json:"bech32prefix,omitempty"` - TransferChannelId string `protobuf:"bytes,12,opt,name=transfer_channel_id,json=transferChannelId,proto3" json:"transfer_channel_id,omitempty"` - Validators []*Validator `protobuf:"bytes,3,rep,name=validators,proto3" json:"validators,omitempty"` - BlacklistedValidators []*Validator `protobuf:"bytes,4,rep,name=blacklisted_validators,json=blacklistedValidators,proto3" json:"blacklisted_validators,omitempty"` - WithdrawalAccount *ICAAccount `protobuf:"bytes,5,opt,name=withdrawal_account,json=withdrawalAccount,proto3" json:"withdrawal_account,omitempty"` - FeeAccount *ICAAccount `protobuf:"bytes,6,opt,name=fee_account,json=feeAccount,proto3" json:"fee_account,omitempty"` - DelegationAccount *ICAAccount `protobuf:"bytes,7,opt,name=delegation_account,json=delegationAccount,proto3" json:"delegation_account,omitempty"` - RedemptionAccount *ICAAccount `protobuf:"bytes,16,opt,name=redemption_account,json=redemptionAccount,proto3" json:"redemption_account,omitempty"` - // ibc denom on stride - IbcDenom string `protobuf:"bytes,8,opt,name=ibc_denom,json=ibcDenom,proto3" json:"ibc_denom,omitempty"` - // native denom on host zone - HostDenom string `protobuf:"bytes,9,opt,name=host_denom,json=hostDenom,proto3" json:"host_denom,omitempty"` - // TODO(TEST-68): Should we make this an array and store the last n redemption - // rates then calculate a TWARR? - LastRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,10,opt,name=last_redemption_rate,json=lastRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"last_redemption_rate"` - RedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,11,opt,name=redemption_rate,json=redemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"redemption_rate"` - // stores how many days we should wait before issuing unbondings - UnbondingFrequency uint64 `protobuf:"varint,14,opt,name=unbonding_frequency,json=unbondingFrequency,proto3" json:"unbonding_frequency,omitempty"` - // TODO(TEST-101) int to dec - StakedBal uint64 `protobuf:"varint,13,opt,name=staked_bal,json=stakedBal,proto3" json:"staked_bal,omitempty"` - Address string `protobuf:"bytes,18,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` -} - -func (m *HostZone) Reset() { *m = HostZone{} } -func (m *HostZone) String() string { return proto.CompactTextString(m) } -func (*HostZone) ProtoMessage() {} -func (*HostZone) Descriptor() ([]byte, []int) { - return fileDescriptor_f81bf5b42c61245a, []int{0} -} -func (m *HostZone) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HostZone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HostZone.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 *HostZone) XXX_Merge(src proto.Message) { - xxx_messageInfo_HostZone.Merge(m, src) -} -func (m *HostZone) XXX_Size() int { - return m.Size() -} -func (m *HostZone) XXX_DiscardUnknown() { - xxx_messageInfo_HostZone.DiscardUnknown(m) -} - -var xxx_messageInfo_HostZone proto.InternalMessageInfo - -func (m *HostZone) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *HostZone) GetConnectionId() string { - if m != nil { - return m.ConnectionId - } - return "" -} - -func (m *HostZone) GetBech32Prefix() string { - if m != nil { - return m.Bech32Prefix - } - return "" -} - -func (m *HostZone) GetTransferChannelId() string { - if m != nil { - return m.TransferChannelId - } - return "" -} - -func (m *HostZone) GetValidators() []*Validator { - if m != nil { - return m.Validators - } - return nil -} - -func (m *HostZone) GetBlacklistedValidators() []*Validator { - if m != nil { - return m.BlacklistedValidators - } - return nil -} - -func (m *HostZone) GetWithdrawalAccount() *ICAAccount { - if m != nil { - return m.WithdrawalAccount - } - return nil -} - -func (m *HostZone) GetFeeAccount() *ICAAccount { - if m != nil { - return m.FeeAccount - } - return nil -} - -func (m *HostZone) GetDelegationAccount() *ICAAccount { - if m != nil { - return m.DelegationAccount - } - return nil -} - -func (m *HostZone) GetRedemptionAccount() *ICAAccount { - if m != nil { - return m.RedemptionAccount - } - return nil -} - -func (m *HostZone) GetIbcDenom() string { - if m != nil { - return m.IbcDenom - } - return "" -} - -func (m *HostZone) GetHostDenom() string { - if m != nil { - return m.HostDenom - } - return "" -} - -func (m *HostZone) GetUnbondingFrequency() uint64 { - if m != nil { - return m.UnbondingFrequency - } - return 0 -} - -func (m *HostZone) GetStakedBal() uint64 { - if m != nil { - return m.StakedBal - } - return 0 -} - -func (m *HostZone) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func init() { - proto.RegisterType((*HostZone)(nil), "stride.stakeibc.V2HostZone") -} - -func init() { proto.RegisterFile("stride/stakeibc/host_zone.proto", fileDescriptor_f81bf5b42c61245a) } - -var fileDescriptor_f81bf5b42c61245a = []byte{ - // 619 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xcb, 0x4e, 0x1b, 0x3f, - 0x14, 0xc6, 0x33, 0x7f, 0xf8, 0x93, 0xc4, 0xe1, 0x6a, 0x68, 0x35, 0x80, 0x9a, 0xa4, 0xa9, 0x54, - 0x65, 0x51, 0x66, 0x54, 0xe8, 0x0a, 0xb1, 0xe1, 0xa2, 0xaa, 0xa1, 0xdd, 0x74, 0x2a, 0xb1, 0x60, - 0x33, 0xf2, 0xd8, 0x27, 0x89, 0xc5, 0xc4, 0x4e, 0xc7, 0x0e, 0x97, 0x3e, 0x45, 0x1f, 0xa6, 0x0f, - 0xc1, 0x12, 0x75, 0x55, 0x75, 0x81, 0x2a, 0x90, 0xfa, 0x00, 0x7d, 0x82, 0x6a, 0x3c, 0x33, 0x99, - 0x21, 0x2c, 0x60, 0xd1, 0x55, 0xc6, 0xe7, 0xfb, 0xbe, 0x9f, 0xed, 0x63, 0xc7, 0xa8, 0xa1, 0x74, - 0xc4, 0x19, 0xb8, 0x4a, 0x93, 0x13, 0xe0, 0x01, 0x75, 0xfb, 0x52, 0x69, 0xff, 0x8b, 0x14, 0xe0, - 0x0c, 0x23, 0xa9, 0x25, 0x5e, 0x48, 0x0c, 0x4e, 0x66, 0x58, 0xbb, 0x97, 0x38, 0x25, 0x21, 0x67, - 0x44, 0xcb, 0x28, 0x49, 0xac, 0x3d, 0x9f, 0x34, 0x70, 0x4a, 0x7c, 0x42, 0xa9, 0x1c, 0x09, 0x9d, - 0x5a, 0x56, 0x7a, 0xb2, 0x27, 0xcd, 0xa7, 0x1b, 0x7f, 0xa5, 0xd5, 0x55, 0x2a, 0xd5, 0x40, 0x2a, - 0x3f, 0x11, 0x92, 0x41, 0x22, 0xb5, 0x7e, 0x97, 0x51, 0xe5, 0x9d, 0x54, 0xfa, 0x58, 0x0a, 0xc0, - 0xab, 0xa8, 0x42, 0xfb, 0x84, 0x0b, 0x9f, 0x33, 0xdb, 0x6a, 0x5a, 0xed, 0xaa, 0x57, 0x36, 0xe3, - 0x0e, 0xc3, 0x2f, 0xd0, 0x1c, 0x95, 0x42, 0x00, 0xd5, 0x5c, 0x1a, 0xfd, 0x3f, 0xa3, 0xcf, 0xe6, - 0xc5, 0x0e, 0xc3, 0x2d, 0x34, 0x1b, 0x00, 0xed, 0x6f, 0x6d, 0x0e, 0x23, 0xe8, 0xf2, 0x73, 0x7b, - 0x29, 0xf1, 0x14, 0x6b, 0xd8, 0x41, 0xcb, 0x3a, 0x22, 0x42, 0x75, 0x21, 0xf2, 0x69, 0x9f, 0x08, - 0x01, 0x61, 0x8c, 0x9b, 0x35, 0xd6, 0xa5, 0x4c, 0xda, 0x4f, 0x94, 0x0e, 0xc3, 0xdb, 0x08, 0x8d, - 0xfb, 0xa0, 0xec, 0xa9, 0xe6, 0x54, 0xbb, 0xb6, 0xb9, 0xe6, 0x4c, 0xf4, 0xce, 0x39, 0xca, 0x2c, - 0x5e, 0xc1, 0x8d, 0x3f, 0xa2, 0xa7, 0x41, 0x48, 0xe8, 0x49, 0xc8, 0x95, 0x06, 0xe6, 0x17, 0x38, - 0xd3, 0x0f, 0x72, 0x9e, 0x14, 0x92, 0x47, 0x39, 0xf2, 0x10, 0xe1, 0x33, 0xae, 0xfb, 0x2c, 0x22, - 0x67, 0x24, 0xcc, 0x9a, 0x6f, 0xff, 0xdf, 0xb4, 0xda, 0xb5, 0xcd, 0xf5, 0x7b, 0xb8, 0xce, 0xfe, - 0xee, 0x6e, 0x62, 0xf1, 0x96, 0xf2, 0x58, 0x5a, 0xc2, 0x3b, 0xa8, 0xd6, 0x05, 0x18, 0x43, 0x66, - 0x1e, 0x86, 0xa0, 0x2e, 0x40, 0x96, 0x3e, 0x44, 0x98, 0x41, 0x08, 0x3d, 0x62, 0x4e, 0x24, 0x83, - 0x94, 0x1f, 0xb1, 0x92, 0x3c, 0x56, 0x60, 0x45, 0xc0, 0x60, 0x30, 0xbc, 0xc3, 0x5a, 0x7c, 0x04, - 0x2b, 0x8f, 0x65, 0xac, 0x75, 0x54, 0xe5, 0x01, 0xf5, 0x19, 0x08, 0x39, 0xb0, 0x2b, 0xe6, 0x58, - 0x2b, 0x3c, 0xa0, 0x07, 0xf1, 0x18, 0x3f, 0x43, 0xc8, 0xfc, 0x0f, 0x12, 0xb5, 0x6a, 0xd4, 0x6a, - 0x5c, 0x49, 0x64, 0x81, 0x56, 0x42, 0xa2, 0xb4, 0x5f, 0x58, 0x4c, 0x44, 0x34, 0xd8, 0x28, 0x36, - 0xee, 0xed, 0x5c, 0x5e, 0x37, 0x4a, 0x3f, 0xaf, 0x1b, 0x2f, 0x7b, 0x5c, 0xf7, 0x47, 0x81, 0x43, - 0xe5, 0x20, 0xbd, 0xcc, 0xe9, 0xcf, 0x86, 0x62, 0x27, 0xae, 0xbe, 0x18, 0x82, 0x72, 0x0e, 0x80, - 0x7e, 0xff, 0xb6, 0x81, 0xd2, 0xbb, 0x7e, 0x00, 0xd4, 0xc3, 0x31, 0xd9, 0x1b, 0x83, 0x3d, 0xa2, - 0x01, 0x03, 0x5a, 0x98, 0x9c, 0xaa, 0xf6, 0x0f, 0xa6, 0x9a, 0x8f, 0xee, 0x4e, 0xe3, 0xa2, 0xe5, - 0x91, 0x08, 0xa4, 0x60, 0x5c, 0xf4, 0xfc, 0x6e, 0x04, 0x9f, 0x47, 0x20, 0xe8, 0x85, 0x3d, 0xdf, - 0xb4, 0xda, 0xd3, 0x1e, 0x1e, 0x4b, 0x6f, 0x33, 0x25, 0x6e, 0x93, 0xe9, 0x36, 0xf3, 0x03, 0x12, - 0xda, 0x73, 0xc6, 0x57, 0x4d, 0x2a, 0x7b, 0x24, 0xc4, 0xaf, 0x50, 0x99, 0x30, 0x16, 0x81, 0x52, - 0x36, 0x36, 0xcb, 0xc5, 0x7f, 0xae, 0x1b, 0xf3, 0x17, 0x64, 0x10, 0x6e, 0xb7, 0x52, 0xa1, 0xe5, - 0x65, 0x96, 0xc3, 0xe9, 0xca, 0xc2, 0xe2, 0xe2, 0xde, 0xfb, 0xcb, 0x9b, 0xba, 0x75, 0x75, 0x53, - 0xb7, 0x7e, 0xdd, 0xd4, 0xad, 0xaf, 0xb7, 0xf5, 0xd2, 0xd5, 0x6d, 0xbd, 0xf4, 0xe3, 0xb6, 0x5e, - 0x3a, 0x7e, 0x5d, 0xd8, 0xe3, 0x27, 0x73, 0xd4, 0x1b, 0x1f, 0x48, 0xa0, 0xdc, 0xf4, 0xb5, 0x39, - 0x7d, 0xe3, 0x9e, 0xe7, 0x4f, 0x8e, 0xd9, 0x72, 0x30, 0x63, 0x1e, 0x8f, 0xad, 0xbf, 0x01, 0x00, - 0x00, 0xff, 0xff, 0x55, 0xf2, 0x88, 0xfa, 0xe5, 0x04, 0x00, 0x00, -} - -func (m *HostZone) 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 *HostZone) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HostZone) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintHostZone(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - } - if len(m.Bech32Prefix) > 0 { - i -= len(m.Bech32Prefix) - copy(dAtA[i:], m.Bech32Prefix) - i = encodeVarintHostZone(dAtA, i, uint64(len(m.Bech32Prefix))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - if m.RedemptionAccount != nil { - { - size, err := m.RedemptionAccount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - if m.UnbondingFrequency != 0 { - i = encodeVarintHostZone(dAtA, i, uint64(m.UnbondingFrequency)) - i-- - dAtA[i] = 0x70 - } - if m.StakedBal != 0 { - i = encodeVarintHostZone(dAtA, i, uint64(m.StakedBal)) - i-- - dAtA[i] = 0x68 - } - if len(m.TransferChannelId) > 0 { - i -= len(m.TransferChannelId) - copy(dAtA[i:], m.TransferChannelId) - i = encodeVarintHostZone(dAtA, i, uint64(len(m.TransferChannelId))) - i-- - dAtA[i] = 0x62 - } - { - size := m.RedemptionRate.Size() - i -= size - if _, err := m.RedemptionRate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - { - size := m.LastRedemptionRate.Size() - i -= size - if _, err := m.LastRedemptionRate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - if len(m.HostDenom) > 0 { - i -= len(m.HostDenom) - copy(dAtA[i:], m.HostDenom) - i = encodeVarintHostZone(dAtA, i, uint64(len(m.HostDenom))) - i-- - dAtA[i] = 0x4a - } - if len(m.IbcDenom) > 0 { - i -= len(m.IbcDenom) - copy(dAtA[i:], m.IbcDenom) - i = encodeVarintHostZone(dAtA, i, uint64(len(m.IbcDenom))) - i-- - dAtA[i] = 0x42 - } - if m.DelegationAccount != nil { - { - size, err := m.DelegationAccount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.FeeAccount != nil { - { - size, err := m.FeeAccount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.WithdrawalAccount != nil { - { - size, err := m.WithdrawalAccount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.BlacklistedValidators) > 0 { - for iNdEx := len(m.BlacklistedValidators) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.BlacklistedValidators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.Validators) > 0 { - for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.ConnectionId) > 0 { - i -= len(m.ConnectionId) - copy(dAtA[i:], m.ConnectionId) - i = encodeVarintHostZone(dAtA, i, uint64(len(m.ConnectionId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintHostZone(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintHostZone(dAtA []byte, offset int, v uint64) int { - offset -= sovHostZone(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *HostZone) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovHostZone(uint64(l)) - } - l = len(m.ConnectionId) - if l > 0 { - n += 1 + l + sovHostZone(uint64(l)) - } - if len(m.Validators) > 0 { - for _, e := range m.Validators { - l = e.Size() - n += 1 + l + sovHostZone(uint64(l)) - } - } - if len(m.BlacklistedValidators) > 0 { - for _, e := range m.BlacklistedValidators { - l = e.Size() - n += 1 + l + sovHostZone(uint64(l)) - } - } - if m.WithdrawalAccount != nil { - l = m.WithdrawalAccount.Size() - n += 1 + l + sovHostZone(uint64(l)) - } - if m.FeeAccount != nil { - l = m.FeeAccount.Size() - n += 1 + l + sovHostZone(uint64(l)) - } - if m.DelegationAccount != nil { - l = m.DelegationAccount.Size() - n += 1 + l + sovHostZone(uint64(l)) - } - l = len(m.IbcDenom) - if l > 0 { - n += 1 + l + sovHostZone(uint64(l)) - } - l = len(m.HostDenom) - if l > 0 { - n += 1 + l + sovHostZone(uint64(l)) - } - l = m.LastRedemptionRate.Size() - n += 1 + l + sovHostZone(uint64(l)) - l = m.RedemptionRate.Size() - n += 1 + l + sovHostZone(uint64(l)) - l = len(m.TransferChannelId) - if l > 0 { - n += 1 + l + sovHostZone(uint64(l)) - } - if m.StakedBal != 0 { - n += 1 + sovHostZone(uint64(m.StakedBal)) - } - if m.UnbondingFrequency != 0 { - n += 1 + sovHostZone(uint64(m.UnbondingFrequency)) - } - if m.RedemptionAccount != nil { - l = m.RedemptionAccount.Size() - n += 2 + l + sovHostZone(uint64(l)) - } - l = len(m.Bech32Prefix) - if l > 0 { - n += 2 + l + sovHostZone(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 2 + l + sovHostZone(uint64(l)) - } - return n -} - -func sovHostZone(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozHostZone(x uint64) (n int) { - return sovHostZone(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *HostZone) 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 ErrIntOverflowHostZone - } - 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: HostZone: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HostZone: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConnectionId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHostZone - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Validators = append(m.Validators, &Validator{}) - if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlacklistedValidators", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHostZone - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BlacklistedValidators = append(m.BlacklistedValidators, &Validator{}) - if err := m.BlacklistedValidators[len(m.BlacklistedValidators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WithdrawalAccount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHostZone - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WithdrawalAccount == nil { - m.WithdrawalAccount = &ICAAccount{} - } - if err := m.WithdrawalAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FeeAccount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHostZone - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FeeAccount == nil { - m.FeeAccount = &ICAAccount{} - } - if err := m.FeeAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DelegationAccount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHostZone - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DelegationAccount == nil { - m.DelegationAccount = &ICAAccount{} - } - if err := m.DelegationAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IbcDenom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IbcDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostDenom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastRedemptionRate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastRedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RedemptionRate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TransferChannelId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TransferChannelId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StakedBal", wireType) - } - m.StakedBal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StakedBal |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UnbondingFrequency", wireType) - } - m.UnbondingFrequency = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UnbondingFrequency |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RedemptionAccount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHostZone - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RedemptionAccount == nil { - m.RedemptionAccount = &ICAAccount{} - } - if err := m.RedemptionAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Bech32Prefix", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Bech32Prefix = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHostZone(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthHostZone - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipHostZone(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, ErrIntOverflowHostZone - } - 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, ErrIntOverflowHostZone - } - 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, ErrIntOverflowHostZone - } - 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, ErrInvalidLengthHostZone - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupHostZone - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthHostZone - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthHostZone = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowHostZone = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupHostZone = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/stakeibc/migrations/v2/types/ica_account.pb.go b/x/stakeibc/migrations/v2/types/ica_account.pb.go deleted file mode 100644 index 6619090e53..0000000000 --- a/x/stakeibc/migrations/v2/types/ica_account.pb.go +++ /dev/null @@ -1,392 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/stakeibc/ica_account.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - proto "github.com/gogo/protobuf/proto" - 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 - -type ICAAccountType int32 - -const ( - ICAAccountType_DELEGATION ICAAccountType = 0 - ICAAccountType_FEE ICAAccountType = 1 - ICAAccountType_WITHDRAWAL ICAAccountType = 2 - ICAAccountType_REDEMPTION ICAAccountType = 3 -) - -var ICAAccountType_name = map[int32]string{ - 0: "DELEGATION", - 1: "FEE", - 2: "WITHDRAWAL", - 3: "REDEMPTION", -} - -var ICAAccountType_value = map[string]int32{ - "DELEGATION": 0, - "FEE": 1, - "WITHDRAWAL": 2, - "REDEMPTION": 3, -} - -func (x ICAAccountType) String() string { - return proto.EnumName(ICAAccountType_name, int32(x)) -} - -func (ICAAccountType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2976ae6e7f6ce824, []int{0} -} - -// TODO(TEST-XX): Update these fields to be more useful (e.g. balances should be -// coins, maybe store port name directly) -type ICAAccount struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Target ICAAccountType `protobuf:"varint,3,opt,name=target,proto3,enum=stride.stakeibc.ICAAccountType" json:"target,omitempty"` -} - -func (m *ICAAccount) Reset() { *m = ICAAccount{} } -func (m *ICAAccount) String() string { return proto.CompactTextString(m) } -func (*ICAAccount) ProtoMessage() {} -func (*ICAAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_2976ae6e7f6ce824, []int{0} -} -func (m *ICAAccount) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ICAAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ICAAccount.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 *ICAAccount) XXX_Merge(src proto.Message) { - xxx_messageInfo_ICAAccount.Merge(m, src) -} -func (m *ICAAccount) XXX_Size() int { - return m.Size() -} -func (m *ICAAccount) XXX_DiscardUnknown() { - xxx_messageInfo_ICAAccount.DiscardUnknown(m) -} - -var xxx_messageInfo_ICAAccount proto.InternalMessageInfo - -func (m *ICAAccount) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *ICAAccount) GetTarget() ICAAccountType { - if m != nil { - return m.Target - } - return ICAAccountType_DELEGATION -} - -func init() { - proto.RegisterEnum("stride.stakeibc.V2ICAAccountType", ICAAccountType_name, ICAAccountType_value) - proto.RegisterType((*ICAAccount)(nil), "stride.stakeibc.V2ICAAccount") -} - -func init() { proto.RegisterFile("stride/stakeibc/ica_account.proto", fileDescriptor_2976ae6e7f6ce824) } - -var fileDescriptor_2976ae6e7f6ce824 = []byte{ - // 285 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0x2f, 0x2e, 0x49, 0xcc, 0x4e, 0xcd, 0x4c, 0x4a, 0xd6, 0xcf, 0x4c, 0x4e, 0x8c, - 0x4f, 0x4c, 0x4e, 0xce, 0x2f, 0xcd, 0x2b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x87, - 0x28, 0xd1, 0x83, 0x29, 0x91, 0x92, 0x4c, 0xce, 0x2f, 0xce, 0xcd, 0x2f, 0x8e, 0x07, 0x4b, 0xeb, - 0x43, 0x38, 0x10, 0xb5, 0x4a, 0x95, 0x5c, 0x5c, 0x9e, 0xce, 0x8e, 0x8e, 0x10, 0xfd, 0x42, 0x46, - 0x5c, 0xec, 0x89, 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x4e, - 0x12, 0x97, 0xb6, 0xe8, 0x8a, 0x40, 0x35, 0x38, 0x42, 0x64, 0x82, 0x4b, 0x8a, 0x32, 0xf3, 0xd2, - 0x83, 0x60, 0x0a, 0x85, 0xcc, 0xb9, 0xd8, 0x4a, 0x12, 0x8b, 0xd2, 0x53, 0x4b, 0x24, 0x98, 0x15, - 0x18, 0x35, 0xf8, 0x8c, 0xe4, 0xf5, 0xd0, 0xac, 0xd7, 0x43, 0x58, 0x10, 0x52, 0x59, 0x90, 0x1a, - 0x04, 0x55, 0xae, 0xe5, 0xc9, 0xc5, 0x87, 0x2a, 0x23, 0xc4, 0xc7, 0xc5, 0xe5, 0xe2, 0xea, 0xe3, - 0xea, 0xee, 0x18, 0xe2, 0xe9, 0xef, 0x27, 0xc0, 0x20, 0xc4, 0xce, 0xc5, 0xec, 0xe6, 0xea, 0x2a, - 0xc0, 0x08, 0x92, 0x08, 0xf7, 0x0c, 0xf1, 0x70, 0x09, 0x72, 0x0c, 0x77, 0xf4, 0x11, 0x60, 0x02, - 0xf1, 0x83, 0x5c, 0x5d, 0x5c, 0x7d, 0x03, 0xc0, 0x0a, 0x99, 0x9d, 0xbc, 0x4f, 0x3c, 0x92, 0x63, - 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, - 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x30, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, - 0x3f, 0x57, 0x3f, 0x18, 0xec, 0x2e, 0x5d, 0x9f, 0xc4, 0xa4, 0x62, 0x7d, 0x68, 0x28, 0x96, 0x99, - 0xe8, 0x57, 0x20, 0x82, 0xb2, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x1c, 0x32, 0xc6, 0x80, - 0x00, 0x00, 0x00, 0xff, 0xff, 0xcd, 0x18, 0xc2, 0x7b, 0x6a, 0x01, 0x00, 0x00, -} - -func (m *ICAAccount) 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 *ICAAccount) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ICAAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Target != 0 { - i = encodeVarintIcaAccount(dAtA, i, uint64(m.Target)) - i-- - dAtA[i] = 0x18 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintIcaAccount(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintIcaAccount(dAtA []byte, offset int, v uint64) int { - offset -= sovIcaAccount(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ICAAccount) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovIcaAccount(uint64(l)) - } - if m.Target != 0 { - n += 1 + sovIcaAccount(uint64(m.Target)) - } - return n -} - -func sovIcaAccount(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozIcaAccount(x uint64) (n int) { - return sovIcaAccount(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ICAAccount) 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 ErrIntOverflowIcaAccount - } - 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: ICAAccount: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ICAAccount: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowIcaAccount - } - 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 ErrInvalidLengthIcaAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthIcaAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - m.Target = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowIcaAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Target |= ICAAccountType(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipIcaAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthIcaAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipIcaAccount(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, ErrIntOverflowIcaAccount - } - 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, ErrIntOverflowIcaAccount - } - 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, ErrIntOverflowIcaAccount - } - 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, ErrInvalidLengthIcaAccount - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupIcaAccount - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthIcaAccount - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthIcaAccount = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowIcaAccount = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupIcaAccount = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/stakeibc/migrations/v2/types/validator.pb.go b/x/stakeibc/migrations/v2/types/validator.pb.go deleted file mode 100644 index 8c282396e6..0000000000 --- a/x/stakeibc/migrations/v2/types/validator.pb.go +++ /dev/null @@ -1,816 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/stakeibc/validator.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -type Validator_ValidatorStatus int32 - -const ( - Validator_ACTIVE Validator_ValidatorStatus = 0 - Validator_INACTIVE Validator_ValidatorStatus = 1 -) - -var Validator_ValidatorStatus_name = map[int32]string{ - 0: "ACTIVE", - 1: "INACTIVE", -} - -var Validator_ValidatorStatus_value = map[string]int32{ - "ACTIVE": 0, - "INACTIVE": 1, -} - -func (x Validator_ValidatorStatus) String() string { - return proto.EnumName(Validator_ValidatorStatus_name, int32(x)) -} - -func (Validator_ValidatorStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_5d2f32e16bd6ab8f, []int{1, 0} -} - -type ValidatorExchangeRate struct { - InternalTokensToSharesRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=internal_tokens_to_shares_rate,json=internalTokensToSharesRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"internal_tokens_to_shares_rate"` - EpochNumber uint64 `protobuf:"varint,2,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` -} - -func (m *ValidatorExchangeRate) Reset() { *m = ValidatorExchangeRate{} } -func (m *ValidatorExchangeRate) String() string { return proto.CompactTextString(m) } -func (*ValidatorExchangeRate) ProtoMessage() {} -func (*ValidatorExchangeRate) Descriptor() ([]byte, []int) { - return fileDescriptor_5d2f32e16bd6ab8f, []int{0} -} -func (m *ValidatorExchangeRate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatorExchangeRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ValidatorExchangeRate.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 *ValidatorExchangeRate) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorExchangeRate.Merge(m, src) -} -func (m *ValidatorExchangeRate) XXX_Size() int { - return m.Size() -} -func (m *ValidatorExchangeRate) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorExchangeRate.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatorExchangeRate proto.InternalMessageInfo - -func (m *ValidatorExchangeRate) GetEpochNumber() uint64 { - if m != nil { - return m.EpochNumber - } - return 0 -} - -type Validator struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Status Validator_ValidatorStatus `protobuf:"varint,3,opt,name=status,proto3,enum=stride.stakeibc.Validator_ValidatorStatus" json:"status,omitempty"` - CommissionRate uint64 `protobuf:"varint,4,opt,name=commission_rate,json=commissionRate,proto3" json:"commission_rate,omitempty"` - DelegationAmt uint64 `protobuf:"varint,5,opt,name=delegation_amt,json=delegationAmt,proto3" json:"delegation_amt,omitempty"` - Weight uint64 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"` - InternalExchangeRate *ValidatorExchangeRate `protobuf:"bytes,7,opt,name=internal_exchange_rate,json=internalExchangeRate,proto3" json:"internal_exchange_rate,omitempty"` -} - -func (m *Validator) Reset() { *m = Validator{} } -func (m *Validator) String() string { return proto.CompactTextString(m) } -func (*Validator) ProtoMessage() {} -func (*Validator) Descriptor() ([]byte, []int) { - return fileDescriptor_5d2f32e16bd6ab8f, []int{1} -} -func (m *Validator) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Validator.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 *Validator) XXX_Merge(src proto.Message) { - xxx_messageInfo_Validator.Merge(m, src) -} -func (m *Validator) XXX_Size() int { - return m.Size() -} -func (m *Validator) XXX_DiscardUnknown() { - xxx_messageInfo_Validator.DiscardUnknown(m) -} - -var xxx_messageInfo_Validator proto.InternalMessageInfo - -func (m *Validator) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *Validator) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *Validator) GetStatus() Validator_ValidatorStatus { - if m != nil { - return m.Status - } - return Validator_ACTIVE -} - -func (m *Validator) GetCommissionRate() uint64 { - if m != nil { - return m.CommissionRate - } - return 0 -} - -func (m *Validator) GetDelegationAmt() uint64 { - if m != nil { - return m.DelegationAmt - } - return 0 -} - -func (m *Validator) GetWeight() uint64 { - if m != nil { - return m.Weight - } - return 0 -} - -func (m *Validator) GetInternalExchangeRate() *ValidatorExchangeRate { - if m != nil { - return m.InternalExchangeRate - } - return nil -} - -func init() { - proto.RegisterEnum("stride.stakeibc.V2Validator_ValidatorStatus", Validator_ValidatorStatus_name, Validator_ValidatorStatus_value) - proto.RegisterType((*ValidatorExchangeRate)(nil), "stride.stakeibc.V2ValidatorExchangeRate") - proto.RegisterType((*Validator)(nil), "stride.stakeibc.V2Validator") -} - -func init() { proto.RegisterFile("stride/stakeibc/validator.proto", fileDescriptor_5d2f32e16bd6ab8f) } - -var fileDescriptor_5d2f32e16bd6ab8f = []byte{ - // 486 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0x31, 0x6f, 0xd3, 0x40, - 0x14, 0xce, 0xd1, 0xe0, 0x92, 0x6b, 0x49, 0xd0, 0x29, 0x54, 0x26, 0x83, 0x13, 0x22, 0x51, 0x22, - 0x50, 0x6c, 0x11, 0x18, 0x59, 0x12, 0xda, 0xa1, 0x02, 0x75, 0x70, 0xa2, 0x0e, 0x08, 0xc9, 0x3a, - 0xdb, 0x4f, 0xb6, 0x95, 0xd8, 0x17, 0xf9, 0x5e, 0x4a, 0xd9, 0x98, 0x99, 0xf8, 0x31, 0x5d, 0xd9, - 0x3b, 0x56, 0x9d, 0x10, 0x43, 0x85, 0x92, 0x3f, 0x82, 0x7a, 0x3e, 0x27, 0x51, 0x25, 0xa6, 0x7b, - 0xef, 0x7b, 0xdf, 0xbb, 0xef, 0xbb, 0x7b, 0x8f, 0xb6, 0x25, 0xe6, 0x49, 0x08, 0x8e, 0x44, 0x3e, - 0x85, 0xc4, 0x0f, 0x9c, 0x73, 0x3e, 0x4b, 0x42, 0x8e, 0x22, 0xb7, 0xe7, 0xb9, 0x40, 0xc1, 0x1a, - 0x05, 0xc1, 0x2e, 0x09, 0xad, 0x67, 0x81, 0x90, 0xa9, 0x90, 0x9e, 0x2a, 0x3b, 0x45, 0x52, 0x70, - 0x5b, 0xcd, 0x48, 0x44, 0xa2, 0xc0, 0xef, 0xa2, 0x02, 0xed, 0xfe, 0x22, 0xf4, 0xe9, 0x59, 0x79, - 0xeb, 0xf1, 0x45, 0x10, 0xf3, 0x2c, 0x02, 0x97, 0x23, 0xb0, 0xef, 0x84, 0x5a, 0x49, 0x86, 0x90, - 0x67, 0x7c, 0xe6, 0xa1, 0x98, 0x42, 0x26, 0x3d, 0x14, 0x9e, 0x8c, 0x79, 0x0e, 0xd2, 0xcb, 0x39, - 0x82, 0x49, 0x3a, 0xa4, 0x57, 0x1b, 0xbd, 0xbf, 0xba, 0x6d, 0x57, 0xfe, 0xdc, 0xb6, 0x0f, 0xa3, - 0x04, 0xe3, 0x85, 0x6f, 0x07, 0x22, 0xd5, 0xca, 0xfa, 0xe8, 0xcb, 0x70, 0xea, 0xe0, 0xb7, 0x39, - 0x48, 0xfb, 0x08, 0x82, 0x9b, 0xcb, 0x3e, 0xd5, 0xc6, 0x8e, 0x20, 0x70, 0x5b, 0xa5, 0xc6, 0x44, - 0x49, 0x4c, 0xc4, 0x58, 0x09, 0x28, 0x0b, 0xcf, 0xe9, 0x3e, 0xcc, 0x45, 0x10, 0x7b, 0xd9, 0x22, - 0xf5, 0x21, 0x37, 0x1f, 0x74, 0x48, 0xaf, 0xea, 0xee, 0x29, 0xec, 0x54, 0x41, 0xdd, 0x1f, 0x3b, - 0xb4, 0xb6, 0xf6, 0xcf, 0x18, 0xad, 0x66, 0x3c, 0xd5, 0xc6, 0x5c, 0x15, 0xb3, 0x01, 0xdd, 0xe5, - 0x61, 0x98, 0x83, 0x94, 0xaa, 0xbf, 0x36, 0x32, 0x6f, 0x2e, 0xfb, 0x4d, 0xed, 0x60, 0x58, 0x54, - 0xc6, 0x98, 0x27, 0x59, 0xe4, 0x96, 0x44, 0x36, 0xa2, 0x86, 0x44, 0x8e, 0x0b, 0x69, 0xee, 0x74, - 0x48, 0xaf, 0x3e, 0x78, 0x65, 0xdf, 0xfb, 0x68, 0x7b, 0xad, 0xb9, 0x89, 0xc6, 0xaa, 0xc3, 0xd5, - 0x9d, 0xec, 0x25, 0x6d, 0x04, 0x22, 0x4d, 0x13, 0x29, 0x13, 0x91, 0x15, 0xff, 0x55, 0x55, 0xfe, - 0xeb, 0x1b, 0x58, 0xbd, 0xf2, 0x05, 0xad, 0x87, 0x30, 0x83, 0x88, 0xe3, 0x1d, 0x91, 0xa7, 0x68, - 0x3e, 0x54, 0xbc, 0xc7, 0x1b, 0x74, 0x98, 0x22, 0x3b, 0xa0, 0xc6, 0x57, 0x48, 0xa2, 0x18, 0x4d, - 0x43, 0x95, 0x75, 0xc6, 0xbe, 0xd0, 0x83, 0xf5, 0x98, 0x40, 0x0f, 0xb0, 0x90, 0xdb, 0xed, 0x90, - 0xde, 0xde, 0xe0, 0xf0, 0xff, 0xde, 0xb7, 0xe7, 0xed, 0x36, 0xcb, 0x5b, 0xb6, 0xd1, 0xee, 0x6b, - 0xda, 0xb8, 0xf7, 0x40, 0x46, 0xa9, 0x31, 0xfc, 0x30, 0x39, 0x39, 0x3b, 0x7e, 0x52, 0x61, 0xfb, - 0xf4, 0xd1, 0xc9, 0xa9, 0xce, 0xc8, 0xe8, 0xe3, 0xd5, 0xd2, 0x22, 0xd7, 0x4b, 0x8b, 0xfc, 0x5d, - 0x5a, 0xe4, 0xe7, 0xca, 0xaa, 0x5c, 0xaf, 0xac, 0xca, 0xef, 0x95, 0x55, 0xf9, 0xfc, 0x66, 0x6b, - 0x37, 0xc6, 0xca, 0x4e, 0xff, 0x13, 0xf7, 0xa5, 0xa3, 0x17, 0xfc, 0xfc, 0x9d, 0x73, 0xb1, 0xd9, - 0x72, 0xb5, 0x2a, 0xbe, 0xa1, 0x16, 0xf4, 0xed, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x61, 0x12, - 0xd4, 0xa2, 0x05, 0x03, 0x00, 0x00, -} - -func (m *ValidatorExchangeRate) 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 *ValidatorExchangeRate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatorExchangeRate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EpochNumber != 0 { - i = encodeVarintValidator(dAtA, i, uint64(m.EpochNumber)) - i-- - dAtA[i] = 0x10 - } - { - size := m.InternalTokensToSharesRate.Size() - i -= size - if _, err := m.InternalTokensToSharesRate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintValidator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Validator) 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 *Validator) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.InternalExchangeRate != nil { - { - size, err := m.InternalExchangeRate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintValidator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.Weight != 0 { - i = encodeVarintValidator(dAtA, i, uint64(m.Weight)) - i-- - dAtA[i] = 0x30 - } - if m.DelegationAmt != 0 { - i = encodeVarintValidator(dAtA, i, uint64(m.DelegationAmt)) - i-- - dAtA[i] = 0x28 - } - if m.CommissionRate != 0 { - i = encodeVarintValidator(dAtA, i, uint64(m.CommissionRate)) - i-- - dAtA[i] = 0x20 - } - if m.Status != 0 { - i = encodeVarintValidator(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x18 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintValidator(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintValidator(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintValidator(dAtA []byte, offset int, v uint64) int { - offset -= sovValidator(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ValidatorExchangeRate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.InternalTokensToSharesRate.Size() - n += 1 + l + sovValidator(uint64(l)) - if m.EpochNumber != 0 { - n += 1 + sovValidator(uint64(m.EpochNumber)) - } - return n -} - -func (m *Validator) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovValidator(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovValidator(uint64(l)) - } - if m.Status != 0 { - n += 1 + sovValidator(uint64(m.Status)) - } - if m.CommissionRate != 0 { - n += 1 + sovValidator(uint64(m.CommissionRate)) - } - if m.DelegationAmt != 0 { - n += 1 + sovValidator(uint64(m.DelegationAmt)) - } - if m.Weight != 0 { - n += 1 + sovValidator(uint64(m.Weight)) - } - if m.InternalExchangeRate != nil { - l = m.InternalExchangeRate.Size() - n += 1 + l + sovValidator(uint64(l)) - } - return n -} - -func sovValidator(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozValidator(x uint64) (n int) { - return sovValidator(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ValidatorExchangeRate) 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 ErrIntOverflowValidator - } - 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: ValidatorExchangeRate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorExchangeRate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InternalTokensToSharesRate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - 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 ErrInvalidLengthValidator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthValidator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.InternalTokensToSharesRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) - } - m.EpochNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EpochNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipValidator(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthValidator - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Validator) 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 ErrIntOverflowValidator - } - 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: Validator: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Validator: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - 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 ErrInvalidLengthValidator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthValidator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - 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 ErrInvalidLengthValidator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthValidator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= Validator_ValidatorStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CommissionRate", wireType) - } - m.CommissionRate = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CommissionRate |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DelegationAmt", wireType) - } - m.DelegationAmt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DelegationAmt |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) - } - m.Weight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Weight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InternalExchangeRate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthValidator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthValidator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.InternalExchangeRate == nil { - m.InternalExchangeRate = &ValidatorExchangeRate{} - } - if err := m.InternalExchangeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipValidator(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthValidator - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipValidator(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, ErrIntOverflowValidator - } - 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, ErrIntOverflowValidator - } - 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, ErrIntOverflowValidator - } - 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, ErrInvalidLengthValidator - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupValidator - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthValidator - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthValidator = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowValidator = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupValidator = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/stakeibc/types/address_unbonding.pb.go b/x/stakeibc/types/address_unbonding.pb.go deleted file mode 100644 index 01dcab45fd..0000000000 --- a/x/stakeibc/types/address_unbonding.pb.go +++ /dev/null @@ -1,570 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/stakeibc/address_unbonding.proto - -package types - -import ( - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -type AddressUnbonding struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` - UnbondingEstimatedTime string `protobuf:"bytes,3,opt,name=unbonding_estimated_time,json=unbondingEstimatedTime,proto3" json:"unbonding_estimated_time,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` - Denom string `protobuf:"bytes,5,opt,name=denom,proto3" json:"denom,omitempty"` - ClaimIsPending bool `protobuf:"varint,8,opt,name=claim_is_pending,json=claimIsPending,proto3" json:"claim_is_pending,omitempty"` -} - -func (m *AddressUnbonding) Reset() { *m = AddressUnbonding{} } -func (m *AddressUnbonding) String() string { return proto.CompactTextString(m) } -func (*AddressUnbonding) ProtoMessage() {} -func (*AddressUnbonding) Descriptor() ([]byte, []int) { - return fileDescriptor_6491082275bcb473, []int{0} -} -func (m *AddressUnbonding) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AddressUnbonding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AddressUnbonding.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 *AddressUnbonding) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddressUnbonding.Merge(m, src) -} -func (m *AddressUnbonding) XXX_Size() int { - return m.Size() -} -func (m *AddressUnbonding) XXX_DiscardUnknown() { - xxx_messageInfo_AddressUnbonding.DiscardUnknown(m) -} - -var xxx_messageInfo_AddressUnbonding proto.InternalMessageInfo - -func (m *AddressUnbonding) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *AddressUnbonding) GetReceiver() string { - if m != nil { - return m.Receiver - } - return "" -} - -func (m *AddressUnbonding) GetUnbondingEstimatedTime() string { - if m != nil { - return m.UnbondingEstimatedTime - } - return "" -} - -func (m *AddressUnbonding) GetDenom() string { - if m != nil { - return m.Denom - } - return "" -} - -func (m *AddressUnbonding) GetClaimIsPending() bool { - if m != nil { - return m.ClaimIsPending - } - return false -} - -func init() { - proto.RegisterType((*AddressUnbonding)(nil), "stride.stakeibc.AddressUnbonding") -} - -func init() { - proto.RegisterFile("stride/stakeibc/address_unbonding.proto", fileDescriptor_6491082275bcb473) -} - -var fileDescriptor_6491082275bcb473 = []byte{ - // 321 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x51, 0x3d, 0x4b, 0x03, 0x41, - 0x10, 0xbd, 0x8b, 0x26, 0xc6, 0x2d, 0x34, 0x2c, 0x41, 0x96, 0x14, 0x97, 0x60, 0xa1, 0x69, 0x72, - 0x8b, 0x08, 0x62, 0x6b, 0x40, 0x21, 0x68, 0x21, 0x51, 0x1b, 0x9b, 0xe3, 0xee, 0x76, 0x38, 0x97, - 0xb8, 0xb7, 0xe1, 0x66, 0x13, 0xf4, 0x2f, 0x58, 0xf9, 0xb3, 0x52, 0xa6, 0x14, 0x8b, 0x20, 0xc9, - 0x1f, 0x91, 0xec, 0x7d, 0x68, 0xb5, 0xfb, 0xe6, 0xbd, 0x79, 0xf3, 0x98, 0x21, 0xa7, 0x68, 0x32, - 0x29, 0x80, 0xa3, 0x09, 0x27, 0x20, 0xa3, 0x98, 0x87, 0x42, 0x64, 0x80, 0x18, 0xcc, 0xd2, 0x48, - 0xa7, 0x42, 0xa6, 0x89, 0x3f, 0xcd, 0xb4, 0xd1, 0xf4, 0x30, 0x17, 0xfa, 0xa5, 0xb0, 0xd3, 0x4e, - 0x74, 0xa2, 0x2d, 0xc7, 0xb7, 0xbf, 0x5c, 0x76, 0xfc, 0x51, 0x23, 0xad, 0xab, 0xdc, 0xe2, 0xa9, - 0x74, 0xa0, 0x8c, 0xec, 0x15, 0xb6, 0xcc, 0xed, 0xb9, 0xfd, 0xfd, 0x71, 0x09, 0x69, 0x87, 0x34, - 0x33, 0x88, 0x41, 0xce, 0x21, 0x63, 0x35, 0x4b, 0x55, 0x98, 0x5e, 0x12, 0x56, 0x85, 0x08, 0x00, - 0x8d, 0x54, 0xa1, 0x01, 0x11, 0x18, 0xa9, 0x80, 0xed, 0x58, 0xed, 0x51, 0xc5, 0x5f, 0x97, 0xf4, - 0xa3, 0x54, 0x40, 0x6f, 0x48, 0x23, 0x54, 0x7a, 0x96, 0x1a, 0xb6, 0xbb, 0xd5, 0x0d, 0xfd, 0xc5, - 0xaa, 0xeb, 0x7c, 0xaf, 0xba, 0x27, 0x89, 0x34, 0x2f, 0xb3, 0xc8, 0x8f, 0xb5, 0xe2, 0xb1, 0x46, - 0xa5, 0xb1, 0x78, 0x06, 0x28, 0x26, 0xdc, 0xbc, 0x4f, 0x01, 0xfd, 0x51, 0x6a, 0xc6, 0x45, 0x37, - 0x6d, 0x93, 0xba, 0x80, 0x54, 0x2b, 0x56, 0xb7, 0xe3, 0x72, 0x40, 0xfb, 0xa4, 0x15, 0xbf, 0x86, - 0x52, 0x05, 0x12, 0x83, 0x29, 0xd8, 0xf1, 0xac, 0xd9, 0x73, 0xfb, 0xcd, 0xf1, 0x81, 0xad, 0x8f, - 0xf0, 0x3e, 0xaf, 0x0e, 0x6f, 0x17, 0x6b, 0xcf, 0x5d, 0xae, 0x3d, 0xf7, 0x67, 0xed, 0xb9, 0x9f, - 0x1b, 0xcf, 0x59, 0x6e, 0x3c, 0xe7, 0x6b, 0xe3, 0x39, 0xcf, 0x67, 0xff, 0x92, 0x3c, 0xd8, 0xc5, - 0x0e, 0xee, 0xc2, 0x08, 0x79, 0x71, 0x8d, 0xf9, 0x05, 0x7f, 0xfb, 0x3b, 0x89, 0x0d, 0x16, 0x35, - 0xec, 0x82, 0xcf, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x68, 0x14, 0x26, 0xcd, 0xb2, 0x01, 0x00, - 0x00, -} - -func (m *AddressUnbonding) 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 *AddressUnbonding) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AddressUnbonding) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ClaimIsPending { - i-- - if m.ClaimIsPending { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintAddressUnbonding(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x2a - } - { - size := m.Amount.Size() - i -= size - if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintAddressUnbonding(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - if len(m.UnbondingEstimatedTime) > 0 { - i -= len(m.UnbondingEstimatedTime) - copy(dAtA[i:], m.UnbondingEstimatedTime) - i = encodeVarintAddressUnbonding(dAtA, i, uint64(len(m.UnbondingEstimatedTime))) - i-- - dAtA[i] = 0x1a - } - if len(m.Receiver) > 0 { - i -= len(m.Receiver) - copy(dAtA[i:], m.Receiver) - i = encodeVarintAddressUnbonding(dAtA, i, uint64(len(m.Receiver))) - i-- - dAtA[i] = 0x12 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintAddressUnbonding(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintAddressUnbonding(dAtA []byte, offset int, v uint64) int { - offset -= sovAddressUnbonding(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AddressUnbonding) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovAddressUnbonding(uint64(l)) - } - l = len(m.Receiver) - if l > 0 { - n += 1 + l + sovAddressUnbonding(uint64(l)) - } - l = len(m.UnbondingEstimatedTime) - if l > 0 { - n += 1 + l + sovAddressUnbonding(uint64(l)) - } - l = m.Amount.Size() - n += 1 + l + sovAddressUnbonding(uint64(l)) - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovAddressUnbonding(uint64(l)) - } - if m.ClaimIsPending { - n += 2 - } - return n -} - -func sovAddressUnbonding(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozAddressUnbonding(x uint64) (n int) { - return sovAddressUnbonding(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *AddressUnbonding) 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 ErrIntOverflowAddressUnbonding - } - 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: AddressUnbonding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddressUnbonding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAddressUnbonding - } - 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 ErrInvalidLengthAddressUnbonding - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAddressUnbonding - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAddressUnbonding - } - 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 ErrInvalidLengthAddressUnbonding - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAddressUnbonding - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Receiver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UnbondingEstimatedTime", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAddressUnbonding - } - 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 ErrInvalidLengthAddressUnbonding - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAddressUnbonding - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UnbondingEstimatedTime = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAddressUnbonding - } - 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 ErrInvalidLengthAddressUnbonding - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAddressUnbonding - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAddressUnbonding - } - 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 ErrInvalidLengthAddressUnbonding - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAddressUnbonding - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimIsPending", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAddressUnbonding - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ClaimIsPending = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipAddressUnbonding(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAddressUnbonding - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipAddressUnbonding(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, ErrIntOverflowAddressUnbonding - } - 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, ErrIntOverflowAddressUnbonding - } - 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, ErrIntOverflowAddressUnbonding - } - 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, ErrInvalidLengthAddressUnbonding - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupAddressUnbonding - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthAddressUnbonding - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthAddressUnbonding = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowAddressUnbonding = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupAddressUnbonding = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/stakeibc/types/callbacks.pb.go b/x/stakeibc/types/callbacks.pb.go deleted file mode 100644 index bb86fc5b0f..0000000000 --- a/x/stakeibc/types/callbacks.pb.go +++ /dev/null @@ -1,2264 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/stakeibc/callbacks.proto - -package types - -import ( - fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -// ---------------------- Delegation Callbacks ---------------------- // -type SplitDelegation struct { - Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` -} - -func (m *SplitDelegation) Reset() { *m = SplitDelegation{} } -func (m *SplitDelegation) String() string { return proto.CompactTextString(m) } -func (*SplitDelegation) ProtoMessage() {} -func (*SplitDelegation) Descriptor() ([]byte, []int) { - return fileDescriptor_f41c99b09b96a5ac, []int{0} -} -func (m *SplitDelegation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SplitDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SplitDelegation.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 *SplitDelegation) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitDelegation.Merge(m, src) -} -func (m *SplitDelegation) XXX_Size() int { - return m.Size() -} -func (m *SplitDelegation) XXX_DiscardUnknown() { - xxx_messageInfo_SplitDelegation.DiscardUnknown(m) -} - -var xxx_messageInfo_SplitDelegation proto.InternalMessageInfo - -func (m *SplitDelegation) GetValidator() string { - if m != nil { - return m.Validator - } - return "" -} - -type DelegateCallback struct { - HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` - DepositRecordId uint64 `protobuf:"varint,2,opt,name=deposit_record_id,json=depositRecordId,proto3" json:"deposit_record_id,omitempty"` - SplitDelegations []*SplitDelegation `protobuf:"bytes,3,rep,name=split_delegations,json=splitDelegations,proto3" json:"split_delegations,omitempty"` -} - -func (m *DelegateCallback) Reset() { *m = DelegateCallback{} } -func (m *DelegateCallback) String() string { return proto.CompactTextString(m) } -func (*DelegateCallback) ProtoMessage() {} -func (*DelegateCallback) Descriptor() ([]byte, []int) { - return fileDescriptor_f41c99b09b96a5ac, []int{1} -} -func (m *DelegateCallback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DelegateCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DelegateCallback.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 *DelegateCallback) XXX_Merge(src proto.Message) { - xxx_messageInfo_DelegateCallback.Merge(m, src) -} -func (m *DelegateCallback) XXX_Size() int { - return m.Size() -} -func (m *DelegateCallback) XXX_DiscardUnknown() { - xxx_messageInfo_DelegateCallback.DiscardUnknown(m) -} - -var xxx_messageInfo_DelegateCallback proto.InternalMessageInfo - -func (m *DelegateCallback) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -func (m *DelegateCallback) GetDepositRecordId() uint64 { - if m != nil { - return m.DepositRecordId - } - return 0 -} - -func (m *DelegateCallback) GetSplitDelegations() []*SplitDelegation { - if m != nil { - return m.SplitDelegations - } - return nil -} - -type ClaimCallback struct { - UserRedemptionRecordId string `protobuf:"bytes,1,opt,name=user_redemption_record_id,json=userRedemptionRecordId,proto3" json:"user_redemption_record_id,omitempty"` - ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - EpochNumber uint64 `protobuf:"varint,3,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` -} - -func (m *ClaimCallback) Reset() { *m = ClaimCallback{} } -func (m *ClaimCallback) String() string { return proto.CompactTextString(m) } -func (*ClaimCallback) ProtoMessage() {} -func (*ClaimCallback) Descriptor() ([]byte, []int) { - return fileDescriptor_f41c99b09b96a5ac, []int{2} -} -func (m *ClaimCallback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClaimCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClaimCallback.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 *ClaimCallback) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClaimCallback.Merge(m, src) -} -func (m *ClaimCallback) XXX_Size() int { - return m.Size() -} -func (m *ClaimCallback) XXX_DiscardUnknown() { - xxx_messageInfo_ClaimCallback.DiscardUnknown(m) -} - -var xxx_messageInfo_ClaimCallback proto.InternalMessageInfo - -func (m *ClaimCallback) GetUserRedemptionRecordId() string { - if m != nil { - return m.UserRedemptionRecordId - } - return "" -} - -func (m *ClaimCallback) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *ClaimCallback) GetEpochNumber() uint64 { - if m != nil { - return m.EpochNumber - } - return 0 -} - -// ---------------------- Reinvest Callback ---------------------- // -type ReinvestCallback struct { - ReinvestAmount types.Coin `protobuf:"bytes,1,opt,name=reinvest_amount,json=reinvestAmount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"reinvest_amount"` - HostZoneId string `protobuf:"bytes,3,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` -} - -func (m *ReinvestCallback) Reset() { *m = ReinvestCallback{} } -func (m *ReinvestCallback) String() string { return proto.CompactTextString(m) } -func (*ReinvestCallback) ProtoMessage() {} -func (*ReinvestCallback) Descriptor() ([]byte, []int) { - return fileDescriptor_f41c99b09b96a5ac, []int{3} -} -func (m *ReinvestCallback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReinvestCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReinvestCallback.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 *ReinvestCallback) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReinvestCallback.Merge(m, src) -} -func (m *ReinvestCallback) XXX_Size() int { - return m.Size() -} -func (m *ReinvestCallback) XXX_DiscardUnknown() { - xxx_messageInfo_ReinvestCallback.DiscardUnknown(m) -} - -var xxx_messageInfo_ReinvestCallback proto.InternalMessageInfo - -func (m *ReinvestCallback) GetReinvestAmount() types.Coin { - if m != nil { - return m.ReinvestAmount - } - return types.Coin{} -} - -func (m *ReinvestCallback) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -// ---------------------- Undelegation Callbacks ---------------------- // -type UndelegateCallback struct { - HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` - SplitDelegations []*SplitDelegation `protobuf:"bytes,2,rep,name=split_delegations,json=splitDelegations,proto3" json:"split_delegations,omitempty"` - EpochUnbondingRecordIds []uint64 `protobuf:"varint,3,rep,packed,name=epoch_unbonding_record_ids,json=epochUnbondingRecordIds,proto3" json:"epoch_unbonding_record_ids,omitempty"` -} - -func (m *UndelegateCallback) Reset() { *m = UndelegateCallback{} } -func (m *UndelegateCallback) String() string { return proto.CompactTextString(m) } -func (*UndelegateCallback) ProtoMessage() {} -func (*UndelegateCallback) Descriptor() ([]byte, []int) { - return fileDescriptor_f41c99b09b96a5ac, []int{4} -} -func (m *UndelegateCallback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UndelegateCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UndelegateCallback.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 *UndelegateCallback) XXX_Merge(src proto.Message) { - xxx_messageInfo_UndelegateCallback.Merge(m, src) -} -func (m *UndelegateCallback) XXX_Size() int { - return m.Size() -} -func (m *UndelegateCallback) XXX_DiscardUnknown() { - xxx_messageInfo_UndelegateCallback.DiscardUnknown(m) -} - -var xxx_messageInfo_UndelegateCallback proto.InternalMessageInfo - -func (m *UndelegateCallback) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -func (m *UndelegateCallback) GetSplitDelegations() []*SplitDelegation { - if m != nil { - return m.SplitDelegations - } - return nil -} - -func (m *UndelegateCallback) GetEpochUnbondingRecordIds() []uint64 { - if m != nil { - return m.EpochUnbondingRecordIds - } - return nil -} - -// ---------------------- Redemption Callbacks ---------------------- // -type RedemptionCallback struct { - HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` - EpochUnbondingRecordIds []uint64 `protobuf:"varint,2,rep,packed,name=epoch_unbonding_record_ids,json=epochUnbondingRecordIds,proto3" json:"epoch_unbonding_record_ids,omitempty"` -} - -func (m *RedemptionCallback) Reset() { *m = RedemptionCallback{} } -func (m *RedemptionCallback) String() string { return proto.CompactTextString(m) } -func (*RedemptionCallback) ProtoMessage() {} -func (*RedemptionCallback) Descriptor() ([]byte, []int) { - return fileDescriptor_f41c99b09b96a5ac, []int{5} -} -func (m *RedemptionCallback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RedemptionCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RedemptionCallback.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 *RedemptionCallback) XXX_Merge(src proto.Message) { - xxx_messageInfo_RedemptionCallback.Merge(m, src) -} -func (m *RedemptionCallback) XXX_Size() int { - return m.Size() -} -func (m *RedemptionCallback) XXX_DiscardUnknown() { - xxx_messageInfo_RedemptionCallback.DiscardUnknown(m) -} - -var xxx_messageInfo_RedemptionCallback proto.InternalMessageInfo - -func (m *RedemptionCallback) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -func (m *RedemptionCallback) GetEpochUnbondingRecordIds() []uint64 { - if m != nil { - return m.EpochUnbondingRecordIds - } - return nil -} - -type Rebalancing struct { - SrcValidator string `protobuf:"bytes,1,opt,name=src_validator,json=srcValidator,proto3" json:"src_validator,omitempty"` - DstValidator string `protobuf:"bytes,2,opt,name=dst_validator,json=dstValidator,proto3" json:"dst_validator,omitempty"` - Amt github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amt,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amt"` -} - -func (m *Rebalancing) Reset() { *m = Rebalancing{} } -func (m *Rebalancing) String() string { return proto.CompactTextString(m) } -func (*Rebalancing) ProtoMessage() {} -func (*Rebalancing) Descriptor() ([]byte, []int) { - return fileDescriptor_f41c99b09b96a5ac, []int{6} -} -func (m *Rebalancing) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Rebalancing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Rebalancing.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 *Rebalancing) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rebalancing.Merge(m, src) -} -func (m *Rebalancing) XXX_Size() int { - return m.Size() -} -func (m *Rebalancing) XXX_DiscardUnknown() { - xxx_messageInfo_Rebalancing.DiscardUnknown(m) -} - -var xxx_messageInfo_Rebalancing proto.InternalMessageInfo - -func (m *Rebalancing) GetSrcValidator() string { - if m != nil { - return m.SrcValidator - } - return "" -} - -func (m *Rebalancing) GetDstValidator() string { - if m != nil { - return m.DstValidator - } - return "" -} - -type RebalanceCallback struct { - HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` - Rebalancings []*Rebalancing `protobuf:"bytes,2,rep,name=rebalancings,proto3" json:"rebalancings,omitempty"` -} - -func (m *RebalanceCallback) Reset() { *m = RebalanceCallback{} } -func (m *RebalanceCallback) String() string { return proto.CompactTextString(m) } -func (*RebalanceCallback) ProtoMessage() {} -func (*RebalanceCallback) Descriptor() ([]byte, []int) { - return fileDescriptor_f41c99b09b96a5ac, []int{7} -} -func (m *RebalanceCallback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RebalanceCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RebalanceCallback.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 *RebalanceCallback) XXX_Merge(src proto.Message) { - xxx_messageInfo_RebalanceCallback.Merge(m, src) -} -func (m *RebalanceCallback) XXX_Size() int { - return m.Size() -} -func (m *RebalanceCallback) XXX_DiscardUnknown() { - xxx_messageInfo_RebalanceCallback.DiscardUnknown(m) -} - -var xxx_messageInfo_RebalanceCallback proto.InternalMessageInfo - -func (m *RebalanceCallback) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -func (m *RebalanceCallback) GetRebalancings() []*Rebalancing { - if m != nil { - return m.Rebalancings - } - return nil -} - -func init() { - proto.RegisterType((*SplitDelegation)(nil), "stride.stakeibc.SplitDelegation") - proto.RegisterType((*DelegateCallback)(nil), "stride.stakeibc.DelegateCallback") - proto.RegisterType((*ClaimCallback)(nil), "stride.stakeibc.ClaimCallback") - proto.RegisterType((*ReinvestCallback)(nil), "stride.stakeibc.ReinvestCallback") - proto.RegisterType((*UndelegateCallback)(nil), "stride.stakeibc.UndelegateCallback") - proto.RegisterType((*RedemptionCallback)(nil), "stride.stakeibc.RedemptionCallback") - proto.RegisterType((*Rebalancing)(nil), "stride.stakeibc.Rebalancing") - proto.RegisterType((*RebalanceCallback)(nil), "stride.stakeibc.RebalanceCallback") -} - -func init() { proto.RegisterFile("stride/stakeibc/callbacks.proto", fileDescriptor_f41c99b09b96a5ac) } - -var fileDescriptor_f41c99b09b96a5ac = []byte{ - // 630 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x4f, 0x4f, 0x13, 0x41, - 0x18, 0xc6, 0xbb, 0x94, 0xa0, 0xbc, 0x2d, 0x16, 0x36, 0x46, 0x0b, 0x21, 0xdb, 0xba, 0x24, 0x4a, - 0x4c, 0xd8, 0x0d, 0x98, 0x98, 0x18, 0x2f, 0x08, 0xc6, 0xa4, 0xf1, 0xcf, 0x61, 0x09, 0x1e, 0xb8, - 0x6c, 0x66, 0x77, 0x26, 0xed, 0x84, 0xdd, 0x99, 0x66, 0xdf, 0x69, 0x51, 0x3f, 0x81, 0x47, 0xaf, - 0x7e, 0x04, 0xbd, 0xf8, 0x1d, 0x3c, 0x71, 0xe4, 0x68, 0x3c, 0xa0, 0xa1, 0x5f, 0xc4, 0xcc, 0xfe, - 0xe9, 0x96, 0x62, 0x88, 0xf5, 0xd4, 0xf6, 0x7d, 0x9f, 0xe9, 0xfb, 0x3c, 0xf3, 0x9b, 0x19, 0x68, - 0xa1, 0x4a, 0x38, 0x65, 0x2e, 0x2a, 0x72, 0xcc, 0x78, 0x10, 0xba, 0x21, 0x89, 0xa2, 0x80, 0x84, - 0xc7, 0xe8, 0xf4, 0x13, 0xa9, 0xa4, 0xd9, 0xc8, 0x04, 0x4e, 0x21, 0x58, 0xbb, 0xdd, 0x95, 0x5d, - 0x99, 0xf6, 0x5c, 0xfd, 0x2d, 0x93, 0xad, 0x59, 0xa1, 0xc4, 0x58, 0xa2, 0x1b, 0x10, 0x64, 0xee, - 0x70, 0x3b, 0x60, 0x8a, 0x6c, 0xbb, 0xa1, 0xe4, 0x22, 0xeb, 0xdb, 0x27, 0xd0, 0x38, 0xe8, 0x47, - 0x5c, 0x3d, 0x67, 0x11, 0xeb, 0x12, 0xc5, 0xa5, 0x30, 0xd7, 0x61, 0x71, 0x48, 0x22, 0x4e, 0x89, - 0x92, 0x49, 0xd3, 0x68, 0x1b, 0x9b, 0x8b, 0x5e, 0x59, 0x30, 0x5f, 0xc0, 0x02, 0x89, 0xe5, 0x40, - 0xa8, 0xe6, 0x9c, 0x6e, 0xed, 0x39, 0xa7, 0xe7, 0xad, 0xca, 0xcf, 0xf3, 0xd6, 0xfd, 0x2e, 0x57, - 0xbd, 0x41, 0xe0, 0x84, 0x32, 0x76, 0xf3, 0x99, 0xd9, 0xc7, 0x16, 0xd2, 0x63, 0x57, 0xbd, 0xef, - 0x33, 0x74, 0x3a, 0x42, 0x79, 0xf9, 0x6a, 0xfb, 0x9b, 0x01, 0xcb, 0xf9, 0x50, 0xb6, 0x9f, 0x67, - 0x33, 0xdb, 0x50, 0xef, 0x49, 0x54, 0xfe, 0x07, 0x29, 0x98, 0xcf, 0x69, 0x3e, 0x1d, 0x74, 0xed, - 0x48, 0x0a, 0xd6, 0xa1, 0xe6, 0x43, 0x58, 0xa1, 0xac, 0x2f, 0x91, 0x2b, 0x3f, 0x61, 0xa1, 0x4c, - 0xa8, 0x96, 0x69, 0x27, 0xf3, 0x5e, 0x23, 0x6f, 0x78, 0x69, 0xbd, 0x43, 0xcd, 0xd7, 0xb0, 0x82, - 0x3a, 0x9b, 0x4f, 0xc7, 0xe1, 0xb0, 0x59, 0x6d, 0x57, 0x37, 0x6b, 0x3b, 0x6d, 0x67, 0x6a, 0xfb, - 0x9c, 0xa9, 0x5d, 0xf0, 0x96, 0xf1, 0x72, 0x01, 0xed, 0x8f, 0x06, 0x2c, 0xed, 0x47, 0x84, 0xc7, - 0x63, 0xbb, 0x4f, 0x60, 0x75, 0x80, 0x2c, 0xf1, 0x13, 0x46, 0x59, 0xdc, 0xd7, 0xaa, 0x09, 0x53, - 0x99, 0xf7, 0x3b, 0x5a, 0xe0, 0x8d, 0xfb, 0x63, 0x6f, 0xab, 0x70, 0x33, 0xec, 0x11, 0x2e, 0x0a, - 0xfb, 0x8b, 0xde, 0x8d, 0xf4, 0x77, 0x87, 0x9a, 0xf7, 0xa0, 0xce, 0xfa, 0x32, 0xec, 0xf9, 0x62, - 0x10, 0x07, 0x2c, 0x69, 0x56, 0xd3, 0x74, 0xb5, 0xb4, 0xf6, 0x26, 0x2d, 0xd9, 0x5f, 0x0c, 0x58, - 0xf6, 0x18, 0x17, 0x43, 0x86, 0x6a, 0xec, 0x06, 0xa1, 0x91, 0xe4, 0x35, 0x3f, 0x47, 0xa4, 0x3d, - 0xd4, 0x76, 0x56, 0x9d, 0x8c, 0x84, 0xa3, 0x0f, 0x81, 0x93, 0x1f, 0x02, 0x67, 0x5f, 0x72, 0xb1, - 0xe7, 0x6a, 0x7a, 0x5f, 0x7f, 0xb5, 0x1e, 0xfc, 0x03, 0x3d, 0xbd, 0xc0, 0xbb, 0x55, 0x8c, 0x78, - 0x96, 0x4e, 0xb8, 0x42, 0xac, 0x3a, 0x4d, 0xcc, 0xfe, 0x6e, 0x80, 0x79, 0x28, 0xe8, 0xec, 0xa8, - 0xff, 0x8a, 0x6f, 0xee, 0x7f, 0xf1, 0x99, 0x4f, 0x61, 0x2d, 0xdb, 0xd6, 0x81, 0x08, 0xa4, 0xa0, - 0x5c, 0x74, 0x4b, 0x58, 0xd9, 0xb1, 0x98, 0xf7, 0xee, 0xa6, 0x8a, 0xc3, 0x42, 0x50, 0xd0, 0x42, - 0x1b, 0xc1, 0x2c, 0x21, 0xce, 0x90, 0xe1, 0xfa, 0xa1, 0x73, 0xd7, 0x0f, 0xfd, 0x6c, 0x40, 0xcd, - 0x63, 0x01, 0x89, 0x88, 0x08, 0xb9, 0xe8, 0x9a, 0x1b, 0xb0, 0x84, 0x49, 0xe8, 0x4f, 0x5f, 0xce, - 0x3a, 0x26, 0xe1, 0xdb, 0xf1, 0xfd, 0xdc, 0x80, 0x25, 0x8a, 0x6a, 0x42, 0x94, 0x9d, 0xae, 0x3a, - 0x45, 0x55, 0x8a, 0x76, 0xa1, 0x4a, 0x62, 0x95, 0xc1, 0x9a, 0xf9, 0x06, 0xeb, 0xa5, 0xf6, 0x09, - 0xac, 0x14, 0xd6, 0x66, 0x61, 0xba, 0x0b, 0xf5, 0xa4, 0x4c, 0x54, 0xe0, 0x5c, 0xbf, 0x82, 0x73, - 0x22, 0xb6, 0x77, 0x69, 0xc5, 0xde, 0xcb, 0xd3, 0x0b, 0xcb, 0x38, 0xbb, 0xb0, 0x8c, 0xdf, 0x17, - 0x96, 0xf1, 0x69, 0x64, 0x55, 0xce, 0x46, 0x56, 0xe5, 0xc7, 0xc8, 0xaa, 0x1c, 0x6d, 0x4f, 0xf8, - 0x3f, 0x48, 0xff, 0x6f, 0xeb, 0x15, 0x09, 0xd0, 0xcd, 0x5f, 0xd2, 0xe1, 0x63, 0xf7, 0x5d, 0xf9, - 0x9c, 0xa6, 0x71, 0x82, 0x85, 0xf4, 0x11, 0x7c, 0xf4, 0x27, 0x00, 0x00, 0xff, 0xff, 0xdc, 0x33, - 0xcc, 0x76, 0x6e, 0x05, 0x00, 0x00, -} - -func (m *SplitDelegation) 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 *SplitDelegation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SplitDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.Amount.Size() - i -= size - if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintCallbacks(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.Validator) > 0 { - i -= len(m.Validator) - copy(dAtA[i:], m.Validator) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.Validator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DelegateCallback) 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 *DelegateCallback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DelegateCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SplitDelegations) > 0 { - for iNdEx := len(m.SplitDelegations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SplitDelegations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCallbacks(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.DepositRecordId != 0 { - i = encodeVarintCallbacks(dAtA, i, uint64(m.DepositRecordId)) - i-- - dAtA[i] = 0x10 - } - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ClaimCallback) 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 *ClaimCallback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClaimCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EpochNumber != 0 { - i = encodeVarintCallbacks(dAtA, i, uint64(m.EpochNumber)) - i-- - dAtA[i] = 0x18 - } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0x12 - } - if len(m.UserRedemptionRecordId) > 0 { - i -= len(m.UserRedemptionRecordId) - copy(dAtA[i:], m.UserRedemptionRecordId) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.UserRedemptionRecordId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ReinvestCallback) 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 *ReinvestCallback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReinvestCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0x1a - } - { - size, err := m.ReinvestAmount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCallbacks(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *UndelegateCallback) 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 *UndelegateCallback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UndelegateCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.EpochUnbondingRecordIds) > 0 { - dAtA3 := make([]byte, len(m.EpochUnbondingRecordIds)*10) - var j2 int - for _, num := range m.EpochUnbondingRecordIds { - for num >= 1<<7 { - dAtA3[j2] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j2++ - } - dAtA3[j2] = uint8(num) - j2++ - } - i -= j2 - copy(dAtA[i:], dAtA3[:j2]) - i = encodeVarintCallbacks(dAtA, i, uint64(j2)) - i-- - dAtA[i] = 0x1a - } - if len(m.SplitDelegations) > 0 { - for iNdEx := len(m.SplitDelegations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SplitDelegations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCallbacks(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RedemptionCallback) 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 *RedemptionCallback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RedemptionCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.EpochUnbondingRecordIds) > 0 { - dAtA5 := make([]byte, len(m.EpochUnbondingRecordIds)*10) - var j4 int - for _, num := range m.EpochUnbondingRecordIds { - for num >= 1<<7 { - dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j4++ - } - dAtA5[j4] = uint8(num) - j4++ - } - i -= j4 - copy(dAtA[i:], dAtA5[:j4]) - i = encodeVarintCallbacks(dAtA, i, uint64(j4)) - i-- - dAtA[i] = 0x12 - } - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Rebalancing) 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 *Rebalancing) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Rebalancing) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.Amt.Size() - i -= size - if _, err := m.Amt.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintCallbacks(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.DstValidator) > 0 { - i -= len(m.DstValidator) - copy(dAtA[i:], m.DstValidator) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.DstValidator))) - i-- - dAtA[i] = 0x12 - } - if len(m.SrcValidator) > 0 { - i -= len(m.SrcValidator) - copy(dAtA[i:], m.SrcValidator) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.SrcValidator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RebalanceCallback) 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 *RebalanceCallback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RebalanceCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Rebalancings) > 0 { - for iNdEx := len(m.Rebalancings) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rebalancings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCallbacks(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintCallbacks(dAtA []byte, offset int, v uint64) int { - offset -= sovCallbacks(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *SplitDelegation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Validator) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - l = m.Amount.Size() - n += 1 + l + sovCallbacks(uint64(l)) - return n -} - -func (m *DelegateCallback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - if m.DepositRecordId != 0 { - n += 1 + sovCallbacks(uint64(m.DepositRecordId)) - } - if len(m.SplitDelegations) > 0 { - for _, e := range m.SplitDelegations { - l = e.Size() - n += 1 + l + sovCallbacks(uint64(l)) - } - } - return n -} - -func (m *ClaimCallback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.UserRedemptionRecordId) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - if m.EpochNumber != 0 { - n += 1 + sovCallbacks(uint64(m.EpochNumber)) - } - return n -} - -func (m *ReinvestCallback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ReinvestAmount.Size() - n += 1 + l + sovCallbacks(uint64(l)) - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - return n -} - -func (m *UndelegateCallback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - if len(m.SplitDelegations) > 0 { - for _, e := range m.SplitDelegations { - l = e.Size() - n += 1 + l + sovCallbacks(uint64(l)) - } - } - if len(m.EpochUnbondingRecordIds) > 0 { - l = 0 - for _, e := range m.EpochUnbondingRecordIds { - l += sovCallbacks(uint64(e)) - } - n += 1 + sovCallbacks(uint64(l)) + l - } - return n -} - -func (m *RedemptionCallback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - if len(m.EpochUnbondingRecordIds) > 0 { - l = 0 - for _, e := range m.EpochUnbondingRecordIds { - l += sovCallbacks(uint64(e)) - } - n += 1 + sovCallbacks(uint64(l)) + l - } - return n -} - -func (m *Rebalancing) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SrcValidator) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - l = len(m.DstValidator) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - l = m.Amt.Size() - n += 1 + l + sovCallbacks(uint64(l)) - return n -} - -func (m *RebalanceCallback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovCallbacks(uint64(l)) - } - if len(m.Rebalancings) > 0 { - for _, e := range m.Rebalancings { - l = e.Size() - n += 1 + l + sovCallbacks(uint64(l)) - } - } - return n -} - -func sovCallbacks(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozCallbacks(x uint64) (n int) { - return sovCallbacks(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *SplitDelegation) 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 ErrIntOverflowCallbacks - } - 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: SplitDelegation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SplitDelegation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Validator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DelegateCallback) 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 ErrIntOverflowCallbacks - } - 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: DelegateCallback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DelegateCallback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositRecordId", wireType) - } - m.DepositRecordId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DepositRecordId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SplitDelegations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCallbacks - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SplitDelegations = append(m.SplitDelegations, &SplitDelegation{}) - if err := m.SplitDelegations[len(m.SplitDelegations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClaimCallback) 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 ErrIntOverflowCallbacks - } - 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: ClaimCallback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClaimCallback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecordId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserRedemptionRecordId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) - } - m.EpochNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EpochNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReinvestCallback) 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 ErrIntOverflowCallbacks - } - 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: ReinvestCallback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReinvestCallback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReinvestAmount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCallbacks - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ReinvestAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UndelegateCallback) 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 ErrIntOverflowCallbacks - } - 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: UndelegateCallback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UndelegateCallback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SplitDelegations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCallbacks - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SplitDelegations = append(m.SplitDelegations, &SplitDelegation{}) - if err := m.SplitDelegations[len(m.SplitDelegations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.EpochUnbondingRecordIds = append(m.EpochUnbondingRecordIds, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthCallbacks - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.EpochUnbondingRecordIds) == 0 { - m.EpochUnbondingRecordIds = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.EpochUnbondingRecordIds = append(m.EpochUnbondingRecordIds, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field EpochUnbondingRecordIds", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RedemptionCallback) 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 ErrIntOverflowCallbacks - } - 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: RedemptionCallback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RedemptionCallback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.EpochUnbondingRecordIds = append(m.EpochUnbondingRecordIds, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthCallbacks - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.EpochUnbondingRecordIds) == 0 { - m.EpochUnbondingRecordIds = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.EpochUnbondingRecordIds = append(m.EpochUnbondingRecordIds, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field EpochUnbondingRecordIds", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Rebalancing) 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 ErrIntOverflowCallbacks - } - 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: Rebalancing: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Rebalancing: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SrcValidator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SrcValidator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DstValidator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DstValidator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amt", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Amt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RebalanceCallback) 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 ErrIntOverflowCallbacks - } - 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: RebalanceCallback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RebalanceCallback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - 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 ErrInvalidLengthCallbacks - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rebalancings", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCallbacks - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthCallbacks - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCallbacks - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rebalancings = append(m.Rebalancings, &Rebalancing{}) - if err := m.Rebalancings[len(m.Rebalancings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCallbacks(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCallbacks - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipCallbacks(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, ErrIntOverflowCallbacks - } - 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, ErrIntOverflowCallbacks - } - 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, ErrIntOverflowCallbacks - } - 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, ErrInvalidLengthCallbacks - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupCallbacks - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthCallbacks - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthCallbacks = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowCallbacks = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupCallbacks = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/stakeibc/types/epoch_tracker.pb.go b/x/stakeibc/types/epoch_tracker.pb.go deleted file mode 100644 index 32bbd45dda..0000000000 --- a/x/stakeibc/types/epoch_tracker.pb.go +++ /dev/null @@ -1,427 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/stakeibc/epoch_tracker.proto - -package types - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - 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 - -type EpochTracker struct { - EpochIdentifier string `protobuf:"bytes,1,opt,name=epoch_identifier,json=epochIdentifier,proto3" json:"epoch_identifier,omitempty"` - EpochNumber uint64 `protobuf:"varint,2,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` - NextEpochStartTime uint64 `protobuf:"varint,3,opt,name=next_epoch_start_time,json=nextEpochStartTime,proto3" json:"next_epoch_start_time,omitempty"` - Duration uint64 `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"` -} - -func (m *EpochTracker) Reset() { *m = EpochTracker{} } -func (m *EpochTracker) String() string { return proto.CompactTextString(m) } -func (*EpochTracker) ProtoMessage() {} -func (*EpochTracker) Descriptor() ([]byte, []int) { - return fileDescriptor_e7c48143f24adf66, []int{0} -} -func (m *EpochTracker) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EpochTracker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EpochTracker.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 *EpochTracker) XXX_Merge(src proto.Message) { - xxx_messageInfo_EpochTracker.Merge(m, src) -} -func (m *EpochTracker) XXX_Size() int { - return m.Size() -} -func (m *EpochTracker) XXX_DiscardUnknown() { - xxx_messageInfo_EpochTracker.DiscardUnknown(m) -} - -var xxx_messageInfo_EpochTracker proto.InternalMessageInfo - -func (m *EpochTracker) GetEpochIdentifier() string { - if m != nil { - return m.EpochIdentifier - } - return "" -} - -func (m *EpochTracker) GetEpochNumber() uint64 { - if m != nil { - return m.EpochNumber - } - return 0 -} - -func (m *EpochTracker) GetNextEpochStartTime() uint64 { - if m != nil { - return m.NextEpochStartTime - } - return 0 -} - -func (m *EpochTracker) GetDuration() uint64 { - if m != nil { - return m.Duration - } - return 0 -} - -func init() { - proto.RegisterType((*EpochTracker)(nil), "stride.stakeibc.EpochTracker") -} - -func init() { - proto.RegisterFile("stride/stakeibc/epoch_tracker.proto", fileDescriptor_e7c48143f24adf66) -} - -var fileDescriptor_e7c48143f24adf66 = []byte{ - // 256 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2e, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0x2f, 0x2e, 0x49, 0xcc, 0x4e, 0xcd, 0x4c, 0x4a, 0xd6, 0x4f, 0x2d, 0xc8, 0x4f, - 0xce, 0x88, 0x2f, 0x29, 0x4a, 0x4c, 0xce, 0x4e, 0x2d, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, - 0xe2, 0x87, 0x28, 0xd2, 0x83, 0x29, 0x52, 0x5a, 0xcd, 0xc8, 0xc5, 0xe3, 0x0a, 0x52, 0x18, 0x02, - 0x51, 0x27, 0xa4, 0xc9, 0x25, 0x00, 0xd1, 0x98, 0x99, 0x92, 0x9a, 0x57, 0x92, 0x99, 0x96, 0x99, - 0x5a, 0x24, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0xc4, 0x0f, 0x16, 0xf7, 0x84, 0x0b, 0x0b, 0x29, - 0x72, 0xf1, 0x40, 0x94, 0xe6, 0x95, 0xe6, 0x26, 0xa5, 0x16, 0x49, 0x30, 0x29, 0x30, 0x6a, 0xb0, - 0x04, 0x71, 0x83, 0xc5, 0xfc, 0xc0, 0x42, 0x42, 0x86, 0x5c, 0xa2, 0x79, 0xa9, 0x15, 0x25, 0xf1, - 0x10, 0x75, 0xc5, 0x25, 0x89, 0x45, 0x25, 0xf1, 0x25, 0x99, 0xb9, 0xa9, 0x12, 0xcc, 0x60, 0xb5, - 0x42, 0x20, 0x49, 0xb0, 0xf5, 0xc1, 0x20, 0xa9, 0x90, 0xcc, 0xdc, 0x54, 0x21, 0x29, 0x2e, 0x8e, - 0x94, 0xd2, 0xa2, 0xc4, 0x92, 0xcc, 0xfc, 0x3c, 0x09, 0x16, 0xb0, 0x2a, 0x38, 0xdf, 0xc9, 0xfb, - 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, - 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x0c, 0xd3, 0x33, 0x4b, 0x32, 0x4a, - 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x83, 0xc1, 0x7e, 0xd4, 0xf5, 0x49, 0x4c, 0x2a, 0xd6, 0x87, - 0x06, 0x4a, 0x99, 0x99, 0x7e, 0x05, 0x22, 0x64, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, - 0x41, 0x62, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x22, 0x29, 0xe0, 0x26, 0x39, 0x01, 0x00, 0x00, -} - -func (m *EpochTracker) 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 *EpochTracker) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EpochTracker) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Duration != 0 { - i = encodeVarintEpochTracker(dAtA, i, uint64(m.Duration)) - i-- - dAtA[i] = 0x20 - } - if m.NextEpochStartTime != 0 { - i = encodeVarintEpochTracker(dAtA, i, uint64(m.NextEpochStartTime)) - i-- - dAtA[i] = 0x18 - } - if m.EpochNumber != 0 { - i = encodeVarintEpochTracker(dAtA, i, uint64(m.EpochNumber)) - i-- - dAtA[i] = 0x10 - } - if len(m.EpochIdentifier) > 0 { - i -= len(m.EpochIdentifier) - copy(dAtA[i:], m.EpochIdentifier) - i = encodeVarintEpochTracker(dAtA, i, uint64(len(m.EpochIdentifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintEpochTracker(dAtA []byte, offset int, v uint64) int { - offset -= sovEpochTracker(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *EpochTracker) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.EpochIdentifier) - if l > 0 { - n += 1 + l + sovEpochTracker(uint64(l)) - } - if m.EpochNumber != 0 { - n += 1 + sovEpochTracker(uint64(m.EpochNumber)) - } - if m.NextEpochStartTime != 0 { - n += 1 + sovEpochTracker(uint64(m.NextEpochStartTime)) - } - if m.Duration != 0 { - n += 1 + sovEpochTracker(uint64(m.Duration)) - } - return n -} - -func sovEpochTracker(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozEpochTracker(x uint64) (n int) { - return sovEpochTracker(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *EpochTracker) 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 ErrIntOverflowEpochTracker - } - 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: EpochTracker: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EpochTracker: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochIdentifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEpochTracker - } - 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 ErrInvalidLengthEpochTracker - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEpochTracker - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EpochIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) - } - m.EpochNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEpochTracker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EpochNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NextEpochStartTime", wireType) - } - m.NextEpochStartTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEpochTracker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NextEpochStartTime |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) - } - m.Duration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEpochTracker - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Duration |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipEpochTracker(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthEpochTracker - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipEpochTracker(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, ErrIntOverflowEpochTracker - } - 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, ErrIntOverflowEpochTracker - } - 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, ErrIntOverflowEpochTracker - } - 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, ErrInvalidLengthEpochTracker - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupEpochTracker - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthEpochTracker - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthEpochTracker = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEpochTracker = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupEpochTracker = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/stakeibc/types/genesis.pb.go b/x/stakeibc/types/genesis.pb.go deleted file mode 100644 index c65d47c08a..0000000000 --- a/x/stakeibc/types/genesis.pb.go +++ /dev/null @@ -1,506 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/stakeibc/genesis.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -// GenesisState defines the stakeibc module's genesis state. -type GenesisState struct { - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - // list of zones that are registered by the protocol - HostZoneList []HostZone `protobuf:"bytes,5,rep,name=host_zone_list,json=hostZoneList,proto3" json:"host_zone_list"` - EpochTrackerList []EpochTracker `protobuf:"bytes,10,rep,name=epoch_tracker_list,json=epochTrackerList,proto3" json:"epoch_tracker_list"` -} - -func (m *GenesisState) Reset() { *m = GenesisState{} } -func (m *GenesisState) String() string { return proto.CompactTextString(m) } -func (*GenesisState) ProtoMessage() {} -func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_dea81129ed6fb77a, []int{0} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func (m *GenesisState) GetPortId() string { - if m != nil { - return m.PortId - } - return "" -} - -func (m *GenesisState) GetHostZoneList() []HostZone { - if m != nil { - return m.HostZoneList - } - return nil -} - -func (m *GenesisState) GetEpochTrackerList() []EpochTracker { - if m != nil { - return m.EpochTrackerList - } - return nil -} - -func init() { - proto.RegisterType((*GenesisState)(nil), "stride.stakeibc.GenesisState") -} - -func init() { proto.RegisterFile("stride/stakeibc/genesis.proto", fileDescriptor_dea81129ed6fb77a) } - -var fileDescriptor_dea81129ed6fb77a = []byte{ - // 346 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xcd, 0x4e, 0xc2, 0x40, - 0x14, 0x85, 0x5b, 0x18, 0x4a, 0x19, 0x88, 0x36, 0x8d, 0x09, 0x48, 0xa4, 0x10, 0xdd, 0xb0, 0xb1, - 0x8d, 0x18, 0x7d, 0x00, 0x12, 0xa2, 0x56, 0x16, 0x0a, 0xae, 0xd8, 0x34, 0x6d, 0x99, 0xb4, 0x0d, - 0xc2, 0x34, 0x9d, 0xab, 0x51, 0x9f, 0xc2, 0x95, 0xcf, 0xc4, 0x92, 0xa5, 0x2b, 0x63, 0xe0, 0x45, - 0x4c, 0x3b, 0xe3, 0x5f, 0xd9, 0xcd, 0x9d, 0xf3, 0xe5, 0xbb, 0x27, 0x17, 0xb7, 0x18, 0x24, 0xd1, - 0x94, 0x58, 0x0c, 0xdc, 0x19, 0x89, 0x3c, 0xdf, 0x0a, 0xc8, 0x82, 0xb0, 0x88, 0x99, 0x71, 0x42, - 0x81, 0xea, 0xbb, 0x3c, 0x36, 0xbf, 0xe3, 0xe6, 0x5e, 0x40, 0x03, 0x9a, 0x65, 0x56, 0xfa, 0xe2, - 0x58, 0xf3, 0x20, 0x6f, 0x89, 0xdd, 0xc4, 0x9d, 0x0b, 0x49, 0xb3, 0x9d, 0x4f, 0x43, 0xca, 0xc0, - 0x79, 0xa1, 0x0b, 0x22, 0x80, 0xa3, 0x3c, 0x40, 0x62, 0xea, 0x87, 0x0e, 0x24, 0xae, 0x3f, 0x23, - 0x09, 0x87, 0x0e, 0xdf, 0x0a, 0xb8, 0x76, 0xc1, 0xcb, 0x8d, 0xc1, 0x05, 0xa2, 0x9f, 0x61, 0x85, - 0xaf, 0x69, 0xc8, 0x1d, 0xb9, 0x5b, 0xed, 0xd5, 0xcd, 0x5c, 0x59, 0xf3, 0x26, 0x8b, 0xfb, 0x68, - 0xf9, 0xd1, 0x96, 0x46, 0x02, 0xd6, 0xeb, 0xb8, 0x1c, 0xd3, 0x04, 0x9c, 0x68, 0xda, 0x28, 0x74, - 0xe4, 0x6e, 0x65, 0xa4, 0xa4, 0xe3, 0xd5, 0x54, 0x1f, 0xe0, 0x9d, 0x9f, 0x62, 0xce, 0x7d, 0xc4, - 0xa0, 0x51, 0xea, 0x14, 0xbb, 0xd5, 0xde, 0xfe, 0x96, 0xf7, 0x92, 0x32, 0x98, 0xd0, 0x05, 0x11, - 0xe6, 0x5a, 0x28, 0xe6, 0x61, 0xc4, 0x40, 0xbf, 0xc5, 0xfa, 0xbf, 0xfa, 0x5c, 0x85, 0x33, 0x55, - 0x6b, 0x4b, 0x35, 0x48, 0xd1, 0x3b, 0x4e, 0x0a, 0x9d, 0x46, 0xfe, 0xfc, 0xa5, 0x4a, 0x1b, 0xa9, - 0x45, 0x0d, 0xd9, 0x48, 0x45, 0x5a, 0xc9, 0x46, 0xaa, 0xa2, 0x95, 0x6d, 0xa4, 0x56, 0x34, 0x6c, - 0x23, 0xb5, 0xaa, 0xd5, 0xfa, 0xd7, 0xcb, 0xb5, 0x21, 0xaf, 0xd6, 0x86, 0xfc, 0xb9, 0x36, 0xe4, - 0xd7, 0x8d, 0x21, 0xad, 0x36, 0x86, 0xf4, 0xbe, 0x31, 0xa4, 0xc9, 0x49, 0x10, 0x41, 0xf8, 0xe0, - 0x99, 0x3e, 0x9d, 0x5b, 0xe3, 0x6c, 0xf1, 0xf1, 0xd0, 0xf5, 0x98, 0x25, 0xce, 0xfd, 0x78, 0x6e, - 0x3d, 0xfd, 0xde, 0x1c, 0x9e, 0x63, 0xc2, 0x3c, 0x25, 0x3b, 0xf6, 0xe9, 0x57, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x53, 0xc7, 0x78, 0x6e, 0x18, 0x02, 0x00, 0x00, -} - -func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.EpochTrackerList) > 0 { - for iNdEx := len(m.EpochTrackerList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.EpochTrackerList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - } - if len(m.HostZoneList) > 0 { - for iNdEx := len(m.HostZoneList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.HostZoneList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.PortId) > 0 { - i -= len(m.PortId) - copy(dAtA[i:], m.PortId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.PortId))) - i-- - dAtA[i] = 0x12 - } - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) - l = len(m.PortId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if len(m.HostZoneList) > 0 { - for _, e := range m.HostZoneList { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - if len(m.EpochTrackerList) > 0 { - for _, e := range m.EpochTrackerList { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GenesisState) 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 ErrIntOverflowGenesis - } - 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: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - 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 ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PortId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZoneList = append(m.HostZoneList, HostZone{}) - if err := m.HostZoneList[len(m.HostZoneList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochTrackerList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EpochTrackerList = append(m.EpochTrackerList, EpochTracker{}) - if err := m.EpochTrackerList[len(m.EpochTrackerList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrIntOverflowGenesis - } - 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, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/stakeibc/types/gov.pb.go b/x/stakeibc/types/gov.pb.go deleted file mode 100644 index ec32867c77..0000000000 --- a/x/stakeibc/types/gov.pb.go +++ /dev/null @@ -1,579 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/stakeibc/gov.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -type AddValidatorProposal struct { - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - HostZone string `protobuf:"bytes,3,opt,name=host_zone,json=hostZone,proto3" json:"host_zone,omitempty"` - ValidatorName string `protobuf:"bytes,4,opt,name=validator_name,json=validatorName,proto3" json:"validator_name,omitempty"` - ValidatorAddress string `protobuf:"bytes,5,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` - Deposit string `protobuf:"bytes,6,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"` -} - -func (m *AddValidatorProposal) Reset() { *m = AddValidatorProposal{} } -func (*AddValidatorProposal) ProtoMessage() {} -func (*AddValidatorProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_8204317b384c5680, []int{0} -} -func (m *AddValidatorProposal) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AddValidatorProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AddValidatorProposal.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 *AddValidatorProposal) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddValidatorProposal.Merge(m, src) -} -func (m *AddValidatorProposal) XXX_Size() int { - return m.Size() -} -func (m *AddValidatorProposal) XXX_DiscardUnknown() { - xxx_messageInfo_AddValidatorProposal.DiscardUnknown(m) -} - -var xxx_messageInfo_AddValidatorProposal proto.InternalMessageInfo - -func init() { - proto.RegisterType((*AddValidatorProposal)(nil), "stride.stakeibc.AddValidatorProposal") -} - -func init() { proto.RegisterFile("stride/stakeibc/gov.proto", fileDescriptor_8204317b384c5680) } - -var fileDescriptor_8204317b384c5680 = []byte{ - // 351 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2c, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0x2f, 0x2e, 0x49, 0xcc, 0x4e, 0xcd, 0x4c, 0x4a, 0xd6, 0x4f, 0xcf, 0x2f, 0xd3, - 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x87, 0x48, 0xe9, 0xc1, 0xa4, 0xa4, 0x24, 0x93, 0xf3, - 0x8b, 0x73, 0xf3, 0x8b, 0xe3, 0xc1, 0xd2, 0xfa, 0x10, 0x0e, 0x44, 0xad, 0x94, 0x48, 0x7a, 0x7e, - 0x7a, 0x3e, 0x44, 0x1c, 0xc4, 0x82, 0x88, 0x2a, 0x4d, 0x65, 0xe2, 0x12, 0x71, 0x4c, 0x49, 0x09, - 0x4b, 0xcc, 0xc9, 0x4c, 0x49, 0x2c, 0xc9, 0x2f, 0x0a, 0x28, 0xca, 0x2f, 0xc8, 0x2f, 0x4e, 0xcc, - 0x11, 0x12, 0xe1, 0x62, 0x2d, 0xc9, 0x2c, 0xc9, 0x49, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, - 0x82, 0x70, 0x84, 0x14, 0xb8, 0xb8, 0x53, 0x52, 0x8b, 0x93, 0x8b, 0x32, 0x0b, 0x4a, 0x32, 0xf3, - 0xf3, 0x24, 0x98, 0xc0, 0x72, 0xc8, 0x42, 0x42, 0xd2, 0x5c, 0x9c, 0x19, 0xf9, 0xc5, 0x25, 0xf1, - 0x55, 0xf9, 0x79, 0xa9, 0x12, 0xcc, 0x60, 0x79, 0x0e, 0x90, 0x40, 0x54, 0x7e, 0x5e, 0xaa, 0x90, - 0x2a, 0x17, 0x5f, 0x19, 0xcc, 0xa6, 0xf8, 0xbc, 0xc4, 0xdc, 0x54, 0x09, 0x16, 0xb0, 0x0a, 0x5e, - 0xb8, 0xa8, 0x5f, 0x62, 0x6e, 0xaa, 0x90, 0x2b, 0x97, 0x20, 0x42, 0x59, 0x62, 0x4a, 0x4a, 0x51, - 0x6a, 0x71, 0xb1, 0x04, 0x2b, 0x48, 0xa5, 0x93, 0xc4, 0xa5, 0x2d, 0xba, 0x22, 0x50, 0x7f, 0x39, - 0x42, 0x64, 0x82, 0x4b, 0x8a, 0x32, 0xf3, 0xd2, 0x83, 0x04, 0xe0, 0x5a, 0xa0, 0xe2, 0x42, 0x3a, - 0x5c, 0xec, 0x29, 0xa9, 0x05, 0xf9, 0xc5, 0x99, 0x25, 0x12, 0x6c, 0x60, 0xcd, 0x42, 0x9f, 0xee, - 0xc9, 0xf3, 0x55, 0x26, 0xe6, 0xe6, 0x58, 0x29, 0x41, 0x25, 0x94, 0x82, 0x60, 0x4a, 0xac, 0x78, - 0x3a, 0x16, 0xc8, 0x33, 0xcc, 0x58, 0x20, 0xcf, 0xf0, 0x62, 0x81, 0x3c, 0xa3, 0x93, 0xf7, 0x89, - 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, - 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x19, 0xa6, 0x67, 0x96, 0x64, 0x94, 0x26, - 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x07, 0x83, 0x83, 0x5f, 0xd7, 0x27, 0x31, 0xa9, 0x58, 0x1f, 0x1a, - 0x4b, 0x65, 0x66, 0xfa, 0x15, 0x88, 0xa8, 0x2a, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x87, - 0xb5, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x94, 0xbb, 0x6a, 0xe8, 0xca, 0x01, 0x00, 0x00, -} - -func (this *AddValidatorProposal) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*AddValidatorProposal) - if !ok { - that2, ok := that.(AddValidatorProposal) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Title != that1.Title { - return false - } - if this.Description != that1.Description { - return false - } - if this.HostZone != that1.HostZone { - return false - } - if this.ValidatorName != that1.ValidatorName { - return false - } - if this.ValidatorAddress != that1.ValidatorAddress { - return false - } - if this.Deposit != that1.Deposit { - return false - } - return true -} -func (m *AddValidatorProposal) 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 *AddValidatorProposal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AddValidatorProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Deposit) > 0 { - i -= len(m.Deposit) - copy(dAtA[i:], m.Deposit) - i = encodeVarintGov(dAtA, i, uint64(len(m.Deposit))) - i-- - dAtA[i] = 0x32 - } - if len(m.ValidatorAddress) > 0 { - i -= len(m.ValidatorAddress) - copy(dAtA[i:], m.ValidatorAddress) - i = encodeVarintGov(dAtA, i, uint64(len(m.ValidatorAddress))) - i-- - dAtA[i] = 0x2a - } - if len(m.ValidatorName) > 0 { - i -= len(m.ValidatorName) - copy(dAtA[i:], m.ValidatorName) - i = encodeVarintGov(dAtA, i, uint64(len(m.ValidatorName))) - i-- - dAtA[i] = 0x22 - } - if len(m.HostZone) > 0 { - i -= len(m.HostZone) - copy(dAtA[i:], m.HostZone) - i = encodeVarintGov(dAtA, i, uint64(len(m.HostZone))) - i-- - dAtA[i] = 0x1a - } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintGov(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintGov(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintGov(dAtA []byte, offset int, v uint64) int { - offset -= sovGov(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AddValidatorProposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Title) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.HostZone) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.ValidatorName) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.ValidatorAddress) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - l = len(m.Deposit) - if l > 0 { - n += 1 + l + sovGov(uint64(l)) - } - return n -} - -func sovGov(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGov(x uint64) (n int) { - return sovGov(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *AddValidatorProposal) 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 ErrIntOverflowGov - } - 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: AddValidatorProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddValidatorProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Title = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZone", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZone = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValidatorName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ValidatorName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ValidatorAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGov - } - 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 ErrInvalidLengthGov - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGov - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Deposit = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGov(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGov - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGov(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, ErrIntOverflowGov - } - 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, ErrIntOverflowGov - } - 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, ErrIntOverflowGov - } - 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, ErrInvalidLengthGov - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGov - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGov - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGov = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGov = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/stakeibc/types/host_zone.pb.go b/x/stakeibc/types/host_zone.pb.go deleted file mode 100644 index 5ebc416769..0000000000 --- a/x/stakeibc/types/host_zone.pb.go +++ /dev/null @@ -1,1349 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/stakeibc/host_zone.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -// next id: 22 -type HostZone struct { - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` - Bech32Prefix string `protobuf:"bytes,17,opt,name=bech32prefix,proto3" json:"bech32prefix,omitempty"` - TransferChannelId string `protobuf:"bytes,12,opt,name=transfer_channel_id,json=transferChannelId,proto3" json:"transfer_channel_id,omitempty"` - Validators []*Validator `protobuf:"bytes,3,rep,name=validators,proto3" json:"validators,omitempty"` - BlacklistedValidators []*Validator `protobuf:"bytes,4,rep,name=blacklisted_validators,json=blacklistedValidators,proto3" json:"blacklisted_validators,omitempty"` - WithdrawalAccount *ICAAccount `protobuf:"bytes,5,opt,name=withdrawal_account,json=withdrawalAccount,proto3" json:"withdrawal_account,omitempty"` - FeeAccount *ICAAccount `protobuf:"bytes,6,opt,name=fee_account,json=feeAccount,proto3" json:"fee_account,omitempty"` - DelegationAccount *ICAAccount `protobuf:"bytes,7,opt,name=delegation_account,json=delegationAccount,proto3" json:"delegation_account,omitempty"` - RedemptionAccount *ICAAccount `protobuf:"bytes,16,opt,name=redemption_account,json=redemptionAccount,proto3" json:"redemption_account,omitempty"` - // ibc denom on stride - IbcDenom string `protobuf:"bytes,8,opt,name=ibc_denom,json=ibcDenom,proto3" json:"ibc_denom,omitempty"` - // native denom on host zone - HostDenom string `protobuf:"bytes,9,opt,name=host_denom,json=hostDenom,proto3" json:"host_denom,omitempty"` - // TODO(TEST-68): Should we make this an array and store the last n redemption - // rates then calculate a TWARR? - LastRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,10,opt,name=last_redemption_rate,json=lastRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"last_redemption_rate"` - RedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,11,opt,name=redemption_rate,json=redemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"redemption_rate"` - // stores how many days we should wait before issuing unbondings - UnbondingFrequency uint64 `protobuf:"varint,14,opt,name=unbonding_frequency,json=unbondingFrequency,proto3" json:"unbonding_frequency,omitempty"` - // TODO(TEST-101) int to dec - StakedBal github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,13,opt,name=staked_bal,json=stakedBal,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"staked_bal"` - Address string `protobuf:"bytes,18,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` - Halted bool `protobuf:"varint,19,opt,name=halted,proto3" json:"halted,omitempty"` - MinRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,20,opt,name=min_redemption_rate,json=minRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"min_redemption_rate"` - MaxRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,21,opt,name=max_redemption_rate,json=maxRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_redemption_rate"` -} - -func (m *HostZone) Reset() { *m = HostZone{} } -func (m *HostZone) String() string { return proto.CompactTextString(m) } -func (*HostZone) ProtoMessage() {} -func (*HostZone) Descriptor() ([]byte, []int) { - return fileDescriptor_f81bf5b42c61245a, []int{0} -} -func (m *HostZone) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HostZone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HostZone.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 *HostZone) XXX_Merge(src proto.Message) { - xxx_messageInfo_HostZone.Merge(m, src) -} -func (m *HostZone) XXX_Size() int { - return m.Size() -} -func (m *HostZone) XXX_DiscardUnknown() { - xxx_messageInfo_HostZone.DiscardUnknown(m) -} - -var xxx_messageInfo_HostZone proto.InternalMessageInfo - -func (m *HostZone) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *HostZone) GetConnectionId() string { - if m != nil { - return m.ConnectionId - } - return "" -} - -func (m *HostZone) GetBech32Prefix() string { - if m != nil { - return m.Bech32Prefix - } - return "" -} - -func (m *HostZone) GetTransferChannelId() string { - if m != nil { - return m.TransferChannelId - } - return "" -} - -func (m *HostZone) GetValidators() []*Validator { - if m != nil { - return m.Validators - } - return nil -} - -func (m *HostZone) GetBlacklistedValidators() []*Validator { - if m != nil { - return m.BlacklistedValidators - } - return nil -} - -func (m *HostZone) GetWithdrawalAccount() *ICAAccount { - if m != nil { - return m.WithdrawalAccount - } - return nil -} - -func (m *HostZone) GetFeeAccount() *ICAAccount { - if m != nil { - return m.FeeAccount - } - return nil -} - -func (m *HostZone) GetDelegationAccount() *ICAAccount { - if m != nil { - return m.DelegationAccount - } - return nil -} - -func (m *HostZone) GetRedemptionAccount() *ICAAccount { - if m != nil { - return m.RedemptionAccount - } - return nil -} - -func (m *HostZone) GetIbcDenom() string { - if m != nil { - return m.IbcDenom - } - return "" -} - -func (m *HostZone) GetHostDenom() string { - if m != nil { - return m.HostDenom - } - return "" -} - -func (m *HostZone) GetUnbondingFrequency() uint64 { - if m != nil { - return m.UnbondingFrequency - } - return 0 -} - -func (m *HostZone) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *HostZone) GetHalted() bool { - if m != nil { - return m.Halted - } - return false -} - -func init() { - proto.RegisterType((*HostZone)(nil), "stride.stakeibc.HostZone") -} - -func init() { proto.RegisterFile("stride/stakeibc/host_zone.proto", fileDescriptor_f81bf5b42c61245a) } - -var fileDescriptor_f81bf5b42c61245a = []byte{ - // 671 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0x4f, 0x4f, 0xdb, 0x30, - 0x18, 0xc6, 0x9b, 0xc1, 0xa0, 0x75, 0xf9, 0x57, 0x17, 0x50, 0x00, 0xad, 0xed, 0x3a, 0x69, 0xea, - 0x61, 0xa4, 0x1a, 0x48, 0x3b, 0x20, 0x2e, 0xfc, 0xd1, 0xb4, 0xb2, 0xed, 0xb0, 0x4c, 0xe2, 0xc0, - 0x25, 0x72, 0xec, 0xb7, 0xad, 0x45, 0x6a, 0x77, 0xb1, 0x0b, 0x65, 0x1f, 0x61, 0xa7, 0x7d, 0x98, - 0x7d, 0x08, 0x8e, 0x68, 0xa7, 0x69, 0x07, 0x34, 0xc1, 0x37, 0xd8, 0x27, 0x98, 0xea, 0x24, 0x6d, - 0x68, 0x0f, 0x30, 0x89, 0x53, 0xe2, 0xf7, 0x79, 0xde, 0xdf, 0x63, 0xbd, 0x4e, 0x8c, 0xca, 0x4a, - 0x87, 0x9c, 0x41, 0x5d, 0x69, 0x72, 0x0a, 0xdc, 0xa7, 0xf5, 0xb6, 0x54, 0xda, 0xfb, 0x2a, 0x05, - 0x38, 0xdd, 0x50, 0x6a, 0x89, 0x17, 0x23, 0x83, 0x93, 0x18, 0xd6, 0x27, 0x3a, 0xce, 0x48, 0xc0, - 0x19, 0xd1, 0x32, 0x8c, 0x3a, 0xd6, 0x9f, 0x8f, 0x1b, 0x38, 0x25, 0x1e, 0xa1, 0x54, 0xf6, 0x84, - 0x8e, 0x2d, 0xcb, 0x2d, 0xd9, 0x92, 0xe6, 0xb5, 0x3e, 0x78, 0x8b, 0xab, 0x6b, 0x54, 0xaa, 0x8e, - 0x54, 0x5e, 0x24, 0x44, 0x8b, 0x48, 0xaa, 0x7e, 0x43, 0x28, 0xfb, 0x4e, 0x2a, 0x7d, 0x22, 0x05, - 0xe0, 0x35, 0x94, 0xa5, 0x6d, 0xc2, 0x85, 0xc7, 0x99, 0x6d, 0x55, 0xac, 0x5a, 0xce, 0x9d, 0x35, - 0xeb, 0x06, 0xc3, 0x2f, 0xd0, 0x3c, 0x95, 0x42, 0x00, 0xd5, 0x5c, 0x1a, 0xfd, 0x89, 0xd1, 0xe7, - 0x46, 0xc5, 0x06, 0xc3, 0x55, 0x34, 0xe7, 0x03, 0x6d, 0x6f, 0x6f, 0x75, 0x43, 0x68, 0xf2, 0xbe, - 0x5d, 0x88, 0x3c, 0xe9, 0x1a, 0x76, 0x50, 0x51, 0x87, 0x44, 0xa8, 0x26, 0x84, 0x1e, 0x6d, 0x13, - 0x21, 0x20, 0x18, 0xe0, 0xe6, 0x8c, 0xb5, 0x90, 0x48, 0x07, 0x91, 0xd2, 0x60, 0x78, 0x07, 0xa1, - 0xe1, 0x1c, 0x94, 0x3d, 0x55, 0x99, 0xaa, 0xe5, 0xb7, 0xd6, 0x9d, 0xb1, 0xd9, 0x39, 0xc7, 0x89, - 0xc5, 0x4d, 0xb9, 0xf1, 0x27, 0xb4, 0xea, 0x07, 0x84, 0x9e, 0x06, 0x5c, 0x69, 0x60, 0x5e, 0x8a, - 0x33, 0x7d, 0x2f, 0x67, 0x25, 0xd5, 0x79, 0x3c, 0x42, 0x1e, 0x21, 0x7c, 0xce, 0x75, 0x9b, 0x85, - 0xe4, 0x9c, 0x04, 0xc9, 0xf0, 0xed, 0xa7, 0x15, 0xab, 0x96, 0xdf, 0xda, 0x98, 0xc0, 0x35, 0x0e, - 0xf6, 0xf6, 0x22, 0x8b, 0x5b, 0x18, 0xb5, 0xc5, 0x25, 0xbc, 0x8b, 0xf2, 0x4d, 0x80, 0x21, 0x64, - 0xe6, 0x7e, 0x08, 0x6a, 0x02, 0x24, 0xdd, 0x47, 0x08, 0x33, 0x08, 0xa0, 0x45, 0xcc, 0x89, 0x24, - 0x90, 0xd9, 0x07, 0xec, 0x64, 0xd4, 0x96, 0x62, 0x85, 0xc0, 0xa0, 0xd3, 0xbd, 0xc3, 0x5a, 0x7a, - 0x00, 0x6b, 0xd4, 0x96, 0xb0, 0x36, 0x50, 0x8e, 0xfb, 0xd4, 0x63, 0x20, 0x64, 0xc7, 0xce, 0x9a, - 0x63, 0xcd, 0x72, 0x9f, 0x1e, 0x0e, 0xd6, 0xf8, 0x19, 0x42, 0xe6, 0x3f, 0x88, 0xd4, 0x9c, 0x51, - 0x73, 0x83, 0x4a, 0x24, 0x0b, 0xb4, 0x1c, 0x10, 0xa5, 0xbd, 0xd4, 0x66, 0x42, 0xa2, 0xc1, 0x46, - 0x03, 0xe3, 0xfe, 0xee, 0xe5, 0x75, 0x39, 0xf3, 0xfb, 0xba, 0xfc, 0xb2, 0xc5, 0x75, 0xbb, 0xe7, - 0x3b, 0x54, 0x76, 0xe2, 0x8f, 0x39, 0x7e, 0x6c, 0x2a, 0x76, 0x5a, 0xd7, 0x17, 0x5d, 0x50, 0xce, - 0x21, 0xd0, 0x9f, 0x3f, 0x36, 0x51, 0xfc, 0xad, 0x1f, 0x02, 0x75, 0xf1, 0x80, 0xec, 0x0e, 0xc1, - 0x2e, 0xd1, 0x80, 0x01, 0x2d, 0x8e, 0x47, 0xe5, 0x1f, 0x21, 0x6a, 0x21, 0xbc, 0x1b, 0x53, 0x47, - 0xc5, 0x9e, 0xf0, 0xa5, 0x60, 0x5c, 0xb4, 0xbc, 0x66, 0x08, 0x5f, 0x7a, 0x20, 0xe8, 0x85, 0xbd, - 0x50, 0xb1, 0x6a, 0xd3, 0x2e, 0x1e, 0x4a, 0x6f, 0x13, 0x05, 0x7f, 0x44, 0xc8, 0x4c, 0x9b, 0x79, - 0x3e, 0x09, 0xec, 0x79, 0xb3, 0x25, 0xe7, 0x3f, 0xb6, 0xd4, 0x10, 0xda, 0xcd, 0x45, 0x84, 0x7d, - 0x12, 0xe0, 0x57, 0x68, 0x96, 0x30, 0x16, 0x82, 0x52, 0x36, 0x36, 0x2c, 0xfc, 0xf7, 0xba, 0xbc, - 0x70, 0x41, 0x3a, 0xc1, 0x4e, 0x35, 0x16, 0xaa, 0x6e, 0x62, 0xc1, 0xab, 0x68, 0xa6, 0x4d, 0x02, - 0x0d, 0xcc, 0x2e, 0x56, 0xac, 0x5a, 0xd6, 0x8d, 0x57, 0x38, 0x40, 0xc5, 0x0e, 0x17, 0x13, 0x67, - 0xb3, 0xfc, 0x08, 0x03, 0x2b, 0x74, 0xb8, 0x18, 0x3b, 0x9a, 0x41, 0x1a, 0xe9, 0x4f, 0xa4, 0xad, - 0x3c, 0x4a, 0x1a, 0xe9, 0xdf, 0x4d, 0x3b, 0x9a, 0xce, 0x2e, 0x2e, 0x2d, 0xed, 0xbf, 0xbf, 0xbc, - 0x29, 0x59, 0x57, 0x37, 0x25, 0xeb, 0xcf, 0x4d, 0xc9, 0xfa, 0x7e, 0x5b, 0xca, 0x5c, 0xdd, 0x96, - 0x32, 0xbf, 0x6e, 0x4b, 0x99, 0x93, 0xd7, 0xa9, 0xa0, 0xcf, 0xe6, 0x77, 0xd8, 0xfc, 0x40, 0x7c, - 0x55, 0x8f, 0x6f, 0xe4, 0xb3, 0x37, 0xf5, 0xfe, 0xe8, 0x5a, 0x36, 0xb9, 0xfe, 0x8c, 0xb9, 0x60, - 0xb7, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xe6, 0xc3, 0xd9, 0xbb, 0x09, 0x06, 0x00, 0x00, -} - -func (m *HostZone) 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 *HostZone) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HostZone) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.MaxRedemptionRate.Size() - i -= size - if _, err := m.MaxRedemptionRate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa - { - size := m.MinRedemptionRate.Size() - i -= size - if _, err := m.MinRedemptionRate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 - if m.Halted { - i-- - if m.Halted { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x98 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintHostZone(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - } - if len(m.Bech32Prefix) > 0 { - i -= len(m.Bech32Prefix) - copy(dAtA[i:], m.Bech32Prefix) - i = encodeVarintHostZone(dAtA, i, uint64(len(m.Bech32Prefix))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - if m.RedemptionAccount != nil { - { - size, err := m.RedemptionAccount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - if m.UnbondingFrequency != 0 { - i = encodeVarintHostZone(dAtA, i, uint64(m.UnbondingFrequency)) - i-- - dAtA[i] = 0x70 - } - { - size := m.StakedBal.Size() - i -= size - if _, err := m.StakedBal.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - if len(m.TransferChannelId) > 0 { - i -= len(m.TransferChannelId) - copy(dAtA[i:], m.TransferChannelId) - i = encodeVarintHostZone(dAtA, i, uint64(len(m.TransferChannelId))) - i-- - dAtA[i] = 0x62 - } - { - size := m.RedemptionRate.Size() - i -= size - if _, err := m.RedemptionRate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - { - size := m.LastRedemptionRate.Size() - i -= size - if _, err := m.LastRedemptionRate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - if len(m.HostDenom) > 0 { - i -= len(m.HostDenom) - copy(dAtA[i:], m.HostDenom) - i = encodeVarintHostZone(dAtA, i, uint64(len(m.HostDenom))) - i-- - dAtA[i] = 0x4a - } - if len(m.IbcDenom) > 0 { - i -= len(m.IbcDenom) - copy(dAtA[i:], m.IbcDenom) - i = encodeVarintHostZone(dAtA, i, uint64(len(m.IbcDenom))) - i-- - dAtA[i] = 0x42 - } - if m.DelegationAccount != nil { - { - size, err := m.DelegationAccount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.FeeAccount != nil { - { - size, err := m.FeeAccount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.WithdrawalAccount != nil { - { - size, err := m.WithdrawalAccount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.BlacklistedValidators) > 0 { - for iNdEx := len(m.BlacklistedValidators) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.BlacklistedValidators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.Validators) > 0 { - for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintHostZone(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.ConnectionId) > 0 { - i -= len(m.ConnectionId) - copy(dAtA[i:], m.ConnectionId) - i = encodeVarintHostZone(dAtA, i, uint64(len(m.ConnectionId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintHostZone(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintHostZone(dAtA []byte, offset int, v uint64) int { - offset -= sovHostZone(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *HostZone) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovHostZone(uint64(l)) - } - l = len(m.ConnectionId) - if l > 0 { - n += 1 + l + sovHostZone(uint64(l)) - } - if len(m.Validators) > 0 { - for _, e := range m.Validators { - l = e.Size() - n += 1 + l + sovHostZone(uint64(l)) - } - } - if len(m.BlacklistedValidators) > 0 { - for _, e := range m.BlacklistedValidators { - l = e.Size() - n += 1 + l + sovHostZone(uint64(l)) - } - } - if m.WithdrawalAccount != nil { - l = m.WithdrawalAccount.Size() - n += 1 + l + sovHostZone(uint64(l)) - } - if m.FeeAccount != nil { - l = m.FeeAccount.Size() - n += 1 + l + sovHostZone(uint64(l)) - } - if m.DelegationAccount != nil { - l = m.DelegationAccount.Size() - n += 1 + l + sovHostZone(uint64(l)) - } - l = len(m.IbcDenom) - if l > 0 { - n += 1 + l + sovHostZone(uint64(l)) - } - l = len(m.HostDenom) - if l > 0 { - n += 1 + l + sovHostZone(uint64(l)) - } - l = m.LastRedemptionRate.Size() - n += 1 + l + sovHostZone(uint64(l)) - l = m.RedemptionRate.Size() - n += 1 + l + sovHostZone(uint64(l)) - l = len(m.TransferChannelId) - if l > 0 { - n += 1 + l + sovHostZone(uint64(l)) - } - l = m.StakedBal.Size() - n += 1 + l + sovHostZone(uint64(l)) - if m.UnbondingFrequency != 0 { - n += 1 + sovHostZone(uint64(m.UnbondingFrequency)) - } - if m.RedemptionAccount != nil { - l = m.RedemptionAccount.Size() - n += 2 + l + sovHostZone(uint64(l)) - } - l = len(m.Bech32Prefix) - if l > 0 { - n += 2 + l + sovHostZone(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 2 + l + sovHostZone(uint64(l)) - } - if m.Halted { - n += 3 - } - l = m.MinRedemptionRate.Size() - n += 2 + l + sovHostZone(uint64(l)) - l = m.MaxRedemptionRate.Size() - n += 2 + l + sovHostZone(uint64(l)) - return n -} - -func sovHostZone(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozHostZone(x uint64) (n int) { - return sovHostZone(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *HostZone) 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 ErrIntOverflowHostZone - } - 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: HostZone: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HostZone: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConnectionId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHostZone - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Validators = append(m.Validators, &Validator{}) - if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlacklistedValidators", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHostZone - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BlacklistedValidators = append(m.BlacklistedValidators, &Validator{}) - if err := m.BlacklistedValidators[len(m.BlacklistedValidators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WithdrawalAccount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHostZone - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WithdrawalAccount == nil { - m.WithdrawalAccount = &ICAAccount{} - } - if err := m.WithdrawalAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FeeAccount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHostZone - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FeeAccount == nil { - m.FeeAccount = &ICAAccount{} - } - if err := m.FeeAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DelegationAccount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHostZone - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DelegationAccount == nil { - m.DelegationAccount = &ICAAccount{} - } - if err := m.DelegationAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IbcDenom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IbcDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostDenom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastRedemptionRate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastRedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RedemptionRate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TransferChannelId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TransferChannelId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StakedBal", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.StakedBal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UnbondingFrequency", wireType) - } - m.UnbondingFrequency = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UnbondingFrequency |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RedemptionAccount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthHostZone - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RedemptionAccount == nil { - m.RedemptionAccount = &ICAAccount{} - } - if err := m.RedemptionAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Bech32Prefix", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Bech32Prefix = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 19: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Halted", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Halted = bool(v != 0) - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MinRedemptionRate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.MinRedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxRedemptionRate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHostZone - } - 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 ErrInvalidLengthHostZone - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthHostZone - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.MaxRedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHostZone(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthHostZone - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipHostZone(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, ErrIntOverflowHostZone - } - 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, ErrIntOverflowHostZone - } - 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, ErrIntOverflowHostZone - } - 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, ErrInvalidLengthHostZone - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupHostZone - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthHostZone - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthHostZone = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowHostZone = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupHostZone = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/stakeibc/types/ica_account.pb.go b/x/stakeibc/types/ica_account.pb.go deleted file mode 100644 index 67dc487bfb..0000000000 --- a/x/stakeibc/types/ica_account.pb.go +++ /dev/null @@ -1,391 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/stakeibc/ica_account.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - proto "github.com/gogo/protobuf/proto" - 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 - -type ICAAccountType int32 - -const ( - ICAAccountType_DELEGATION ICAAccountType = 0 - ICAAccountType_FEE ICAAccountType = 1 - ICAAccountType_WITHDRAWAL ICAAccountType = 2 - ICAAccountType_REDEMPTION ICAAccountType = 3 -) - -var ICAAccountType_name = map[int32]string{ - 0: "DELEGATION", - 1: "FEE", - 2: "WITHDRAWAL", - 3: "REDEMPTION", -} - -var ICAAccountType_value = map[string]int32{ - "DELEGATION": 0, - "FEE": 1, - "WITHDRAWAL": 2, - "REDEMPTION": 3, -} - -func (x ICAAccountType) String() string { - return proto.EnumName(ICAAccountType_name, int32(x)) -} - -func (ICAAccountType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2976ae6e7f6ce824, []int{0} -} - -type ICAAccount struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Target ICAAccountType `protobuf:"varint,3,opt,name=target,proto3,enum=stride.stakeibc.ICAAccountType" json:"target,omitempty"` -} - -func (m *ICAAccount) Reset() { *m = ICAAccount{} } -func (m *ICAAccount) String() string { return proto.CompactTextString(m) } -func (*ICAAccount) ProtoMessage() {} -func (*ICAAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_2976ae6e7f6ce824, []int{0} -} -func (m *ICAAccount) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ICAAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ICAAccount.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 *ICAAccount) XXX_Merge(src proto.Message) { - xxx_messageInfo_ICAAccount.Merge(m, src) -} -func (m *ICAAccount) XXX_Size() int { - return m.Size() -} -func (m *ICAAccount) XXX_DiscardUnknown() { - xxx_messageInfo_ICAAccount.DiscardUnknown(m) -} - -var xxx_messageInfo_ICAAccount proto.InternalMessageInfo - -func (m *ICAAccount) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *ICAAccount) GetTarget() ICAAccountType { - if m != nil { - return m.Target - } - return ICAAccountType_DELEGATION -} - -func init() { - proto.RegisterEnum("stride.stakeibc.ICAAccountType", ICAAccountType_name, ICAAccountType_value) - proto.RegisterType((*ICAAccount)(nil), "stride.stakeibc.ICAAccount") -} - -func init() { proto.RegisterFile("stride/stakeibc/ica_account.proto", fileDescriptor_2976ae6e7f6ce824) } - -var fileDescriptor_2976ae6e7f6ce824 = []byte{ - // 291 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0x2f, 0x2e, 0x49, 0xcc, 0x4e, 0xcd, 0x4c, 0x4a, 0xd6, 0xcf, 0x4c, 0x4e, 0x8c, - 0x4f, 0x4c, 0x4e, 0xce, 0x2f, 0xcd, 0x2b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x87, - 0x28, 0xd1, 0x83, 0x29, 0x91, 0x92, 0x4c, 0xce, 0x2f, 0xce, 0xcd, 0x2f, 0x8e, 0x07, 0x4b, 0xeb, - 0x43, 0x38, 0x10, 0xb5, 0x4a, 0xf5, 0x5c, 0x5c, 0x9e, 0xce, 0x8e, 0x8e, 0x10, 0xfd, 0x42, 0x46, - 0x5c, 0xec, 0x89, 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x4e, - 0x12, 0x97, 0xb6, 0xe8, 0x8a, 0x40, 0x35, 0x38, 0x42, 0x64, 0x82, 0x4b, 0x8a, 0x32, 0xf3, 0xd2, - 0x83, 0x60, 0x0a, 0x85, 0xcc, 0xb9, 0xd8, 0x4a, 0x12, 0x8b, 0xd2, 0x53, 0x4b, 0x24, 0x98, 0x15, - 0x18, 0x35, 0xf8, 0x8c, 0xe4, 0xf5, 0xd0, 0xac, 0xd7, 0x43, 0x58, 0x10, 0x52, 0x59, 0x90, 0x1a, - 0x04, 0x55, 0xee, 0xc5, 0xc2, 0xc1, 0x24, 0xc0, 0xac, 0xe5, 0xc9, 0xc5, 0x87, 0x2a, 0x2f, 0xc4, - 0xc7, 0xc5, 0xe5, 0xe2, 0xea, 0xe3, 0xea, 0xee, 0x18, 0xe2, 0xe9, 0xef, 0x27, 0xc0, 0x20, 0xc4, - 0xce, 0xc5, 0xec, 0xe6, 0xea, 0x2a, 0xc0, 0x08, 0x92, 0x08, 0xf7, 0x0c, 0xf1, 0x70, 0x09, 0x72, - 0x0c, 0x77, 0xf4, 0x11, 0x60, 0x02, 0xf1, 0x83, 0x5c, 0x5d, 0x5c, 0x7d, 0x03, 0xc0, 0x0a, 0x99, - 0x9d, 0xbc, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, - 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x30, 0x3d, 0xb3, - 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, 0x18, 0xec, 0x3a, 0x5d, 0x9f, 0xc4, 0xa4, - 0x62, 0x7d, 0x68, 0x58, 0x96, 0x99, 0xe9, 0x57, 0x20, 0x02, 0xb4, 0xa4, 0xb2, 0x20, 0xb5, 0x38, - 0x89, 0x0d, 0x1c, 0x3e, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf5, 0xd6, 0xc3, 0x5f, 0x70, - 0x01, 0x00, 0x00, -} - -func (m *ICAAccount) 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 *ICAAccount) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ICAAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Target != 0 { - i = encodeVarintIcaAccount(dAtA, i, uint64(m.Target)) - i-- - dAtA[i] = 0x18 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintIcaAccount(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintIcaAccount(dAtA []byte, offset int, v uint64) int { - offset -= sovIcaAccount(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ICAAccount) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovIcaAccount(uint64(l)) - } - if m.Target != 0 { - n += 1 + sovIcaAccount(uint64(m.Target)) - } - return n -} - -func sovIcaAccount(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozIcaAccount(x uint64) (n int) { - return sovIcaAccount(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ICAAccount) 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 ErrIntOverflowIcaAccount - } - 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: ICAAccount: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ICAAccount: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowIcaAccount - } - 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 ErrInvalidLengthIcaAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthIcaAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - m.Target = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowIcaAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Target |= ICAAccountType(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipIcaAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthIcaAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipIcaAccount(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, ErrIntOverflowIcaAccount - } - 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, ErrIntOverflowIcaAccount - } - 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, ErrIntOverflowIcaAccount - } - 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, ErrInvalidLengthIcaAccount - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupIcaAccount - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthIcaAccount - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthIcaAccount = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowIcaAccount = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupIcaAccount = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/stakeibc/types/packet.pb.go b/x/stakeibc/types/packet.pb.go deleted file mode 100644 index 0bf9d4e9d5..0000000000 --- a/x/stakeibc/types/packet.pb.go +++ /dev/null @@ -1,500 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/stakeibc/packet.proto - -package types - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - 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 - -type StakeibcPacketData struct { - // Types that are valid to be assigned to Packet: - // *StakeibcPacketData_NoData - Packet isStakeibcPacketData_Packet `protobuf_oneof:"packet"` -} - -func (m *StakeibcPacketData) Reset() { *m = StakeibcPacketData{} } -func (m *StakeibcPacketData) String() string { return proto.CompactTextString(m) } -func (*StakeibcPacketData) ProtoMessage() {} -func (*StakeibcPacketData) Descriptor() ([]byte, []int) { - return fileDescriptor_a86fa6a12773333f, []int{0} -} -func (m *StakeibcPacketData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StakeibcPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StakeibcPacketData.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 *StakeibcPacketData) XXX_Merge(src proto.Message) { - xxx_messageInfo_StakeibcPacketData.Merge(m, src) -} -func (m *StakeibcPacketData) XXX_Size() int { - return m.Size() -} -func (m *StakeibcPacketData) XXX_DiscardUnknown() { - xxx_messageInfo_StakeibcPacketData.DiscardUnknown(m) -} - -var xxx_messageInfo_StakeibcPacketData proto.InternalMessageInfo - -type isStakeibcPacketData_Packet interface { - isStakeibcPacketData_Packet() - MarshalTo([]byte) (int, error) - Size() int -} - -type StakeibcPacketData_NoData struct { - NoData *NoData `protobuf:"bytes,1,opt,name=no_data,json=noData,proto3,oneof" json:"no_data,omitempty"` -} - -func (*StakeibcPacketData_NoData) isStakeibcPacketData_Packet() {} - -func (m *StakeibcPacketData) GetPacket() isStakeibcPacketData_Packet { - if m != nil { - return m.Packet - } - return nil -} - -func (m *StakeibcPacketData) GetNoData() *NoData { - if x, ok := m.GetPacket().(*StakeibcPacketData_NoData); ok { - return x.NoData - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*StakeibcPacketData) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*StakeibcPacketData_NoData)(nil), - } -} - -type NoData struct { -} - -func (m *NoData) Reset() { *m = NoData{} } -func (m *NoData) String() string { return proto.CompactTextString(m) } -func (*NoData) ProtoMessage() {} -func (*NoData) Descriptor() ([]byte, []int) { - return fileDescriptor_a86fa6a12773333f, []int{1} -} -func (m *NoData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NoData.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 *NoData) XXX_Merge(src proto.Message) { - xxx_messageInfo_NoData.Merge(m, src) -} -func (m *NoData) XXX_Size() int { - return m.Size() -} -func (m *NoData) XXX_DiscardUnknown() { - xxx_messageInfo_NoData.DiscardUnknown(m) -} - -var xxx_messageInfo_NoData proto.InternalMessageInfo - -func init() { - proto.RegisterType((*StakeibcPacketData)(nil), "stride.stakeibc.StakeibcPacketData") - proto.RegisterType((*NoData)(nil), "stride.stakeibc.NoData") -} - -func init() { proto.RegisterFile("stride/stakeibc/packet.proto", fileDescriptor_a86fa6a12773333f) } - -var fileDescriptor_a86fa6a12773333f = []byte{ - // 189 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x29, 0x2e, 0x29, 0xca, - 0x4c, 0x49, 0xd5, 0x2f, 0x2e, 0x49, 0xcc, 0x4e, 0xcd, 0x4c, 0x4a, 0xd6, 0x2f, 0x48, 0x4c, 0xce, - 0x4e, 0x2d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x87, 0xc8, 0xea, 0xc1, 0x64, 0x95, - 0x82, 0xb8, 0x84, 0x82, 0xa1, 0xec, 0x00, 0xb0, 0x42, 0x97, 0xc4, 0x92, 0x44, 0x21, 0x23, 0x2e, - 0xf6, 0xbc, 0xfc, 0xf8, 0x94, 0xc4, 0x92, 0x44, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x71, - 0x3d, 0x34, 0x8d, 0x7a, 0x7e, 0xf9, 0x20, 0x95, 0x1e, 0x0c, 0x41, 0x6c, 0x79, 0x60, 0x96, 0x13, - 0x07, 0x17, 0x1b, 0xc4, 0x2a, 0x25, 0x0e, 0x2e, 0x36, 0x88, 0xac, 0x93, 0xf7, 0x89, 0x47, 0x72, - 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, - 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x19, 0xa6, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, - 0xe7, 0xe7, 0xea, 0x07, 0x83, 0x8d, 0xd6, 0xf5, 0x49, 0x4c, 0x2a, 0xd6, 0x87, 0xba, 0xbe, 0xcc, - 0x4c, 0xbf, 0x02, 0xe1, 0x85, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0x17, 0x8c, 0x01, - 0x01, 0x00, 0x00, 0xff, 0xff, 0x4d, 0x8c, 0xa9, 0x46, 0xe2, 0x00, 0x00, 0x00, -} - -func (m *StakeibcPacketData) 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 *StakeibcPacketData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StakeibcPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Packet != nil { - { - size := m.Packet.Size() - i -= size - if _, err := m.Packet.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *StakeibcPacketData_NoData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StakeibcPacketData_NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.NoData != nil { - { - size, err := m.NoData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPacket(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *NoData) 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 *NoData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintPacket(dAtA []byte, offset int, v uint64) int { - offset -= sovPacket(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *StakeibcPacketData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Packet != nil { - n += m.Packet.Size() - } - return n -} - -func (m *StakeibcPacketData_NoData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NoData != nil { - l = m.NoData.Size() - n += 1 + l + sovPacket(uint64(l)) - } - return n -} -func (m *NoData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovPacket(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozPacket(x uint64) (n int) { - return sovPacket(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *StakeibcPacketData) 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 ErrIntOverflowPacket - } - 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: StakeibcPacketData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StakeibcPacketData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NoData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPacket - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPacket - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPacket - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &NoData{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Packet = &StakeibcPacketData_NoData{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPacket(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPacket - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NoData) 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 ErrIntOverflowPacket - } - 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: NoData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NoData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipPacket(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPacket - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipPacket(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, ErrIntOverflowPacket - } - 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, ErrIntOverflowPacket - } - 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, ErrIntOverflowPacket - } - 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, ErrInvalidLengthPacket - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupPacket - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthPacket - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthPacket = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowPacket = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/stakeibc/types/params.pb.go b/x/stakeibc/types/params.pb.go deleted file mode 100644 index d790db0f70..0000000000 --- a/x/stakeibc/types/params.pb.go +++ /dev/null @@ -1,1066 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/stakeibc/params.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -// Params defines the parameters for the module. -// next id: 18 -type Params struct { - // define epoch lengths, in stride_epochs - RewardsInterval uint64 `protobuf:"varint,1,opt,name=rewards_interval,json=rewardsInterval,proto3" json:"rewards_interval,omitempty"` - DelegateInterval uint64 `protobuf:"varint,6,opt,name=delegate_interval,json=delegateInterval,proto3" json:"delegate_interval,omitempty"` - DepositInterval uint64 `protobuf:"varint,2,opt,name=deposit_interval,json=depositInterval,proto3" json:"deposit_interval,omitempty"` - RedemptionRateInterval uint64 `protobuf:"varint,3,opt,name=redemption_rate_interval,json=redemptionRateInterval,proto3" json:"redemption_rate_interval,omitempty"` - StrideCommission uint64 `protobuf:"varint,4,opt,name=stride_commission,json=strideCommission,proto3" json:"stride_commission,omitempty"` - // zone_com_address stores which addresses to - // send the Stride commission too, as well as what portion - // of the fee each address is entitled to - // TODO implement this - ZoneComAddress map[string]string `protobuf:"bytes,5,rep,name=zone_com_address,json=zoneComAddress,proto3" json:"zone_com_address,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - ReinvestInterval uint64 `protobuf:"varint,7,opt,name=reinvest_interval,json=reinvestInterval,proto3" json:"reinvest_interval,omitempty"` - ValidatorRebalancingThreshold uint64 `protobuf:"varint,8,opt,name=validator_rebalancing_threshold,json=validatorRebalancingThreshold,proto3" json:"validator_rebalancing_threshold,omitempty"` - IcaTimeoutNanos uint64 `protobuf:"varint,9,opt,name=ica_timeout_nanos,json=icaTimeoutNanos,proto3" json:"ica_timeout_nanos,omitempty"` - BufferSize uint64 `protobuf:"varint,10,opt,name=buffer_size,json=bufferSize,proto3" json:"buffer_size,omitempty"` - IbcTimeoutBlocks uint64 `protobuf:"varint,11,opt,name=ibc_timeout_blocks,json=ibcTimeoutBlocks,proto3" json:"ibc_timeout_blocks,omitempty"` - FeeTransferTimeoutNanos uint64 `protobuf:"varint,12,opt,name=fee_transfer_timeout_nanos,json=feeTransferTimeoutNanos,proto3" json:"fee_transfer_timeout_nanos,omitempty"` - MaxStakeIcaCallsPerEpoch uint64 `protobuf:"varint,13,opt,name=max_stake_ica_calls_per_epoch,json=maxStakeIcaCallsPerEpoch,proto3" json:"max_stake_ica_calls_per_epoch,omitempty"` - DefaultMinRedemptionRateThreshold uint64 `protobuf:"varint,14,opt,name=default_min_redemption_rate_threshold,json=defaultMinRedemptionRateThreshold,proto3" json:"default_min_redemption_rate_threshold,omitempty"` - DefaultMaxRedemptionRateThreshold uint64 `protobuf:"varint,15,opt,name=default_max_redemption_rate_threshold,json=defaultMaxRedemptionRateThreshold,proto3" json:"default_max_redemption_rate_threshold,omitempty"` - IbcTransferTimeoutNanos uint64 `protobuf:"varint,16,opt,name=ibc_transfer_timeout_nanos,json=ibcTransferTimeoutNanos,proto3" json:"ibc_transfer_timeout_nanos,omitempty"` - SafetyNumValidators uint64 `protobuf:"varint,17,opt,name=safety_num_validators,json=safetyNumValidators,proto3" json:"safety_num_validators,omitempty"` - SafetyMaxSlashPercent uint64 `protobuf:"varint,18,opt,name=safety_max_slash_percent,json=safetyMaxSlashPercent,proto3" json:"safety_max_slash_percent,omitempty"` -} - -func (m *Params) Reset() { *m = Params{} } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_5aeaab6a38c2b438, []int{0} -} -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} -func (m *Params) XXX_Size() int { - return m.Size() -} -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -func (m *Params) GetRewardsInterval() uint64 { - if m != nil { - return m.RewardsInterval - } - return 0 -} - -func (m *Params) GetDelegateInterval() uint64 { - if m != nil { - return m.DelegateInterval - } - return 0 -} - -func (m *Params) GetDepositInterval() uint64 { - if m != nil { - return m.DepositInterval - } - return 0 -} - -func (m *Params) GetRedemptionRateInterval() uint64 { - if m != nil { - return m.RedemptionRateInterval - } - return 0 -} - -func (m *Params) GetStrideCommission() uint64 { - if m != nil { - return m.StrideCommission - } - return 0 -} - -func (m *Params) GetZoneComAddress() map[string]string { - if m != nil { - return m.ZoneComAddress - } - return nil -} - -func (m *Params) GetReinvestInterval() uint64 { - if m != nil { - return m.ReinvestInterval - } - return 0 -} - -func (m *Params) GetValidatorRebalancingThreshold() uint64 { - if m != nil { - return m.ValidatorRebalancingThreshold - } - return 0 -} - -func (m *Params) GetIcaTimeoutNanos() uint64 { - if m != nil { - return m.IcaTimeoutNanos - } - return 0 -} - -func (m *Params) GetBufferSize() uint64 { - if m != nil { - return m.BufferSize - } - return 0 -} - -func (m *Params) GetIbcTimeoutBlocks() uint64 { - if m != nil { - return m.IbcTimeoutBlocks - } - return 0 -} - -func (m *Params) GetFeeTransferTimeoutNanos() uint64 { - if m != nil { - return m.FeeTransferTimeoutNanos - } - return 0 -} - -func (m *Params) GetMaxStakeIcaCallsPerEpoch() uint64 { - if m != nil { - return m.MaxStakeIcaCallsPerEpoch - } - return 0 -} - -func (m *Params) GetDefaultMinRedemptionRateThreshold() uint64 { - if m != nil { - return m.DefaultMinRedemptionRateThreshold - } - return 0 -} - -func (m *Params) GetDefaultMaxRedemptionRateThreshold() uint64 { - if m != nil { - return m.DefaultMaxRedemptionRateThreshold - } - return 0 -} - -func (m *Params) GetIbcTransferTimeoutNanos() uint64 { - if m != nil { - return m.IbcTransferTimeoutNanos - } - return 0 -} - -func (m *Params) GetSafetyNumValidators() uint64 { - if m != nil { - return m.SafetyNumValidators - } - return 0 -} - -func (m *Params) GetSafetyMaxSlashPercent() uint64 { - if m != nil { - return m.SafetyMaxSlashPercent - } - return 0 -} - -func init() { - proto.RegisterType((*Params)(nil), "stride.stakeibc.Params") - proto.RegisterMapType((map[string]string)(nil), "stride.stakeibc.Params.ZoneComAddressEntry") -} - -func init() { proto.RegisterFile("stride/stakeibc/params.proto", fileDescriptor_5aeaab6a38c2b438) } - -var fileDescriptor_5aeaab6a38c2b438 = []byte{ - // 666 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x4f, 0x13, 0x4d, - 0x18, 0x6f, 0xf9, 0xf7, 0xc2, 0xf0, 0xbe, 0xd0, 0x0e, 0xbc, 0xba, 0x69, 0xa4, 0xa0, 0x89, 0x09, - 0x88, 0xb6, 0x11, 0x13, 0x25, 0x70, 0x30, 0x40, 0x30, 0x21, 0x0a, 0x69, 0xb6, 0xe8, 0x81, 0xcb, - 0x64, 0x76, 0xf7, 0x69, 0x3b, 0x61, 0x77, 0x66, 0x33, 0x33, 0x5b, 0xdb, 0x7e, 0x0a, 0x8f, 0x1e, - 0xfd, 0x38, 0x9e, 0x0c, 0x47, 0x8f, 0x06, 0xbe, 0x88, 0xd9, 0x99, 0xed, 0x2e, 0x25, 0xe8, 0x6d, - 0xfb, 0xfb, 0xd7, 0x67, 0x7e, 0x99, 0x79, 0xd0, 0x23, 0xa5, 0x25, 0x0b, 0xa0, 0xa9, 0x34, 0xbd, - 0x04, 0xe6, 0xf9, 0xcd, 0x98, 0x4a, 0x1a, 0xa9, 0x46, 0x2c, 0x85, 0x16, 0x78, 0xd9, 0xb2, 0x8d, - 0x31, 0x5b, 0x5b, 0xed, 0x8a, 0xae, 0x30, 0x5c, 0x33, 0xfd, 0xb2, 0xb2, 0x27, 0x3f, 0xe6, 0xd1, - 0x5c, 0xcb, 0xf8, 0xf0, 0x16, 0xaa, 0x48, 0xf8, 0x4c, 0x65, 0xa0, 0x08, 0xe3, 0x1a, 0x64, 0x9f, - 0x86, 0x4e, 0x79, 0xa3, 0xbc, 0x39, 0xe3, 0x2e, 0x67, 0xf8, 0x49, 0x06, 0xe3, 0x6d, 0x54, 0x0d, - 0x20, 0x84, 0x2e, 0xd5, 0x50, 0x68, 0xe7, 0x8c, 0xb6, 0x32, 0x26, 0x72, 0xf1, 0x16, 0xaa, 0x04, - 0x10, 0x0b, 0xc5, 0x74, 0xa1, 0x9d, 0xb2, 0xb9, 0x19, 0x9e, 0x4b, 0x77, 0x91, 0x23, 0x21, 0x80, - 0x28, 0xd6, 0x4c, 0x70, 0x22, 0x27, 0xe2, 0xa7, 0x8d, 0xe5, 0x41, 0xc1, 0xbb, 0xb7, 0xff, 0x64, - 0x1b, 0x55, 0xed, 0x81, 0x89, 0x2f, 0xa2, 0x88, 0x29, 0xc5, 0x04, 0x77, 0x66, 0xec, 0x44, 0x96, - 0x38, 0xca, 0x71, 0xfc, 0x11, 0x55, 0x46, 0x82, 0x1b, 0x29, 0xa1, 0x41, 0x20, 0x41, 0x29, 0x67, - 0x76, 0x63, 0x7a, 0x73, 0x71, 0x67, 0xbb, 0x71, 0xa7, 0xb6, 0x86, 0x2d, 0xa7, 0x71, 0x21, 0x78, - 0x9a, 0x70, 0x60, 0xd5, 0xc7, 0x5c, 0xcb, 0xa1, 0xbb, 0x34, 0x9a, 0x00, 0xd3, 0x19, 0x24, 0x30, - 0xde, 0x07, 0x75, 0xeb, 0xa4, 0xff, 0xd8, 0x19, 0xc6, 0x44, 0x3e, 0xf0, 0x3b, 0xb4, 0xde, 0xa7, - 0x21, 0x0b, 0xa8, 0x16, 0x92, 0x48, 0xf0, 0x68, 0x48, 0xb9, 0xcf, 0x78, 0x97, 0xe8, 0x9e, 0x04, - 0xd5, 0x13, 0x61, 0xe0, 0xcc, 0x1b, 0xeb, 0x5a, 0x2e, 0x73, 0x0b, 0xd5, 0xf9, 0x58, 0x84, 0x9f, - 0xa1, 0x2a, 0xf3, 0x29, 0xd1, 0x2c, 0x02, 0x91, 0x68, 0xc2, 0x29, 0x17, 0xca, 0x59, 0xb0, 0xf5, - 0x32, 0x9f, 0x9e, 0x5b, 0xfc, 0x2c, 0x85, 0xf1, 0x3a, 0x5a, 0xf4, 0x92, 0x4e, 0x07, 0x24, 0x51, - 0x6c, 0x04, 0x0e, 0x32, 0x2a, 0x64, 0xa1, 0x36, 0x1b, 0x01, 0x7e, 0x8e, 0x30, 0xf3, 0xfc, 0x3c, - 0xcc, 0x0b, 0x85, 0x7f, 0xa9, 0x9c, 0x45, 0x7b, 0x04, 0xe6, 0xf9, 0x59, 0xda, 0xa1, 0xc1, 0xf1, - 0x3e, 0xaa, 0x75, 0x00, 0x88, 0x96, 0x94, 0xab, 0x34, 0x74, 0x72, 0x86, 0x7f, 0x8d, 0xeb, 0x61, - 0x07, 0xe0, 0x3c, 0x13, 0x4c, 0xcc, 0xf2, 0x16, 0xad, 0x45, 0x74, 0x40, 0x4c, 0xcf, 0x24, 0x3d, - 0x81, 0x4f, 0xc3, 0x50, 0x91, 0x18, 0x24, 0x81, 0x58, 0xf8, 0x3d, 0xe7, 0x3f, 0xe3, 0x77, 0x22, - 0x3a, 0x68, 0xa7, 0x9a, 0x13, 0x9f, 0x1e, 0xa5, 0x8a, 0x16, 0xc8, 0xe3, 0x94, 0xc7, 0x2d, 0xf4, - 0x34, 0x80, 0x0e, 0x4d, 0x42, 0x4d, 0x22, 0xc6, 0xc9, 0xdd, 0x7b, 0x53, 0xd4, 0xb8, 0x64, 0x82, - 0x1e, 0x67, 0xe2, 0x53, 0xc6, 0xdd, 0x89, 0x2b, 0x54, 0x54, 0x79, 0x3b, 0x91, 0x0e, 0xfe, 0x92, - 0xb8, 0x3c, 0x99, 0x48, 0x07, 0x7f, 0x4a, 0xdc, 0x47, 0x35, 0xd3, 0xe7, 0xfd, 0x0d, 0x55, 0x6c, - 0x43, 0x69, 0xaf, 0xf7, 0x35, 0xb4, 0x83, 0xfe, 0x57, 0xb4, 0x03, 0x7a, 0x48, 0x78, 0x12, 0x91, - 0xfc, 0x16, 0x28, 0xa7, 0x6a, 0x7c, 0x2b, 0x96, 0x3c, 0x4b, 0xa2, 0x4f, 0x39, 0x85, 0xdf, 0x20, - 0x27, 0xf3, 0x98, 0x72, 0x43, 0xaa, 0x7a, 0x69, 0xa5, 0x3e, 0x70, 0xed, 0x60, 0x63, 0xcb, 0x32, - 0x4f, 0xe9, 0xa0, 0x9d, 0xb2, 0x2d, 0x4b, 0xd6, 0x0e, 0xd0, 0xca, 0x3d, 0x57, 0x1c, 0x57, 0xd0, - 0xf4, 0x25, 0x0c, 0xcd, 0x1a, 0x58, 0x70, 0xd3, 0x4f, 0xbc, 0x8a, 0x66, 0xfb, 0x34, 0x4c, 0xc0, - 0x3c, 0xe1, 0x05, 0xd7, 0xfe, 0xd8, 0x9b, 0xda, 0x2d, 0xef, 0xcd, 0x7c, 0xfd, 0xb6, 0x5e, 0x3a, - 0x7c, 0xff, 0xfd, 0xba, 0x5e, 0xbe, 0xba, 0xae, 0x97, 0x7f, 0x5d, 0xd7, 0xcb, 0x5f, 0x6e, 0xea, - 0xa5, 0xab, 0x9b, 0x7a, 0xe9, 0xe7, 0x4d, 0xbd, 0x74, 0xf1, 0xb2, 0xcb, 0x74, 0x2f, 0xf1, 0x1a, - 0xbe, 0x88, 0x9a, 0x6d, 0xf3, 0xca, 0x5e, 0x7c, 0xa0, 0x9e, 0x6a, 0x66, 0x6b, 0xac, 0xff, 0xba, - 0x39, 0x28, 0x76, 0x99, 0x1e, 0xc6, 0xa0, 0xbc, 0x39, 0xb3, 0xa4, 0x5e, 0xfd, 0x0e, 0x00, 0x00, - 0xff, 0xff, 0x48, 0x84, 0xf0, 0x27, 0xeb, 0x04, 0x00, 0x00, -} - -func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SafetyMaxSlashPercent != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.SafetyMaxSlashPercent)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 - } - if m.SafetyNumValidators != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.SafetyNumValidators)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 - } - if m.IbcTransferTimeoutNanos != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.IbcTransferTimeoutNanos)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 - } - if m.DefaultMaxRedemptionRateThreshold != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.DefaultMaxRedemptionRateThreshold)) - i-- - dAtA[i] = 0x78 - } - if m.DefaultMinRedemptionRateThreshold != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.DefaultMinRedemptionRateThreshold)) - i-- - dAtA[i] = 0x70 - } - if m.MaxStakeIcaCallsPerEpoch != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.MaxStakeIcaCallsPerEpoch)) - i-- - dAtA[i] = 0x68 - } - if m.FeeTransferTimeoutNanos != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.FeeTransferTimeoutNanos)) - i-- - dAtA[i] = 0x60 - } - if m.IbcTimeoutBlocks != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.IbcTimeoutBlocks)) - i-- - dAtA[i] = 0x58 - } - if m.BufferSize != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.BufferSize)) - i-- - dAtA[i] = 0x50 - } - if m.IcaTimeoutNanos != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.IcaTimeoutNanos)) - i-- - dAtA[i] = 0x48 - } - if m.ValidatorRebalancingThreshold != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.ValidatorRebalancingThreshold)) - i-- - dAtA[i] = 0x40 - } - if m.ReinvestInterval != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.ReinvestInterval)) - i-- - dAtA[i] = 0x38 - } - if m.DelegateInterval != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.DelegateInterval)) - i-- - dAtA[i] = 0x30 - } - if len(m.ZoneComAddress) > 0 { - for k := range m.ZoneComAddress { - v := m.ZoneComAddress[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintParams(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintParams(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintParams(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - if m.StrideCommission != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.StrideCommission)) - i-- - dAtA[i] = 0x20 - } - if m.RedemptionRateInterval != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.RedemptionRateInterval)) - i-- - dAtA[i] = 0x18 - } - if m.DepositInterval != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.DepositInterval)) - i-- - dAtA[i] = 0x10 - } - if m.RewardsInterval != 0 { - i = encodeVarintParams(dAtA, i, uint64(m.RewardsInterval)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintParams(dAtA []byte, offset int, v uint64) int { - offset -= sovParams(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RewardsInterval != 0 { - n += 1 + sovParams(uint64(m.RewardsInterval)) - } - if m.DepositInterval != 0 { - n += 1 + sovParams(uint64(m.DepositInterval)) - } - if m.RedemptionRateInterval != 0 { - n += 1 + sovParams(uint64(m.RedemptionRateInterval)) - } - if m.StrideCommission != 0 { - n += 1 + sovParams(uint64(m.StrideCommission)) - } - if len(m.ZoneComAddress) > 0 { - for k, v := range m.ZoneComAddress { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovParams(uint64(len(k))) + 1 + len(v) + sovParams(uint64(len(v))) - n += mapEntrySize + 1 + sovParams(uint64(mapEntrySize)) - } - } - if m.DelegateInterval != 0 { - n += 1 + sovParams(uint64(m.DelegateInterval)) - } - if m.ReinvestInterval != 0 { - n += 1 + sovParams(uint64(m.ReinvestInterval)) - } - if m.ValidatorRebalancingThreshold != 0 { - n += 1 + sovParams(uint64(m.ValidatorRebalancingThreshold)) - } - if m.IcaTimeoutNanos != 0 { - n += 1 + sovParams(uint64(m.IcaTimeoutNanos)) - } - if m.BufferSize != 0 { - n += 1 + sovParams(uint64(m.BufferSize)) - } - if m.IbcTimeoutBlocks != 0 { - n += 1 + sovParams(uint64(m.IbcTimeoutBlocks)) - } - if m.FeeTransferTimeoutNanos != 0 { - n += 1 + sovParams(uint64(m.FeeTransferTimeoutNanos)) - } - if m.MaxStakeIcaCallsPerEpoch != 0 { - n += 1 + sovParams(uint64(m.MaxStakeIcaCallsPerEpoch)) - } - if m.DefaultMinRedemptionRateThreshold != 0 { - n += 1 + sovParams(uint64(m.DefaultMinRedemptionRateThreshold)) - } - if m.DefaultMaxRedemptionRateThreshold != 0 { - n += 1 + sovParams(uint64(m.DefaultMaxRedemptionRateThreshold)) - } - if m.IbcTransferTimeoutNanos != 0 { - n += 2 + sovParams(uint64(m.IbcTransferTimeoutNanos)) - } - if m.SafetyNumValidators != 0 { - n += 2 + sovParams(uint64(m.SafetyNumValidators)) - } - if m.SafetyMaxSlashPercent != 0 { - n += 2 + sovParams(uint64(m.SafetyMaxSlashPercent)) - } - return n -} - -func sovParams(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozParams(x uint64) (n int) { - return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Params) 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 ErrIntOverflowParams - } - 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: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RewardsInterval", wireType) - } - m.RewardsInterval = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RewardsInterval |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositInterval", wireType) - } - m.DepositInterval = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DepositInterval |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RedemptionRateInterval", wireType) - } - m.RedemptionRateInterval = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RedemptionRateInterval |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StrideCommission", wireType) - } - m.StrideCommission = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StrideCommission |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ZoneComAddress", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthParams - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthParams - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ZoneComAddress == nil { - m.ZoneComAddress = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthParams - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthParams - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthParams - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthParams - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.ZoneComAddress[mapkey] = mapvalue - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DelegateInterval", wireType) - } - m.DelegateInterval = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DelegateInterval |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReinvestInterval", wireType) - } - m.ReinvestInterval = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReinvestInterval |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ValidatorRebalancingThreshold", wireType) - } - m.ValidatorRebalancingThreshold = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ValidatorRebalancingThreshold |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IcaTimeoutNanos", wireType) - } - m.IcaTimeoutNanos = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.IcaTimeoutNanos |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BufferSize", wireType) - } - m.BufferSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BufferSize |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IbcTimeoutBlocks", wireType) - } - m.IbcTimeoutBlocks = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.IbcTimeoutBlocks |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FeeTransferTimeoutNanos", wireType) - } - m.FeeTransferTimeoutNanos = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FeeTransferTimeoutNanos |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxStakeIcaCallsPerEpoch", wireType) - } - m.MaxStakeIcaCallsPerEpoch = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxStakeIcaCallsPerEpoch |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultMinRedemptionRateThreshold", wireType) - } - m.DefaultMinRedemptionRateThreshold = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DefaultMinRedemptionRateThreshold |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultMaxRedemptionRateThreshold", wireType) - } - m.DefaultMaxRedemptionRateThreshold = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DefaultMaxRedemptionRateThreshold |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IbcTransferTimeoutNanos", wireType) - } - m.IbcTransferTimeoutNanos = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.IbcTransferTimeoutNanos |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SafetyNumValidators", wireType) - } - m.SafetyNumValidators = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SafetyNumValidators |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 18: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SafetyMaxSlashPercent", wireType) - } - m.SafetyMaxSlashPercent = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SafetyMaxSlashPercent |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipParams(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, ErrIntOverflowParams - } - 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, ErrIntOverflowParams - } - 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, ErrIntOverflowParams - } - 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, ErrInvalidLengthParams - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupParams - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthParams - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/stakeibc/types/query.pb.go b/x/stakeibc/types/query.pb.go deleted file mode 100644 index b82cb46181..0000000000 --- a/x/stakeibc/types/query.pb.go +++ /dev/null @@ -1,4157 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/stakeibc/query.proto - -package types - -import ( - context "context" - fmt "fmt" - query "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - 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 - -// QueryInterchainAccountFromAddressRequest is the request type for the -// Query/InterchainAccountAddress RPC -type QueryInterchainAccountFromAddressRequest struct { - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"` -} - -func (m *QueryInterchainAccountFromAddressRequest) Reset() { - *m = QueryInterchainAccountFromAddressRequest{} -} -func (m *QueryInterchainAccountFromAddressRequest) String() string { return proto.CompactTextString(m) } -func (*QueryInterchainAccountFromAddressRequest) ProtoMessage() {} -func (*QueryInterchainAccountFromAddressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{0} -} -func (m *QueryInterchainAccountFromAddressRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryInterchainAccountFromAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryInterchainAccountFromAddressRequest.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 *QueryInterchainAccountFromAddressRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryInterchainAccountFromAddressRequest.Merge(m, src) -} -func (m *QueryInterchainAccountFromAddressRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryInterchainAccountFromAddressRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryInterchainAccountFromAddressRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryInterchainAccountFromAddressRequest proto.InternalMessageInfo - -func (m *QueryInterchainAccountFromAddressRequest) GetOwner() string { - if m != nil { - return m.Owner - } - return "" -} - -func (m *QueryInterchainAccountFromAddressRequest) GetConnectionId() string { - if m != nil { - return m.ConnectionId - } - return "" -} - -// QueryInterchainAccountFromAddressResponse the response type for the -// Query/InterchainAccountAddress RPC -type QueryInterchainAccountFromAddressResponse struct { - InterchainAccountAddress string `protobuf:"bytes,1,opt,name=interchain_account_address,json=interchainAccountAddress,proto3" json:"interchain_account_address,omitempty" yaml:"interchain_account_address"` -} - -func (m *QueryInterchainAccountFromAddressResponse) Reset() { - *m = QueryInterchainAccountFromAddressResponse{} -} -func (m *QueryInterchainAccountFromAddressResponse) String() string { - return proto.CompactTextString(m) -} -func (*QueryInterchainAccountFromAddressResponse) ProtoMessage() {} -func (*QueryInterchainAccountFromAddressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{1} -} -func (m *QueryInterchainAccountFromAddressResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryInterchainAccountFromAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryInterchainAccountFromAddressResponse.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 *QueryInterchainAccountFromAddressResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryInterchainAccountFromAddressResponse.Merge(m, src) -} -func (m *QueryInterchainAccountFromAddressResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryInterchainAccountFromAddressResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryInterchainAccountFromAddressResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryInterchainAccountFromAddressResponse proto.InternalMessageInfo - -func (m *QueryInterchainAccountFromAddressResponse) GetInterchainAccountAddress() string { - if m != nil { - return m.InterchainAccountAddress - } - return "" -} - -// QueryParamsRequest is request type for the Query/Params RPC method. -type QueryParamsRequest struct { -} - -func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } -func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryParamsRequest) ProtoMessage() {} -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{2} -} -func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsRequest.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 *QueryParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsRequest.Merge(m, src) -} -func (m *QueryParamsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo - -// QueryParamsResponse is response type for the Query/Params RPC method. -type QueryParamsResponse struct { - // params holds all the parameters of this module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` -} - -func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } -func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryParamsResponse) ProtoMessage() {} -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{3} -} -func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsResponse.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 *QueryParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsResponse.Merge(m, src) -} -func (m *QueryParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo - -func (m *QueryParamsResponse) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -type QueryGetValidatorsRequest struct { - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` -} - -func (m *QueryGetValidatorsRequest) Reset() { *m = QueryGetValidatorsRequest{} } -func (m *QueryGetValidatorsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetValidatorsRequest) ProtoMessage() {} -func (*QueryGetValidatorsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{4} -} -func (m *QueryGetValidatorsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetValidatorsRequest.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 *QueryGetValidatorsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetValidatorsRequest.Merge(m, src) -} -func (m *QueryGetValidatorsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetValidatorsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetValidatorsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetValidatorsRequest proto.InternalMessageInfo - -func (m *QueryGetValidatorsRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -type QueryGetValidatorsResponse struct { - Validators []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"` -} - -func (m *QueryGetValidatorsResponse) Reset() { *m = QueryGetValidatorsResponse{} } -func (m *QueryGetValidatorsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetValidatorsResponse) ProtoMessage() {} -func (*QueryGetValidatorsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{5} -} -func (m *QueryGetValidatorsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetValidatorsResponse.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 *QueryGetValidatorsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetValidatorsResponse.Merge(m, src) -} -func (m *QueryGetValidatorsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetValidatorsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetValidatorsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetValidatorsResponse proto.InternalMessageInfo - -func (m *QueryGetValidatorsResponse) GetValidators() []*Validator { - if m != nil { - return m.Validators - } - return nil -} - -type QueryGetHostZoneRequest struct { - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` -} - -func (m *QueryGetHostZoneRequest) Reset() { *m = QueryGetHostZoneRequest{} } -func (m *QueryGetHostZoneRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetHostZoneRequest) ProtoMessage() {} -func (*QueryGetHostZoneRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{6} -} -func (m *QueryGetHostZoneRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetHostZoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetHostZoneRequest.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 *QueryGetHostZoneRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetHostZoneRequest.Merge(m, src) -} -func (m *QueryGetHostZoneRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetHostZoneRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetHostZoneRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetHostZoneRequest proto.InternalMessageInfo - -func (m *QueryGetHostZoneRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -type QueryGetHostZoneResponse struct { - HostZone HostZone `protobuf:"bytes,1,opt,name=host_zone,json=hostZone,proto3" json:"host_zone"` -} - -func (m *QueryGetHostZoneResponse) Reset() { *m = QueryGetHostZoneResponse{} } -func (m *QueryGetHostZoneResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetHostZoneResponse) ProtoMessage() {} -func (*QueryGetHostZoneResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{7} -} -func (m *QueryGetHostZoneResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetHostZoneResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetHostZoneResponse.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 *QueryGetHostZoneResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetHostZoneResponse.Merge(m, src) -} -func (m *QueryGetHostZoneResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetHostZoneResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetHostZoneResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetHostZoneResponse proto.InternalMessageInfo - -func (m *QueryGetHostZoneResponse) GetHostZone() HostZone { - if m != nil { - return m.HostZone - } - return HostZone{} -} - -type QueryAllHostZoneRequest struct { - Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllHostZoneRequest) Reset() { *m = QueryAllHostZoneRequest{} } -func (m *QueryAllHostZoneRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllHostZoneRequest) ProtoMessage() {} -func (*QueryAllHostZoneRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{8} -} -func (m *QueryAllHostZoneRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllHostZoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllHostZoneRequest.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 *QueryAllHostZoneRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllHostZoneRequest.Merge(m, src) -} -func (m *QueryAllHostZoneRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryAllHostZoneRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllHostZoneRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllHostZoneRequest proto.InternalMessageInfo - -func (m *QueryAllHostZoneRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryAllHostZoneResponse struct { - HostZone []HostZone `protobuf:"bytes,1,rep,name=host_zone,json=hostZone,proto3" json:"host_zone"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllHostZoneResponse) Reset() { *m = QueryAllHostZoneResponse{} } -func (m *QueryAllHostZoneResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllHostZoneResponse) ProtoMessage() {} -func (*QueryAllHostZoneResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{9} -} -func (m *QueryAllHostZoneResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllHostZoneResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllHostZoneResponse.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 *QueryAllHostZoneResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllHostZoneResponse.Merge(m, src) -} -func (m *QueryAllHostZoneResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryAllHostZoneResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllHostZoneResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllHostZoneResponse proto.InternalMessageInfo - -func (m *QueryAllHostZoneResponse) GetHostZone() []HostZone { - if m != nil { - return m.HostZone - } - return nil -} - -func (m *QueryAllHostZoneResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryModuleAddressRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (m *QueryModuleAddressRequest) Reset() { *m = QueryModuleAddressRequest{} } -func (m *QueryModuleAddressRequest) String() string { return proto.CompactTextString(m) } -func (*QueryModuleAddressRequest) ProtoMessage() {} -func (*QueryModuleAddressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{10} -} -func (m *QueryModuleAddressRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryModuleAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryModuleAddressRequest.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 *QueryModuleAddressRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryModuleAddressRequest.Merge(m, src) -} -func (m *QueryModuleAddressRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryModuleAddressRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryModuleAddressRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryModuleAddressRequest proto.InternalMessageInfo - -func (m *QueryModuleAddressRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type QueryModuleAddressResponse struct { - Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` -} - -func (m *QueryModuleAddressResponse) Reset() { *m = QueryModuleAddressResponse{} } -func (m *QueryModuleAddressResponse) String() string { return proto.CompactTextString(m) } -func (*QueryModuleAddressResponse) ProtoMessage() {} -func (*QueryModuleAddressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{11} -} -func (m *QueryModuleAddressResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryModuleAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryModuleAddressResponse.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 *QueryModuleAddressResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryModuleAddressResponse.Merge(m, src) -} -func (m *QueryModuleAddressResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryModuleAddressResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryModuleAddressResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryModuleAddressResponse proto.InternalMessageInfo - -func (m *QueryModuleAddressResponse) GetAddr() string { - if m != nil { - return m.Addr - } - return "" -} - -type QueryGetEpochTrackerRequest struct { - EpochIdentifier string `protobuf:"bytes,1,opt,name=epoch_identifier,json=epochIdentifier,proto3" json:"epoch_identifier,omitempty"` -} - -func (m *QueryGetEpochTrackerRequest) Reset() { *m = QueryGetEpochTrackerRequest{} } -func (m *QueryGetEpochTrackerRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetEpochTrackerRequest) ProtoMessage() {} -func (*QueryGetEpochTrackerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{12} -} -func (m *QueryGetEpochTrackerRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetEpochTrackerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetEpochTrackerRequest.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 *QueryGetEpochTrackerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetEpochTrackerRequest.Merge(m, src) -} -func (m *QueryGetEpochTrackerRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetEpochTrackerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetEpochTrackerRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetEpochTrackerRequest proto.InternalMessageInfo - -func (m *QueryGetEpochTrackerRequest) GetEpochIdentifier() string { - if m != nil { - return m.EpochIdentifier - } - return "" -} - -type QueryGetEpochTrackerResponse struct { - EpochTracker EpochTracker `protobuf:"bytes,1,opt,name=epoch_tracker,json=epochTracker,proto3" json:"epoch_tracker"` -} - -func (m *QueryGetEpochTrackerResponse) Reset() { *m = QueryGetEpochTrackerResponse{} } -func (m *QueryGetEpochTrackerResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetEpochTrackerResponse) ProtoMessage() {} -func (*QueryGetEpochTrackerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{13} -} -func (m *QueryGetEpochTrackerResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetEpochTrackerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetEpochTrackerResponse.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 *QueryGetEpochTrackerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetEpochTrackerResponse.Merge(m, src) -} -func (m *QueryGetEpochTrackerResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetEpochTrackerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetEpochTrackerResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetEpochTrackerResponse proto.InternalMessageInfo - -func (m *QueryGetEpochTrackerResponse) GetEpochTracker() EpochTracker { - if m != nil { - return m.EpochTracker - } - return EpochTracker{} -} - -type QueryAllEpochTrackerRequest struct { -} - -func (m *QueryAllEpochTrackerRequest) Reset() { *m = QueryAllEpochTrackerRequest{} } -func (m *QueryAllEpochTrackerRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllEpochTrackerRequest) ProtoMessage() {} -func (*QueryAllEpochTrackerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{14} -} -func (m *QueryAllEpochTrackerRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllEpochTrackerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllEpochTrackerRequest.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 *QueryAllEpochTrackerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllEpochTrackerRequest.Merge(m, src) -} -func (m *QueryAllEpochTrackerRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryAllEpochTrackerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllEpochTrackerRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllEpochTrackerRequest proto.InternalMessageInfo - -type QueryAllEpochTrackerResponse struct { - EpochTracker []EpochTracker `protobuf:"bytes,1,rep,name=epoch_tracker,json=epochTracker,proto3" json:"epoch_tracker"` -} - -func (m *QueryAllEpochTrackerResponse) Reset() { *m = QueryAllEpochTrackerResponse{} } -func (m *QueryAllEpochTrackerResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllEpochTrackerResponse) ProtoMessage() {} -func (*QueryAllEpochTrackerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{15} -} -func (m *QueryAllEpochTrackerResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllEpochTrackerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllEpochTrackerResponse.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 *QueryAllEpochTrackerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllEpochTrackerResponse.Merge(m, src) -} -func (m *QueryAllEpochTrackerResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryAllEpochTrackerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllEpochTrackerResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllEpochTrackerResponse proto.InternalMessageInfo - -func (m *QueryAllEpochTrackerResponse) GetEpochTracker() []EpochTracker { - if m != nil { - return m.EpochTracker - } - return nil -} - -type QueryGetNextPacketSequenceRequest struct { - ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` -} - -func (m *QueryGetNextPacketSequenceRequest) Reset() { *m = QueryGetNextPacketSequenceRequest{} } -func (m *QueryGetNextPacketSequenceRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetNextPacketSequenceRequest) ProtoMessage() {} -func (*QueryGetNextPacketSequenceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{16} -} -func (m *QueryGetNextPacketSequenceRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetNextPacketSequenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetNextPacketSequenceRequest.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 *QueryGetNextPacketSequenceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetNextPacketSequenceRequest.Merge(m, src) -} -func (m *QueryGetNextPacketSequenceRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetNextPacketSequenceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetNextPacketSequenceRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetNextPacketSequenceRequest proto.InternalMessageInfo - -func (m *QueryGetNextPacketSequenceRequest) GetChannelId() string { - if m != nil { - return m.ChannelId - } - return "" -} - -func (m *QueryGetNextPacketSequenceRequest) GetPortId() string { - if m != nil { - return m.PortId - } - return "" -} - -type QueryGetNextPacketSequenceResponse struct { - Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (m *QueryGetNextPacketSequenceResponse) Reset() { *m = QueryGetNextPacketSequenceResponse{} } -func (m *QueryGetNextPacketSequenceResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetNextPacketSequenceResponse) ProtoMessage() {} -func (*QueryGetNextPacketSequenceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{17} -} -func (m *QueryGetNextPacketSequenceResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetNextPacketSequenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetNextPacketSequenceResponse.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 *QueryGetNextPacketSequenceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetNextPacketSequenceResponse.Merge(m, src) -} -func (m *QueryGetNextPacketSequenceResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetNextPacketSequenceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetNextPacketSequenceResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetNextPacketSequenceResponse proto.InternalMessageInfo - -func (m *QueryGetNextPacketSequenceResponse) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -type QueryAddressUnbondings struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *QueryAddressUnbondings) Reset() { *m = QueryAddressUnbondings{} } -func (m *QueryAddressUnbondings) String() string { return proto.CompactTextString(m) } -func (*QueryAddressUnbondings) ProtoMessage() {} -func (*QueryAddressUnbondings) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{18} -} -func (m *QueryAddressUnbondings) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAddressUnbondings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAddressUnbondings.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 *QueryAddressUnbondings) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAddressUnbondings.Merge(m, src) -} -func (m *QueryAddressUnbondings) XXX_Size() int { - return m.Size() -} -func (m *QueryAddressUnbondings) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAddressUnbondings.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAddressUnbondings proto.InternalMessageInfo - -func (m *QueryAddressUnbondings) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -type QueryAddressUnbondingsResponse struct { - AddressUnbondings []AddressUnbonding `protobuf:"bytes,1,rep,name=address_unbondings,json=addressUnbondings,proto3" json:"address_unbondings"` -} - -func (m *QueryAddressUnbondingsResponse) Reset() { *m = QueryAddressUnbondingsResponse{} } -func (m *QueryAddressUnbondingsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAddressUnbondingsResponse) ProtoMessage() {} -func (*QueryAddressUnbondingsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_494b786fe66f2b80, []int{19} -} -func (m *QueryAddressUnbondingsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAddressUnbondingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAddressUnbondingsResponse.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 *QueryAddressUnbondingsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAddressUnbondingsResponse.Merge(m, src) -} -func (m *QueryAddressUnbondingsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryAddressUnbondingsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAddressUnbondingsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAddressUnbondingsResponse proto.InternalMessageInfo - -func (m *QueryAddressUnbondingsResponse) GetAddressUnbondings() []AddressUnbonding { - if m != nil { - return m.AddressUnbondings - } - return nil -} - -func init() { - proto.RegisterType((*QueryInterchainAccountFromAddressRequest)(nil), "stride.stakeibc.QueryInterchainAccountFromAddressRequest") - proto.RegisterType((*QueryInterchainAccountFromAddressResponse)(nil), "stride.stakeibc.QueryInterchainAccountFromAddressResponse") - proto.RegisterType((*QueryParamsRequest)(nil), "stride.stakeibc.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "stride.stakeibc.QueryParamsResponse") - proto.RegisterType((*QueryGetValidatorsRequest)(nil), "stride.stakeibc.QueryGetValidatorsRequest") - proto.RegisterType((*QueryGetValidatorsResponse)(nil), "stride.stakeibc.QueryGetValidatorsResponse") - proto.RegisterType((*QueryGetHostZoneRequest)(nil), "stride.stakeibc.QueryGetHostZoneRequest") - proto.RegisterType((*QueryGetHostZoneResponse)(nil), "stride.stakeibc.QueryGetHostZoneResponse") - proto.RegisterType((*QueryAllHostZoneRequest)(nil), "stride.stakeibc.QueryAllHostZoneRequest") - proto.RegisterType((*QueryAllHostZoneResponse)(nil), "stride.stakeibc.QueryAllHostZoneResponse") - proto.RegisterType((*QueryModuleAddressRequest)(nil), "stride.stakeibc.QueryModuleAddressRequest") - proto.RegisterType((*QueryModuleAddressResponse)(nil), "stride.stakeibc.QueryModuleAddressResponse") - proto.RegisterType((*QueryGetEpochTrackerRequest)(nil), "stride.stakeibc.QueryGetEpochTrackerRequest") - proto.RegisterType((*QueryGetEpochTrackerResponse)(nil), "stride.stakeibc.QueryGetEpochTrackerResponse") - proto.RegisterType((*QueryAllEpochTrackerRequest)(nil), "stride.stakeibc.QueryAllEpochTrackerRequest") - proto.RegisterType((*QueryAllEpochTrackerResponse)(nil), "stride.stakeibc.QueryAllEpochTrackerResponse") - proto.RegisterType((*QueryGetNextPacketSequenceRequest)(nil), "stride.stakeibc.QueryGetNextPacketSequenceRequest") - proto.RegisterType((*QueryGetNextPacketSequenceResponse)(nil), "stride.stakeibc.QueryGetNextPacketSequenceResponse") - proto.RegisterType((*QueryAddressUnbondings)(nil), "stride.stakeibc.QueryAddressUnbondings") - proto.RegisterType((*QueryAddressUnbondingsResponse)(nil), "stride.stakeibc.QueryAddressUnbondingsResponse") -} - -func init() { proto.RegisterFile("stride/stakeibc/query.proto", fileDescriptor_494b786fe66f2b80) } - -var fileDescriptor_494b786fe66f2b80 = []byte{ - // 1156 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x97, 0x4d, 0x6f, 0x1b, 0x45, - 0x18, 0xc7, 0xb3, 0x4d, 0x9a, 0x97, 0x27, 0x89, 0x42, 0x87, 0x88, 0x38, 0xdb, 0xc4, 0x21, 0xd3, - 0xd2, 0xbc, 0x90, 0x7a, 0x89, 0x53, 0x2a, 0x35, 0xa2, 0x82, 0x44, 0x6a, 0x1b, 0x43, 0x41, 0xc1, - 0x85, 0x0a, 0x95, 0x83, 0x35, 0xde, 0x1d, 0xec, 0x55, 0xd7, 0x33, 0xee, 0xee, 0x3a, 0x24, 0x44, - 0x56, 0x25, 0x3e, 0x41, 0x05, 0xe2, 0xc2, 0xad, 0x88, 0x03, 0x67, 0x3e, 0x45, 0x6f, 0x54, 0xe2, - 0xc2, 0x29, 0x42, 0x09, 0x9f, 0xa0, 0xe2, 0x03, 0xa0, 0x9d, 0x99, 0x5d, 0xdb, 0xfb, 0x62, 0x9c, - 0xde, 0x3c, 0x33, 0xcf, 0xcb, 0x6f, 0x9e, 0x79, 0xe6, 0x3f, 0x6b, 0xb8, 0xec, 0xf9, 0xae, 0x6d, - 0x51, 0xc3, 0xf3, 0xc9, 0x63, 0x6a, 0x57, 0x4d, 0xe3, 0x49, 0x8b, 0xba, 0x47, 0x85, 0xa6, 0xcb, - 0x7d, 0x8e, 0x66, 0xe4, 0x62, 0x21, 0x5c, 0xd4, 0x67, 0x6b, 0xbc, 0xc6, 0xc5, 0x9a, 0x11, 0xfc, - 0x92, 0x66, 0xfa, 0x42, 0x8d, 0xf3, 0x9a, 0x43, 0x0d, 0xd2, 0xb4, 0x0d, 0xc2, 0x18, 0xf7, 0x89, - 0x6f, 0x73, 0xe6, 0xa9, 0xd5, 0x75, 0x93, 0x7b, 0x0d, 0xee, 0x19, 0x55, 0xe2, 0x51, 0x19, 0xdd, - 0x38, 0xd8, 0xac, 0x52, 0x9f, 0x6c, 0x1a, 0x4d, 0x52, 0xb3, 0x99, 0x30, 0x0e, 0x23, 0xc5, 0x69, - 0x9a, 0xc4, 0x25, 0x8d, 0x30, 0xd2, 0x52, 0x7c, 0xf5, 0x80, 0x38, 0xb6, 0x45, 0x7c, 0xee, 0x66, - 0x19, 0xd4, 0xb9, 0xe7, 0x57, 0xbe, 0xe3, 0x8c, 0x2a, 0x83, 0x2b, 0x71, 0x03, 0xda, 0xe4, 0x66, - 0xbd, 0xe2, 0xbb, 0xc4, 0x7c, 0x4c, 0xc3, 0x28, 0x2b, 0x71, 0x23, 0x62, 0x59, 0x2e, 0xf5, 0xbc, - 0x4a, 0x8b, 0x55, 0x39, 0xb3, 0x6c, 0x56, 0x93, 0x86, 0xf8, 0x29, 0xac, 0x7e, 0x1e, 0xec, 0xa7, - 0xc4, 0x7c, 0xea, 0x9a, 0x75, 0x62, 0xb3, 0x1d, 0xd3, 0xe4, 0x2d, 0xe6, 0xdf, 0x75, 0x79, 0x63, - 0x47, 0x3a, 0x95, 0xe9, 0x93, 0x16, 0xf5, 0x7c, 0x34, 0x0b, 0x17, 0xf9, 0xb7, 0x8c, 0xba, 0x39, - 0xed, 0x6d, 0x6d, 0x75, 0xa2, 0x2c, 0x07, 0xe8, 0x36, 0x4c, 0x9b, 0x9c, 0x31, 0x6a, 0x06, 0x35, - 0xa8, 0xd8, 0x56, 0xee, 0x42, 0xb0, 0xba, 0x9b, 0x7b, 0x75, 0xb2, 0x34, 0x7b, 0x44, 0x1a, 0xce, - 0x36, 0xee, 0x59, 0xc6, 0xe5, 0xa9, 0xce, 0xb8, 0x64, 0xe1, 0x67, 0x1a, 0xac, 0x0d, 0x40, 0xe0, - 0x35, 0x39, 0xf3, 0x28, 0x32, 0x41, 0xb7, 0x23, 0xbb, 0x0a, 0x91, 0x86, 0x15, 0xb5, 0x39, 0xc9, - 0xb5, 0xfb, 0xce, 0xab, 0x93, 0xa5, 0x65, 0x99, 0x39, 0xdb, 0x16, 0x97, 0x73, 0x76, 0x3c, 0xa1, - 0x4a, 0x86, 0x67, 0x01, 0x09, 0xa2, 0x7d, 0x71, 0x70, 0x6a, 0xf7, 0xf8, 0x3e, 0xbc, 0xd9, 0x33, - 0xab, 0x88, 0xde, 0x87, 0x51, 0x79, 0xc0, 0x22, 0xfb, 0x64, 0x71, 0xae, 0x10, 0x6b, 0xb8, 0x82, - 0x74, 0xd8, 0x1d, 0x79, 0x71, 0xb2, 0x34, 0x54, 0x56, 0xc6, 0xf8, 0x26, 0xcc, 0x8b, 0x68, 0xf7, - 0xa8, 0xff, 0x30, 0xec, 0x80, 0xa8, 0xd0, 0xf3, 0x30, 0x2e, 0xa1, 0x6d, 0x4b, 0xd5, 0x7a, 0x4c, - 0x8c, 0x4b, 0x16, 0xfe, 0x0a, 0xf4, 0x34, 0x3f, 0x05, 0xb3, 0x0d, 0x10, 0xf5, 0x53, 0x00, 0x34, - 0xbc, 0x3a, 0x59, 0xd4, 0x13, 0x40, 0x91, 0x63, 0xb9, 0xcb, 0x1a, 0xdf, 0x80, 0xb9, 0x30, 0xf2, - 0x1e, 0xf7, 0xfc, 0x47, 0x9c, 0xd1, 0x81, 0x78, 0x72, 0x49, 0x2f, 0x45, 0xf3, 0x01, 0x4c, 0x44, - 0xcd, 0xab, 0xaa, 0x33, 0x9f, 0x80, 0x09, 0xbd, 0x54, 0x7d, 0xc6, 0xeb, 0x6a, 0x8c, 0x89, 0xe2, - 0xd9, 0x71, 0x9c, 0x38, 0xcf, 0x5d, 0x80, 0xce, 0xb5, 0x53, 0x91, 0xaf, 0x15, 0xe4, 0x1d, 0x2d, - 0x04, 0x77, 0xb4, 0x20, 0x15, 0x40, 0xdd, 0xd1, 0xc2, 0x3e, 0xa9, 0x85, 0xbe, 0xe5, 0x2e, 0x4f, - 0xfc, 0x5c, 0x53, 0xf4, 0x3d, 0x39, 0xd2, 0xe9, 0x87, 0xcf, 0x45, 0x8f, 0xee, 0xf5, 0x20, 0x5e, - 0x10, 0x88, 0x2b, 0xff, 0x8b, 0x28, 0x53, 0xf7, 0x30, 0x1a, 0xaa, 0x51, 0x3e, 0xe5, 0x56, 0xcb, - 0xa1, 0xb1, 0x1b, 0x89, 0x60, 0x84, 0x91, 0x06, 0x55, 0x87, 0x22, 0x7e, 0xe3, 0xf7, 0x54, 0x87, - 0xc4, 0x1c, 0xd4, 0xae, 0x10, 0x8c, 0x04, 0x37, 0x20, 0xf4, 0x08, 0x7e, 0xe3, 0x3d, 0xb8, 0x1c, - 0x9e, 0xe1, 0x9d, 0x40, 0x4b, 0xbe, 0x90, 0x52, 0x12, 0x26, 0x59, 0x83, 0x37, 0xa4, 0xc4, 0xd8, - 0x16, 0x65, 0xbe, 0xfd, 0x8d, 0x1d, 0x29, 0xc0, 0x8c, 0x98, 0x2f, 0x45, 0xd3, 0xb8, 0x0e, 0x0b, - 0xe9, 0x91, 0x54, 0xf6, 0x3d, 0x98, 0xee, 0x51, 0x2b, 0x75, 0x76, 0x8b, 0x89, 0xba, 0x76, 0x7b, - 0xab, 0xda, 0x4e, 0xd1, 0xae, 0x39, 0xbc, 0xa8, 0x98, 0x77, 0x1c, 0x27, 0x85, 0x39, 0x02, 0x49, - 0x2c, 0x67, 0x83, 0x0c, 0xbf, 0x1e, 0xc8, 0xd7, 0xb0, 0x1c, 0x6e, 0xf9, 0x33, 0x7a, 0xe8, 0xef, - 0x07, 0xb3, 0xfe, 0x83, 0x00, 0x83, 0x99, 0x51, 0xc3, 0x2e, 0x02, 0x98, 0x75, 0xc2, 0x18, 0x75, - 0x3a, 0x57, 0x68, 0x42, 0xcd, 0x94, 0x2c, 0x34, 0x07, 0x63, 0x4d, 0xee, 0xfa, 0x91, 0x78, 0x96, - 0x47, 0x83, 0x61, 0xc9, 0xc2, 0x1f, 0x01, 0xee, 0x17, 0x5c, 0x6d, 0x46, 0x87, 0x71, 0x4f, 0xcd, - 0x89, 0xd8, 0x23, 0xe5, 0x68, 0x8c, 0x8b, 0xf0, 0x96, 0x2c, 0x84, 0xec, 0x83, 0x2f, 0x43, 0xf9, - 0xf7, 0x50, 0x0e, 0xc6, 0x7a, 0x74, 0xb3, 0x1c, 0x0e, 0xf1, 0x21, 0xe4, 0xd3, 0x7d, 0xa2, 0x8c, - 0x0f, 0x01, 0x25, 0x1e, 0x94, 0x50, 0x6f, 0x96, 0x13, 0x35, 0x8c, 0xc7, 0x51, 0x75, 0xbc, 0x44, - 0xe2, 0xf1, 0x8b, 0xff, 0x4e, 0xc1, 0x45, 0x91, 0x1a, 0x3d, 0x85, 0x51, 0xa9, 0x9b, 0xe8, 0x4a, - 0x22, 0x5e, 0x52, 0x9c, 0xf5, 0xab, 0xfd, 0x8d, 0x24, 0x36, 0x5e, 0xff, 0xfe, 0xcf, 0x7f, 0x7e, - 0xbc, 0x70, 0x15, 0x61, 0xe3, 0x81, 0xb0, 0x76, 0x48, 0xd5, 0x33, 0xd2, 0x9f, 0x6b, 0xf4, 0x5c, - 0x03, 0xe8, 0x28, 0x2c, 0x5a, 0x4f, 0x4f, 0x90, 0x26, 0xdf, 0xfa, 0xbb, 0x03, 0xd9, 0x2a, 0xa6, - 0x6d, 0xc1, 0x74, 0x03, 0x15, 0x15, 0xd3, 0xf5, 0xfb, 0x69, 0x50, 0x1d, 0x9d, 0x36, 0x8e, 0x43, - 0x29, 0x6e, 0xa3, 0x9f, 0x35, 0x18, 0x0f, 0x15, 0x08, 0xad, 0x66, 0x66, 0x8d, 0xc9, 0xa7, 0xbe, - 0x36, 0x80, 0xa5, 0xa2, 0xbb, 0x25, 0xe8, 0xb6, 0xd0, 0x66, 0x5f, 0xba, 0x48, 0x27, 0xbb, 0xe1, - 0x7e, 0xd0, 0x60, 0x32, 0x8c, 0xb7, 0xe3, 0x38, 0x59, 0x7c, 0x49, 0x79, 0xcf, 0xe2, 0x4b, 0x11, - 0x69, 0x5c, 0x10, 0x7c, 0xab, 0xe8, 0xda, 0x60, 0x7c, 0xe8, 0x57, 0x0d, 0xa6, 0x7b, 0x84, 0x31, - 0xeb, 0x60, 0xd3, 0xe4, 0x36, 0xeb, 0x60, 0x53, 0x95, 0x76, 0xc0, 0x83, 0x6d, 0x08, 0xdf, 0xf0, - 0xab, 0xc4, 0x38, 0x0e, 0x24, 0xbc, 0x8d, 0x7e, 0xd2, 0x60, 0xa1, 0xdf, 0xf7, 0x10, 0xba, 0x95, - 0x4e, 0x32, 0xc0, 0x57, 0x9c, 0xbe, 0xfd, 0x3a, 0xae, 0xea, 0xde, 0xff, 0xae, 0xc1, 0x54, 0xb7, - 0x22, 0xa2, 0x8d, 0xcc, 0x56, 0x4a, 0x51, 0x65, 0xfd, 0xfa, 0x80, 0xd6, 0xaa, 0x82, 0x77, 0x44, - 0x05, 0x3f, 0x44, 0xb7, 0xfb, 0x56, 0xb0, 0x47, 0xc7, 0x8d, 0xe3, 0xf8, 0x53, 0xd5, 0x46, 0xbf, - 0x68, 0x30, 0xd3, 0x1d, 0x3f, 0x68, 0xc6, 0x8d, 0xcc, 0x16, 0x3b, 0x07, 0x77, 0xc6, 0xe3, 0x82, - 0x8b, 0x82, 0x7b, 0x03, 0xad, 0x0f, 0xce, 0x8d, 0xfe, 0xd0, 0x00, 0x25, 0x25, 0x1e, 0x15, 0x33, - 0x2b, 0x96, 0xf9, 0xd8, 0xe8, 0x5b, 0xe7, 0xf2, 0x51, 0xcc, 0xfb, 0x82, 0xf9, 0x63, 0xb4, 0xd7, - 0x97, 0x99, 0xd1, 0x43, 0xbf, 0xd2, 0x14, 0x11, 0x2a, 0xe1, 0x13, 0x23, 0xee, 0xbc, 0x7a, 0xda, - 0xda, 0xc6, 0xb1, 0x7a, 0xc8, 0xda, 0xe8, 0x37, 0x0d, 0x2e, 0x25, 0x5f, 0x9d, 0x95, 0x8c, 0x52, - 0xc6, 0x0d, 0x75, 0x63, 0x40, 0xc3, 0x73, 0x4a, 0x55, 0xe7, 0xb9, 0x32, 0x8e, 0xd5, 0xa5, 0x6b, - 0xef, 0x7e, 0xf2, 0xe2, 0x34, 0xaf, 0xbd, 0x3c, 0xcd, 0x6b, 0x7f, 0x9f, 0xe6, 0xb5, 0x67, 0x67, - 0xf9, 0xa1, 0x97, 0x67, 0xf9, 0xa1, 0xbf, 0xce, 0xf2, 0x43, 0x8f, 0x36, 0x6b, 0xb6, 0x5f, 0x6f, - 0x55, 0x0b, 0x26, 0x6f, 0xa4, 0x85, 0x3d, 0xb8, 0x69, 0x1c, 0x76, 0x62, 0xfb, 0x47, 0x4d, 0xea, - 0x55, 0x47, 0xc5, 0x1f, 0xab, 0xad, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x7f, 0x1b, 0x33, 0x8e, - 0x96, 0x0e, 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 - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - // Parameters queries the parameters of the module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // Queries a Validator by host zone. - Validators(ctx context.Context, in *QueryGetValidatorsRequest, opts ...grpc.CallOption) (*QueryGetValidatorsResponse, error) - // Queries a HostZone by id. - HostZone(ctx context.Context, in *QueryGetHostZoneRequest, opts ...grpc.CallOption) (*QueryGetHostZoneResponse, error) - // Queries a list of HostZone items. - HostZoneAll(ctx context.Context, in *QueryAllHostZoneRequest, opts ...grpc.CallOption) (*QueryAllHostZoneResponse, error) - // Queries a list of ModuleAddress items. - ModuleAddress(ctx context.Context, in *QueryModuleAddressRequest, opts ...grpc.CallOption) (*QueryModuleAddressResponse, error) - // QueryInterchainAccountFromAddress returns the interchain account for given - // owner address on a given connection pair - InterchainAccountFromAddress(ctx context.Context, in *QueryInterchainAccountFromAddressRequest, opts ...grpc.CallOption) (*QueryInterchainAccountFromAddressResponse, error) - // Queries a EpochTracker by index. - EpochTracker(ctx context.Context, in *QueryGetEpochTrackerRequest, opts ...grpc.CallOption) (*QueryGetEpochTrackerResponse, error) - // Queries a list of EpochTracker items. - EpochTrackerAll(ctx context.Context, in *QueryAllEpochTrackerRequest, opts ...grpc.CallOption) (*QueryAllEpochTrackerResponse, error) - // Queries the next packet sequence for one for a given channel - NextPacketSequence(ctx context.Context, in *QueryGetNextPacketSequenceRequest, opts ...grpc.CallOption) (*QueryGetNextPacketSequenceResponse, error) - // Queries an address's unbondings - AddressUnbondings(ctx context.Context, in *QueryAddressUnbondings, opts ...grpc.CallOption) (*QueryAddressUnbondingsResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Validators(ctx context.Context, in *QueryGetValidatorsRequest, opts ...grpc.CallOption) (*QueryGetValidatorsResponse, error) { - out := new(QueryGetValidatorsResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/Validators", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) HostZone(ctx context.Context, in *QueryGetHostZoneRequest, opts ...grpc.CallOption) (*QueryGetHostZoneResponse, error) { - out := new(QueryGetHostZoneResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/HostZone", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) HostZoneAll(ctx context.Context, in *QueryAllHostZoneRequest, opts ...grpc.CallOption) (*QueryAllHostZoneResponse, error) { - out := new(QueryAllHostZoneResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/HostZoneAll", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) ModuleAddress(ctx context.Context, in *QueryModuleAddressRequest, opts ...grpc.CallOption) (*QueryModuleAddressResponse, error) { - out := new(QueryModuleAddressResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/ModuleAddress", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) InterchainAccountFromAddress(ctx context.Context, in *QueryInterchainAccountFromAddressRequest, opts ...grpc.CallOption) (*QueryInterchainAccountFromAddressResponse, error) { - out := new(QueryInterchainAccountFromAddressResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/InterchainAccountFromAddress", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) EpochTracker(ctx context.Context, in *QueryGetEpochTrackerRequest, opts ...grpc.CallOption) (*QueryGetEpochTrackerResponse, error) { - out := new(QueryGetEpochTrackerResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/EpochTracker", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) EpochTrackerAll(ctx context.Context, in *QueryAllEpochTrackerRequest, opts ...grpc.CallOption) (*QueryAllEpochTrackerResponse, error) { - out := new(QueryAllEpochTrackerResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/EpochTrackerAll", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) NextPacketSequence(ctx context.Context, in *QueryGetNextPacketSequenceRequest, opts ...grpc.CallOption) (*QueryGetNextPacketSequenceResponse, error) { - out := new(QueryGetNextPacketSequenceResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/NextPacketSequence", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) AddressUnbondings(ctx context.Context, in *QueryAddressUnbondings, opts ...grpc.CallOption) (*QueryAddressUnbondingsResponse, error) { - out := new(QueryAddressUnbondingsResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/AddressUnbondings", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -type QueryServer interface { - // Parameters queries the parameters of the module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // Queries a Validator by host zone. - Validators(context.Context, *QueryGetValidatorsRequest) (*QueryGetValidatorsResponse, error) - // Queries a HostZone by id. - HostZone(context.Context, *QueryGetHostZoneRequest) (*QueryGetHostZoneResponse, error) - // Queries a list of HostZone items. - HostZoneAll(context.Context, *QueryAllHostZoneRequest) (*QueryAllHostZoneResponse, error) - // Queries a list of ModuleAddress items. - ModuleAddress(context.Context, *QueryModuleAddressRequest) (*QueryModuleAddressResponse, error) - // QueryInterchainAccountFromAddress returns the interchain account for given - // owner address on a given connection pair - InterchainAccountFromAddress(context.Context, *QueryInterchainAccountFromAddressRequest) (*QueryInterchainAccountFromAddressResponse, error) - // Queries a EpochTracker by index. - EpochTracker(context.Context, *QueryGetEpochTrackerRequest) (*QueryGetEpochTrackerResponse, error) - // Queries a list of EpochTracker items. - EpochTrackerAll(context.Context, *QueryAllEpochTrackerRequest) (*QueryAllEpochTrackerResponse, error) - // Queries the next packet sequence for one for a given channel - NextPacketSequence(context.Context, *QueryGetNextPacketSequenceRequest) (*QueryGetNextPacketSequenceResponse, error) - // Queries an address's unbondings - AddressUnbondings(context.Context, *QueryAddressUnbondings) (*QueryAddressUnbondingsResponse, error) -} - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} -func (*UnimplementedQueryServer) Validators(ctx context.Context, req *QueryGetValidatorsRequest) (*QueryGetValidatorsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Validators not implemented") -} -func (*UnimplementedQueryServer) HostZone(ctx context.Context, req *QueryGetHostZoneRequest) (*QueryGetHostZoneResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HostZone not implemented") -} -func (*UnimplementedQueryServer) HostZoneAll(ctx context.Context, req *QueryAllHostZoneRequest) (*QueryAllHostZoneResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method HostZoneAll not implemented") -} -func (*UnimplementedQueryServer) ModuleAddress(ctx context.Context, req *QueryModuleAddressRequest) (*QueryModuleAddressResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ModuleAddress not implemented") -} -func (*UnimplementedQueryServer) InterchainAccountFromAddress(ctx context.Context, req *QueryInterchainAccountFromAddressRequest) (*QueryInterchainAccountFromAddressResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InterchainAccountFromAddress not implemented") -} -func (*UnimplementedQueryServer) EpochTracker(ctx context.Context, req *QueryGetEpochTrackerRequest) (*QueryGetEpochTrackerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EpochTracker not implemented") -} -func (*UnimplementedQueryServer) EpochTrackerAll(ctx context.Context, req *QueryAllEpochTrackerRequest) (*QueryAllEpochTrackerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EpochTrackerAll not implemented") -} -func (*UnimplementedQueryServer) NextPacketSequence(ctx context.Context, req *QueryGetNextPacketSequenceRequest) (*QueryGetNextPacketSequenceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method NextPacketSequence not implemented") -} -func (*UnimplementedQueryServer) AddressUnbondings(ctx context.Context, req *QueryAddressUnbondings) (*QueryAddressUnbondingsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddressUnbondings not implemented") -} - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) -} - -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Query/Params", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Validators_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetValidatorsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Validators(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Query/Validators", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Validators(ctx, req.(*QueryGetValidatorsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_HostZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetHostZoneRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).HostZone(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Query/HostZone", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).HostZone(ctx, req.(*QueryGetHostZoneRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_HostZoneAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllHostZoneRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).HostZoneAll(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Query/HostZoneAll", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).HostZoneAll(ctx, req.(*QueryAllHostZoneRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_ModuleAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryModuleAddressRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).ModuleAddress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Query/ModuleAddress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ModuleAddress(ctx, req.(*QueryModuleAddressRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_InterchainAccountFromAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryInterchainAccountFromAddressRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).InterchainAccountFromAddress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Query/InterchainAccountFromAddress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).InterchainAccountFromAddress(ctx, req.(*QueryInterchainAccountFromAddressRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_EpochTracker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetEpochTrackerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).EpochTracker(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Query/EpochTracker", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EpochTracker(ctx, req.(*QueryGetEpochTrackerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_EpochTrackerAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllEpochTrackerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).EpochTrackerAll(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Query/EpochTrackerAll", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EpochTrackerAll(ctx, req.(*QueryAllEpochTrackerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_NextPacketSequence_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetNextPacketSequenceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).NextPacketSequence(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Query/NextPacketSequence", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).NextPacketSequence(ctx, req.(*QueryGetNextPacketSequenceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_AddressUnbondings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAddressUnbondings) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).AddressUnbondings(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Query/AddressUnbondings", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AddressUnbondings(ctx, req.(*QueryAddressUnbondings)) - } - return interceptor(ctx, in, info, handler) -} - -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "stride.stakeibc.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "Validators", - Handler: _Query_Validators_Handler, - }, - { - MethodName: "HostZone", - Handler: _Query_HostZone_Handler, - }, - { - MethodName: "HostZoneAll", - Handler: _Query_HostZoneAll_Handler, - }, - { - MethodName: "ModuleAddress", - Handler: _Query_ModuleAddress_Handler, - }, - { - MethodName: "InterchainAccountFromAddress", - Handler: _Query_InterchainAccountFromAddress_Handler, - }, - { - MethodName: "EpochTracker", - Handler: _Query_EpochTracker_Handler, - }, - { - MethodName: "EpochTrackerAll", - Handler: _Query_EpochTrackerAll_Handler, - }, - { - MethodName: "NextPacketSequence", - Handler: _Query_NextPacketSequence_Handler, - }, - { - MethodName: "AddressUnbondings", - Handler: _Query_AddressUnbondings_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "stride/stakeibc/query.proto", -} - -func (m *QueryInterchainAccountFromAddressRequest) 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 *QueryInterchainAccountFromAddressRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryInterchainAccountFromAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ConnectionId) > 0 { - i -= len(m.ConnectionId) - copy(dAtA[i:], m.ConnectionId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ConnectionId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryInterchainAccountFromAddressResponse) 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 *QueryInterchainAccountFromAddressResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryInterchainAccountFromAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.InterchainAccountAddress) > 0 { - i -= len(m.InterchainAccountAddress) - copy(dAtA[i:], m.InterchainAccountAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.InterchainAccountAddress))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryParamsResponse) 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 *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryGetValidatorsRequest) 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 *QueryGetValidatorsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryGetValidatorsResponse) 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 *QueryGetValidatorsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Validators) > 0 { - for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryGetHostZoneRequest) 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 *QueryGetHostZoneRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetHostZoneRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryGetHostZoneResponse) 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 *QueryGetHostZoneResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetHostZoneResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.HostZone.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryAllHostZoneRequest) 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 *QueryAllHostZoneRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllHostZoneRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryAllHostZoneResponse) 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 *QueryAllHostZoneResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllHostZoneResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.HostZone) > 0 { - for iNdEx := len(m.HostZone) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.HostZone[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryModuleAddressRequest) 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 *QueryModuleAddressRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryModuleAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryModuleAddressResponse) 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 *QueryModuleAddressResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryModuleAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Addr) > 0 { - i -= len(m.Addr) - copy(dAtA[i:], m.Addr) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryGetEpochTrackerRequest) 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 *QueryGetEpochTrackerRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetEpochTrackerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.EpochIdentifier) > 0 { - i -= len(m.EpochIdentifier) - copy(dAtA[i:], m.EpochIdentifier) - i = encodeVarintQuery(dAtA, i, uint64(len(m.EpochIdentifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryGetEpochTrackerResponse) 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 *QueryGetEpochTrackerResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetEpochTrackerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.EpochTracker.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryAllEpochTrackerRequest) 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 *QueryAllEpochTrackerRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllEpochTrackerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryAllEpochTrackerResponse) 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 *QueryAllEpochTrackerResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllEpochTrackerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.EpochTracker) > 0 { - for iNdEx := len(m.EpochTracker) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.EpochTracker[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryGetNextPacketSequenceRequest) 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 *QueryGetNextPacketSequenceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetNextPacketSequenceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PortId) > 0 { - i -= len(m.PortId) - copy(dAtA[i:], m.PortId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.PortId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ChannelId) > 0 { - i -= len(m.ChannelId) - copy(dAtA[i:], m.ChannelId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ChannelId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryGetNextPacketSequenceResponse) 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 *QueryGetNextPacketSequenceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetNextPacketSequenceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Sequence != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Sequence)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *QueryAddressUnbondings) 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 *QueryAddressUnbondings) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAddressUnbondings) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryAddressUnbondingsResponse) 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 *QueryAddressUnbondingsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAddressUnbondingsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AddressUnbondings) > 0 { - for iNdEx := len(m.AddressUnbondings) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AddressUnbondings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryInterchainAccountFromAddressRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.ConnectionId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryInterchainAccountFromAddressResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.InterchainAccountAddress) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryGetValidatorsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetValidatorsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Validators) > 0 { - for _, e := range m.Validators { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func (m *QueryGetHostZoneRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetHostZoneResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.HostZone.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryAllHostZoneRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryAllHostZoneResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.HostZone) > 0 { - for _, e := range m.HostZone { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryModuleAddressRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryModuleAddressResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Addr) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetEpochTrackerRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.EpochIdentifier) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetEpochTrackerResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.EpochTracker.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryAllEpochTrackerRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryAllEpochTrackerResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.EpochTracker) > 0 { - for _, e := range m.EpochTracker { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func (m *QueryGetNextPacketSequenceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChannelId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.PortId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetNextPacketSequenceResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Sequence != 0 { - n += 1 + sovQuery(uint64(m.Sequence)) - } - return n -} - -func (m *QueryAddressUnbondings) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryAddressUnbondingsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.AddressUnbondings) > 0 { - for _, e := range m.AddressUnbondings { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryInterchainAccountFromAddressRequest) 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 ErrIntOverflowQuery - } - 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: QueryInterchainAccountFromAddressRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryInterchainAccountFromAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConnectionId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryInterchainAccountFromAddressResponse) 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 ErrIntOverflowQuery - } - 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: QueryInterchainAccountFromAddressResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryInterchainAccountFromAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InterchainAccountAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.InterchainAccountAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParamsRequest) 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 ErrIntOverflowQuery - } - 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: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParamsResponse) 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 ErrIntOverflowQuery - } - 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: QueryParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetValidatorsRequest) 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 ErrIntOverflowQuery - } - 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: QueryGetValidatorsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetValidatorsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetValidatorsResponse) 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 ErrIntOverflowQuery - } - 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: QueryGetValidatorsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetValidatorsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Validators = append(m.Validators, &Validator{}) - if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetHostZoneRequest) 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 ErrIntOverflowQuery - } - 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: QueryGetHostZoneRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetHostZoneRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetHostZoneResponse) 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 ErrIntOverflowQuery - } - 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: QueryGetHostZoneResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetHostZoneResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZone", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.HostZone.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllHostZoneRequest) 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 ErrIntOverflowQuery - } - 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: QueryAllHostZoneRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllHostZoneRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllHostZoneResponse) 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 ErrIntOverflowQuery - } - 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: QueryAllHostZoneResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllHostZoneResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZone", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostZone = append(m.HostZone, HostZone{}) - if err := m.HostZone[len(m.HostZone)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryModuleAddressRequest) 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 ErrIntOverflowQuery - } - 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: QueryModuleAddressRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryModuleAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryModuleAddressResponse) 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 ErrIntOverflowQuery - } - 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: QueryModuleAddressResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryModuleAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Addr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetEpochTrackerRequest) 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 ErrIntOverflowQuery - } - 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: QueryGetEpochTrackerRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetEpochTrackerRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochIdentifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EpochIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetEpochTrackerResponse) 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 ErrIntOverflowQuery - } - 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: QueryGetEpochTrackerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetEpochTrackerResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochTracker", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.EpochTracker.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllEpochTrackerRequest) 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 ErrIntOverflowQuery - } - 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: QueryAllEpochTrackerRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllEpochTrackerRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllEpochTrackerResponse) 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 ErrIntOverflowQuery - } - 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: QueryAllEpochTrackerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllEpochTrackerResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochTracker", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EpochTracker = append(m.EpochTracker, EpochTracker{}) - if err := m.EpochTracker[len(m.EpochTracker)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetNextPacketSequenceRequest) 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 ErrIntOverflowQuery - } - 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: QueryGetNextPacketSequenceRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetNextPacketSequenceRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChannelId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PortId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetNextPacketSequenceResponse) 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 ErrIntOverflowQuery - } - 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: QueryGetNextPacketSequenceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetNextPacketSequenceResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) - } - m.Sequence = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Sequence |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAddressUnbondings) 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 ErrIntOverflowQuery - } - 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: QueryAddressUnbondings: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAddressUnbondings: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - 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 ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAddressUnbondingsResponse) 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 ErrIntOverflowQuery - } - 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: QueryAddressUnbondingsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAddressUnbondingsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AddressUnbondings", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AddressUnbondings = append(m.AddressUnbondings, AddressUnbonding{}) - if err := m.AddressUnbondings[len(m.AddressUnbondings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrIntOverflowQuery - } - 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, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/stakeibc/types/tx.pb.go b/x/stakeibc/types/tx.pb.go deleted file mode 100644 index 3b75f88eac..0000000000 --- a/x/stakeibc/types/tx.pb.go +++ /dev/null @@ -1,5446 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/stakeibc/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" - _ "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 - -type MsgLiquidStake struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` - HostDenom string `protobuf:"bytes,3,opt,name=host_denom,json=hostDenom,proto3" json:"host_denom,omitempty"` -} - -func (m *MsgLiquidStake) Reset() { *m = MsgLiquidStake{} } -func (m *MsgLiquidStake) String() string { return proto.CompactTextString(m) } -func (*MsgLiquidStake) ProtoMessage() {} -func (*MsgLiquidStake) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{0} -} -func (m *MsgLiquidStake) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgLiquidStake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgLiquidStake.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 *MsgLiquidStake) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgLiquidStake.Merge(m, src) -} -func (m *MsgLiquidStake) XXX_Size() int { - return m.Size() -} -func (m *MsgLiquidStake) XXX_DiscardUnknown() { - xxx_messageInfo_MsgLiquidStake.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgLiquidStake proto.InternalMessageInfo - -func (m *MsgLiquidStake) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgLiquidStake) GetHostDenom() string { - if m != nil { - return m.HostDenom - } - return "" -} - -type MsgLiquidStakeResponse struct { -} - -func (m *MsgLiquidStakeResponse) Reset() { *m = MsgLiquidStakeResponse{} } -func (m *MsgLiquidStakeResponse) String() string { return proto.CompactTextString(m) } -func (*MsgLiquidStakeResponse) ProtoMessage() {} -func (*MsgLiquidStakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{1} -} -func (m *MsgLiquidStakeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgLiquidStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgLiquidStakeResponse.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 *MsgLiquidStakeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgLiquidStakeResponse.Merge(m, src) -} -func (m *MsgLiquidStakeResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgLiquidStakeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgLiquidStakeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgLiquidStakeResponse proto.InternalMessageInfo - -type MsgClearBalance struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` - Channel string `protobuf:"bytes,4,opt,name=channel,proto3" json:"channel,omitempty"` -} - -func (m *MsgClearBalance) Reset() { *m = MsgClearBalance{} } -func (m *MsgClearBalance) String() string { return proto.CompactTextString(m) } -func (*MsgClearBalance) ProtoMessage() {} -func (*MsgClearBalance) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{2} -} -func (m *MsgClearBalance) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgClearBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgClearBalance.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 *MsgClearBalance) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgClearBalance.Merge(m, src) -} -func (m *MsgClearBalance) XXX_Size() int { - return m.Size() -} -func (m *MsgClearBalance) XXX_DiscardUnknown() { - xxx_messageInfo_MsgClearBalance.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgClearBalance proto.InternalMessageInfo - -func (m *MsgClearBalance) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgClearBalance) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *MsgClearBalance) GetChannel() string { - if m != nil { - return m.Channel - } - return "" -} - -type MsgClearBalanceResponse struct { -} - -func (m *MsgClearBalanceResponse) Reset() { *m = MsgClearBalanceResponse{} } -func (m *MsgClearBalanceResponse) String() string { return proto.CompactTextString(m) } -func (*MsgClearBalanceResponse) ProtoMessage() {} -func (*MsgClearBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{3} -} -func (m *MsgClearBalanceResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgClearBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgClearBalanceResponse.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 *MsgClearBalanceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgClearBalanceResponse.Merge(m, src) -} -func (m *MsgClearBalanceResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgClearBalanceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgClearBalanceResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgClearBalanceResponse proto.InternalMessageInfo - -type MsgRedeemStake struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` - HostZone string `protobuf:"bytes,3,opt,name=host_zone,json=hostZone,proto3" json:"host_zone,omitempty"` - Receiver string `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"` -} - -func (m *MsgRedeemStake) Reset() { *m = MsgRedeemStake{} } -func (m *MsgRedeemStake) String() string { return proto.CompactTextString(m) } -func (*MsgRedeemStake) ProtoMessage() {} -func (*MsgRedeemStake) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{4} -} -func (m *MsgRedeemStake) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgRedeemStake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgRedeemStake.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 *MsgRedeemStake) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRedeemStake.Merge(m, src) -} -func (m *MsgRedeemStake) XXX_Size() int { - return m.Size() -} -func (m *MsgRedeemStake) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRedeemStake.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgRedeemStake proto.InternalMessageInfo - -func (m *MsgRedeemStake) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgRedeemStake) GetHostZone() string { - if m != nil { - return m.HostZone - } - return "" -} - -func (m *MsgRedeemStake) GetReceiver() string { - if m != nil { - return m.Receiver - } - return "" -} - -type MsgRedeemStakeResponse struct { -} - -func (m *MsgRedeemStakeResponse) Reset() { *m = MsgRedeemStakeResponse{} } -func (m *MsgRedeemStakeResponse) String() string { return proto.CompactTextString(m) } -func (*MsgRedeemStakeResponse) ProtoMessage() {} -func (*MsgRedeemStakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{5} -} -func (m *MsgRedeemStakeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgRedeemStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgRedeemStakeResponse.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 *MsgRedeemStakeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRedeemStakeResponse.Merge(m, src) -} -func (m *MsgRedeemStakeResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgRedeemStakeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRedeemStakeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgRedeemStakeResponse proto.InternalMessageInfo - -// next: 15 -type MsgRegisterHostZone struct { - ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"` - Bech32Prefix string `protobuf:"bytes,12,opt,name=bech32prefix,proto3" json:"bech32prefix,omitempty"` - HostDenom string `protobuf:"bytes,4,opt,name=host_denom,json=hostDenom,proto3" json:"host_denom,omitempty" yaml:"host_denom"` - IbcDenom string `protobuf:"bytes,5,opt,name=ibc_denom,json=ibcDenom,proto3" json:"ibc_denom,omitempty" yaml:"ibc_denom"` - Creator string `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"` - TransferChannelId string `protobuf:"bytes,10,opt,name=transfer_channel_id,json=transferChannelId,proto3" json:"transfer_channel_id,omitempty" yaml:"transfer_channel_id"` - UnbondingFrequency uint64 `protobuf:"varint,11,opt,name=unbonding_frequency,json=unbondingFrequency,proto3" json:"unbonding_frequency,omitempty" yaml:"unbonding_frequency"` - MinRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,13,opt,name=min_redemption_rate,json=minRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"min_redemption_rate"` - MaxRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,14,opt,name=max_redemption_rate,json=maxRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_redemption_rate"` -} - -func (m *MsgRegisterHostZone) Reset() { *m = MsgRegisterHostZone{} } -func (m *MsgRegisterHostZone) String() string { return proto.CompactTextString(m) } -func (*MsgRegisterHostZone) ProtoMessage() {} -func (*MsgRegisterHostZone) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{6} -} -func (m *MsgRegisterHostZone) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgRegisterHostZone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgRegisterHostZone.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 *MsgRegisterHostZone) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRegisterHostZone.Merge(m, src) -} -func (m *MsgRegisterHostZone) XXX_Size() int { - return m.Size() -} -func (m *MsgRegisterHostZone) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRegisterHostZone.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgRegisterHostZone proto.InternalMessageInfo - -type MsgRegisterHostZoneResponse struct { -} - -func (m *MsgRegisterHostZoneResponse) Reset() { *m = MsgRegisterHostZoneResponse{} } -func (m *MsgRegisterHostZoneResponse) String() string { return proto.CompactTextString(m) } -func (*MsgRegisterHostZoneResponse) ProtoMessage() {} -func (*MsgRegisterHostZoneResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{7} -} -func (m *MsgRegisterHostZoneResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgRegisterHostZoneResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgRegisterHostZoneResponse.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 *MsgRegisterHostZoneResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRegisterHostZoneResponse.Merge(m, src) -} -func (m *MsgRegisterHostZoneResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgRegisterHostZoneResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRegisterHostZoneResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgRegisterHostZoneResponse proto.InternalMessageInfo - -type MsgClaimUndelegatedTokens struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - // UserUnbondingRecords are keyed on {chain_id}.{epoch}.{sender} - HostZoneId string `protobuf:"bytes,2,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` - Epoch uint64 `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty"` - Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"` -} - -func (m *MsgClaimUndelegatedTokens) Reset() { *m = MsgClaimUndelegatedTokens{} } -func (m *MsgClaimUndelegatedTokens) String() string { return proto.CompactTextString(m) } -func (*MsgClaimUndelegatedTokens) ProtoMessage() {} -func (*MsgClaimUndelegatedTokens) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{8} -} -func (m *MsgClaimUndelegatedTokens) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgClaimUndelegatedTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgClaimUndelegatedTokens.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 *MsgClaimUndelegatedTokens) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgClaimUndelegatedTokens.Merge(m, src) -} -func (m *MsgClaimUndelegatedTokens) XXX_Size() int { - return m.Size() -} -func (m *MsgClaimUndelegatedTokens) XXX_DiscardUnknown() { - xxx_messageInfo_MsgClaimUndelegatedTokens.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgClaimUndelegatedTokens proto.InternalMessageInfo - -func (m *MsgClaimUndelegatedTokens) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgClaimUndelegatedTokens) GetHostZoneId() string { - if m != nil { - return m.HostZoneId - } - return "" -} - -func (m *MsgClaimUndelegatedTokens) GetEpoch() uint64 { - if m != nil { - return m.Epoch - } - return 0 -} - -func (m *MsgClaimUndelegatedTokens) GetSender() string { - if m != nil { - return m.Sender - } - return "" -} - -type MsgClaimUndelegatedTokensResponse struct { -} - -func (m *MsgClaimUndelegatedTokensResponse) Reset() { *m = MsgClaimUndelegatedTokensResponse{} } -func (m *MsgClaimUndelegatedTokensResponse) String() string { return proto.CompactTextString(m) } -func (*MsgClaimUndelegatedTokensResponse) ProtoMessage() {} -func (*MsgClaimUndelegatedTokensResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{9} -} -func (m *MsgClaimUndelegatedTokensResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgClaimUndelegatedTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgClaimUndelegatedTokensResponse.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 *MsgClaimUndelegatedTokensResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgClaimUndelegatedTokensResponse.Merge(m, src) -} -func (m *MsgClaimUndelegatedTokensResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgClaimUndelegatedTokensResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgClaimUndelegatedTokensResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgClaimUndelegatedTokensResponse proto.InternalMessageInfo - -type MsgRebalanceValidators struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - HostZone string `protobuf:"bytes,2,opt,name=host_zone,json=hostZone,proto3" json:"host_zone,omitempty"` - NumRebalance uint64 `protobuf:"varint,3,opt,name=num_rebalance,json=numRebalance,proto3" json:"num_rebalance,omitempty"` -} - -func (m *MsgRebalanceValidators) Reset() { *m = MsgRebalanceValidators{} } -func (m *MsgRebalanceValidators) String() string { return proto.CompactTextString(m) } -func (*MsgRebalanceValidators) ProtoMessage() {} -func (*MsgRebalanceValidators) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{10} -} -func (m *MsgRebalanceValidators) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgRebalanceValidators) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgRebalanceValidators.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 *MsgRebalanceValidators) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRebalanceValidators.Merge(m, src) -} -func (m *MsgRebalanceValidators) XXX_Size() int { - return m.Size() -} -func (m *MsgRebalanceValidators) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRebalanceValidators.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgRebalanceValidators proto.InternalMessageInfo - -func (m *MsgRebalanceValidators) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgRebalanceValidators) GetHostZone() string { - if m != nil { - return m.HostZone - } - return "" -} - -func (m *MsgRebalanceValidators) GetNumRebalance() uint64 { - if m != nil { - return m.NumRebalance - } - return 0 -} - -type MsgRebalanceValidatorsResponse struct { -} - -func (m *MsgRebalanceValidatorsResponse) Reset() { *m = MsgRebalanceValidatorsResponse{} } -func (m *MsgRebalanceValidatorsResponse) String() string { return proto.CompactTextString(m) } -func (*MsgRebalanceValidatorsResponse) ProtoMessage() {} -func (*MsgRebalanceValidatorsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{11} -} -func (m *MsgRebalanceValidatorsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgRebalanceValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgRebalanceValidatorsResponse.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 *MsgRebalanceValidatorsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRebalanceValidatorsResponse.Merge(m, src) -} -func (m *MsgRebalanceValidatorsResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgRebalanceValidatorsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRebalanceValidatorsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgRebalanceValidatorsResponse proto.InternalMessageInfo - -type MsgAddValidator struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - HostZone string `protobuf:"bytes,2,opt,name=host_zone,json=hostZone,proto3" json:"host_zone,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` - Commission uint64 `protobuf:"varint,5,opt,name=commission,proto3" json:"commission,omitempty"` - Weight uint64 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"` -} - -func (m *MsgAddValidator) Reset() { *m = MsgAddValidator{} } -func (m *MsgAddValidator) String() string { return proto.CompactTextString(m) } -func (*MsgAddValidator) ProtoMessage() {} -func (*MsgAddValidator) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{12} -} -func (m *MsgAddValidator) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgAddValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgAddValidator.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 *MsgAddValidator) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAddValidator.Merge(m, src) -} -func (m *MsgAddValidator) XXX_Size() int { - return m.Size() -} -func (m *MsgAddValidator) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAddValidator.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgAddValidator proto.InternalMessageInfo - -func (m *MsgAddValidator) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgAddValidator) GetHostZone() string { - if m != nil { - return m.HostZone - } - return "" -} - -func (m *MsgAddValidator) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *MsgAddValidator) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *MsgAddValidator) GetCommission() uint64 { - if m != nil { - return m.Commission - } - return 0 -} - -func (m *MsgAddValidator) GetWeight() uint64 { - if m != nil { - return m.Weight - } - return 0 -} - -type MsgAddValidatorResponse struct { -} - -func (m *MsgAddValidatorResponse) Reset() { *m = MsgAddValidatorResponse{} } -func (m *MsgAddValidatorResponse) String() string { return proto.CompactTextString(m) } -func (*MsgAddValidatorResponse) ProtoMessage() {} -func (*MsgAddValidatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{13} -} -func (m *MsgAddValidatorResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgAddValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgAddValidatorResponse.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 *MsgAddValidatorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAddValidatorResponse.Merge(m, src) -} -func (m *MsgAddValidatorResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgAddValidatorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAddValidatorResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgAddValidatorResponse proto.InternalMessageInfo - -type MsgChangeValidatorWeight struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - HostZone string `protobuf:"bytes,2,opt,name=host_zone,json=hostZone,proto3" json:"host_zone,omitempty"` - ValAddr string `protobuf:"bytes,3,opt,name=val_addr,json=valAddr,proto3" json:"val_addr,omitempty"` - Weight uint64 `protobuf:"varint,4,opt,name=weight,proto3" json:"weight,omitempty"` -} - -func (m *MsgChangeValidatorWeight) Reset() { *m = MsgChangeValidatorWeight{} } -func (m *MsgChangeValidatorWeight) String() string { return proto.CompactTextString(m) } -func (*MsgChangeValidatorWeight) ProtoMessage() {} -func (*MsgChangeValidatorWeight) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{14} -} -func (m *MsgChangeValidatorWeight) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgChangeValidatorWeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgChangeValidatorWeight.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 *MsgChangeValidatorWeight) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgChangeValidatorWeight.Merge(m, src) -} -func (m *MsgChangeValidatorWeight) XXX_Size() int { - return m.Size() -} -func (m *MsgChangeValidatorWeight) XXX_DiscardUnknown() { - xxx_messageInfo_MsgChangeValidatorWeight.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgChangeValidatorWeight proto.InternalMessageInfo - -func (m *MsgChangeValidatorWeight) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgChangeValidatorWeight) GetHostZone() string { - if m != nil { - return m.HostZone - } - return "" -} - -func (m *MsgChangeValidatorWeight) GetValAddr() string { - if m != nil { - return m.ValAddr - } - return "" -} - -func (m *MsgChangeValidatorWeight) GetWeight() uint64 { - if m != nil { - return m.Weight - } - return 0 -} - -type MsgChangeValidatorWeightResponse struct { -} - -func (m *MsgChangeValidatorWeightResponse) Reset() { *m = MsgChangeValidatorWeightResponse{} } -func (m *MsgChangeValidatorWeightResponse) String() string { return proto.CompactTextString(m) } -func (*MsgChangeValidatorWeightResponse) ProtoMessage() {} -func (*MsgChangeValidatorWeightResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{15} -} -func (m *MsgChangeValidatorWeightResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgChangeValidatorWeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgChangeValidatorWeightResponse.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 *MsgChangeValidatorWeightResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgChangeValidatorWeightResponse.Merge(m, src) -} -func (m *MsgChangeValidatorWeightResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgChangeValidatorWeightResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgChangeValidatorWeightResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgChangeValidatorWeightResponse proto.InternalMessageInfo - -type MsgDeleteValidator struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - HostZone string `protobuf:"bytes,2,opt,name=host_zone,json=hostZone,proto3" json:"host_zone,omitempty"` - ValAddr string `protobuf:"bytes,3,opt,name=val_addr,json=valAddr,proto3" json:"val_addr,omitempty"` -} - -func (m *MsgDeleteValidator) Reset() { *m = MsgDeleteValidator{} } -func (m *MsgDeleteValidator) String() string { return proto.CompactTextString(m) } -func (*MsgDeleteValidator) ProtoMessage() {} -func (*MsgDeleteValidator) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{16} -} -func (m *MsgDeleteValidator) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgDeleteValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgDeleteValidator.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 *MsgDeleteValidator) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgDeleteValidator.Merge(m, src) -} -func (m *MsgDeleteValidator) XXX_Size() int { - return m.Size() -} -func (m *MsgDeleteValidator) XXX_DiscardUnknown() { - xxx_messageInfo_MsgDeleteValidator.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgDeleteValidator proto.InternalMessageInfo - -func (m *MsgDeleteValidator) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgDeleteValidator) GetHostZone() string { - if m != nil { - return m.HostZone - } - return "" -} - -func (m *MsgDeleteValidator) GetValAddr() string { - if m != nil { - return m.ValAddr - } - return "" -} - -type MsgDeleteValidatorResponse struct { -} - -func (m *MsgDeleteValidatorResponse) Reset() { *m = MsgDeleteValidatorResponse{} } -func (m *MsgDeleteValidatorResponse) String() string { return proto.CompactTextString(m) } -func (*MsgDeleteValidatorResponse) ProtoMessage() {} -func (*MsgDeleteValidatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{17} -} -func (m *MsgDeleteValidatorResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgDeleteValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgDeleteValidatorResponse.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 *MsgDeleteValidatorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgDeleteValidatorResponse.Merge(m, src) -} -func (m *MsgDeleteValidatorResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgDeleteValidatorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgDeleteValidatorResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgDeleteValidatorResponse proto.InternalMessageInfo - -type MsgRestoreInterchainAccount struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - AccountType ICAAccountType `protobuf:"varint,3,opt,name=account_type,json=accountType,proto3,enum=stride.stakeibc.ICAAccountType" json:"account_type,omitempty"` -} - -func (m *MsgRestoreInterchainAccount) Reset() { *m = MsgRestoreInterchainAccount{} } -func (m *MsgRestoreInterchainAccount) String() string { return proto.CompactTextString(m) } -func (*MsgRestoreInterchainAccount) ProtoMessage() {} -func (*MsgRestoreInterchainAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{18} -} -func (m *MsgRestoreInterchainAccount) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgRestoreInterchainAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgRestoreInterchainAccount.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 *MsgRestoreInterchainAccount) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRestoreInterchainAccount.Merge(m, src) -} -func (m *MsgRestoreInterchainAccount) XXX_Size() int { - return m.Size() -} -func (m *MsgRestoreInterchainAccount) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRestoreInterchainAccount.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgRestoreInterchainAccount proto.InternalMessageInfo - -func (m *MsgRestoreInterchainAccount) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgRestoreInterchainAccount) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *MsgRestoreInterchainAccount) GetAccountType() ICAAccountType { - if m != nil { - return m.AccountType - } - return ICAAccountType_DELEGATION -} - -type MsgRestoreInterchainAccountResponse struct { -} - -func (m *MsgRestoreInterchainAccountResponse) Reset() { *m = MsgRestoreInterchainAccountResponse{} } -func (m *MsgRestoreInterchainAccountResponse) String() string { return proto.CompactTextString(m) } -func (*MsgRestoreInterchainAccountResponse) ProtoMessage() {} -func (*MsgRestoreInterchainAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{19} -} -func (m *MsgRestoreInterchainAccountResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgRestoreInterchainAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgRestoreInterchainAccountResponse.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 *MsgRestoreInterchainAccountResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRestoreInterchainAccountResponse.Merge(m, src) -} -func (m *MsgRestoreInterchainAccountResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgRestoreInterchainAccountResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRestoreInterchainAccountResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgRestoreInterchainAccountResponse proto.InternalMessageInfo - -type MsgUpdateValidatorSharesExchRate struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - Valoper string `protobuf:"bytes,3,opt,name=valoper,proto3" json:"valoper,omitempty"` -} - -func (m *MsgUpdateValidatorSharesExchRate) Reset() { *m = MsgUpdateValidatorSharesExchRate{} } -func (m *MsgUpdateValidatorSharesExchRate) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateValidatorSharesExchRate) ProtoMessage() {} -func (*MsgUpdateValidatorSharesExchRate) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{20} -} -func (m *MsgUpdateValidatorSharesExchRate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateValidatorSharesExchRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateValidatorSharesExchRate.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 *MsgUpdateValidatorSharesExchRate) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateValidatorSharesExchRate.Merge(m, src) -} -func (m *MsgUpdateValidatorSharesExchRate) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateValidatorSharesExchRate) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateValidatorSharesExchRate.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateValidatorSharesExchRate proto.InternalMessageInfo - -func (m *MsgUpdateValidatorSharesExchRate) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgUpdateValidatorSharesExchRate) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *MsgUpdateValidatorSharesExchRate) GetValoper() string { - if m != nil { - return m.Valoper - } - return "" -} - -type MsgUpdateValidatorSharesExchRateResponse struct { -} - -func (m *MsgUpdateValidatorSharesExchRateResponse) Reset() { - *m = MsgUpdateValidatorSharesExchRateResponse{} -} -func (m *MsgUpdateValidatorSharesExchRateResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateValidatorSharesExchRateResponse) ProtoMessage() {} -func (*MsgUpdateValidatorSharesExchRateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{21} -} -func (m *MsgUpdateValidatorSharesExchRateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateValidatorSharesExchRateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateValidatorSharesExchRateResponse.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 *MsgUpdateValidatorSharesExchRateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateValidatorSharesExchRateResponse.Merge(m, src) -} -func (m *MsgUpdateValidatorSharesExchRateResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateValidatorSharesExchRateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateValidatorSharesExchRateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateValidatorSharesExchRateResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*MsgLiquidStake)(nil), "stride.stakeibc.MsgLiquidStake") - proto.RegisterType((*MsgLiquidStakeResponse)(nil), "stride.stakeibc.MsgLiquidStakeResponse") - proto.RegisterType((*MsgClearBalance)(nil), "stride.stakeibc.MsgClearBalance") - proto.RegisterType((*MsgClearBalanceResponse)(nil), "stride.stakeibc.MsgClearBalanceResponse") - proto.RegisterType((*MsgRedeemStake)(nil), "stride.stakeibc.MsgRedeemStake") - proto.RegisterType((*MsgRedeemStakeResponse)(nil), "stride.stakeibc.MsgRedeemStakeResponse") - proto.RegisterType((*MsgRegisterHostZone)(nil), "stride.stakeibc.MsgRegisterHostZone") - proto.RegisterType((*MsgRegisterHostZoneResponse)(nil), "stride.stakeibc.MsgRegisterHostZoneResponse") - proto.RegisterType((*MsgClaimUndelegatedTokens)(nil), "stride.stakeibc.MsgClaimUndelegatedTokens") - proto.RegisterType((*MsgClaimUndelegatedTokensResponse)(nil), "stride.stakeibc.MsgClaimUndelegatedTokensResponse") - proto.RegisterType((*MsgRebalanceValidators)(nil), "stride.stakeibc.MsgRebalanceValidators") - proto.RegisterType((*MsgRebalanceValidatorsResponse)(nil), "stride.stakeibc.MsgRebalanceValidatorsResponse") - proto.RegisterType((*MsgAddValidator)(nil), "stride.stakeibc.MsgAddValidator") - proto.RegisterType((*MsgAddValidatorResponse)(nil), "stride.stakeibc.MsgAddValidatorResponse") - proto.RegisterType((*MsgChangeValidatorWeight)(nil), "stride.stakeibc.MsgChangeValidatorWeight") - proto.RegisterType((*MsgChangeValidatorWeightResponse)(nil), "stride.stakeibc.MsgChangeValidatorWeightResponse") - proto.RegisterType((*MsgDeleteValidator)(nil), "stride.stakeibc.MsgDeleteValidator") - proto.RegisterType((*MsgDeleteValidatorResponse)(nil), "stride.stakeibc.MsgDeleteValidatorResponse") - proto.RegisterType((*MsgRestoreInterchainAccount)(nil), "stride.stakeibc.MsgRestoreInterchainAccount") - proto.RegisterType((*MsgRestoreInterchainAccountResponse)(nil), "stride.stakeibc.MsgRestoreInterchainAccountResponse") - proto.RegisterType((*MsgUpdateValidatorSharesExchRate)(nil), "stride.stakeibc.MsgUpdateValidatorSharesExchRate") - proto.RegisterType((*MsgUpdateValidatorSharesExchRateResponse)(nil), "stride.stakeibc.MsgUpdateValidatorSharesExchRateResponse") -} - -func init() { proto.RegisterFile("stride/stakeibc/tx.proto", fileDescriptor_9b7e09c9ad51cd54) } - -var fileDescriptor_9b7e09c9ad51cd54 = []byte{ - // 1229 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x4d, 0x6f, 0xdb, 0x46, - 0x13, 0x16, 0x13, 0xc5, 0x91, 0x27, 0xb2, 0x1d, 0xd3, 0x8e, 0x5f, 0x9a, 0x79, 0x2d, 0x29, 0x74, - 0x3f, 0xdc, 0xb4, 0x96, 0x60, 0x3b, 0x28, 0xd0, 0xa0, 0x3d, 0x58, 0x76, 0x83, 0x0a, 0x8d, 0x5b, - 0x80, 0x4e, 0x1a, 0xc0, 0x17, 0x61, 0x45, 0xae, 0x29, 0xc2, 0xe2, 0xae, 0xcc, 0xa5, 0x5c, 0xb9, - 0x87, 0xa2, 0x28, 0x50, 0xa0, 0x97, 0x02, 0xed, 0xa5, 0xc7, 0x22, 0xc7, 0x02, 0x05, 0x7a, 0xca, - 0x8f, 0xf0, 0x31, 0xc8, 0xa9, 0xe8, 0x41, 0x28, 0xec, 0x4b, 0xcf, 0xfe, 0x05, 0x05, 0x97, 0xe4, - 0x8a, 0x94, 0x29, 0xf9, 0x23, 0x45, 0x4f, 0xd2, 0xcc, 0x3c, 0x3b, 0xf3, 0xcc, 0xec, 0xce, 0x70, - 0x17, 0x14, 0xe6, 0xb9, 0xb6, 0x89, 0x2b, 0xcc, 0x43, 0x7b, 0xd8, 0x6e, 0x18, 0x15, 0xaf, 0x5b, - 0x6e, 0xbb, 0xd4, 0xa3, 0xf2, 0x54, 0x60, 0x29, 0x47, 0x16, 0xf5, 0xde, 0x20, 0xd4, 0x36, 0x50, - 0x1d, 0x19, 0x06, 0xed, 0x10, 0x2f, 0x58, 0xa3, 0xce, 0x5a, 0xd4, 0xa2, 0xfc, 0x6f, 0xc5, 0xff, - 0x17, 0x6a, 0xe7, 0x0d, 0xca, 0x1c, 0xca, 0xea, 0x81, 0x21, 0x10, 0x02, 0x93, 0xf6, 0x93, 0x04, - 0x93, 0x5b, 0xcc, 0x7a, 0x6c, 0xef, 0x77, 0x6c, 0x73, 0xdb, 0x77, 0x2c, 0x2b, 0x70, 0xd3, 0x70, - 0x31, 0xf2, 0xa8, 0xab, 0x48, 0x25, 0x69, 0x69, 0x5c, 0x8f, 0x44, 0xf9, 0x11, 0x8c, 0x21, 0xc7, - 0x8f, 0xa6, 0x5c, 0xf3, 0x0d, 0xd5, 0xf2, 0x51, 0xaf, 0x98, 0xf9, 0xb3, 0x57, 0x7c, 0xcb, 0xb2, - 0xbd, 0x66, 0xa7, 0x51, 0x36, 0xa8, 0x13, 0x7a, 0x0f, 0x7f, 0x96, 0x99, 0xb9, 0x57, 0xf1, 0x0e, - 0xdb, 0x98, 0x95, 0x6b, 0xc4, 0xd3, 0xc3, 0xd5, 0xf2, 0x02, 0x40, 0x93, 0x32, 0xaf, 0x6e, 0x62, - 0x42, 0x1d, 0xe5, 0x3a, 0x0f, 0x32, 0xee, 0x6b, 0x36, 0x7d, 0x85, 0xa6, 0xc0, 0x5c, 0x92, 0x92, - 0x8e, 0x59, 0x9b, 0x12, 0x86, 0xb5, 0x5f, 0x25, 0x98, 0xda, 0x62, 0xd6, 0x46, 0x0b, 0x23, 0xb7, - 0x8a, 0x5a, 0x88, 0x18, 0xa3, 0xe8, 0xce, 0x43, 0xce, 0x68, 0x22, 0x9b, 0xd4, 0x6d, 0x33, 0x20, - 0xac, 0xdf, 0xe4, 0x72, 0xcd, 0x8c, 0x65, 0x72, 0xfd, 0xb5, 0x32, 0xf1, 0x83, 0x37, 0x11, 0x21, - 0xb8, 0xa5, 0x64, 0x45, 0x04, 0x5f, 0xd4, 0xe6, 0xe1, 0x7f, 0x03, 0x4c, 0x45, 0x16, 0xbf, 0x05, - 0x35, 0xd7, 0xb1, 0x89, 0xb1, 0xf3, 0x5f, 0xd5, 0xfc, 0x2e, 0xf0, 0x0a, 0xd7, 0xbf, 0xa2, 0x04, - 0x87, 0x25, 0xcf, 0xf9, 0x8a, 0x1d, 0x4a, 0xb0, 0xac, 0x42, 0xce, 0xc5, 0x06, 0xb6, 0x0f, 0xb0, - 0x1b, 0xe6, 0x21, 0xe4, 0x70, 0x37, 0x62, 0x64, 0x45, 0x1e, 0xdf, 0xde, 0x80, 0x19, 0x6e, 0xb2, - 0x6c, 0xe6, 0x61, 0xf7, 0x93, 0xc8, 0xdb, 0x47, 0x30, 0x61, 0x50, 0x42, 0xb0, 0xe1, 0xd9, 0xb4, - 0x5f, 0xfc, 0xaa, 0x72, 0xda, 0x2b, 0xce, 0x1e, 0x22, 0xa7, 0xf5, 0x50, 0x4b, 0x98, 0x35, 0x3d, - 0xdf, 0x97, 0x6b, 0xa6, 0xac, 0x41, 0xbe, 0x81, 0x8d, 0xe6, 0xda, 0x6a, 0xdb, 0xc5, 0xbb, 0x76, - 0x57, 0xc9, 0x73, 0x42, 0x09, 0x9d, 0xfc, 0x20, 0x71, 0x82, 0x38, 0xe5, 0xea, 0x9d, 0xd3, 0x5e, - 0x71, 0x3a, 0xf0, 0xdf, 0xb7, 0x69, 0xb1, 0x83, 0x25, 0xaf, 0xc0, 0xb8, 0xdd, 0x30, 0xc2, 0x45, - 0x37, 0xf8, 0xa2, 0xd9, 0xd3, 0x5e, 0xf1, 0x76, 0xb0, 0x48, 0x98, 0x34, 0x3d, 0x67, 0x37, 0x8c, - 0x60, 0x49, 0x6c, 0x63, 0xc6, 0x92, 0x1b, 0xf3, 0x19, 0xcc, 0x78, 0x2e, 0x22, 0x6c, 0x17, 0xbb, - 0xf5, 0x70, 0xd3, 0xfd, 0x5c, 0x81, 0xbb, 0x2d, 0x9c, 0xf6, 0x8a, 0x6a, 0xe0, 0x36, 0x05, 0xa4, - 0xe9, 0xd3, 0x91, 0x76, 0x23, 0x50, 0xd6, 0x4c, 0xf9, 0x73, 0x98, 0xe9, 0x90, 0x06, 0x25, 0xa6, - 0x4d, 0xac, 0xfa, 0xae, 0x8b, 0xf7, 0x3b, 0x98, 0x18, 0x87, 0xca, 0xad, 0x92, 0xb4, 0x94, 0x8d, - 0xfb, 0x4b, 0x01, 0x69, 0xba, 0x2c, 0xb4, 0x8f, 0x22, 0xa5, 0xdc, 0x82, 0x19, 0xc7, 0x26, 0x75, - 0x17, 0x9b, 0xd8, 0x69, 0xf3, 0x5a, 0xbb, 0xc8, 0xc3, 0xca, 0x04, 0x27, 0xf8, 0xe1, 0x25, 0x8e, - 0xd1, 0x26, 0x36, 0x5e, 0xbd, 0x58, 0x86, 0x70, 0x6e, 0x6c, 0x62, 0x43, 0x9f, 0x76, 0x6c, 0xa2, - 0x0b, 0xbf, 0x3a, 0xf2, 0x30, 0x8f, 0x86, 0xba, 0x67, 0xa2, 0x4d, 0xfe, 0x2b, 0xd1, 0x50, 0x37, - 0x19, 0xed, 0x61, 0xee, 0xfb, 0xe7, 0xc5, 0xcc, 0xdf, 0xcf, 0x8b, 0x19, 0x6d, 0x01, 0xee, 0xa6, - 0x9c, 0x41, 0x71, 0x46, 0xbf, 0x93, 0x60, 0x9e, 0xf7, 0x21, 0xb2, 0x9d, 0xa7, 0xc4, 0xc4, 0x2d, - 0x6c, 0x21, 0x0f, 0x9b, 0x4f, 0xe8, 0x1e, 0x26, 0x6c, 0x44, 0xdb, 0x95, 0x20, 0x2f, 0xda, 0xa5, - 0x3f, 0x3f, 0x20, 0xea, 0x98, 0x9a, 0x29, 0xcf, 0xc2, 0x0d, 0xdc, 0xa6, 0x46, 0x93, 0x37, 0x53, - 0x56, 0x0f, 0x04, 0x79, 0x0e, 0xc6, 0x18, 0x26, 0xa6, 0xe8, 0xa3, 0x50, 0xd2, 0x16, 0xe1, 0xde, - 0x50, 0x1a, 0x82, 0xac, 0x17, 0xb6, 0x5a, 0x23, 0x18, 0x18, 0x5f, 0xa0, 0x96, 0x6d, 0xfa, 0x6c, - 0x46, 0x11, 0x4d, 0xf4, 0xf5, 0xb5, 0x81, 0xbe, 0x5e, 0x84, 0x09, 0xd2, 0x71, 0xea, 0x6e, 0xe4, - 0x31, 0xe4, 0x9a, 0x27, 0x1d, 0x47, 0x44, 0xd1, 0x4a, 0x50, 0x48, 0x8f, 0x2a, 0x78, 0x1d, 0x05, - 0x63, 0x77, 0xdd, 0x34, 0x85, 0xf1, 0xaa, 0x8c, 0x64, 0xc8, 0x12, 0xe4, 0x44, 0x13, 0x88, 0xff, - 0x97, 0x57, 0xe1, 0x26, 0x32, 0x4d, 0x17, 0x33, 0x16, 0x76, 0xb2, 0xf2, 0xea, 0xc5, 0xf2, 0x6c, - 0x78, 0x00, 0xd6, 0x03, 0xcb, 0xb6, 0xe7, 0xda, 0xc4, 0xd2, 0x23, 0xa0, 0x5c, 0x00, 0x30, 0xa8, - 0xe3, 0xd8, 0x8c, 0xd9, 0x94, 0xf0, 0x5e, 0xce, 0xea, 0x31, 0x8d, 0xbf, 0x0f, 0x5f, 0x62, 0xdb, - 0x6a, 0x7a, 0xbc, 0x6d, 0xb3, 0x7a, 0x28, 0x85, 0x63, 0x39, 0x9e, 0x89, 0xc8, 0xf2, 0x17, 0x09, - 0x14, 0x7f, 0x8f, 0x9a, 0x88, 0x58, 0xfd, 0x2a, 0x3c, 0xe3, 0xeb, 0xae, 0x9a, 0xee, 0x1a, 0xe4, - 0x0e, 0x50, 0xab, 0xee, 0xb3, 0x0e, 0xbf, 0x34, 0x23, 0x72, 0x3b, 0x40, 0x2d, 0x5f, 0x13, 0xe3, - 0x9e, 0x4d, 0x70, 0xd7, 0xa0, 0x34, 0x8c, 0x9f, 0x48, 0xe2, 0x1b, 0x09, 0xe4, 0x2d, 0x66, 0x6d, - 0xe2, 0x16, 0xf6, 0xf0, 0x6b, 0xef, 0xd6, 0x55, 0xe8, 0x6b, 0xff, 0x07, 0xf5, 0x2c, 0x03, 0x41, - 0xf0, 0x67, 0x29, 0x6c, 0x58, 0xe6, 0x51, 0x17, 0xd7, 0x88, 0x87, 0x5d, 0xfe, 0x51, 0x5e, 0x0f, - 0xee, 0x31, 0x57, 0xfb, 0x9c, 0x57, 0x21, 0x1f, 0xde, 0x83, 0xea, 0xfe, 0x10, 0xe1, 0x5c, 0x27, - 0x57, 0x8b, 0xe5, 0x81, 0x1b, 0x54, 0xb9, 0xb6, 0xb1, 0x1e, 0xc6, 0x79, 0x72, 0xd8, 0xc6, 0xfa, - 0x2d, 0xd4, 0x17, 0xb4, 0x37, 0x61, 0x71, 0x04, 0x2f, 0xc1, 0x7f, 0x9f, 0x6f, 0xc2, 0xd3, 0xb6, - 0x89, 0x62, 0xd9, 0x6d, 0x37, 0x91, 0x8b, 0xd9, 0xc7, 0x5d, 0xa3, 0xc9, 0x67, 0xe1, 0x95, 0x72, - 0x50, 0xc0, 0xaf, 0x20, 0x6d, 0xe3, 0xb0, 0xd4, 0x7a, 0x24, 0x6a, 0xf7, 0x61, 0xe9, 0xbc, 0x90, - 0x11, 0xbd, 0xd5, 0xdf, 0xc7, 0xe1, 0xfa, 0x16, 0xb3, 0xe4, 0x67, 0x70, 0x2b, 0x7e, 0xa7, 0x3b, - 0x5b, 0x8a, 0xe4, 0x0d, 0x4b, 0x7d, 0xfb, 0x1c, 0x40, 0x14, 0xc0, 0x77, 0x1c, 0xbf, 0xb8, 0xa4, - 0x3a, 0x8e, 0x01, 0xd2, 0x1d, 0xa7, 0xdc, 0x26, 0xe4, 0x5d, 0xb8, 0x7d, 0xe6, 0x26, 0xf1, 0x46, - 0xfa, 0xe2, 0x24, 0x4a, 0x7d, 0xef, 0x22, 0x28, 0x11, 0xa7, 0x0b, 0x73, 0x43, 0xbe, 0x06, 0xf7, - 0xd3, 0xfc, 0xa4, 0x63, 0xd5, 0xd5, 0x8b, 0x63, 0x45, 0x64, 0x0a, 0x33, 0x69, 0xb3, 0x7d, 0x48, - 0x85, 0xce, 0x00, 0xd5, 0xca, 0x05, 0x81, 0x22, 0xe0, 0x0e, 0xe4, 0x13, 0x33, 0xbb, 0x94, 0xe6, - 0x20, 0x8e, 0x50, 0x97, 0xce, 0x43, 0x08, 0xdf, 0x1d, 0xb8, 0x93, 0x3e, 0x29, 0xdf, 0x49, 0xad, - 0x4c, 0x1a, 0x54, 0x5d, 0xb9, 0x30, 0x54, 0x84, 0x35, 0x60, 0x6a, 0x70, 0xb6, 0x2d, 0xa6, 0x79, - 0x19, 0x00, 0xa9, 0xef, 0x5e, 0x00, 0x24, 0x82, 0x7c, 0x0d, 0xca, 0xd0, 0xf9, 0x34, 0xe4, 0xb0, - 0xa5, 0xa3, 0xd5, 0x07, 0x97, 0x41, 0x8b, 0xf8, 0x3f, 0x48, 0xb0, 0x30, 0x7a, 0xc2, 0xa4, 0x56, - 0x6e, 0xe4, 0x12, 0xf5, 0x83, 0x4b, 0x2f, 0x89, 0x9f, 0xa3, 0xc4, 0x93, 0xab, 0x94, 0x7e, 0xf8, - 0xfb, 0x88, 0xf4, 0x73, 0x94, 0xf6, 0x18, 0xaa, 0x7e, 0x7a, 0x74, 0x5c, 0x90, 0x5e, 0x1e, 0x17, - 0xa4, 0xbf, 0x8e, 0x0b, 0xd2, 0x8f, 0x27, 0x85, 0xcc, 0xcb, 0x93, 0x42, 0xe6, 0x8f, 0x93, 0x42, - 0x66, 0x67, 0x25, 0x76, 0x59, 0xdc, 0xe6, 0xde, 0x96, 0x1f, 0xa3, 0x06, 0xab, 0x84, 0xaf, 0xe0, - 0x83, 0xf7, 0x2b, 0xdd, 0xd8, 0xab, 0xd9, 0xbf, 0x3b, 0x36, 0xc6, 0xf8, 0xa3, 0x76, 0xed, 0x9f, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x12, 0xd9, 0x65, 0x18, 0x55, 0x0f, 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 { - LiquidStake(ctx context.Context, in *MsgLiquidStake, opts ...grpc.CallOption) (*MsgLiquidStakeResponse, error) - RedeemStake(ctx context.Context, in *MsgRedeemStake, opts ...grpc.CallOption) (*MsgRedeemStakeResponse, error) - RegisterHostZone(ctx context.Context, in *MsgRegisterHostZone, opts ...grpc.CallOption) (*MsgRegisterHostZoneResponse, error) - ClaimUndelegatedTokens(ctx context.Context, in *MsgClaimUndelegatedTokens, opts ...grpc.CallOption) (*MsgClaimUndelegatedTokensResponse, error) - RebalanceValidators(ctx context.Context, in *MsgRebalanceValidators, opts ...grpc.CallOption) (*MsgRebalanceValidatorsResponse, error) - AddValidator(ctx context.Context, in *MsgAddValidator, opts ...grpc.CallOption) (*MsgAddValidatorResponse, error) - ChangeValidatorWeight(ctx context.Context, in *MsgChangeValidatorWeight, opts ...grpc.CallOption) (*MsgChangeValidatorWeightResponse, error) - DeleteValidator(ctx context.Context, in *MsgDeleteValidator, opts ...grpc.CallOption) (*MsgDeleteValidatorResponse, error) - RestoreInterchainAccount(ctx context.Context, in *MsgRestoreInterchainAccount, opts ...grpc.CallOption) (*MsgRestoreInterchainAccountResponse, error) - UpdateValidatorSharesExchRate(ctx context.Context, in *MsgUpdateValidatorSharesExchRate, opts ...grpc.CallOption) (*MsgUpdateValidatorSharesExchRateResponse, error) - ClearBalance(ctx context.Context, in *MsgClearBalance, opts ...grpc.CallOption) (*MsgClearBalanceResponse, error) -} - -type msgClient struct { - cc grpc1.ClientConn -} - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} -} - -func (c *msgClient) LiquidStake(ctx context.Context, in *MsgLiquidStake, opts ...grpc.CallOption) (*MsgLiquidStakeResponse, error) { - out := new(MsgLiquidStakeResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/LiquidStake", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) RedeemStake(ctx context.Context, in *MsgRedeemStake, opts ...grpc.CallOption) (*MsgRedeemStakeResponse, error) { - out := new(MsgRedeemStakeResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/RedeemStake", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) RegisterHostZone(ctx context.Context, in *MsgRegisterHostZone, opts ...grpc.CallOption) (*MsgRegisterHostZoneResponse, error) { - out := new(MsgRegisterHostZoneResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/RegisterHostZone", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) ClaimUndelegatedTokens(ctx context.Context, in *MsgClaimUndelegatedTokens, opts ...grpc.CallOption) (*MsgClaimUndelegatedTokensResponse, error) { - out := new(MsgClaimUndelegatedTokensResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/ClaimUndelegatedTokens", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) RebalanceValidators(ctx context.Context, in *MsgRebalanceValidators, opts ...grpc.CallOption) (*MsgRebalanceValidatorsResponse, error) { - out := new(MsgRebalanceValidatorsResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/RebalanceValidators", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) AddValidator(ctx context.Context, in *MsgAddValidator, opts ...grpc.CallOption) (*MsgAddValidatorResponse, error) { - out := new(MsgAddValidatorResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/AddValidator", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) ChangeValidatorWeight(ctx context.Context, in *MsgChangeValidatorWeight, opts ...grpc.CallOption) (*MsgChangeValidatorWeightResponse, error) { - out := new(MsgChangeValidatorWeightResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/ChangeValidatorWeight", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) DeleteValidator(ctx context.Context, in *MsgDeleteValidator, opts ...grpc.CallOption) (*MsgDeleteValidatorResponse, error) { - out := new(MsgDeleteValidatorResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/DeleteValidator", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) RestoreInterchainAccount(ctx context.Context, in *MsgRestoreInterchainAccount, opts ...grpc.CallOption) (*MsgRestoreInterchainAccountResponse, error) { - out := new(MsgRestoreInterchainAccountResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/RestoreInterchainAccount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UpdateValidatorSharesExchRate(ctx context.Context, in *MsgUpdateValidatorSharesExchRate, opts ...grpc.CallOption) (*MsgUpdateValidatorSharesExchRateResponse, error) { - out := new(MsgUpdateValidatorSharesExchRateResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/UpdateValidatorSharesExchRate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) ClearBalance(ctx context.Context, in *MsgClearBalance, opts ...grpc.CallOption) (*MsgClearBalanceResponse, error) { - out := new(MsgClearBalanceResponse) - err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/ClearBalance", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MsgServer is the server API for Msg service. -type MsgServer interface { - LiquidStake(context.Context, *MsgLiquidStake) (*MsgLiquidStakeResponse, error) - RedeemStake(context.Context, *MsgRedeemStake) (*MsgRedeemStakeResponse, error) - RegisterHostZone(context.Context, *MsgRegisterHostZone) (*MsgRegisterHostZoneResponse, error) - ClaimUndelegatedTokens(context.Context, *MsgClaimUndelegatedTokens) (*MsgClaimUndelegatedTokensResponse, error) - RebalanceValidators(context.Context, *MsgRebalanceValidators) (*MsgRebalanceValidatorsResponse, error) - AddValidator(context.Context, *MsgAddValidator) (*MsgAddValidatorResponse, error) - ChangeValidatorWeight(context.Context, *MsgChangeValidatorWeight) (*MsgChangeValidatorWeightResponse, error) - DeleteValidator(context.Context, *MsgDeleteValidator) (*MsgDeleteValidatorResponse, error) - RestoreInterchainAccount(context.Context, *MsgRestoreInterchainAccount) (*MsgRestoreInterchainAccountResponse, error) - UpdateValidatorSharesExchRate(context.Context, *MsgUpdateValidatorSharesExchRate) (*MsgUpdateValidatorSharesExchRateResponse, error) - ClearBalance(context.Context, *MsgClearBalance) (*MsgClearBalanceResponse, error) -} - -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} - -func (*UnimplementedMsgServer) LiquidStake(ctx context.Context, req *MsgLiquidStake) (*MsgLiquidStakeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LiquidStake not implemented") -} -func (*UnimplementedMsgServer) RedeemStake(ctx context.Context, req *MsgRedeemStake) (*MsgRedeemStakeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RedeemStake not implemented") -} -func (*UnimplementedMsgServer) RegisterHostZone(ctx context.Context, req *MsgRegisterHostZone) (*MsgRegisterHostZoneResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterHostZone not implemented") -} -func (*UnimplementedMsgServer) ClaimUndelegatedTokens(ctx context.Context, req *MsgClaimUndelegatedTokens) (*MsgClaimUndelegatedTokensResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClaimUndelegatedTokens not implemented") -} -func (*UnimplementedMsgServer) RebalanceValidators(ctx context.Context, req *MsgRebalanceValidators) (*MsgRebalanceValidatorsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RebalanceValidators not implemented") -} -func (*UnimplementedMsgServer) AddValidator(ctx context.Context, req *MsgAddValidator) (*MsgAddValidatorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddValidator not implemented") -} -func (*UnimplementedMsgServer) ChangeValidatorWeight(ctx context.Context, req *MsgChangeValidatorWeight) (*MsgChangeValidatorWeightResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeValidatorWeight not implemented") -} -func (*UnimplementedMsgServer) DeleteValidator(ctx context.Context, req *MsgDeleteValidator) (*MsgDeleteValidatorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteValidator not implemented") -} -func (*UnimplementedMsgServer) RestoreInterchainAccount(ctx context.Context, req *MsgRestoreInterchainAccount) (*MsgRestoreInterchainAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RestoreInterchainAccount not implemented") -} -func (*UnimplementedMsgServer) UpdateValidatorSharesExchRate(ctx context.Context, req *MsgUpdateValidatorSharesExchRate) (*MsgUpdateValidatorSharesExchRateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateValidatorSharesExchRate not implemented") -} -func (*UnimplementedMsgServer) ClearBalance(ctx context.Context, req *MsgClearBalance) (*MsgClearBalanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearBalance not implemented") -} - -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) -} - -func _Msg_LiquidStake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgLiquidStake) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).LiquidStake(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Msg/LiquidStake", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).LiquidStake(ctx, req.(*MsgLiquidStake)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_RedeemStake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRedeemStake) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).RedeemStake(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Msg/RedeemStake", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RedeemStake(ctx, req.(*MsgRedeemStake)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_RegisterHostZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRegisterHostZone) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).RegisterHostZone(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Msg/RegisterHostZone", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RegisterHostZone(ctx, req.(*MsgRegisterHostZone)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_ClaimUndelegatedTokens_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgClaimUndelegatedTokens) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ClaimUndelegatedTokens(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Msg/ClaimUndelegatedTokens", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ClaimUndelegatedTokens(ctx, req.(*MsgClaimUndelegatedTokens)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_RebalanceValidators_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRebalanceValidators) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).RebalanceValidators(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Msg/RebalanceValidators", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RebalanceValidators(ctx, req.(*MsgRebalanceValidators)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_AddValidator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAddValidator) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).AddValidator(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Msg/AddValidator", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).AddValidator(ctx, req.(*MsgAddValidator)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_ChangeValidatorWeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgChangeValidatorWeight) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ChangeValidatorWeight(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Msg/ChangeValidatorWeight", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ChangeValidatorWeight(ctx, req.(*MsgChangeValidatorWeight)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_DeleteValidator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgDeleteValidator) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).DeleteValidator(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Msg/DeleteValidator", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).DeleteValidator(ctx, req.(*MsgDeleteValidator)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_RestoreInterchainAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRestoreInterchainAccount) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).RestoreInterchainAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Msg/RestoreInterchainAccount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RestoreInterchainAccount(ctx, req.(*MsgRestoreInterchainAccount)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UpdateValidatorSharesExchRate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateValidatorSharesExchRate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateValidatorSharesExchRate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Msg/UpdateValidatorSharesExchRate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateValidatorSharesExchRate(ctx, req.(*MsgUpdateValidatorSharesExchRate)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_ClearBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgClearBalance) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ClearBalance(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/stride.stakeibc.Msg/ClearBalance", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ClearBalance(ctx, req.(*MsgClearBalance)) - } - return interceptor(ctx, in, info, handler) -} - -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "stride.stakeibc.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "LiquidStake", - Handler: _Msg_LiquidStake_Handler, - }, - { - MethodName: "RedeemStake", - Handler: _Msg_RedeemStake_Handler, - }, - { - MethodName: "RegisterHostZone", - Handler: _Msg_RegisterHostZone_Handler, - }, - { - MethodName: "ClaimUndelegatedTokens", - Handler: _Msg_ClaimUndelegatedTokens_Handler, - }, - { - MethodName: "RebalanceValidators", - Handler: _Msg_RebalanceValidators_Handler, - }, - { - MethodName: "AddValidator", - Handler: _Msg_AddValidator_Handler, - }, - { - MethodName: "ChangeValidatorWeight", - Handler: _Msg_ChangeValidatorWeight_Handler, - }, - { - MethodName: "DeleteValidator", - Handler: _Msg_DeleteValidator_Handler, - }, - { - MethodName: "RestoreInterchainAccount", - Handler: _Msg_RestoreInterchainAccount_Handler, - }, - { - MethodName: "UpdateValidatorSharesExchRate", - Handler: _Msg_UpdateValidatorSharesExchRate_Handler, - }, - { - MethodName: "ClearBalance", - Handler: _Msg_ClearBalance_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "stride/stakeibc/tx.proto", -} - -func (m *MsgLiquidStake) 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 *MsgLiquidStake) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgLiquidStake) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.HostDenom) > 0 { - i -= len(m.HostDenom) - copy(dAtA[i:], m.HostDenom) - i = encodeVarintTx(dAtA, i, uint64(len(m.HostDenom))) - i-- - dAtA[i] = 0x1a - } - { - size := m.Amount.Size() - i -= size - if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgLiquidStakeResponse) 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 *MsgLiquidStakeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgLiquidStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgClearBalance) 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 *MsgClearBalance) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgClearBalance) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Channel) > 0 { - i -= len(m.Channel) - copy(dAtA[i:], m.Channel) - i = encodeVarintTx(dAtA, i, uint64(len(m.Channel))) - i-- - dAtA[i] = 0x22 - } - { - size := m.Amount.Size() - i -= size - if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgClearBalanceResponse) 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 *MsgClearBalanceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgClearBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgRedeemStake) 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 *MsgRedeemStake) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgRedeemStake) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Receiver) > 0 { - i -= len(m.Receiver) - copy(dAtA[i:], m.Receiver) - i = encodeVarintTx(dAtA, i, uint64(len(m.Receiver))) - i-- - dAtA[i] = 0x22 - } - if len(m.HostZone) > 0 { - i -= len(m.HostZone) - copy(dAtA[i:], m.HostZone) - i = encodeVarintTx(dAtA, i, uint64(len(m.HostZone))) - i-- - dAtA[i] = 0x1a - } - { - size := m.Amount.Size() - i -= size - if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgRedeemStakeResponse) 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 *MsgRedeemStakeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgRedeemStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgRegisterHostZone) 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 *MsgRegisterHostZone) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgRegisterHostZone) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.MaxRedemptionRate.Size() - i -= size - if _, err := m.MaxRedemptionRate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - { - size := m.MinRedemptionRate.Size() - i -= size - if _, err := m.MinRedemptionRate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - if len(m.Bech32Prefix) > 0 { - i -= len(m.Bech32Prefix) - copy(dAtA[i:], m.Bech32Prefix) - i = encodeVarintTx(dAtA, i, uint64(len(m.Bech32Prefix))) - i-- - dAtA[i] = 0x62 - } - if m.UnbondingFrequency != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.UnbondingFrequency)) - i-- - dAtA[i] = 0x58 - } - if len(m.TransferChannelId) > 0 { - i -= len(m.TransferChannelId) - copy(dAtA[i:], m.TransferChannelId) - i = encodeVarintTx(dAtA, i, uint64(len(m.TransferChannelId))) - i-- - dAtA[i] = 0x52 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0x32 - } - if len(m.IbcDenom) > 0 { - i -= len(m.IbcDenom) - copy(dAtA[i:], m.IbcDenom) - i = encodeVarintTx(dAtA, i, uint64(len(m.IbcDenom))) - i-- - dAtA[i] = 0x2a - } - if len(m.HostDenom) > 0 { - i -= len(m.HostDenom) - copy(dAtA[i:], m.HostDenom) - i = encodeVarintTx(dAtA, i, uint64(len(m.HostDenom))) - i-- - dAtA[i] = 0x22 - } - if len(m.ConnectionId) > 0 { - i -= len(m.ConnectionId) - copy(dAtA[i:], m.ConnectionId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ConnectionId))) - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} - -func (m *MsgRegisterHostZoneResponse) 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 *MsgRegisterHostZoneResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgRegisterHostZoneResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgClaimUndelegatedTokens) 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 *MsgClaimUndelegatedTokens) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgClaimUndelegatedTokens) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Sender) > 0 { - i -= len(m.Sender) - copy(dAtA[i:], m.Sender) - i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) - i-- - dAtA[i] = 0x22 - } - if m.Epoch != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Epoch)) - i-- - dAtA[i] = 0x18 - } - if len(m.HostZoneId) > 0 { - i -= len(m.HostZoneId) - copy(dAtA[i:], m.HostZoneId) - i = encodeVarintTx(dAtA, i, uint64(len(m.HostZoneId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgClaimUndelegatedTokensResponse) 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 *MsgClaimUndelegatedTokensResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgClaimUndelegatedTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgRebalanceValidators) 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 *MsgRebalanceValidators) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgRebalanceValidators) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NumRebalance != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.NumRebalance)) - i-- - dAtA[i] = 0x18 - } - if len(m.HostZone) > 0 { - i -= len(m.HostZone) - copy(dAtA[i:], m.HostZone) - i = encodeVarintTx(dAtA, i, uint64(len(m.HostZone))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgRebalanceValidatorsResponse) 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 *MsgRebalanceValidatorsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgRebalanceValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgAddValidator) 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 *MsgAddValidator) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgAddValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Weight != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Weight)) - i-- - dAtA[i] = 0x30 - } - if m.Commission != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Commission)) - i-- - dAtA[i] = 0x28 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x22 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - } - if len(m.HostZone) > 0 { - i -= len(m.HostZone) - copy(dAtA[i:], m.HostZone) - i = encodeVarintTx(dAtA, i, uint64(len(m.HostZone))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgAddValidatorResponse) 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 *MsgAddValidatorResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgAddValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgChangeValidatorWeight) 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 *MsgChangeValidatorWeight) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgChangeValidatorWeight) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Weight != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.Weight)) - i-- - dAtA[i] = 0x20 - } - if len(m.ValAddr) > 0 { - i -= len(m.ValAddr) - copy(dAtA[i:], m.ValAddr) - i = encodeVarintTx(dAtA, i, uint64(len(m.ValAddr))) - i-- - dAtA[i] = 0x1a - } - if len(m.HostZone) > 0 { - i -= len(m.HostZone) - copy(dAtA[i:], m.HostZone) - i = encodeVarintTx(dAtA, i, uint64(len(m.HostZone))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgChangeValidatorWeightResponse) 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 *MsgChangeValidatorWeightResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgChangeValidatorWeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgDeleteValidator) 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 *MsgDeleteValidator) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgDeleteValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ValAddr) > 0 { - i -= len(m.ValAddr) - copy(dAtA[i:], m.ValAddr) - i = encodeVarintTx(dAtA, i, uint64(len(m.ValAddr))) - i-- - dAtA[i] = 0x1a - } - if len(m.HostZone) > 0 { - i -= len(m.HostZone) - copy(dAtA[i:], m.HostZone) - i = encodeVarintTx(dAtA, i, uint64(len(m.HostZone))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgDeleteValidatorResponse) 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 *MsgDeleteValidatorResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgDeleteValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgRestoreInterchainAccount) 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 *MsgRestoreInterchainAccount) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgRestoreInterchainAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AccountType != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.AccountType)) - i-- - dAtA[i] = 0x18 - } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgRestoreInterchainAccountResponse) 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 *MsgRestoreInterchainAccountResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgRestoreInterchainAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgUpdateValidatorSharesExchRate) 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 *MsgUpdateValidatorSharesExchRate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateValidatorSharesExchRate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Valoper) > 0 { - i -= len(m.Valoper) - copy(dAtA[i:], m.Valoper) - i = encodeVarintTx(dAtA, i, uint64(len(m.Valoper))) - i-- - dAtA[i] = 0x1a - } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintTx(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgUpdateValidatorSharesExchRateResponse) 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 *MsgUpdateValidatorSharesExchRateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateValidatorSharesExchRateResponse) 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 *MsgLiquidStake) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = m.Amount.Size() - n += 1 + l + sovTx(uint64(l)) - l = len(m.HostDenom) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgLiquidStakeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgClearBalance) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = m.Amount.Size() - n += 1 + l + sovTx(uint64(l)) - l = len(m.Channel) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgClearBalanceResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgRedeemStake) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = m.Amount.Size() - n += 1 + l + sovTx(uint64(l)) - l = len(m.HostZone) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Receiver) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgRedeemStakeResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgRegisterHostZone) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ConnectionId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.HostDenom) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.IbcDenom) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.TransferChannelId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.UnbondingFrequency != 0 { - n += 1 + sovTx(uint64(m.UnbondingFrequency)) - } - l = len(m.Bech32Prefix) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = m.MinRedemptionRate.Size() - n += 1 + l + sovTx(uint64(l)) - l = m.MaxRedemptionRate.Size() - n += 1 + l + sovTx(uint64(l)) - return n -} - -func (m *MsgRegisterHostZoneResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgClaimUndelegatedTokens) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.HostZoneId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.Epoch != 0 { - n += 1 + sovTx(uint64(m.Epoch)) - } - l = len(m.Sender) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgClaimUndelegatedTokensResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgRebalanceValidators) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.HostZone) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.NumRebalance != 0 { - n += 1 + sovTx(uint64(m.NumRebalance)) - } - return n -} - -func (m *MsgRebalanceValidatorsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgAddValidator) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.HostZone) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.Commission != 0 { - n += 1 + sovTx(uint64(m.Commission)) - } - if m.Weight != 0 { - n += 1 + sovTx(uint64(m.Weight)) - } - return n -} - -func (m *MsgAddValidatorResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgChangeValidatorWeight) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.HostZone) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ValAddr) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.Weight != 0 { - n += 1 + sovTx(uint64(m.Weight)) - } - return n -} - -func (m *MsgChangeValidatorWeightResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgDeleteValidator) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.HostZone) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ValAddr) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgDeleteValidatorResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgRestoreInterchainAccount) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.AccountType != 0 { - n += 1 + sovTx(uint64(m.AccountType)) - } - return n -} - -func (m *MsgRestoreInterchainAccountResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgUpdateValidatorSharesExchRate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Valoper) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgUpdateValidatorSharesExchRateResponse) 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 *MsgLiquidStake) 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: MsgLiquidStake: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgLiquidStake: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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 - } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostDenom", 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.HostDenom = string(dAtA[iNdEx:postIndex]) - 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 *MsgLiquidStakeResponse) 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: MsgLiquidStakeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgLiquidStakeResponse: 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 (m *MsgClearBalance) 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: MsgClearBalance: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgClearBalance: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", 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.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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 - } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Channel", 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.Channel = string(dAtA[iNdEx:postIndex]) - 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 *MsgClearBalanceResponse) 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: MsgClearBalanceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgClearBalanceResponse: 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 (m *MsgRedeemStake) 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: MsgRedeemStake: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRedeemStake: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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 - } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZone", 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.HostZone = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Receiver", 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.Receiver = string(dAtA[iNdEx:postIndex]) - 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 *MsgRedeemStakeResponse) 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: MsgRedeemStakeResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRedeemStakeResponse: 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 (m *MsgRegisterHostZone) 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: MsgRegisterHostZone: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRegisterHostZone: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", 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.ConnectionId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostDenom", 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.HostDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IbcDenom", 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.IbcDenom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TransferChannelId", 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.TransferChannelId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UnbondingFrequency", wireType) - } - m.UnbondingFrequency = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UnbondingFrequency |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Bech32Prefix", 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.Bech32Prefix = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MinRedemptionRate", 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 - } - if err := m.MinRedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxRedemptionRate", 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 - } - if err := m.MaxRedemptionRate.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 *MsgRegisterHostZoneResponse) 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: MsgRegisterHostZoneResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRegisterHostZoneResponse: 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 (m *MsgClaimUndelegatedTokens) 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: MsgClaimUndelegatedTokens: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgClaimUndelegatedTokens: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", 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.HostZoneId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) - } - m.Epoch = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Epoch |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sender", 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.Sender = string(dAtA[iNdEx:postIndex]) - 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 *MsgClaimUndelegatedTokensResponse) 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: MsgClaimUndelegatedTokensResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgClaimUndelegatedTokensResponse: 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 (m *MsgRebalanceValidators) 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: MsgRebalanceValidators: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRebalanceValidators: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZone", 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.HostZone = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumRebalance", wireType) - } - m.NumRebalance = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumRebalance |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - 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 *MsgRebalanceValidatorsResponse) 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: MsgRebalanceValidatorsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRebalanceValidatorsResponse: 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 (m *MsgAddValidator) 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: MsgAddValidator: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAddValidator: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZone", 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.HostZone = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", 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.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Commission", wireType) - } - m.Commission = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Commission |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) - } - m.Weight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Weight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - 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 *MsgAddValidatorResponse) 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: MsgAddValidatorResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAddValidatorResponse: 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 (m *MsgChangeValidatorWeight) 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: MsgChangeValidatorWeight: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgChangeValidatorWeight: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZone", 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.HostZone = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValAddr", 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.ValAddr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) - } - m.Weight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Weight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - 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 *MsgChangeValidatorWeightResponse) 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: MsgChangeValidatorWeightResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgChangeValidatorWeightResponse: 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 (m *MsgDeleteValidator) 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: MsgDeleteValidator: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgDeleteValidator: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostZone", 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.HostZone = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValAddr", 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.ValAddr = string(dAtA[iNdEx:postIndex]) - 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 *MsgDeleteValidatorResponse) 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: MsgDeleteValidatorResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgDeleteValidatorResponse: 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 (m *MsgRestoreInterchainAccount) 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: MsgRestoreInterchainAccount: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRestoreInterchainAccount: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", 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.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AccountType", wireType) - } - m.AccountType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AccountType |= ICAAccountType(b&0x7F) << shift - if b < 0x80 { - break - } - } - 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 *MsgRestoreInterchainAccountResponse) 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: MsgRestoreInterchainAccountResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRestoreInterchainAccountResponse: 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 (m *MsgUpdateValidatorSharesExchRate) 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: MsgUpdateValidatorSharesExchRate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateValidatorSharesExchRate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", 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.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Valoper", 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.Valoper = string(dAtA[iNdEx:postIndex]) - 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 *MsgUpdateValidatorSharesExchRateResponse) 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: MsgUpdateValidatorSharesExchRateResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateValidatorSharesExchRateResponse: 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") -) diff --git a/x/stakeibc/types/validator.pb.go b/x/stakeibc/types/validator.pb.go deleted file mode 100644 index 49356f3767..0000000000 --- a/x/stakeibc/types/validator.pb.go +++ /dev/null @@ -1,828 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: stride/stakeibc/validator.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" - 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 - -type Validator_ValidatorStatus int32 - -const ( - Validator_ACTIVE Validator_ValidatorStatus = 0 - Validator_INACTIVE Validator_ValidatorStatus = 1 -) - -var Validator_ValidatorStatus_name = map[int32]string{ - 0: "ACTIVE", - 1: "INACTIVE", -} - -var Validator_ValidatorStatus_value = map[string]int32{ - "ACTIVE": 0, - "INACTIVE": 1, -} - -func (x Validator_ValidatorStatus) String() string { - return proto.EnumName(Validator_ValidatorStatus_name, int32(x)) -} - -func (Validator_ValidatorStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_5d2f32e16bd6ab8f, []int{1, 0} -} - -type ValidatorExchangeRate struct { - InternalTokensToSharesRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=internal_tokens_to_shares_rate,json=internalTokensToSharesRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"internal_tokens_to_shares_rate"` - EpochNumber uint64 `protobuf:"varint,2,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` -} - -func (m *ValidatorExchangeRate) Reset() { *m = ValidatorExchangeRate{} } -func (m *ValidatorExchangeRate) String() string { return proto.CompactTextString(m) } -func (*ValidatorExchangeRate) ProtoMessage() {} -func (*ValidatorExchangeRate) Descriptor() ([]byte, []int) { - return fileDescriptor_5d2f32e16bd6ab8f, []int{0} -} -func (m *ValidatorExchangeRate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatorExchangeRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ValidatorExchangeRate.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 *ValidatorExchangeRate) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorExchangeRate.Merge(m, src) -} -func (m *ValidatorExchangeRate) XXX_Size() int { - return m.Size() -} -func (m *ValidatorExchangeRate) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorExchangeRate.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatorExchangeRate proto.InternalMessageInfo - -func (m *ValidatorExchangeRate) GetEpochNumber() uint64 { - if m != nil { - return m.EpochNumber - } - return 0 -} - -type Validator struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Status Validator_ValidatorStatus `protobuf:"varint,3,opt,name=status,proto3,enum=stride.stakeibc.Validator_ValidatorStatus" json:"status,omitempty"` - CommissionRate uint64 `protobuf:"varint,4,opt,name=commission_rate,json=commissionRate,proto3" json:"commission_rate,omitempty"` - DelegationAmt github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=delegation_amt,json=delegationAmt,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"delegation_amt"` - Weight uint64 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"` - InternalExchangeRate *ValidatorExchangeRate `protobuf:"bytes,7,opt,name=internal_exchange_rate,json=internalExchangeRate,proto3" json:"internal_exchange_rate,omitempty"` -} - -func (m *Validator) Reset() { *m = Validator{} } -func (m *Validator) String() string { return proto.CompactTextString(m) } -func (*Validator) ProtoMessage() {} -func (*Validator) Descriptor() ([]byte, []int) { - return fileDescriptor_5d2f32e16bd6ab8f, []int{1} -} -func (m *Validator) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Validator.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 *Validator) XXX_Merge(src proto.Message) { - xxx_messageInfo_Validator.Merge(m, src) -} -func (m *Validator) XXX_Size() int { - return m.Size() -} -func (m *Validator) XXX_DiscardUnknown() { - xxx_messageInfo_Validator.DiscardUnknown(m) -} - -var xxx_messageInfo_Validator proto.InternalMessageInfo - -func (m *Validator) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *Validator) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *Validator) GetStatus() Validator_ValidatorStatus { - if m != nil { - return m.Status - } - return Validator_ACTIVE -} - -func (m *Validator) GetCommissionRate() uint64 { - if m != nil { - return m.CommissionRate - } - return 0 -} - -func (m *Validator) GetWeight() uint64 { - if m != nil { - return m.Weight - } - return 0 -} - -func (m *Validator) GetInternalExchangeRate() *ValidatorExchangeRate { - if m != nil { - return m.InternalExchangeRate - } - return nil -} - -func init() { - proto.RegisterEnum("stride.stakeibc.Validator_ValidatorStatus", Validator_ValidatorStatus_name, Validator_ValidatorStatus_value) - proto.RegisterType((*ValidatorExchangeRate)(nil), "stride.stakeibc.ValidatorExchangeRate") - proto.RegisterType((*Validator)(nil), "stride.stakeibc.Validator") -} - -func init() { proto.RegisterFile("stride/stakeibc/validator.proto", fileDescriptor_5d2f32e16bd6ab8f) } - -var fileDescriptor_5d2f32e16bd6ab8f = []byte{ - // 496 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x31, 0x6f, 0xd3, 0x40, - 0x14, 0xf6, 0xd1, 0xe0, 0x92, 0x6b, 0x49, 0xd0, 0x29, 0x54, 0x26, 0x83, 0x13, 0x32, 0x94, 0x08, - 0x14, 0x5b, 0x04, 0x89, 0x89, 0x25, 0xa1, 0x1d, 0x22, 0x50, 0x07, 0x27, 0x74, 0x40, 0x48, 0xd6, - 0xd9, 0x3e, 0xd9, 0x56, 0x62, 0x5f, 0x74, 0xf7, 0x52, 0xca, 0xc6, 0x4f, 0xe0, 0xc7, 0x74, 0x42, - 0x62, 0xef, 0x58, 0x75, 0x42, 0x0c, 0x15, 0x4a, 0xfe, 0x08, 0xea, 0xf9, 0x9c, 0x44, 0x95, 0x18, - 0x3a, 0xf9, 0xbd, 0xcf, 0xef, 0xbd, 0xef, 0x7b, 0xdf, 0xdd, 0xe1, 0x96, 0x04, 0x91, 0x46, 0xcc, - 0x95, 0x40, 0xa7, 0x2c, 0x0d, 0x42, 0xf7, 0x8c, 0xce, 0xd2, 0x88, 0x02, 0x17, 0xce, 0x5c, 0x70, - 0xe0, 0xa4, 0x5e, 0x14, 0x38, 0x65, 0x41, 0xf3, 0x59, 0xc8, 0x65, 0xc6, 0xa5, 0xaf, 0x7e, 0xbb, - 0x45, 0x52, 0xd4, 0x36, 0x1b, 0x31, 0x8f, 0x79, 0x81, 0xdf, 0x46, 0x05, 0xda, 0xf9, 0x85, 0xf0, - 0xd3, 0xd3, 0x72, 0xea, 0xf1, 0x79, 0x98, 0xd0, 0x3c, 0x66, 0x1e, 0x05, 0x46, 0xbe, 0x23, 0x6c, - 0xa7, 0x39, 0x30, 0x91, 0xd3, 0x99, 0x0f, 0x7c, 0xca, 0x72, 0xe9, 0x03, 0xf7, 0x65, 0x42, 0x05, - 0x93, 0xbe, 0xa0, 0xc0, 0x2c, 0xd4, 0x46, 0xdd, 0xea, 0xf0, 0xdd, 0xe5, 0x4d, 0xcb, 0xf8, 0x73, - 0xd3, 0x3a, 0x8c, 0x53, 0x48, 0x16, 0x81, 0x13, 0xf2, 0x4c, 0x33, 0xeb, 0x4f, 0x4f, 0x46, 0x53, - 0x17, 0xbe, 0xcd, 0x99, 0x74, 0x8e, 0x58, 0x78, 0x7d, 0xd1, 0xc3, 0x5a, 0xd8, 0x11, 0x0b, 0xbd, - 0x66, 0xc9, 0x31, 0x51, 0x14, 0x13, 0x3e, 0x56, 0x04, 0x4a, 0xc2, 0x73, 0xbc, 0xcf, 0xe6, 0x3c, - 0x4c, 0xfc, 0x7c, 0x91, 0x05, 0x4c, 0x58, 0x0f, 0xda, 0xa8, 0x5b, 0xf1, 0xf6, 0x14, 0x76, 0xa2, - 0xa0, 0xce, 0xcf, 0x1d, 0x5c, 0x5d, 0xeb, 0x27, 0x04, 0x57, 0x72, 0x9a, 0x69, 0x61, 0x9e, 0x8a, - 0x49, 0x1f, 0xef, 0xd2, 0x28, 0x12, 0x4c, 0x4a, 0xd5, 0x5f, 0x1d, 0x5a, 0xd7, 0x17, 0xbd, 0x86, - 0x56, 0x30, 0x28, 0xfe, 0x8c, 0x41, 0xa4, 0x79, 0xec, 0x95, 0x85, 0x64, 0x88, 0x4d, 0x09, 0x14, - 0x16, 0xd2, 0xda, 0x69, 0xa3, 0x6e, 0xad, 0xff, 0xd2, 0xb9, 0x63, 0xb4, 0xb3, 0xe6, 0xdc, 0x44, - 0x63, 0xd5, 0xe1, 0xe9, 0x4e, 0xf2, 0x02, 0xd7, 0x43, 0x9e, 0x65, 0xa9, 0x94, 0x29, 0xcf, 0x0b, - 0xbf, 0x2a, 0x4a, 0x7f, 0x6d, 0x03, 0xab, 0x2d, 0x3f, 0xe1, 0x5a, 0xc4, 0x66, 0x2c, 0xa6, 0x70, - 0x5b, 0x48, 0x33, 0xb0, 0x1e, 0x2a, 0x9d, 0xce, 0x3d, 0x7c, 0x1d, 0xe5, 0xe0, 0x3d, 0xde, 0x4c, - 0x19, 0x64, 0x40, 0x0e, 0xb0, 0xf9, 0x95, 0xa5, 0x71, 0x02, 0x96, 0xa9, 0x68, 0x75, 0x46, 0xbe, - 0xe0, 0x83, 0xf5, 0xb1, 0x32, 0x7d, 0xe0, 0x85, 0xbc, 0xdd, 0x36, 0xea, 0xee, 0xf5, 0x0f, 0xff, - 0xbf, 0xeb, 0xf6, 0xfd, 0xf0, 0x1a, 0xe5, 0x94, 0x6d, 0xb4, 0xf3, 0x0a, 0xd7, 0xef, 0x18, 0x42, - 0x30, 0x36, 0x07, 0xef, 0x27, 0xa3, 0xd3, 0xe3, 0x27, 0x06, 0xd9, 0xc7, 0x8f, 0x46, 0x27, 0x3a, - 0x43, 0xc3, 0x0f, 0x97, 0x4b, 0x1b, 0x5d, 0x2d, 0x6d, 0xf4, 0x77, 0x69, 0xa3, 0x1f, 0x2b, 0xdb, - 0xb8, 0x5a, 0xd9, 0xc6, 0xef, 0x95, 0x6d, 0x7c, 0x7e, 0xbd, 0xb5, 0xf3, 0x58, 0xc9, 0xe9, 0x7d, - 0xa4, 0x81, 0x74, 0xf5, 0x83, 0x38, 0x7b, 0xeb, 0x9e, 0x6f, 0x5e, 0x85, 0xb2, 0x20, 0x30, 0xd5, - 0x85, 0x7e, 0xf3, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x0c, 0x2f, 0xfa, 0xeb, 0x35, 0x03, 0x00, 0x00, -} - -func (m *ValidatorExchangeRate) 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 *ValidatorExchangeRate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatorExchangeRate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EpochNumber != 0 { - i = encodeVarintValidator(dAtA, i, uint64(m.EpochNumber)) - i-- - dAtA[i] = 0x10 - } - { - size := m.InternalTokensToSharesRate.Size() - i -= size - if _, err := m.InternalTokensToSharesRate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintValidator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Validator) 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 *Validator) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.InternalExchangeRate != nil { - { - size, err := m.InternalExchangeRate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintValidator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.Weight != 0 { - i = encodeVarintValidator(dAtA, i, uint64(m.Weight)) - i-- - dAtA[i] = 0x30 - } - { - size := m.DelegationAmt.Size() - i -= size - if _, err := m.DelegationAmt.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintValidator(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - if m.CommissionRate != 0 { - i = encodeVarintValidator(dAtA, i, uint64(m.CommissionRate)) - i-- - dAtA[i] = 0x20 - } - if m.Status != 0 { - i = encodeVarintValidator(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x18 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintValidator(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintValidator(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintValidator(dAtA []byte, offset int, v uint64) int { - offset -= sovValidator(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ValidatorExchangeRate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.InternalTokensToSharesRate.Size() - n += 1 + l + sovValidator(uint64(l)) - if m.EpochNumber != 0 { - n += 1 + sovValidator(uint64(m.EpochNumber)) - } - return n -} - -func (m *Validator) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovValidator(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovValidator(uint64(l)) - } - if m.Status != 0 { - n += 1 + sovValidator(uint64(m.Status)) - } - if m.CommissionRate != 0 { - n += 1 + sovValidator(uint64(m.CommissionRate)) - } - l = m.DelegationAmt.Size() - n += 1 + l + sovValidator(uint64(l)) - if m.Weight != 0 { - n += 1 + sovValidator(uint64(m.Weight)) - } - if m.InternalExchangeRate != nil { - l = m.InternalExchangeRate.Size() - n += 1 + l + sovValidator(uint64(l)) - } - return n -} - -func sovValidator(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozValidator(x uint64) (n int) { - return sovValidator(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ValidatorExchangeRate) 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 ErrIntOverflowValidator - } - 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: ValidatorExchangeRate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorExchangeRate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InternalTokensToSharesRate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - 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 ErrInvalidLengthValidator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthValidator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.InternalTokensToSharesRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) - } - m.EpochNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EpochNumber |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipValidator(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthValidator - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Validator) 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 ErrIntOverflowValidator - } - 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: Validator: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Validator: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - 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 ErrInvalidLengthValidator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthValidator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - 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 ErrInvalidLengthValidator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthValidator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= Validator_ValidatorStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CommissionRate", wireType) - } - m.CommissionRate = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CommissionRate |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DelegationAmt", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - 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 ErrInvalidLengthValidator - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthValidator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.DelegationAmt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) - } - m.Weight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Weight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InternalExchangeRate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowValidator - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthValidator - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthValidator - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.InternalExchangeRate == nil { - m.InternalExchangeRate = &ValidatorExchangeRate{} - } - if err := m.InternalExchangeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipValidator(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthValidator - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipValidator(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, ErrIntOverflowValidator - } - 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, ErrIntOverflowValidator - } - 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, ErrIntOverflowValidator - } - 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, ErrInvalidLengthValidator - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupValidator - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthValidator - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthValidator = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowValidator = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupValidator = fmt.Errorf("proto: unexpected end of group") -) From 4574d5e770d541266b5fd9e0db4714c2c91023a5 Mon Sep 17 00:00:00 2001 From: Aidan Salzmann Date: Sun, 12 Mar 2023 22:30:18 -0400 Subject: [PATCH 02/10] v6 -> v7 --- app/upgrades/README.md | 4 ++-- go.mod | 2 +- proto/stride/autopilot/genesis.proto | 2 +- proto/stride/autopilot/params.proto | 2 +- proto/stride/autopilot/query.proto | 2 +- proto/stride/claim/claim.proto | 2 +- proto/stride/claim/genesis.proto | 2 +- proto/stride/claim/params.proto | 2 +- proto/stride/claim/query.proto | 2 +- proto/stride/claim/tx.proto | 2 +- proto/stride/epochs/genesis.proto | 2 +- proto/stride/epochs/query.proto | 4 ++-- proto/stride/icacallbacks/callback_data.proto | 2 +- proto/stride/icacallbacks/genesis.proto | 2 +- proto/stride/icacallbacks/packet.proto | 2 +- proto/stride/icacallbacks/params.proto | 2 +- proto/stride/icacallbacks/query.proto | 2 +- proto/stride/icacallbacks/tx.proto | 2 +- proto/stride/interchainquery/v1/genesis.proto | 2 +- proto/stride/interchainquery/v1/messages.proto | 2 +- proto/stride/interchainquery/v1/query.proto | 2 +- proto/stride/mint/v1beta1/genesis.proto | 2 +- proto/stride/mint/v1beta1/mint.proto | 2 +- proto/stride/mint/v1beta1/query.proto | 2 +- proto/stride/ratelimit/genesis.proto | 2 +- proto/stride/ratelimit/gov.proto | 2 +- proto/stride/ratelimit/params.proto | 2 +- proto/stride/ratelimit/query.proto | 2 +- proto/stride/ratelimit/ratelimit.proto | 2 +- proto/stride/records/callbacks.proto | 2 +- proto/stride/records/genesis.proto | 2 +- proto/stride/records/query.proto | 2 +- proto/stride/stakeibc/address_unbonding.proto | 2 +- proto/stride/stakeibc/callbacks.proto | 2 +- proto/stride/stakeibc/epoch_tracker.proto | 2 +- proto/stride/stakeibc/genesis.proto | 2 +- proto/stride/stakeibc/gov.proto | 2 +- proto/stride/stakeibc/host_zone.proto | 2 +- proto/stride/stakeibc/ica_account.proto | 2 +- proto/stride/stakeibc/packet.proto | 2 +- proto/stride/stakeibc/params.proto | 2 +- proto/stride/stakeibc/query.proto | 2 +- proto/stride/stakeibc/tx.proto | 2 +- proto/stride/stakeibc/validator.proto | 2 +- proto/stride/vesting/tx.proto | 2 +- proto/stride/vesting/vesting.proto | 2 +- scripts/protocgen.sh | 2 +- x/claim/handler.go | 4 ++-- x/claim/module.go | 6 +++--- 49 files changed, 54 insertions(+), 54 deletions(-) diff --git a/app/upgrades/README.md b/app/upgrades/README.md index 6a5fef6b1b..97b518e6ac 100644 --- a/app/upgrades/README.md +++ b/app/upgrades/README.md @@ -97,7 +97,7 @@ package {upgradeVersion} import ( sdk "github.com/cosmos/cosmos-sdk/types" - {new-consensus-version} "github.com/Stride-Labs/stride/v6/x/records/migrations/{new-consensus-version}" + {new-consensus-version} "github.com/Stride-Labs/stride/v7/x/records/migrations/{new-consensus-version}" ) // TODO: Add migration logic to deserialize with old protos and re-serialize with new ones @@ -112,7 +112,7 @@ func MigrateStore(ctx sdk.Context) error { // app/upgrades/{upgradeVersion}/upgrades.go import ( - {module}migration "github.com/Stride-Labs/stride/v6/x/{module}/migrations/{new-consensus-version}" + {module}migration "github.com/Stride-Labs/stride/v7/x/{module}/migrations/{new-consensus-version}" ) // CreateUpgradeHandler creates an SDK upgrade handler for {upgradeVersion} diff --git a/go.mod b/go.mod index f98170b62c..b8de54acaf 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/Stride-Labs/stride/v6 +module github.com/Stride-Labs/stride/v7 go 1.19 diff --git a/proto/stride/autopilot/genesis.proto b/proto/stride/autopilot/genesis.proto index f4b17e72fb..800432f9df 100644 --- a/proto/stride/autopilot/genesis.proto +++ b/proto/stride/autopilot/genesis.proto @@ -4,7 +4,7 @@ package stride.autopilot; import "gogoproto/gogo.proto"; import "stride/autopilot/params.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/autopilot/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/autopilot/types"; // GenesisState defines the claim module's genesis state. message GenesisState { diff --git a/proto/stride/autopilot/params.proto b/proto/stride/autopilot/params.proto index e4b97b01c1..463caee8f0 100644 --- a/proto/stride/autopilot/params.proto +++ b/proto/stride/autopilot/params.proto @@ -3,7 +3,7 @@ package stride.autopilot; import "gogoproto/gogo.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/autopilot/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/autopilot/types"; // Params defines the parameters for the module. // next id: 1 diff --git a/proto/stride/autopilot/query.proto b/proto/stride/autopilot/query.proto index 87fc5a4903..2deef9b395 100644 --- a/proto/stride/autopilot/query.proto +++ b/proto/stride/autopilot/query.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "stride/autopilot/params.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/autopilot/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/autopilot/types"; // Query defines the gRPC querier service. service Query { diff --git a/proto/stride/claim/claim.proto b/proto/stride/claim/claim.proto index 7d3dbfff84..22a52ecf6d 100644 --- a/proto/stride/claim/claim.proto +++ b/proto/stride/claim/claim.proto @@ -3,7 +3,7 @@ package stride.claim; import "gogoproto/gogo.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/claim/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/claim/types"; enum Action { option (gogoproto.goproto_enum_prefix) = false; diff --git a/proto/stride/claim/genesis.proto b/proto/stride/claim/genesis.proto index e1fb73a286..7407c384a9 100644 --- a/proto/stride/claim/genesis.proto +++ b/proto/stride/claim/genesis.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "stride/claim/claim.proto"; import "stride/claim/params.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/claim/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/claim/types"; // GenesisState defines the claim module's genesis state. message GenesisState { diff --git a/proto/stride/claim/params.proto b/proto/stride/claim/params.proto index 6398ad7e91..8d81dc64a3 100644 --- a/proto/stride/claim/params.proto +++ b/proto/stride/claim/params.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/claim/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/claim/types"; // Params defines the claim module's parameters. message Params { repeated Airdrop airdrops = 1; } diff --git a/proto/stride/claim/query.proto b/proto/stride/claim/query.proto index c83c72b20f..1a03488d3f 100644 --- a/proto/stride/claim/query.proto +++ b/proto/stride/claim/query.proto @@ -8,7 +8,7 @@ import "stride/claim/claim.proto"; import "stride/claim/params.proto"; import "stride/vesting/vesting.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/claim/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/claim/types"; // Query defines the gRPC querier service. service Query { diff --git a/proto/stride/claim/tx.proto b/proto/stride/claim/tx.proto index 154ec7d6a2..a649191afa 100644 --- a/proto/stride/claim/tx.proto +++ b/proto/stride/claim/tx.proto @@ -4,7 +4,7 @@ package stride.claim; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/claim/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/claim/types"; // Msg defines the Msg service. service Msg { diff --git a/proto/stride/epochs/genesis.proto b/proto/stride/epochs/genesis.proto index fdec9d2426..8465a8693d 100755 --- a/proto/stride/epochs/genesis.proto +++ b/proto/stride/epochs/genesis.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/epochs/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/epochs/types"; message EpochInfo { string identifier = 1; diff --git a/proto/stride/epochs/query.proto b/proto/stride/epochs/query.proto index ba49e56670..73a374d19b 100644 --- a/proto/stride/epochs/query.proto +++ b/proto/stride/epochs/query.proto @@ -6,7 +6,7 @@ import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "stride/epochs/genesis.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/epochs/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/epochs/types"; // Query defines the gRPC querier service. service Query { @@ -51,7 +51,7 @@ message QueryEpochInfoResponse { // import "epochs/params.proto"; // // this line is used by starport scaffolding # 1 -// option go_package = "github.com/Stride-Labs/stride/v6/x/epochs/types"; +// option go_package = "github.com/Stride-Labs/stride/v7/x/epochs/types"; // // Query defines the gRPC querier service. // service Query { diff --git a/proto/stride/icacallbacks/callback_data.proto b/proto/stride/icacallbacks/callback_data.proto index a9a8c3a527..e0d062a7d6 100755 --- a/proto/stride/icacallbacks/callback_data.proto +++ b/proto/stride/icacallbacks/callback_data.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package stride.icacallbacks; -option go_package = "github.com/Stride-Labs/stride/v6/x/icacallbacks/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/icacallbacks/types"; message CallbackData { string callback_key = 1; diff --git a/proto/stride/icacallbacks/genesis.proto b/proto/stride/icacallbacks/genesis.proto index e7cc1e8d70..f84f39ab89 100755 --- a/proto/stride/icacallbacks/genesis.proto +++ b/proto/stride/icacallbacks/genesis.proto @@ -6,7 +6,7 @@ import "stride/icacallbacks/params.proto"; import "stride/icacallbacks/callback_data.proto"; // this line is used by starport scaffolding # genesis/proto/import -option go_package = "github.com/Stride-Labs/stride/v6/x/icacallbacks/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/icacallbacks/types"; // GenesisState defines the icacallbacks module's genesis state. message GenesisState { diff --git a/proto/stride/icacallbacks/packet.proto b/proto/stride/icacallbacks/packet.proto index 6fcb0e0df9..e8b53a4064 100755 --- a/proto/stride/icacallbacks/packet.proto +++ b/proto/stride/icacallbacks/packet.proto @@ -3,7 +3,7 @@ package stride.icacallbacks; // this line is used by starport scaffolding # proto/packet/import -option go_package = "github.com/Stride-Labs/stride/v6/x/icacallbacks/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/icacallbacks/types"; message IcacallbacksPacketData { oneof packet { diff --git a/proto/stride/icacallbacks/params.proto b/proto/stride/icacallbacks/params.proto index 57d704ab20..7dda79fe5c 100755 --- a/proto/stride/icacallbacks/params.proto +++ b/proto/stride/icacallbacks/params.proto @@ -3,7 +3,7 @@ package stride.icacallbacks; import "gogoproto/gogo.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/icacallbacks/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/icacallbacks/types"; // Params defines the parameters for the module. message Params { option (gogoproto.goproto_stringer) = false; } diff --git a/proto/stride/icacallbacks/query.proto b/proto/stride/icacallbacks/query.proto index 6dba4eae66..1953471ccb 100644 --- a/proto/stride/icacallbacks/query.proto +++ b/proto/stride/icacallbacks/query.proto @@ -8,7 +8,7 @@ import "stride/icacallbacks/params.proto"; import "stride/icacallbacks/callback_data.proto"; // this line is used by starport scaffolding # 1 -option go_package = "github.com/Stride-Labs/stride/v6/x/icacallbacks/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/icacallbacks/types"; // Query defines the gRPC querier service. service Query { diff --git a/proto/stride/icacallbacks/tx.proto b/proto/stride/icacallbacks/tx.proto index 16c66f71a1..459d0c17e8 100755 --- a/proto/stride/icacallbacks/tx.proto +++ b/proto/stride/icacallbacks/tx.proto @@ -3,7 +3,7 @@ package stride.icacallbacks; // this line is used by starport scaffolding # proto/tx/import -option go_package = "github.com/Stride-Labs/stride/v6/x/icacallbacks/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/icacallbacks/types"; // Msg defines the Msg service. service Msg { diff --git a/proto/stride/interchainquery/v1/genesis.proto b/proto/stride/interchainquery/v1/genesis.proto index 8f538a6c76..211689bade 100644 --- a/proto/stride/interchainquery/v1/genesis.proto +++ b/proto/stride/interchainquery/v1/genesis.proto @@ -4,7 +4,7 @@ package stride.interchainquery.v1; import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/interchainquery/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/interchainquery/types"; message Query { string id = 1; diff --git a/proto/stride/interchainquery/v1/messages.proto b/proto/stride/interchainquery/v1/messages.proto index 2124ee91be..1772fe4a4b 100755 --- a/proto/stride/interchainquery/v1/messages.proto +++ b/proto/stride/interchainquery/v1/messages.proto @@ -6,7 +6,7 @@ import "cosmos_proto/cosmos.proto"; import "google/api/annotations.proto"; import "tendermint/crypto/proof.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/interchainquery/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/interchainquery/types"; // Msg defines the interchainquery Msg service. service Msg { diff --git a/proto/stride/interchainquery/v1/query.proto b/proto/stride/interchainquery/v1/query.proto index e97bce38a7..83039097f8 100644 --- a/proto/stride/interchainquery/v1/query.proto +++ b/proto/stride/interchainquery/v1/query.proto @@ -5,7 +5,7 @@ import "stride/interchainquery/v1/genesis.proto"; import "google/api/annotations.proto"; import "gogoproto/gogo.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/interchainquery/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/interchainquery/types"; service QueryService { rpc PendingQueries(QueryPendingQueriesRequest) diff --git a/proto/stride/mint/v1beta1/genesis.proto b/proto/stride/mint/v1beta1/genesis.proto index 8bcf365768..27ef9a5226 100755 --- a/proto/stride/mint/v1beta1/genesis.proto +++ b/proto/stride/mint/v1beta1/genesis.proto @@ -4,7 +4,7 @@ package stride.mint.v1beta1; import "gogoproto/gogo.proto"; import "stride/mint/v1beta1/mint.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/mint/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/mint/types"; // GenesisState defines the mint module's genesis state. message GenesisState { diff --git a/proto/stride/mint/v1beta1/mint.proto b/proto/stride/mint/v1beta1/mint.proto index 016de88a39..2dcb8a4053 100755 --- a/proto/stride/mint/v1beta1/mint.proto +++ b/proto/stride/mint/v1beta1/mint.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package stride.mint.v1beta1; -option go_package = "github.com/Stride-Labs/stride/v6/x/mint/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/mint/types"; import "gogoproto/gogo.proto"; diff --git a/proto/stride/mint/v1beta1/query.proto b/proto/stride/mint/v1beta1/query.proto index f18455a2e8..868247e282 100755 --- a/proto/stride/mint/v1beta1/query.proto +++ b/proto/stride/mint/v1beta1/query.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "stride/mint/v1beta1/mint.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/mint/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/mint/types"; // Query provides defines the gRPC querier service. service Query { diff --git a/proto/stride/ratelimit/genesis.proto b/proto/stride/ratelimit/genesis.proto index 5aaa70bd19..6908a6ac25 100644 --- a/proto/stride/ratelimit/genesis.proto +++ b/proto/stride/ratelimit/genesis.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "stride/ratelimit/params.proto"; import "stride/ratelimit/ratelimit.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/ratelimit/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/ratelimit/types"; // GenesisState defines the ratelimit module's genesis state. message GenesisState { diff --git a/proto/stride/ratelimit/gov.proto b/proto/stride/ratelimit/gov.proto index 24b0436dad..051732f278 100644 --- a/proto/stride/ratelimit/gov.proto +++ b/proto/stride/ratelimit/gov.proto @@ -3,7 +3,7 @@ package stride.ratelimit; import "gogoproto/gogo.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/ratelimit/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/ratelimit/types"; message AddRateLimitProposal { option (gogoproto.equal) = true; diff --git a/proto/stride/ratelimit/params.proto b/proto/stride/ratelimit/params.proto index 3265c2110e..af84a96f6b 100644 --- a/proto/stride/ratelimit/params.proto +++ b/proto/stride/ratelimit/params.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package stride.ratelimit; -option go_package = "github.com/Stride-Labs/stride/v6/x/ratelimit/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/ratelimit/types"; // Params defines the ratelimit module's parameters. message Params {} diff --git a/proto/stride/ratelimit/query.proto b/proto/stride/ratelimit/query.proto index 2999a09f22..0bc2c625a0 100644 --- a/proto/stride/ratelimit/query.proto +++ b/proto/stride/ratelimit/query.proto @@ -5,7 +5,7 @@ import "stride/ratelimit/ratelimit.proto"; import "google/api/annotations.proto"; import "gogoproto/gogo.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/ratelimit/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/ratelimit/types"; // Query defines the gRPC querier service. service Query { diff --git a/proto/stride/ratelimit/ratelimit.proto b/proto/stride/ratelimit/ratelimit.proto index d722abe112..512fa8d3df 100644 --- a/proto/stride/ratelimit/ratelimit.proto +++ b/proto/stride/ratelimit/ratelimit.proto @@ -3,7 +3,7 @@ package stride.ratelimit; import "gogoproto/gogo.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/ratelimit/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/ratelimit/types"; enum PacketDirection { option (gogoproto.goproto_enum_prefix) = false; diff --git a/proto/stride/records/callbacks.proto b/proto/stride/records/callbacks.proto index fcb25b9f10..0497486627 100755 --- a/proto/stride/records/callbacks.proto +++ b/proto/stride/records/callbacks.proto @@ -1,6 +1,6 @@ syntax = "proto3"; package stride.records; -option go_package = "github.com/Stride-Labs/stride/v6/x/records/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/records/types"; // ---------------------- Transfer Callback ---------------------- // message TransferCallback { uint64 deposit_record_id = 1; } diff --git a/proto/stride/records/genesis.proto b/proto/stride/records/genesis.proto index 9530cf19e5..ddf331c7dd 100644 --- a/proto/stride/records/genesis.proto +++ b/proto/stride/records/genesis.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; // this line is used by starport scaffolding # genesis/proto/import -option go_package = "github.com/Stride-Labs/stride/v6/x/records/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/records/types"; message UserRedemptionRecord { string id = 1; // {chain_id}.{epoch}.{sender} diff --git a/proto/stride/records/query.proto b/proto/stride/records/query.proto index 716e3b7514..5c9e07c92e 100644 --- a/proto/stride/records/query.proto +++ b/proto/stride/records/query.proto @@ -7,7 +7,7 @@ import "cosmos/base/query/v1beta1/pagination.proto"; import "stride/records/genesis.proto"; // this line is used by starport scaffolding # 1 -option go_package = "github.com/Stride-Labs/stride/v6/x/records/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/records/types"; // Query defines the gRPC querier service. service Query { diff --git a/proto/stride/stakeibc/address_unbonding.proto b/proto/stride/stakeibc/address_unbonding.proto index 201ab7b413..16fdefd886 100644 --- a/proto/stride/stakeibc/address_unbonding.proto +++ b/proto/stride/stakeibc/address_unbonding.proto @@ -3,7 +3,7 @@ package stride.stakeibc; import "gogoproto/gogo.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/stakeibc/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/stakeibc/types"; message AddressUnbonding { string address = 1; diff --git a/proto/stride/stakeibc/callbacks.proto b/proto/stride/stakeibc/callbacks.proto index c96223fb4e..9eefa37729 100644 --- a/proto/stride/stakeibc/callbacks.proto +++ b/proto/stride/stakeibc/callbacks.proto @@ -1,6 +1,6 @@ syntax = "proto3"; package stride.stakeibc; -option go_package = "github.com/Stride-Labs/stride/v6/x/stakeibc/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/stakeibc/types"; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; diff --git a/proto/stride/stakeibc/epoch_tracker.proto b/proto/stride/stakeibc/epoch_tracker.proto index 2a5eea03f8..9dd128d41b 100755 --- a/proto/stride/stakeibc/epoch_tracker.proto +++ b/proto/stride/stakeibc/epoch_tracker.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package stride.stakeibc; -option go_package = "github.com/Stride-Labs/stride/v6/x/stakeibc/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/stakeibc/types"; message EpochTracker { string epoch_identifier = 1; diff --git a/proto/stride/stakeibc/genesis.proto b/proto/stride/stakeibc/genesis.proto index b72ee80f61..a412889d49 100644 --- a/proto/stride/stakeibc/genesis.proto +++ b/proto/stride/stakeibc/genesis.proto @@ -7,7 +7,7 @@ import "stride/stakeibc/host_zone.proto"; import "stride/stakeibc/epoch_tracker.proto"; // this line is used by starport scaffolding # genesis/proto/import -option go_package = "github.com/Stride-Labs/stride/v6/x/stakeibc/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/stakeibc/types"; // GenesisState defines the stakeibc module's genesis state. message GenesisState { diff --git a/proto/stride/stakeibc/gov.proto b/proto/stride/stakeibc/gov.proto index eb7b32272e..a46c77871b 100644 --- a/proto/stride/stakeibc/gov.proto +++ b/proto/stride/stakeibc/gov.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package stride.stakeibc; import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/stakeibc/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/stakeibc/types"; message AddValidatorProposal { option (gogoproto.equal) = true; diff --git a/proto/stride/stakeibc/host_zone.proto b/proto/stride/stakeibc/host_zone.proto index 27c011a3f2..8bb9ee8756 100755 --- a/proto/stride/stakeibc/host_zone.proto +++ b/proto/stride/stakeibc/host_zone.proto @@ -6,7 +6,7 @@ import "stride/stakeibc/ica_account.proto"; import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/stakeibc/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/stakeibc/types"; // next id: 22 message HostZone { diff --git a/proto/stride/stakeibc/ica_account.proto b/proto/stride/stakeibc/ica_account.proto index f7c598f44b..4ea6afdaf3 100755 --- a/proto/stride/stakeibc/ica_account.proto +++ b/proto/stride/stakeibc/ica_account.proto @@ -3,7 +3,7 @@ package stride.stakeibc; import "cosmos_proto/cosmos.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/stakeibc/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/stakeibc/types"; enum ICAAccountType { DELEGATION = 0; diff --git a/proto/stride/stakeibc/packet.proto b/proto/stride/stakeibc/packet.proto index e4886b11d7..f54eabfe52 100755 --- a/proto/stride/stakeibc/packet.proto +++ b/proto/stride/stakeibc/packet.proto @@ -3,7 +3,7 @@ package stride.stakeibc; // this line is used by starport scaffolding # proto/packet/import -option go_package = "github.com/Stride-Labs/stride/v6/x/stakeibc/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/stakeibc/types"; message StakeibcPacketData { oneof packet { diff --git a/proto/stride/stakeibc/params.proto b/proto/stride/stakeibc/params.proto index cbdd677ad7..ccf27d1354 100755 --- a/proto/stride/stakeibc/params.proto +++ b/proto/stride/stakeibc/params.proto @@ -3,7 +3,7 @@ package stride.stakeibc; import "gogoproto/gogo.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/stakeibc/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/stakeibc/types"; // Params defines the parameters for the module. // next id: 18 diff --git a/proto/stride/stakeibc/query.proto b/proto/stride/stakeibc/query.proto index e316cecc5e..5ef2198ee8 100644 --- a/proto/stride/stakeibc/query.proto +++ b/proto/stride/stakeibc/query.proto @@ -11,7 +11,7 @@ import "stride/stakeibc/epoch_tracker.proto"; import "stride/stakeibc/address_unbonding.proto"; // this line is used by starport scaffolding # 1 -option go_package = "github.com/Stride-Labs/stride/v6/x/stakeibc/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/stakeibc/types"; // Query defines the gRPC querier service. service Query { diff --git a/proto/stride/stakeibc/tx.proto b/proto/stride/stakeibc/tx.proto index 0c5b2df3bd..4953134390 100644 --- a/proto/stride/stakeibc/tx.proto +++ b/proto/stride/stakeibc/tx.proto @@ -4,7 +4,7 @@ package stride.stakeibc; import "stride/stakeibc/ica_account.proto"; // this line is used by starport scaffolding # proto/tx/import -option go_package = "github.com/Stride-Labs/stride/v6/x/stakeibc/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/stakeibc/types"; import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; diff --git a/proto/stride/stakeibc/validator.proto b/proto/stride/stakeibc/validator.proto index a3e6eb0770..0b23c01552 100755 --- a/proto/stride/stakeibc/validator.proto +++ b/proto/stride/stakeibc/validator.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package stride.stakeibc; import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/stakeibc/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/stakeibc/types"; message ValidatorExchangeRate { string internal_tokens_to_shares_rate = 1 [ diff --git a/proto/stride/vesting/tx.proto b/proto/stride/vesting/tx.proto index 9aa11e0087..d0d9f24506 100644 --- a/proto/stride/vesting/tx.proto +++ b/proto/stride/vesting/tx.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package stride.vesting; -option go_package = "github.com/Stride-Labs/stride/v6/x/claim/vesting/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/claim/vesting/types"; // Msg defines the bank Msg service. service Msg {} diff --git a/proto/stride/vesting/vesting.proto b/proto/stride/vesting/vesting.proto index ccb5ece6c2..2a0e85f4cd 100644 --- a/proto/stride/vesting/vesting.proto +++ b/proto/stride/vesting/vesting.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/auth/v1beta1/auth.proto"; -option go_package = "github.com/Stride-Labs/stride/v6/x/claim/vesting/types"; +option go_package = "github.com/Stride-Labs/stride/v7/x/claim/vesting/types"; // BaseVestingAccount implements the VestingAccount interface. It contains all // the necessary fields needed for any vesting account implementation. diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh index 0f50862185..b4195e5644 100644 --- a/scripts/protocgen.sh +++ b/scripts/protocgen.sh @@ -24,5 +24,5 @@ cd .. # move proto files to the right places # # Note: Proto files are suffixed with the current binary version. -cp -r github.com/Stride-Labs/stride/v6/* ./ +cp -r github.com/Stride-Labs/stride/v7/* ./ rm -rf github.com diff --git a/x/claim/handler.go b/x/claim/handler.go index ea018aa014..b5fb339d69 100644 --- a/x/claim/handler.go +++ b/x/claim/handler.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/x/claim/keeper" - "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/x/claim/keeper" + "github.com/Stride-Labs/stride/v7/x/claim/types" ) // NewHandler returns claim module messages diff --git a/x/claim/module.go b/x/claim/module.go index 861997f90d..465a1dc1df 100644 --- a/x/claim/module.go +++ b/x/claim/module.go @@ -16,9 +16,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/Stride-Labs/stride/v6/x/claim/client/cli" - "github.com/Stride-Labs/stride/v6/x/claim/keeper" - "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/x/claim/client/cli" + "github.com/Stride-Labs/stride/v7/x/claim/keeper" + "github.com/Stride-Labs/stride/v7/x/claim/types" ) var ( From d3a65d4d48aa24292ffa961c796ac8c1956c0017 Mon Sep 17 00:00:00 2001 From: Aidan Salzmann Date: Sun, 12 Mar 2023 22:30:51 -0400 Subject: [PATCH 03/10] more replacements --- app/app.go | 70 +++++++++---------- app/apptesting/test_helpers.go | 4 +- app/upgrades.go | 18 ++--- app/upgrades/v3/upgrades.go | 4 +- app/upgrades/v5/upgrades.go | 20 +++--- app/upgrades/v5/upgrades_test.go | 28 ++++---- app/upgrades/v6/upgrades_test.go | 8 +-- cmd/strided/main.go | 4 +- cmd/strided/root.go | 6 +- testutil/keeper/claim.go | 4 +- testutil/keeper/epochs.go | 4 +- testutil/keeper/icacallbacks.go | 4 +- testutil/keeper/interchainquery.go | 4 +- testutil/keeper/records.go | 4 +- testutil/keeper/stakeibc.go | 4 +- utils/utils.go | 6 +- x/autopilot/genesis.go | 4 +- x/autopilot/genesis_test.go | 6 +- x/autopilot/handler.go | 4 +- x/autopilot/keeper/keeper.go | 4 +- x/autopilot/keeper/keeper_test.go | 4 +- x/autopilot/keeper/liquidstake.go | 6 +- x/autopilot/keeper/liquidstake_test.go | 14 ++-- x/autopilot/module.go | 6 +- x/autopilot/module_ibc.go | 4 +- x/claim/client/cli/cli_test.go | 14 ++-- x/claim/genesis_test.go | 6 +- x/claim/keeper/claim.go | 8 +-- x/claim/keeper/claim_test.go | 4 +- x/claim/keeper/hooks.go | 6 +- x/claim/keeper/keeper_test.go | 6 +- x/claim/keeper/msg_server_test.go | 4 +- x/claim/migrations/v2/convert.go | 4 +- x/claim/migrations/v2/convert_test.go | 4 +- x/claim/migrations/v2/migrations.go | 4 +- x/claim/vesting/module.go | 4 +- x/claim/vesting/types/vesting_account.go | 4 +- x/epochs/genesis.go | 4 +- x/epochs/genesis_test.go | 8 +-- x/epochs/handler.go | 4 +- x/epochs/keeper/abci.go | 4 +- x/epochs/keeper/abci_test.go | 4 +- x/epochs/keeper/keeper_test.go | 4 +- x/epochs/module.go | 8 +-- .../client/cli/query_callback_data_test.go | 8 +-- x/icacallbacks/genesis.go | 4 +- x/icacallbacks/genesis_test.go | 8 +-- x/icacallbacks/handler.go | 4 +- x/icacallbacks/icacallbacks_test.go | 6 +- x/icacallbacks/keeper/callback_data_test.go | 8 +-- .../keeper/grpc_query_callback_data_test.go | 6 +- .../keeper/grpc_query_params_test.go | 4 +- x/icacallbacks/keeper/keeper.go | 4 +- x/icacallbacks/keeper/params_test.go | 4 +- x/icacallbacks/migrations/v2/convert.go | 6 +- x/icacallbacks/migrations/v2/convert_test.go | 4 +- x/icacallbacks/module.go | 6 +- x/icacallbacks/module_simulation.go | 6 +- x/interchainquery/genesis.go | 4 +- x/interchainquery/handler.go | 4 +- x/interchainquery/keeper/keeper.go | 4 +- x/interchainquery/keeper/keeper_test.go | 6 +- x/interchainquery/keeper/msg_server.go | 4 +- x/interchainquery/module.go | 6 +- x/mint/client/cli/cli_test.go | 4 +- x/mint/client/rest/grpc_query_test.go | 4 +- x/mint/genesis.go | 4 +- x/mint/keeper/hooks.go | 4 +- x/mint/module.go | 8 +-- x/ratelimit/genesis.go | 4 +- x/ratelimit/genesis_test.go | 8 +-- x/ratelimit/handler.go | 6 +- x/ratelimit/keeper/gov/gov.go | 4 +- x/ratelimit/keeper/gov/gov_test.go | 8 +-- x/ratelimit/keeper/hooks_test.go | 4 +- x/ratelimit/keeper/keeper_test.go | 4 +- x/ratelimit/keeper/packet_test.go | 4 +- x/ratelimit/keeper/rate_limit_test.go | 4 +- x/ratelimit/module.go | 6 +- x/ratelimit/types/gov_add_rate_limit_test.go | 4 +- .../types/gov_remove_rate_limit_test.go | 4 +- .../types/gov_reset_rate_limit_test.go | 4 +- .../types/gov_update_rate_limit_test.go | 4 +- .../client/cli/query_deposit_record_test.go | 8 +-- .../cli/query_user_redemption_record_test.go | 8 +-- x/records/genesis.go | 4 +- x/records/genesis_test.go | 8 +-- x/records/handler.go | 4 +- x/records/keeper/callback_transfer.go | 4 +- x/records/keeper/callback_transfer_test.go | 8 +-- x/records/keeper/epoch_unbonding_record.go | 4 +- .../keeper/epoch_unbonding_record_test.go | 8 +-- .../keeper/grpc_query_deposit_record_test.go | 8 +-- .../grpc_query_epoch_unbonding_record_test.go | 6 +- x/records/keeper/grpc_query_params_test.go | 4 +- .../grpc_query_user_redemption_record_test.go | 6 +- x/records/keeper/keeper.go | 8 +-- x/records/keeper/keeper_test.go | 6 +- x/records/keeper/params_test.go | 4 +- x/records/keeper/transfer_test.go | 4 +- .../keeper/user_redemption_record_test.go | 8 +-- x/records/migrations/v2/convert.go | 4 +- x/records/migrations/v2/convert_test.go | 4 +- x/records/migrations/v2/migrations.go | 4 +- x/records/module.go | 6 +- x/records/module_ibc.go | 6 +- x/records/module_simulation.go | 6 +- x/stakeibc/abci.go | 4 +- .../client/cli/query_epoch_tracker_test.go | 6 +- x/stakeibc/genesis.go | 4 +- x/stakeibc/genesis_test.go | 8 +-- x/stakeibc/handler.go | 4 +- x/stakeibc/keeper/deposit_records.go | 6 +- x/stakeibc/keeper/deposit_records_test.go | 8 +-- .../keeper/epoch_elapsed_shares_test.go | 4 +- x/stakeibc/keeper/epoch_tracker_test.go | 8 +-- .../keeper/grpc_query_address_unbondings.go | 4 +- .../keeper/grpc_query_epoch_tracker_test.go | 6 +- .../keeper/grpc_query_host_zone_test.go | 6 +- x/stakeibc/keeper/grpc_query_params_test.go | 4 +- .../keeper/grpc_query_validator_test.go | 6 +- x/stakeibc/keeper/hooks.go | 8 +-- x/stakeibc/keeper/host_zone.go | 4 +- x/stakeibc/keeper/host_zone_test.go | 8 +-- x/stakeibc/keeper/icacallbacks_claim.go | 8 +-- x/stakeibc/keeper/icacallbacks_claim_test.go | 8 +-- x/stakeibc/keeper/icacallbacks_delegate.go | 8 +-- .../keeper/icacallbacks_delegate_test.go | 10 +-- x/stakeibc/keeper/icacallbacks_rebalance.go | 6 +- .../keeper/icacallbacks_rebalance_test.go | 8 +-- x/stakeibc/keeper/icacallbacks_redemption.go | 8 +-- .../keeper/icacallbacks_redemption_test.go | 10 +-- x/stakeibc/keeper/icacallbacks_reinvest.go | 10 +-- .../keeper/icacallbacks_reinvest_test.go | 12 ++-- x/stakeibc/keeper/icacallbacks_undelegate.go | 8 +-- .../keeper/icacallbacks_undelegate_test.go | 10 +-- .../keeper/icqcallbacks_delegator_shares.go | 8 +-- .../icqcallbacks_delegator_shares_test.go | 8 +-- .../icqcallbacks_validator_exchange_rate.go | 8 +-- ...qcallbacks_validator_exchange_rate_test.go | 8 +-- .../keeper/icqcallbacks_withdrawal_balance.go | 6 +- .../icqcallbacks_withdrawal_balance_test.go | 10 +-- x/stakeibc/keeper/keeper.go | 10 +-- x/stakeibc/keeper/keeper_test.go | 6 +- .../msg_server_claim_undelegated_tokens.go | 6 +- ...sg_server_claim_undelegated_tokens_test.go | 8 +-- .../keeper/msg_server_clear_balance_test.go | 4 +- x/stakeibc/keeper/msg_server_liquid_stake.go | 4 +- .../keeper/msg_server_liquid_stake_test.go | 6 +- .../keeper/msg_server_rebalance_validators.go | 4 +- .../msg_server_rebalance_validators_test.go | 6 +- x/stakeibc/keeper/msg_server_redeem_stake.go | 6 +- .../keeper/msg_server_redeem_stake_test.go | 6 +- .../keeper/msg_server_register_host_zone.go | 8 +-- .../msg_server_register_host_zone_test.go | 8 +-- .../msg_server_restore_interchain_account.go | 4 +- ..._server_restore_interchain_account_test.go | 4 +- x/stakeibc/keeper/msg_server_submit_tx.go | 12 ++-- x/stakeibc/keeper/params_test.go | 4 +- x/stakeibc/keeper/reward_allocation_test.go | 6 +- x/stakeibc/keeper/unbonding_records.go | 6 +- .../keeper/unbonding_records_cleanup_test.go | 4 +- ...ords_get_host_zone_unbondings_msgs_test.go | 4 +- ...ng_records_initiate_all_unbondings_test.go | 4 +- ...ding_records_sweep_unbonded_tokens_test.go | 6 +- .../keeper/update_redemption_rates_test.go | 4 +- .../update_validator_shares_exch_rate_test.go | 6 +- x/stakeibc/keeper/validator_selection.go | 4 +- x/stakeibc/migrations/v2/convert.go | 4 +- x/stakeibc/migrations/v2/convert_test.go | 4 +- x/stakeibc/migrations/v2/migrations.go | 4 +- x/stakeibc/module.go | 6 +- x/stakeibc/module_ibc.go | 8 +-- x/stakeibc/module_simulation.go | 6 +- x/stakeibc/proposal_handler.go | 4 +- x/stakeibc/simulation/add_validator.go | 4 +- .../simulation/change_validator_weight.go | 4 +- .../simulation/claim_undelegated_tokens.go | 4 +- x/stakeibc/simulation/delete_validator.go | 4 +- x/stakeibc/simulation/liquid_stake.go | 4 +- x/stakeibc/simulation/rebalance_validators.go | 4 +- .../simulation/restore_interchain_account.go | 4 +- x/stakeibc/simulation/update_delegation.go | 4 +- .../message_rebalance_validators_test.go | 4 +- 184 files changed, 580 insertions(+), 580 deletions(-) diff --git a/app/app.go b/app/app.go index 3bd6ddea01..066533cedd 100644 --- a/app/app.go +++ b/app/app.go @@ -7,7 +7,7 @@ import ( porttypes "github.com/cosmos/ibc-go/v5/modules/core/05-port/types" - "github.com/Stride-Labs/stride/v6/utils" + "github.com/Stride-Labs/stride/v7/utils" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" @@ -54,12 +54,12 @@ import ( govtypesv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" govtypesv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" - claimvesting "github.com/Stride-Labs/stride/v6/x/claim/vesting" - claimvestingtypes "github.com/Stride-Labs/stride/v6/x/claim/vesting/types" + claimvesting "github.com/Stride-Labs/stride/v7/x/claim/vesting" + claimvestingtypes "github.com/Stride-Labs/stride/v7/x/claim/vesting/types" - "github.com/Stride-Labs/stride/v6/x/mint" - mintkeeper "github.com/Stride-Labs/stride/v6/x/mint/keeper" - minttypes "github.com/Stride-Labs/stride/v6/x/mint/types" + "github.com/Stride-Labs/stride/v7/x/mint" + mintkeeper "github.com/Stride-Labs/stride/v7/x/mint/keeper" + minttypes "github.com/Stride-Labs/stride/v7/x/mint/types" "github.com/cosmos/cosmos-sdk/x/params" paramsclient "github.com/cosmos/cosmos-sdk/x/params/client" @@ -105,35 +105,35 @@ import ( // monitoringp "github.com/tendermint/spn/x/monitoringp" // monitoringpkeeper "github.com/tendermint/spn/x/monitoringp/keeper" - epochsmodule "github.com/Stride-Labs/stride/v6/x/epochs" - epochsmodulekeeper "github.com/Stride-Labs/stride/v6/x/epochs/keeper" - epochsmoduletypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - - "github.com/Stride-Labs/stride/v6/x/interchainquery" - interchainquerykeeper "github.com/Stride-Labs/stride/v6/x/interchainquery/keeper" - interchainquerytypes "github.com/Stride-Labs/stride/v6/x/interchainquery/types" - - "github.com/Stride-Labs/stride/v6/x/autopilot" - autopilotkeeper "github.com/Stride-Labs/stride/v6/x/autopilot/keeper" - autopilottypes "github.com/Stride-Labs/stride/v6/x/autopilot/types" - - "github.com/Stride-Labs/stride/v6/x/claim" - claimkeeper "github.com/Stride-Labs/stride/v6/x/claim/keeper" - claimtypes "github.com/Stride-Labs/stride/v6/x/claim/types" - icacallbacksmodule "github.com/Stride-Labs/stride/v6/x/icacallbacks" - icacallbacksmodulekeeper "github.com/Stride-Labs/stride/v6/x/icacallbacks/keeper" - icacallbacksmoduletypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - ratelimitmodule "github.com/Stride-Labs/stride/v6/x/ratelimit" - ratelimitclient "github.com/Stride-Labs/stride/v6/x/ratelimit/client" - ratelimitmodulekeeper "github.com/Stride-Labs/stride/v6/x/ratelimit/keeper" - ratelimitmoduletypes "github.com/Stride-Labs/stride/v6/x/ratelimit/types" - recordsmodule "github.com/Stride-Labs/stride/v6/x/records" - recordsmodulekeeper "github.com/Stride-Labs/stride/v6/x/records/keeper" - recordsmoduletypes "github.com/Stride-Labs/stride/v6/x/records/types" - stakeibcmodule "github.com/Stride-Labs/stride/v6/x/stakeibc" - stakeibcclient "github.com/Stride-Labs/stride/v6/x/stakeibc/client" - stakeibcmodulekeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - stakeibcmoduletypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochsmodule "github.com/Stride-Labs/stride/v7/x/epochs" + epochsmodulekeeper "github.com/Stride-Labs/stride/v7/x/epochs/keeper" + epochsmoduletypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + + "github.com/Stride-Labs/stride/v7/x/interchainquery" + interchainquerykeeper "github.com/Stride-Labs/stride/v7/x/interchainquery/keeper" + interchainquerytypes "github.com/Stride-Labs/stride/v7/x/interchainquery/types" + + "github.com/Stride-Labs/stride/v7/x/autopilot" + autopilotkeeper "github.com/Stride-Labs/stride/v7/x/autopilot/keeper" + autopilottypes "github.com/Stride-Labs/stride/v7/x/autopilot/types" + + "github.com/Stride-Labs/stride/v7/x/claim" + claimkeeper "github.com/Stride-Labs/stride/v7/x/claim/keeper" + claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" + icacallbacksmodule "github.com/Stride-Labs/stride/v7/x/icacallbacks" + icacallbacksmodulekeeper "github.com/Stride-Labs/stride/v7/x/icacallbacks/keeper" + icacallbacksmoduletypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + ratelimitmodule "github.com/Stride-Labs/stride/v7/x/ratelimit" + ratelimitclient "github.com/Stride-Labs/stride/v7/x/ratelimit/client" + ratelimitmodulekeeper "github.com/Stride-Labs/stride/v7/x/ratelimit/keeper" + ratelimitmoduletypes "github.com/Stride-Labs/stride/v7/x/ratelimit/types" + recordsmodule "github.com/Stride-Labs/stride/v7/x/records" + recordsmodulekeeper "github.com/Stride-Labs/stride/v7/x/records/keeper" + recordsmoduletypes "github.com/Stride-Labs/stride/v7/x/records/types" + stakeibcmodule "github.com/Stride-Labs/stride/v7/x/stakeibc" + stakeibcclient "github.com/Stride-Labs/stride/v7/x/stakeibc/client" + stakeibcmodulekeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + stakeibcmoduletypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" // this line is used by starport scaffolding # stargate/app/moduleImport storetypes "github.com/cosmos/cosmos-sdk/store/types" diff --git a/app/apptesting/test_helpers.go b/app/apptesting/test_helpers.go index ecc0195124..dd08ecda23 100644 --- a/app/apptesting/test_helpers.go +++ b/app/apptesting/test_helpers.go @@ -23,8 +23,8 @@ import ( "github.com/tendermint/tendermint/crypto/ed25519" tmtypes "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/Stride-Labs/stride/v6/app" - "github.com/Stride-Labs/stride/v6/utils" + "github.com/Stride-Labs/stride/v7/app" + "github.com/Stride-Labs/stride/v7/utils" ) var ( diff --git a/app/upgrades.go b/app/upgrades.go index a2dd2e9cd9..c571c4bd66 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -8,15 +8,15 @@ import ( authz "github.com/cosmos/cosmos-sdk/x/authz" - v2 "github.com/Stride-Labs/stride/v6/app/upgrades/v2" - v3 "github.com/Stride-Labs/stride/v6/app/upgrades/v3" - v4 "github.com/Stride-Labs/stride/v6/app/upgrades/v4" - v5 "github.com/Stride-Labs/stride/v6/app/upgrades/v5" - v6 "github.com/Stride-Labs/stride/v6/app/upgrades/v6" - claimtypes "github.com/Stride-Labs/stride/v6/x/claim/types" - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + v2 "github.com/Stride-Labs/stride/v7/app/upgrades/v2" + v3 "github.com/Stride-Labs/stride/v7/app/upgrades/v3" + v4 "github.com/Stride-Labs/stride/v7/app/upgrades/v4" + v5 "github.com/Stride-Labs/stride/v7/app/upgrades/v5" + v6 "github.com/Stride-Labs/stride/v7/app/upgrades/v6" + claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (app *StrideApp) setupUpgradeHandlers() { diff --git a/app/upgrades/v3/upgrades.go b/app/upgrades/v3/upgrades.go index 685b203665..2f51c6c3e7 100644 --- a/app/upgrades/v3/upgrades.go +++ b/app/upgrades/v3/upgrades.go @@ -7,8 +7,8 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - claimkeeper "github.com/Stride-Labs/stride/v6/x/claim/keeper" - claimtypes "github.com/Stride-Labs/stride/v6/x/claim/types" + claimkeeper "github.com/Stride-Labs/stride/v7/x/claim/keeper" + claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" ) // Note: ensure these values are properly set before running upgrade diff --git a/app/upgrades/v5/upgrades.go b/app/upgrades/v5/upgrades.go index 4ae1118c15..4ff9fd7486 100644 --- a/app/upgrades/v5/upgrades.go +++ b/app/upgrades/v5/upgrades.go @@ -12,16 +12,16 @@ import ( authz "github.com/cosmos/cosmos-sdk/x/authz" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - claimmigration "github.com/Stride-Labs/stride/v6/x/claim/migrations/v2" - claimtypes "github.com/Stride-Labs/stride/v6/x/claim/types" - icacallbacksmigration "github.com/Stride-Labs/stride/v6/x/icacallbacks/migrations/v2" - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - interchainquerykeeper "github.com/Stride-Labs/stride/v6/x/interchainquery/keeper" - recordsmigration "github.com/Stride-Labs/stride/v6/x/records/migrations/v2" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" - stakeibckeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - stakeibcmigration "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + claimmigration "github.com/Stride-Labs/stride/v7/x/claim/migrations/v2" + claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" + icacallbacksmigration "github.com/Stride-Labs/stride/v7/x/icacallbacks/migrations/v2" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + interchainquerykeeper "github.com/Stride-Labs/stride/v7/x/interchainquery/keeper" + recordsmigration "github.com/Stride-Labs/stride/v7/x/records/migrations/v2" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" + stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + stakeibcmigration "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // Note: ensure these values are properly set before running upgrade diff --git a/app/upgrades/v5/upgrades_test.go b/app/upgrades/v5/upgrades_test.go index 5704f4c1bd..52925c434e 100644 --- a/app/upgrades/v5/upgrades_test.go +++ b/app/upgrades/v5/upgrades_test.go @@ -11,20 +11,20 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/suite" - "github.com/Stride-Labs/stride/v6/app" - - "github.com/Stride-Labs/stride/v6/app/apptesting" - upgradev5 "github.com/Stride-Labs/stride/v6/app/upgrades/v5" - oldclaimtypes "github.com/Stride-Labs/stride/v6/x/claim/migrations/v2/types" - claimtypes "github.com/Stride-Labs/stride/v6/x/claim/types" - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - icqtypes "github.com/Stride-Labs/stride/v6/x/interchainquery/types" - recordkeeper "github.com/Stride-Labs/stride/v6/x/records/keeper" - oldrecordtypes "github.com/Stride-Labs/stride/v6/x/records/migrations/v2/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" - stakeibckeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/app" + + "github.com/Stride-Labs/stride/v7/app/apptesting" + upgradev5 "github.com/Stride-Labs/stride/v7/app/upgrades/v5" + oldclaimtypes "github.com/Stride-Labs/stride/v7/x/claim/migrations/v2/types" + claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + icqtypes "github.com/Stride-Labs/stride/v7/x/interchainquery/types" + recordkeeper "github.com/Stride-Labs/stride/v7/x/records/keeper" + oldrecordtypes "github.com/Stride-Labs/stride/v7/x/records/migrations/v2/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" + stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) const dummyUpgradeHeight = 5 diff --git a/app/upgrades/v6/upgrades_test.go b/app/upgrades/v6/upgrades_test.go index 74bd8e8f58..3a6948a90b 100644 --- a/app/upgrades/v6/upgrades_test.go +++ b/app/upgrades/v6/upgrades_test.go @@ -11,11 +11,11 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/suite" - "github.com/Stride-Labs/stride/v6/app" + "github.com/Stride-Labs/stride/v7/app" - "github.com/Stride-Labs/stride/v6/app/apptesting" - "github.com/Stride-Labs/stride/v6/x/claim/types" - claimtypes "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/app/apptesting" + "github.com/Stride-Labs/stride/v7/x/claim/types" + claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" ) const dummyUpgradeHeight = 5 diff --git a/cmd/strided/main.go b/cmd/strided/main.go index 0402661551..65909b76b0 100644 --- a/cmd/strided/main.go +++ b/cmd/strided/main.go @@ -5,9 +5,9 @@ import ( svrcmd "github.com/cosmos/cosmos-sdk/server/cmd" - "github.com/Stride-Labs/stride/v6/app" + "github.com/Stride-Labs/stride/v7/app" - cmdcfg "github.com/Stride-Labs/stride/v6/cmd/strided/config" + cmdcfg "github.com/Stride-Labs/stride/v7/cmd/strided/config" ) func main() { diff --git a/cmd/strided/root.go b/cmd/strided/root.go index 43ead56e7d..18a54b241f 100644 --- a/cmd/strided/root.go +++ b/cmd/strided/root.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/snapshots" - "github.com/Stride-Labs/stride/v6/utils" + "github.com/Stride-Labs/stride/v7/utils" tmDb "github.com/tendermint/tm-db" @@ -40,8 +40,8 @@ import ( genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" tmcfg "github.com/tendermint/tendermint/config" - "github.com/Stride-Labs/stride/v6/app" - // "github.com/Stride-Labs/stride/v6/app/params" + "github.com/Stride-Labs/stride/v7/app" + // "github.com/Stride-Labs/stride/v7/app/params" // this line is used by starport scaffolding # stargate/root/import ) diff --git a/testutil/keeper/claim.go b/testutil/keeper/claim.go index 78aaa20125..aaf0643990 100644 --- a/testutil/keeper/claim.go +++ b/testutil/keeper/claim.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - strideapp "github.com/Stride-Labs/stride/v6/app" - "github.com/Stride-Labs/stride/v6/x/claim/keeper" + strideapp "github.com/Stride-Labs/stride/v7/app" + "github.com/Stride-Labs/stride/v7/x/claim/keeper" ) func ClaimKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { diff --git a/testutil/keeper/epochs.go b/testutil/keeper/epochs.go index acbcf1aee9..28bd167060 100644 --- a/testutil/keeper/epochs.go +++ b/testutil/keeper/epochs.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - strideapp "github.com/Stride-Labs/stride/v6/app" - "github.com/Stride-Labs/stride/v6/x/epochs/keeper" + strideapp "github.com/Stride-Labs/stride/v7/app" + "github.com/Stride-Labs/stride/v7/x/epochs/keeper" ) func EpochsKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { diff --git a/testutil/keeper/icacallbacks.go b/testutil/keeper/icacallbacks.go index 86015a9fca..38eab7d0e8 100644 --- a/testutil/keeper/icacallbacks.go +++ b/testutil/keeper/icacallbacks.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - strideapp "github.com/Stride-Labs/stride/v6/app" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/keeper" + strideapp "github.com/Stride-Labs/stride/v7/app" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/keeper" ) func IcacallbacksKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { diff --git a/testutil/keeper/interchainquery.go b/testutil/keeper/interchainquery.go index c588c99404..731bc39b62 100644 --- a/testutil/keeper/interchainquery.go +++ b/testutil/keeper/interchainquery.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - strideapp "github.com/Stride-Labs/stride/v6/app" - "github.com/Stride-Labs/stride/v6/x/interchainquery/keeper" + strideapp "github.com/Stride-Labs/stride/v7/app" + "github.com/Stride-Labs/stride/v7/x/interchainquery/keeper" ) func InterchainqueryKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { diff --git a/testutil/keeper/records.go b/testutil/keeper/records.go index 26fd608f36..b3c09dc343 100644 --- a/testutil/keeper/records.go +++ b/testutil/keeper/records.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - strideapp "github.com/Stride-Labs/stride/v6/app" - "github.com/Stride-Labs/stride/v6/x/records/keeper" + strideapp "github.com/Stride-Labs/stride/v7/app" + "github.com/Stride-Labs/stride/v7/x/records/keeper" ) func RecordsKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { diff --git a/testutil/keeper/stakeibc.go b/testutil/keeper/stakeibc.go index f6c89ec316..0f3fc92e9d 100644 --- a/testutil/keeper/stakeibc.go +++ b/testutil/keeper/stakeibc.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - strideapp "github.com/Stride-Labs/stride/v6/app" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" + strideapp "github.com/Stride-Labs/stride/v7/app" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" ) func StakeibcKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { diff --git a/utils/utils.go b/utils/utils.go index 191db0c56a..bb2db25018 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -16,9 +16,9 @@ import ( channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" - config "github.com/Stride-Labs/stride/v6/cmd/strided/config" - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" + config "github.com/Stride-Labs/stride/v7/cmd/strided/config" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" ) func FilterDepositRecords(arr []recordstypes.DepositRecord, condition func(recordstypes.DepositRecord) bool) (ret []recordstypes.DepositRecord) { diff --git a/x/autopilot/genesis.go b/x/autopilot/genesis.go index 7596bf6bef..13842f2551 100644 --- a/x/autopilot/genesis.go +++ b/x/autopilot/genesis.go @@ -3,8 +3,8 @@ package autopilot import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/autopilot/keeper" - "github.com/Stride-Labs/stride/v6/x/autopilot/types" + "github.com/Stride-Labs/stride/v7/x/autopilot/keeper" + "github.com/Stride-Labs/stride/v7/x/autopilot/types" ) // InitGenesis initializes the capability module's state from a provided genesis diff --git a/x/autopilot/genesis_test.go b/x/autopilot/genesis_test.go index 3698e1b089..55902cebee 100644 --- a/x/autopilot/genesis_test.go +++ b/x/autopilot/genesis_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/app/apptesting" - "github.com/Stride-Labs/stride/v6/x/autopilot" - "github.com/Stride-Labs/stride/v6/x/autopilot/types" + "github.com/Stride-Labs/stride/v7/app/apptesting" + "github.com/Stride-Labs/stride/v7/x/autopilot" + "github.com/Stride-Labs/stride/v7/x/autopilot/types" ) func TestGenesis(t *testing.T) { diff --git a/x/autopilot/handler.go b/x/autopilot/handler.go index 21ccaa6453..41ce7e8947 100644 --- a/x/autopilot/handler.go +++ b/x/autopilot/handler.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/x/autopilot/keeper" - "github.com/Stride-Labs/stride/v6/x/autopilot/types" + "github.com/Stride-Labs/stride/v7/x/autopilot/keeper" + "github.com/Stride-Labs/stride/v7/x/autopilot/types" ) // NewHandler returns autopilot module messages diff --git a/x/autopilot/keeper/keeper.go b/x/autopilot/keeper/keeper.go index 14c1fac57b..12a9ed7e51 100644 --- a/x/autopilot/keeper/keeper.go +++ b/x/autopilot/keeper/keeper.go @@ -10,8 +10,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/Stride-Labs/stride/v6/x/autopilot/types" - stakeibckeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/autopilot/types" + stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" ) type ( diff --git a/x/autopilot/keeper/keeper_test.go b/x/autopilot/keeper/keeper_test.go index d252036a33..756409e897 100644 --- a/x/autopilot/keeper/keeper_test.go +++ b/x/autopilot/keeper/keeper_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/suite" - "github.com/Stride-Labs/stride/v6/app/apptesting" - "github.com/Stride-Labs/stride/v6/x/autopilot/types" + "github.com/Stride-Labs/stride/v7/app/apptesting" + "github.com/Stride-Labs/stride/v7/x/autopilot/types" ) type KeeperTestSuite struct { diff --git a/x/autopilot/keeper/liquidstake.go b/x/autopilot/keeper/liquidstake.go index 7346ab47d7..656ad677df 100644 --- a/x/autopilot/keeper/liquidstake.go +++ b/x/autopilot/keeper/liquidstake.go @@ -11,9 +11,9 @@ import ( channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" ibcexported "github.com/cosmos/ibc-go/v5/modules/core/exported" - "github.com/Stride-Labs/stride/v6/x/autopilot/types" - stakeibckeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/autopilot/types" + stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (k Keeper) TryLiquidStaking( diff --git a/x/autopilot/keeper/liquidstake_test.go b/x/autopilot/keeper/liquidstake_test.go index 7d42c85024..9a587d1d76 100644 --- a/x/autopilot/keeper/liquidstake_test.go +++ b/x/autopilot/keeper/liquidstake_test.go @@ -10,16 +10,16 @@ import ( channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" "github.com/tendermint/tendermint/crypto/ed25519" - recordsmodule "github.com/Stride-Labs/stride/v6/x/records" + recordsmodule "github.com/Stride-Labs/stride/v7/x/records" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/autopilot" - "github.com/Stride-Labs/stride/v6/x/autopilot/types" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - minttypes "github.com/Stride-Labs/stride/v6/x/mint/types" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/autopilot" + "github.com/Stride-Labs/stride/v7/x/autopilot/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + minttypes "github.com/Stride-Labs/stride/v7/x/mint/types" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (suite *KeeperTestSuite) TestOnRecvPacket() { diff --git a/x/autopilot/module.go b/x/autopilot/module.go index a4a7fcaaaa..76c3a12cab 100644 --- a/x/autopilot/module.go +++ b/x/autopilot/module.go @@ -18,9 +18,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/Stride-Labs/stride/v6/x/autopilot/client/cli" - "github.com/Stride-Labs/stride/v6/x/autopilot/keeper" - "github.com/Stride-Labs/stride/v6/x/autopilot/types" + "github.com/Stride-Labs/stride/v7/x/autopilot/client/cli" + "github.com/Stride-Labs/stride/v7/x/autopilot/keeper" + "github.com/Stride-Labs/stride/v7/x/autopilot/types" ) var ( diff --git a/x/autopilot/module_ibc.go b/x/autopilot/module_ibc.go index 8c9aeb20c4..694020bc59 100644 --- a/x/autopilot/module_ibc.go +++ b/x/autopilot/module_ibc.go @@ -10,8 +10,8 @@ import ( channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" porttypes "github.com/cosmos/ibc-go/v5/modules/core/05-port/types" - "github.com/Stride-Labs/stride/v6/x/autopilot/keeper" - "github.com/Stride-Labs/stride/v6/x/autopilot/types" + "github.com/Stride-Labs/stride/v7/x/autopilot/keeper" + "github.com/Stride-Labs/stride/v7/x/autopilot/types" ibcexported "github.com/cosmos/ibc-go/v5/modules/core/exported" ) diff --git a/x/claim/client/cli/cli_test.go b/x/claim/client/cli/cli_test.go index 0d074ee70a..17ab44f2ab 100644 --- a/x/claim/client/cli/cli_test.go +++ b/x/claim/client/cli/cli_test.go @@ -15,23 +15,23 @@ import ( clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" banktestutil "github.com/cosmos/cosmos-sdk/x/bank/client/testutil" - strideclitestutil "github.com/Stride-Labs/stride/v6/testutil/cli" + strideclitestutil "github.com/Stride-Labs/stride/v7/testutil/cli" - "github.com/Stride-Labs/stride/v6/testutil/network" + "github.com/Stride-Labs/stride/v7/testutil/network" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/suite" tmcli "github.com/tendermint/tendermint/libs/cli" - "github.com/Stride-Labs/stride/v6/x/claim/client/cli" + "github.com/Stride-Labs/stride/v7/x/claim/client/cli" sdkmath "cosmossdk.io/math" - "github.com/Stride-Labs/stride/v6/app" - cmdcfg "github.com/Stride-Labs/stride/v6/cmd/strided/config" - "github.com/Stride-Labs/stride/v6/x/claim/types" - claimtypes "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/app" + cmdcfg "github.com/Stride-Labs/stride/v7/cmd/strided/config" + "github.com/Stride-Labs/stride/v7/x/claim/types" + claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" ) var addr1 sdk.AccAddress diff --git a/x/claim/genesis_test.go b/x/claim/genesis_test.go index 64a900d40a..0efc94ecd5 100644 --- a/x/claim/genesis_test.go +++ b/x/claim/genesis_test.go @@ -9,9 +9,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/claim/types" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/claim/types" ) func TestGenesis(t *testing.T) { diff --git a/x/claim/keeper/claim.go b/x/claim/keeper/claim.go index 4fb9ffaf5f..edce6b5af6 100644 --- a/x/claim/keeper/claim.go +++ b/x/claim/keeper/claim.go @@ -14,10 +14,10 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/gogo/protobuf/proto" - "github.com/Stride-Labs/stride/v6/utils" - "github.com/Stride-Labs/stride/v6/x/claim/types" - vestingtypes "github.com/Stride-Labs/stride/v6/x/claim/vesting/types" - epochstypes "github.com/Stride-Labs/stride/v6/x/epochs/types" + "github.com/Stride-Labs/stride/v7/utils" + "github.com/Stride-Labs/stride/v7/x/claim/types" + vestingtypes "github.com/Stride-Labs/stride/v7/x/claim/vesting/types" + epochstypes "github.com/Stride-Labs/stride/v7/x/epochs/types" ) func (k Keeper) LoadAllocationData(ctx sdk.Context, allocationData string) bool { diff --git a/x/claim/keeper/claim_test.go b/x/claim/keeper/claim_test.go index 101372e25e..48536115eb 100644 --- a/x/claim/keeper/claim_test.go +++ b/x/claim/keeper/claim_test.go @@ -9,8 +9,8 @@ import ( vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" - "github.com/Stride-Labs/stride/v6/x/claim/types" - stridevestingtypes "github.com/Stride-Labs/stride/v6/x/claim/vesting/types" + "github.com/Stride-Labs/stride/v7/x/claim/types" + stridevestingtypes "github.com/Stride-Labs/stride/v7/x/claim/vesting/types" ) // Test functionality for loading allocation data(csv) diff --git a/x/claim/keeper/hooks.go b/x/claim/keeper/hooks.go index 93414dc596..c5979d1478 100644 --- a/x/claim/keeper/hooks.go +++ b/x/claim/keeper/hooks.go @@ -7,10 +7,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - epochstypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - stakingibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochstypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + stakingibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" - "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/x/claim/types" ) func (k Keeper) AfterDelegationModified(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error { diff --git a/x/claim/keeper/keeper_test.go b/x/claim/keeper/keeper_test.go index feaab2a15a..b43d9ccdc4 100644 --- a/x/claim/keeper/keeper_test.go +++ b/x/claim/keeper/keeper_test.go @@ -12,9 +12,9 @@ import ( sdkmath "cosmossdk.io/math" - "github.com/Stride-Labs/stride/v6/app" - "github.com/Stride-Labs/stride/v6/x/claim/types" - minttypes "github.com/Stride-Labs/stride/v6/x/mint/types" + "github.com/Stride-Labs/stride/v7/app" + "github.com/Stride-Labs/stride/v7/x/claim/types" + minttypes "github.com/Stride-Labs/stride/v7/x/mint/types" ) type KeeperTestSuite struct { diff --git a/x/claim/keeper/msg_server_test.go b/x/claim/keeper/msg_server_test.go index a7d4a94914..a7ac96a722 100644 --- a/x/claim/keeper/msg_server_test.go +++ b/x/claim/keeper/msg_server_test.go @@ -6,8 +6,8 @@ import ( "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/claim/keeper" - "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/x/claim/keeper" + "github.com/Stride-Labs/stride/v7/x/claim/types" ) func (suite *KeeperTestSuite) TestSetAirdropAllocationsForMultiAirdrops() { diff --git a/x/claim/migrations/v2/convert.go b/x/claim/migrations/v2/convert.go index 200cf49ec8..016a2e8e0f 100644 --- a/x/claim/migrations/v2/convert.go +++ b/x/claim/migrations/v2/convert.go @@ -3,8 +3,8 @@ package v2 import ( sdkmath "cosmossdk.io/math" - oldclaimtypes "github.com/Stride-Labs/stride/v6/x/claim/migrations/v2/types" - claimtypes "github.com/Stride-Labs/stride/v6/x/claim/types" + oldclaimtypes "github.com/Stride-Labs/stride/v7/x/claim/migrations/v2/types" + claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" ) func convertToNewAirdrop(oldAirdrop oldclaimtypes.Airdrop) claimtypes.Airdrop { diff --git a/x/claim/migrations/v2/convert_test.go b/x/claim/migrations/v2/convert_test.go index 33ea8bbe07..a7d401129e 100644 --- a/x/claim/migrations/v2/convert_test.go +++ b/x/claim/migrations/v2/convert_test.go @@ -10,8 +10,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - oldclaimtypes "github.com/Stride-Labs/stride/v6/x/claim/migrations/v2/types" - claimtypes "github.com/Stride-Labs/stride/v6/x/claim/types" + oldclaimtypes "github.com/Stride-Labs/stride/v7/x/claim/migrations/v2/types" + claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" ) func TestConvertToNewAirdrop(t *testing.T) { diff --git a/x/claim/migrations/v2/migrations.go b/x/claim/migrations/v2/migrations.go index 15bb414450..d259366c1f 100644 --- a/x/claim/migrations/v2/migrations.go +++ b/x/claim/migrations/v2/migrations.go @@ -7,8 +7,8 @@ import ( errorsmod "cosmossdk.io/errors" - oldclaimtypes "github.com/Stride-Labs/stride/v6/x/claim/migrations/v2/types" - claimtypes "github.com/Stride-Labs/stride/v6/x/claim/types" + oldclaimtypes "github.com/Stride-Labs/stride/v7/x/claim/migrations/v2/types" + claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" ) func migrateClaimParams(store sdk.KVStore, cdc codec.Codec) error { diff --git a/x/claim/vesting/module.go b/x/claim/vesting/module.go index c894505dab..ed637a3b34 100644 --- a/x/claim/vesting/module.go +++ b/x/claim/vesting/module.go @@ -15,8 +15,8 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" "github.com/cosmos/cosmos-sdk/x/auth/keeper" - "github.com/Stride-Labs/stride/v6/x/claim/vesting/client/cli" - "github.com/Stride-Labs/stride/v6/x/claim/vesting/types" + "github.com/Stride-Labs/stride/v7/x/claim/vesting/client/cli" + "github.com/Stride-Labs/stride/v7/x/claim/vesting/types" ) var ( diff --git a/x/claim/vesting/types/vesting_account.go b/x/claim/vesting/types/vesting_account.go index d2a8c5208c..fe5fe0e604 100644 --- a/x/claim/vesting/types/vesting_account.go +++ b/x/claim/vesting/types/vesting_account.go @@ -12,8 +12,8 @@ import ( sdkmath "cosmossdk.io/math" - "github.com/Stride-Labs/stride/v6/utils" - vestexported "github.com/Stride-Labs/stride/v6/x/claim/vesting/exported" + "github.com/Stride-Labs/stride/v7/utils" + vestexported "github.com/Stride-Labs/stride/v7/x/claim/vesting/exported" ) // Compile-time type assertions diff --git a/x/epochs/genesis.go b/x/epochs/genesis.go index 6da0bba825..66ffab184e 100644 --- a/x/epochs/genesis.go +++ b/x/epochs/genesis.go @@ -5,8 +5,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/epochs/keeper" - "github.com/Stride-Labs/stride/v6/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/epochs/keeper" + "github.com/Stride-Labs/stride/v7/x/epochs/types" ) // InitGenesis initializes the capability module's state from a provided genesis diff --git a/x/epochs/genesis_test.go b/x/epochs/genesis_test.go index 43393d88b1..dfdca247dd 100644 --- a/x/epochs/genesis_test.go +++ b/x/epochs/genesis_test.go @@ -5,10 +5,10 @@ import ( "github.com/stretchr/testify/require" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/epochs" - "github.com/Stride-Labs/stride/v6/x/epochs/types" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/epochs" + "github.com/Stride-Labs/stride/v7/x/epochs/types" ) func TestGenesis(t *testing.T) { diff --git a/x/epochs/handler.go b/x/epochs/handler.go index a604df74b5..a492af2ac4 100644 --- a/x/epochs/handler.go +++ b/x/epochs/handler.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/x/epochs/keeper" - "github.com/Stride-Labs/stride/v6/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/epochs/keeper" + "github.com/Stride-Labs/stride/v7/x/epochs/types" ) // NewHandler returns a handler for epochs module messages diff --git a/x/epochs/keeper/abci.go b/x/epochs/keeper/abci.go index 4e52027552..39ebd94bd6 100644 --- a/x/epochs/keeper/abci.go +++ b/x/epochs/keeper/abci.go @@ -9,8 +9,8 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/utils" - "github.com/Stride-Labs/stride/v6/x/epochs/types" + "github.com/Stride-Labs/stride/v7/utils" + "github.com/Stride-Labs/stride/v7/x/epochs/types" ) // BeginBlocker of epochs module diff --git a/x/epochs/keeper/abci_test.go b/x/epochs/keeper/abci_test.go index 5519aa74b8..277531d864 100644 --- a/x/epochs/keeper/abci_test.go +++ b/x/epochs/keeper/abci_test.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/Stride-Labs/stride/v6/x/epochs" - "github.com/Stride-Labs/stride/v6/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/epochs" + "github.com/Stride-Labs/stride/v7/x/epochs/types" ) func (suite *KeeperTestSuite) TestEpochInfoChangesBeginBlockerAndInitGenesis() { diff --git a/x/epochs/keeper/keeper_test.go b/x/epochs/keeper/keeper_test.go index 2ae9bc9515..afeda5df34 100644 --- a/x/epochs/keeper/keeper_test.go +++ b/x/epochs/keeper/keeper_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/suite" - "github.com/Stride-Labs/stride/v6/app/apptesting" - "github.com/Stride-Labs/stride/v6/x/epochs/types" + "github.com/Stride-Labs/stride/v7/app/apptesting" + "github.com/Stride-Labs/stride/v7/x/epochs/types" ) type KeeperTestSuite struct { diff --git a/x/epochs/module.go b/x/epochs/module.go index 342122ac34..5a96284e8e 100644 --- a/x/epochs/module.go +++ b/x/epochs/module.go @@ -20,10 +20,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/Stride-Labs/stride/v6/x/epochs/client/cli" - "github.com/Stride-Labs/stride/v6/x/epochs/keeper" - "github.com/Stride-Labs/stride/v6/x/epochs/simulation" - "github.com/Stride-Labs/stride/v6/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/epochs/client/cli" + "github.com/Stride-Labs/stride/v7/x/epochs/keeper" + "github.com/Stride-Labs/stride/v7/x/epochs/simulation" + "github.com/Stride-Labs/stride/v7/x/epochs/types" ) var ( diff --git a/x/icacallbacks/client/cli/query_callback_data_test.go b/x/icacallbacks/client/cli/query_callback_data_test.go index 0c94dfeea5..9379e516c6 100644 --- a/x/icacallbacks/client/cli/query_callback_data_test.go +++ b/x/icacallbacks/client/cli/query_callback_data_test.go @@ -12,10 +12,10 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/testutil/network" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/client/cli" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/testutil/network" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/client/cli" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) // Prevent strconv unused error diff --git a/x/icacallbacks/genesis.go b/x/icacallbacks/genesis.go index e5a564fae0..abcbdf8fbd 100644 --- a/x/icacallbacks/genesis.go +++ b/x/icacallbacks/genesis.go @@ -3,8 +3,8 @@ package icacallbacks import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/keeper" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/keeper" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) // InitGenesis initializes the capability module's state from a provided genesis diff --git a/x/icacallbacks/genesis_test.go b/x/icacallbacks/genesis_test.go index c3d75b5c07..e6f92e1229 100644 --- a/x/icacallbacks/genesis_test.go +++ b/x/icacallbacks/genesis_test.go @@ -5,10 +5,10 @@ import ( "github.com/stretchr/testify/require" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/icacallbacks" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/icacallbacks" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) func TestGenesis(t *testing.T) { diff --git a/x/icacallbacks/handler.go b/x/icacallbacks/handler.go index 560e72e571..e67a6aa6d4 100644 --- a/x/icacallbacks/handler.go +++ b/x/icacallbacks/handler.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/keeper" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/keeper" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) // NewHandler ... diff --git a/x/icacallbacks/icacallbacks_test.go b/x/icacallbacks/icacallbacks_test.go index 29d2f65622..5d88a6137a 100644 --- a/x/icacallbacks/icacallbacks_test.go +++ b/x/icacallbacks/icacallbacks_test.go @@ -17,9 +17,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/app/apptesting" - "github.com/Stride-Labs/stride/v6/x/icacallbacks" - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/app/apptesting" + "github.com/Stride-Labs/stride/v7/x/icacallbacks" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) func TestParseTxMsgDataCurrent(t *testing.T) { diff --git a/x/icacallbacks/keeper/callback_data_test.go b/x/icacallbacks/keeper/callback_data_test.go index fae3c8e997..ef4d86592c 100644 --- a/x/icacallbacks/keeper/callback_data_test.go +++ b/x/icacallbacks/keeper/callback_data_test.go @@ -7,10 +7,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/keeper" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/keeper" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) // Prevent strconv unused error diff --git a/x/icacallbacks/keeper/grpc_query_callback_data_test.go b/x/icacallbacks/keeper/grpc_query_callback_data_test.go index aa170fd0dc..894a4fa834 100644 --- a/x/icacallbacks/keeper/grpc_query_callback_data_test.go +++ b/x/icacallbacks/keeper/grpc_query_callback_data_test.go @@ -10,9 +10,9 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) // Prevent strconv unused error diff --git a/x/icacallbacks/keeper/grpc_query_params_test.go b/x/icacallbacks/keeper/grpc_query_params_test.go index 13a1e0c9eb..0b870905fb 100644 --- a/x/icacallbacks/keeper/grpc_query_params_test.go +++ b/x/icacallbacks/keeper/grpc_query_params_test.go @@ -6,8 +6,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - testkeeper "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + testkeeper "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) func TestParamsQuery(t *testing.T) { diff --git a/x/icacallbacks/keeper/keeper.go b/x/icacallbacks/keeper/keeper.go index ec23126e32..330a8f77ad 100644 --- a/x/icacallbacks/keeper/keeper.go +++ b/x/icacallbacks/keeper/keeper.go @@ -14,8 +14,8 @@ import ( ibckeeper "github.com/cosmos/ibc-go/v5/modules/core/keeper" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" diff --git a/x/icacallbacks/keeper/params_test.go b/x/icacallbacks/keeper/params_test.go index 5e575254a4..664ead70d0 100644 --- a/x/icacallbacks/keeper/params_test.go +++ b/x/icacallbacks/keeper/params_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - testkeeper "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + testkeeper "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) func TestGetParams(t *testing.T) { diff --git a/x/icacallbacks/migrations/v2/convert.go b/x/icacallbacks/migrations/v2/convert.go index 501aa928b1..4069a844de 100644 --- a/x/icacallbacks/migrations/v2/convert.go +++ b/x/icacallbacks/migrations/v2/convert.go @@ -5,9 +5,9 @@ import ( sdkmath "cosmossdk.io/math" "github.com/golang/protobuf/proto" //nolint:staticcheck - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) const ( diff --git a/x/icacallbacks/migrations/v2/convert_test.go b/x/icacallbacks/migrations/v2/convert_test.go index 07936b3792..d494e32b43 100644 --- a/x/icacallbacks/migrations/v2/convert_test.go +++ b/x/icacallbacks/migrations/v2/convert_test.go @@ -7,8 +7,8 @@ import ( "github.com/golang/protobuf/proto" //nolint:staticcheck "github.com/stretchr/testify/require" - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" ) func TestConvertDelegateCallback(t *testing.T) { diff --git a/x/icacallbacks/module.go b/x/icacallbacks/module.go index d5da08f2cf..3f4d10d047 100644 --- a/x/icacallbacks/module.go +++ b/x/icacallbacks/module.go @@ -17,9 +17,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/client/cli" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/keeper" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/client/cli" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/keeper" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) var ( diff --git a/x/icacallbacks/module_simulation.go b/x/icacallbacks/module_simulation.go index 700aad699c..453282a25e 100644 --- a/x/icacallbacks/module_simulation.go +++ b/x/icacallbacks/module_simulation.go @@ -10,9 +10,9 @@ import ( simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/Stride-Labs/stride/v6/testutil/sample" - icacallbackssimulation "github.com/Stride-Labs/stride/v6/x/icacallbacks/simulation" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/testutil/sample" + icacallbackssimulation "github.com/Stride-Labs/stride/v7/x/icacallbacks/simulation" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) // avoid unused import issue diff --git a/x/interchainquery/genesis.go b/x/interchainquery/genesis.go index 066b25bf80..ef0000ce6e 100644 --- a/x/interchainquery/genesis.go +++ b/x/interchainquery/genesis.go @@ -3,8 +3,8 @@ package interchainquery import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/interchainquery/keeper" - "github.com/Stride-Labs/stride/v6/x/interchainquery/types" + "github.com/Stride-Labs/stride/v7/x/interchainquery/keeper" + "github.com/Stride-Labs/stride/v7/x/interchainquery/types" ) // InitGenesis initializes the capability module's state from a provided genesis diff --git a/x/interchainquery/handler.go b/x/interchainquery/handler.go index bc712b1595..cbbbda1e61 100644 --- a/x/interchainquery/handler.go +++ b/x/interchainquery/handler.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/x/interchainquery/keeper" - "github.com/Stride-Labs/stride/v6/x/interchainquery/types" + "github.com/Stride-Labs/stride/v7/x/interchainquery/keeper" + "github.com/Stride-Labs/stride/v7/x/interchainquery/types" ) // NewHandler returns a handler for interchainquery module messages diff --git a/x/interchainquery/keeper/keeper.go b/x/interchainquery/keeper/keeper.go index c32bde560a..b981e8a68b 100644 --- a/x/interchainquery/keeper/keeper.go +++ b/x/interchainquery/keeper/keeper.go @@ -14,8 +14,8 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" - "github.com/Stride-Labs/stride/v6/utils" - "github.com/Stride-Labs/stride/v6/x/interchainquery/types" + "github.com/Stride-Labs/stride/v7/utils" + "github.com/Stride-Labs/stride/v7/x/interchainquery/types" ) // Keeper of this module maintains collections of registered zones. diff --git a/x/interchainquery/keeper/keeper_test.go b/x/interchainquery/keeper/keeper_test.go index 36b9d53e4e..ebf3286200 100644 --- a/x/interchainquery/keeper/keeper_test.go +++ b/x/interchainquery/keeper/keeper_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/suite" - "github.com/Stride-Labs/stride/v6/app/apptesting" - "github.com/Stride-Labs/stride/v6/x/interchainquery/keeper" - "github.com/Stride-Labs/stride/v6/x/interchainquery/types" + "github.com/Stride-Labs/stride/v7/app/apptesting" + "github.com/Stride-Labs/stride/v7/x/interchainquery/keeper" + "github.com/Stride-Labs/stride/v7/x/interchainquery/types" ) type KeeperTestSuite struct { diff --git a/x/interchainquery/keeper/msg_server.go b/x/interchainquery/keeper/msg_server.go index 19e0958300..669dfe2835 100644 --- a/x/interchainquery/keeper/msg_server.go +++ b/x/interchainquery/keeper/msg_server.go @@ -13,8 +13,8 @@ import ( tmclienttypes "github.com/cosmos/ibc-go/v5/modules/light-clients/07-tendermint/types" "github.com/spf13/cast" - "github.com/Stride-Labs/stride/v6/utils" - "github.com/Stride-Labs/stride/v6/x/interchainquery/types" + "github.com/Stride-Labs/stride/v7/utils" + "github.com/Stride-Labs/stride/v7/x/interchainquery/types" ) type msgServer struct { diff --git a/x/interchainquery/module.go b/x/interchainquery/module.go index 973d4c8e1a..3eacadceb2 100644 --- a/x/interchainquery/module.go +++ b/x/interchainquery/module.go @@ -19,10 +19,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/Stride-Labs/stride/v6/x/interchainquery/keeper" + "github.com/Stride-Labs/stride/v7/x/interchainquery/keeper" - "github.com/Stride-Labs/stride/v6/x/interchainquery/client/cli" - "github.com/Stride-Labs/stride/v6/x/interchainquery/types" + "github.com/Stride-Labs/stride/v7/x/interchainquery/client/cli" + "github.com/Stride-Labs/stride/v7/x/interchainquery/types" ) var ( diff --git a/x/mint/client/cli/cli_test.go b/x/mint/client/cli/cli_test.go index c163065a15..39b71abc13 100644 --- a/x/mint/client/cli/cli_test.go +++ b/x/mint/client/cli/cli_test.go @@ -11,8 +11,8 @@ import ( "github.com/stretchr/testify/suite" tmcli "github.com/tendermint/tendermint/libs/cli" - "github.com/Stride-Labs/stride/v6/app" - "github.com/Stride-Labs/stride/v6/x/mint/client/cli" + "github.com/Stride-Labs/stride/v7/app" + "github.com/Stride-Labs/stride/v7/x/mint/client/cli" "github.com/cosmos/cosmos-sdk/client/flags" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" diff --git a/x/mint/client/rest/grpc_query_test.go b/x/mint/client/rest/grpc_query_test.go index ca94c6d641..0d8e7b04af 100644 --- a/x/mint/client/rest/grpc_query_test.go +++ b/x/mint/client/rest/grpc_query_test.go @@ -14,8 +14,8 @@ import ( "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/suite" - "github.com/Stride-Labs/stride/v6/app" - minttypes "github.com/Stride-Labs/stride/v6/x/mint/types" + "github.com/Stride-Labs/stride/v7/app" + minttypes "github.com/Stride-Labs/stride/v7/x/mint/types" "github.com/cosmos/cosmos-sdk/testutil/network" ) diff --git a/x/mint/genesis.go b/x/mint/genesis.go index 93d39a5308..13a263f262 100644 --- a/x/mint/genesis.go +++ b/x/mint/genesis.go @@ -3,8 +3,8 @@ package mint import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/mint/keeper" - "github.com/Stride-Labs/stride/v6/x/mint/types" + "github.com/Stride-Labs/stride/v7/x/mint/keeper" + "github.com/Stride-Labs/stride/v7/x/mint/types" ) // InitGenesis new mint genesis. diff --git a/x/mint/keeper/hooks.go b/x/mint/keeper/hooks.go index a4c57023c0..c1951e3610 100644 --- a/x/mint/keeper/hooks.go +++ b/x/mint/keeper/hooks.go @@ -3,8 +3,8 @@ package keeper import ( "fmt" - epochstypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - "github.com/Stride-Labs/stride/v6/x/mint/types" + epochstypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/mint/types" "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/mint/module.go b/x/mint/module.go index b3c43873f9..f5efd23e69 100644 --- a/x/mint/module.go +++ b/x/mint/module.go @@ -17,11 +17,11 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/Stride-Labs/stride/v6/x/mint/client/cli" - "github.com/Stride-Labs/stride/v6/x/mint/keeper" + "github.com/Stride-Labs/stride/v7/x/mint/client/cli" + "github.com/Stride-Labs/stride/v7/x/mint/keeper" - //"github.com/Stride-Labs/stride/v6/x/mint/simulation" - "github.com/Stride-Labs/stride/v6/x/mint/types" + //"github.com/Stride-Labs/stride/v7/x/mint/simulation" + "github.com/Stride-Labs/stride/v7/x/mint/types" ) var ( diff --git a/x/ratelimit/genesis.go b/x/ratelimit/genesis.go index 51995434da..e23a82e232 100644 --- a/x/ratelimit/genesis.go +++ b/x/ratelimit/genesis.go @@ -3,8 +3,8 @@ package ratelimit import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/ratelimit/keeper" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/keeper" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) // InitGenesis initializes the capability module's state from a provided genesis diff --git a/x/ratelimit/genesis_test.go b/x/ratelimit/genesis_test.go index 29833c39a9..4c333b7ba9 100644 --- a/x/ratelimit/genesis_test.go +++ b/x/ratelimit/genesis_test.go @@ -8,10 +8,10 @@ import ( sdkmath "cosmossdk.io/math" - "github.com/Stride-Labs/stride/v6/app/apptesting" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/ratelimit" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/app/apptesting" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/ratelimit" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) func createRateLimits() []types.RateLimit { diff --git a/x/ratelimit/handler.go b/x/ratelimit/handler.go index ab5994768b..5260948185 100644 --- a/x/ratelimit/handler.go +++ b/x/ratelimit/handler.go @@ -10,9 +10,9 @@ import ( channelkeeper "github.com/cosmos/ibc-go/v5/modules/core/04-channel/keeper" - "github.com/Stride-Labs/stride/v6/x/ratelimit/keeper" - "github.com/Stride-Labs/stride/v6/x/ratelimit/keeper/gov" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/keeper" + "github.com/Stride-Labs/stride/v7/x/ratelimit/keeper/gov" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) // NewMessageHandler returns ratelimit module messages diff --git a/x/ratelimit/keeper/gov/gov.go b/x/ratelimit/keeper/gov/gov.go index a738e85977..87da1188b7 100644 --- a/x/ratelimit/keeper/gov/gov.go +++ b/x/ratelimit/keeper/gov/gov.go @@ -6,8 +6,8 @@ import ( transfertypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types" channelkeeper "github.com/cosmos/ibc-go/v5/modules/core/04-channel/keeper" - "github.com/Stride-Labs/stride/v6/x/ratelimit/keeper" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/keeper" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) // Adds a new rate limit. Fails if the rate limit already exists or the channel value is 0 diff --git a/x/ratelimit/keeper/gov/gov_test.go b/x/ratelimit/keeper/gov/gov_test.go index aa7ec70eb7..e9e2355283 100644 --- a/x/ratelimit/keeper/gov/gov_test.go +++ b/x/ratelimit/keeper/gov/gov_test.go @@ -12,10 +12,10 @@ import ( transfertypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types" channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" - "github.com/Stride-Labs/stride/v6/app/apptesting" - minttypes "github.com/Stride-Labs/stride/v6/x/mint/types" - "github.com/Stride-Labs/stride/v6/x/ratelimit/keeper/gov" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/app/apptesting" + minttypes "github.com/Stride-Labs/stride/v7/x/mint/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/keeper/gov" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) type KeeperTestSuite struct { diff --git a/x/ratelimit/keeper/hooks_test.go b/x/ratelimit/keeper/hooks_test.go index 28dbe462bf..79841eb0bd 100644 --- a/x/ratelimit/keeper/hooks_test.go +++ b/x/ratelimit/keeper/hooks_test.go @@ -5,8 +5,8 @@ import ( sdkmath "cosmossdk.io/math" - epochstypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + epochstypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) // Store a rate limit with a non-zero flow for each duration diff --git a/x/ratelimit/keeper/keeper_test.go b/x/ratelimit/keeper/keeper_test.go index 617a984aff..7d3276ea73 100644 --- a/x/ratelimit/keeper/keeper_test.go +++ b/x/ratelimit/keeper/keeper_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/suite" - "github.com/Stride-Labs/stride/v6/app/apptesting" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/app/apptesting" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) type KeeperTestSuite struct { diff --git a/x/ratelimit/keeper/packet_test.go b/x/ratelimit/keeper/packet_test.go index 7b9d19b5e1..124cc74e34 100644 --- a/x/ratelimit/keeper/packet_test.go +++ b/x/ratelimit/keeper/packet_test.go @@ -13,8 +13,8 @@ import ( tmbytes "github.com/tendermint/tendermint/libs/bytes" - "github.com/Stride-Labs/stride/v6/x/ratelimit/keeper" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/keeper" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) const ( diff --git a/x/ratelimit/keeper/rate_limit_test.go b/x/ratelimit/keeper/rate_limit_test.go index 25dfe4c7b5..79921a0e6a 100644 --- a/x/ratelimit/keeper/rate_limit_test.go +++ b/x/ratelimit/keeper/rate_limit_test.go @@ -6,8 +6,8 @@ import ( sdkmath "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - minttypes "github.com/Stride-Labs/stride/v6/x/mint/types" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + minttypes "github.com/Stride-Labs/stride/v7/x/mint/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) const ( diff --git a/x/ratelimit/module.go b/x/ratelimit/module.go index 8071cdad72..689e61d600 100644 --- a/x/ratelimit/module.go +++ b/x/ratelimit/module.go @@ -17,9 +17,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/Stride-Labs/stride/v6/x/ratelimit/client/cli" - "github.com/Stride-Labs/stride/v6/x/ratelimit/keeper" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/client/cli" + "github.com/Stride-Labs/stride/v7/x/ratelimit/keeper" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) var ( diff --git a/x/ratelimit/types/gov_add_rate_limit_test.go b/x/ratelimit/types/gov_add_rate_limit_test.go index 5746ad5d16..4d620edcd7 100644 --- a/x/ratelimit/types/gov_add_rate_limit_test.go +++ b/x/ratelimit/types/gov_add_rate_limit_test.go @@ -6,8 +6,8 @@ import ( sdkmath "cosmossdk.io/math" "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/app/apptesting" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/app/apptesting" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) func TestGovAddRateLimit(t *testing.T) { diff --git a/x/ratelimit/types/gov_remove_rate_limit_test.go b/x/ratelimit/types/gov_remove_rate_limit_test.go index ff080fe100..e36fba6977 100644 --- a/x/ratelimit/types/gov_remove_rate_limit_test.go +++ b/x/ratelimit/types/gov_remove_rate_limit_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/app/apptesting" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/app/apptesting" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) func TestGovRemoveRateLimit(t *testing.T) { diff --git a/x/ratelimit/types/gov_reset_rate_limit_test.go b/x/ratelimit/types/gov_reset_rate_limit_test.go index aaefd601df..b045ea61cb 100644 --- a/x/ratelimit/types/gov_reset_rate_limit_test.go +++ b/x/ratelimit/types/gov_reset_rate_limit_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/app/apptesting" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/app/apptesting" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) func TestGovResetRateLimit(t *testing.T) { diff --git a/x/ratelimit/types/gov_update_rate_limit_test.go b/x/ratelimit/types/gov_update_rate_limit_test.go index a7fb9ebd26..1509bd15aa 100644 --- a/x/ratelimit/types/gov_update_rate_limit_test.go +++ b/x/ratelimit/types/gov_update_rate_limit_test.go @@ -6,8 +6,8 @@ import ( sdkmath "cosmossdk.io/math" "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/app/apptesting" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/app/apptesting" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) func TestGovUpdateRateLimit(t *testing.T) { diff --git a/x/records/client/cli/query_deposit_record_test.go b/x/records/client/cli/query_deposit_record_test.go index d382bb35c9..57ceb1af22 100644 --- a/x/records/client/cli/query_deposit_record_test.go +++ b/x/records/client/cli/query_deposit_record_test.go @@ -11,10 +11,10 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/testutil/network" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/records/client/cli" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/testutil/network" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/records/client/cli" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func networkWithDepositRecordObjects(t *testing.T, n int) (*network.Network, []types.DepositRecord) { diff --git a/x/records/client/cli/query_user_redemption_record_test.go b/x/records/client/cli/query_user_redemption_record_test.go index 75882585c8..e56ed8fa08 100644 --- a/x/records/client/cli/query_user_redemption_record_test.go +++ b/x/records/client/cli/query_user_redemption_record_test.go @@ -14,10 +14,10 @@ import ( sdkmath "cosmossdk.io/math" - "github.com/Stride-Labs/stride/v6/testutil/network" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/records/client/cli" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/testutil/network" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/records/client/cli" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func networkWithUserRedemptionRecordObjects(t *testing.T, n int) (*network.Network, []types.UserRedemptionRecord) { diff --git a/x/records/genesis.go b/x/records/genesis.go index b714763896..aecca8d9b4 100644 --- a/x/records/genesis.go +++ b/x/records/genesis.go @@ -3,8 +3,8 @@ package records import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/records/keeper" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/keeper" + "github.com/Stride-Labs/stride/v7/x/records/types" ) // InitGenesis initializes the capability module's state from a provided genesis diff --git a/x/records/genesis_test.go b/x/records/genesis_test.go index 1d2bbe6be1..46f7d12005 100644 --- a/x/records/genesis_test.go +++ b/x/records/genesis_test.go @@ -5,10 +5,10 @@ import ( "github.com/stretchr/testify/require" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/records" - "github.com/Stride-Labs/stride/v6/x/records/types" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/records" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func TestGenesis(t *testing.T) { diff --git a/x/records/handler.go b/x/records/handler.go index e55a899209..a31fec7470 100644 --- a/x/records/handler.go +++ b/x/records/handler.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/x/records/keeper" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/keeper" + "github.com/Stride-Labs/stride/v7/x/records/types" ) // NewHandler ... diff --git a/x/records/keeper/callback_transfer.go b/x/records/keeper/callback_transfer.go index ed0421b95a..a7e6701d25 100644 --- a/x/records/keeper/callback_transfer.go +++ b/x/records/keeper/callback_transfer.go @@ -5,8 +5,8 @@ import ( ibctransfertypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types" - icacallbackstypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - "github.com/Stride-Labs/stride/v6/x/records/types" + icacallbackstypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/records/types" errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/records/keeper/callback_transfer_test.go b/x/records/keeper/callback_transfer_test.go index f4f32f9ba4..854a08cc6f 100644 --- a/x/records/keeper/callback_transfer_test.go +++ b/x/records/keeper/callback_transfer_test.go @@ -8,10 +8,10 @@ import ( sdkmath "cosmossdk.io/math" - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - recordskeeper "github.com/Stride-Labs/stride/v6/x/records/keeper" - "github.com/Stride-Labs/stride/v6/x/records/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + recordskeeper "github.com/Stride-Labs/stride/v7/x/records/keeper" + "github.com/Stride-Labs/stride/v7/x/records/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" ) const chainId = "GAIA" diff --git a/x/records/keeper/epoch_unbonding_record.go b/x/records/keeper/epoch_unbonding_record.go index ba0fe6e5da..2b50bf2265 100644 --- a/x/records/keeper/epoch_unbonding_record.go +++ b/x/records/keeper/epoch_unbonding_record.go @@ -9,9 +9,9 @@ import ( errorsmod "cosmossdk.io/errors" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) // SetEpochUnbondingRecord set a specific epochUnbondingRecord in the store diff --git a/x/records/keeper/epoch_unbonding_record_test.go b/x/records/keeper/epoch_unbonding_record_test.go index 1335da13c0..c52476cc13 100644 --- a/x/records/keeper/epoch_unbonding_record_test.go +++ b/x/records/keeper/epoch_unbonding_record_test.go @@ -8,10 +8,10 @@ import ( sdkmath "cosmossdk.io/math" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/records/keeper" - "github.com/Stride-Labs/stride/v6/x/records/types" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/records/keeper" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func createNEpochUnbondingRecord(keeper *keeper.Keeper, ctx sdk.Context, n int) ([]types.EpochUnbondingRecord, map[string]types.HostZoneUnbonding) { diff --git a/x/records/keeper/grpc_query_deposit_record_test.go b/x/records/keeper/grpc_query_deposit_record_test.go index d51c5ead03..7d52cfedc0 100644 --- a/x/records/keeper/grpc_query_deposit_record_test.go +++ b/x/records/keeper/grpc_query_deposit_record_test.go @@ -10,13 +10,13 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" sdkmath "cosmossdk.io/math" - "github.com/Stride-Labs/stride/v6/x/records/keeper" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/keeper" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func createNDepositRecord(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.DepositRecord { diff --git a/x/records/keeper/grpc_query_epoch_unbonding_record_test.go b/x/records/keeper/grpc_query_epoch_unbonding_record_test.go index 8684750a09..f8e138aced 100644 --- a/x/records/keeper/grpc_query_epoch_unbonding_record_test.go +++ b/x/records/keeper/grpc_query_epoch_unbonding_record_test.go @@ -10,9 +10,9 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/records/types" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func TestEpochUnbondingRecordQuerySingle(t *testing.T) { diff --git a/x/records/keeper/grpc_query_params_test.go b/x/records/keeper/grpc_query_params_test.go index dcc7c1a871..d157c15f15 100644 --- a/x/records/keeper/grpc_query_params_test.go +++ b/x/records/keeper/grpc_query_params_test.go @@ -6,8 +6,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - testkeeper "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/x/records/types" + testkeeper "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func TestParamsQuery(t *testing.T) { diff --git a/x/records/keeper/grpc_query_user_redemption_record_test.go b/x/records/keeper/grpc_query_user_redemption_record_test.go index bb8d3beb4a..22b02461cd 100644 --- a/x/records/keeper/grpc_query_user_redemption_record_test.go +++ b/x/records/keeper/grpc_query_user_redemption_record_test.go @@ -11,9 +11,9 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/records/types" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func TestUserRedemptionRecordQuerySingle(t *testing.T) { diff --git a/x/records/keeper/keeper.go b/x/records/keeper/keeper.go index 88b1d78894..02a2884e1b 100644 --- a/x/records/keeper/keeper.go +++ b/x/records/keeper/keeper.go @@ -14,13 +14,13 @@ import ( ibctransferkeeper "github.com/cosmos/ibc-go/v5/modules/apps/transfer/keeper" ibctypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types" - "github.com/Stride-Labs/stride/v6/utils" - icacallbackskeeper "github.com/Stride-Labs/stride/v6/x/icacallbacks/keeper" - icacallbackstypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/utils" + icacallbackskeeper "github.com/Stride-Labs/stride/v7/x/icacallbacks/keeper" + icacallbackstypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" storetypes "github.com/cosmos/cosmos-sdk/store/types" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) type ( diff --git a/x/records/keeper/keeper_test.go b/x/records/keeper/keeper_test.go index c0cda0a427..bbd966df17 100644 --- a/x/records/keeper/keeper_test.go +++ b/x/records/keeper/keeper_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/suite" - "github.com/Stride-Labs/stride/v6/app/apptesting" - "github.com/Stride-Labs/stride/v6/x/records/keeper" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/app/apptesting" + "github.com/Stride-Labs/stride/v7/x/records/keeper" + "github.com/Stride-Labs/stride/v7/x/records/types" ) type KeeperTestSuite struct { diff --git a/x/records/keeper/params_test.go b/x/records/keeper/params_test.go index 2e5df348d3..26a64992d2 100644 --- a/x/records/keeper/params_test.go +++ b/x/records/keeper/params_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - testkeeper "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/x/records/types" + testkeeper "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func TestGetParams(t *testing.T) { diff --git a/x/records/keeper/transfer_test.go b/x/records/keeper/transfer_test.go index cb2a44fb1d..ffb72b50d8 100644 --- a/x/records/keeper/transfer_test.go +++ b/x/records/keeper/transfer_test.go @@ -9,8 +9,8 @@ import ( sdkmath "cosmossdk.io/math" - "github.com/Stride-Labs/stride/v6/x/records/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" ) type TransferTestCase struct { diff --git a/x/records/keeper/user_redemption_record_test.go b/x/records/keeper/user_redemption_record_test.go index aead351867..e7a07a875a 100644 --- a/x/records/keeper/user_redemption_record_test.go +++ b/x/records/keeper/user_redemption_record_test.go @@ -9,10 +9,10 @@ import ( sdkmath "cosmossdk.io/math" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/records/keeper" - "github.com/Stride-Labs/stride/v6/x/records/types" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/records/keeper" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func createNUserRedemptionRecord(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.UserRedemptionRecord { diff --git a/x/records/migrations/v2/convert.go b/x/records/migrations/v2/convert.go index 08a084f5f5..ff0ca05d5b 100644 --- a/x/records/migrations/v2/convert.go +++ b/x/records/migrations/v2/convert.go @@ -3,8 +3,8 @@ package v2 import ( sdkmath "cosmossdk.io/math" - oldrecordstypes "github.com/Stride-Labs/stride/v6/x/records/migrations/v2/types" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" + oldrecordstypes "github.com/Stride-Labs/stride/v7/x/records/migrations/v2/types" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" ) func convertToNewDepositRecord(oldDepositRecord oldrecordstypes.DepositRecord) recordstypes.DepositRecord { diff --git a/x/records/migrations/v2/convert_test.go b/x/records/migrations/v2/convert_test.go index 846fe97f1b..63ef4242f5 100644 --- a/x/records/migrations/v2/convert_test.go +++ b/x/records/migrations/v2/convert_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" - oldrecordstypes "github.com/Stride-Labs/stride/v6/x/records/migrations/v2/types" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" + oldrecordstypes "github.com/Stride-Labs/stride/v7/x/records/migrations/v2/types" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" ) func TestConvertDepositRecord(t *testing.T) { diff --git a/x/records/migrations/v2/migrations.go b/x/records/migrations/v2/migrations.go index 0db9a55895..d49f3fa557 100644 --- a/x/records/migrations/v2/migrations.go +++ b/x/records/migrations/v2/migrations.go @@ -8,8 +8,8 @@ import ( errorsmod "cosmossdk.io/errors" - oldrecordtypes "github.com/Stride-Labs/stride/v6/x/records/migrations/v2/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" + oldrecordtypes "github.com/Stride-Labs/stride/v7/x/records/migrations/v2/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" ) func migrateDepositRecord(store sdk.KVStore, cdc codec.BinaryCodec) error { diff --git a/x/records/module.go b/x/records/module.go index b63d6f3b51..ea2befc719 100644 --- a/x/records/module.go +++ b/x/records/module.go @@ -17,9 +17,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/Stride-Labs/stride/v6/x/records/client/cli" - "github.com/Stride-Labs/stride/v6/x/records/keeper" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/client/cli" + "github.com/Stride-Labs/stride/v7/x/records/keeper" + "github.com/Stride-Labs/stride/v7/x/records/types" ) var ( diff --git a/x/records/module_ibc.go b/x/records/module_ibc.go index b4ab4c5492..1ef885a90a 100644 --- a/x/records/module_ibc.go +++ b/x/records/module_ibc.go @@ -11,10 +11,10 @@ import ( channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" porttypes "github.com/cosmos/ibc-go/v5/modules/core/05-port/types" - icacallbacks "github.com/Stride-Labs/stride/v6/x/icacallbacks" - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + icacallbacks "github.com/Stride-Labs/stride/v7/x/icacallbacks" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" - "github.com/Stride-Labs/stride/v6/x/records/keeper" + "github.com/Stride-Labs/stride/v7/x/records/keeper" // "google.golang.org/protobuf/proto" <-- this breaks tx parsing diff --git a/x/records/module_simulation.go b/x/records/module_simulation.go index 99b2c29dc8..f19b948c97 100644 --- a/x/records/module_simulation.go +++ b/x/records/module_simulation.go @@ -10,9 +10,9 @@ import ( simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/Stride-Labs/stride/v6/testutil/sample" - recordssimulation "github.com/Stride-Labs/stride/v6/x/records/simulation" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/testutil/sample" + recordssimulation "github.com/Stride-Labs/stride/v7/x/records/simulation" + "github.com/Stride-Labs/stride/v7/x/records/types" ) // avoid unused import issue diff --git a/x/stakeibc/abci.go b/x/stakeibc/abci.go index ee38e2d90b..e59bb7851a 100644 --- a/x/stakeibc/abci.go +++ b/x/stakeibc/abci.go @@ -6,8 +6,8 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/stakeibc/client/cli/query_epoch_tracker_test.go b/x/stakeibc/client/cli/query_epoch_tracker_test.go index 385c854f8f..2d9b620698 100644 --- a/x/stakeibc/client/cli/query_epoch_tracker_test.go +++ b/x/stakeibc/client/cli/query_epoch_tracker_test.go @@ -11,9 +11,9 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/testutil/network" - "github.com/Stride-Labs/stride/v6/x/stakeibc/client/cli" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/testutil/network" + "github.com/Stride-Labs/stride/v7/x/stakeibc/client/cli" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // Prevent strconv unused error diff --git a/x/stakeibc/genesis.go b/x/stakeibc/genesis.go index 92a386c19a..df8efc8547 100644 --- a/x/stakeibc/genesis.go +++ b/x/stakeibc/genesis.go @@ -3,8 +3,8 @@ package stakeibc import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // InitGenesis initializes the capability module's state from a provided genesis diff --git a/x/stakeibc/genesis_test.go b/x/stakeibc/genesis_test.go index 0ff2d78bee..7c64a77fe7 100644 --- a/x/stakeibc/genesis_test.go +++ b/x/stakeibc/genesis_test.go @@ -5,10 +5,10 @@ import ( "github.com/stretchr/testify/require" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/stakeibc" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/stakeibc" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func TestGenesis(t *testing.T) { diff --git a/x/stakeibc/handler.go b/x/stakeibc/handler.go index d59dfce455..3f01ae456a 100644 --- a/x/stakeibc/handler.go +++ b/x/stakeibc/handler.go @@ -9,8 +9,8 @@ import ( govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // NewHandler ... diff --git a/x/stakeibc/keeper/deposit_records.go b/x/stakeibc/keeper/deposit_records.go index 7f379dfcfc..381bfacf00 100644 --- a/x/stakeibc/keeper/deposit_records.go +++ b/x/stakeibc/keeper/deposit_records.go @@ -11,9 +11,9 @@ import ( clienttypes "github.com/cosmos/ibc-go/v5/modules/core/02-client/types" "github.com/spf13/cast" - "github.com/Stride-Labs/stride/v6/utils" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // Create a new deposit record for each host zone for the given epoch diff --git a/x/stakeibc/keeper/deposit_records_test.go b/x/stakeibc/keeper/deposit_records_test.go index 188abacba1..86fd82d655 100644 --- a/x/stakeibc/keeper/deposit_records_test.go +++ b/x/stakeibc/keeper/deposit_records_test.go @@ -12,10 +12,10 @@ import ( sdkmath "cosmossdk.io/math" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - icacallbackstypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + icacallbackstypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type TestDepositRecords struct { diff --git a/x/stakeibc/keeper/epoch_elapsed_shares_test.go b/x/stakeibc/keeper/epoch_elapsed_shares_test.go index d4a1de8643..2b00d87dcf 100644 --- a/x/stakeibc/keeper/epoch_elapsed_shares_test.go +++ b/x/stakeibc/keeper/epoch_elapsed_shares_test.go @@ -6,8 +6,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // These are used to indicate that the value does not matter for the sake of the test diff --git a/x/stakeibc/keeper/epoch_tracker_test.go b/x/stakeibc/keeper/epoch_tracker_test.go index dad4cbc338..8ac1f1b91b 100644 --- a/x/stakeibc/keeper/epoch_tracker_test.go +++ b/x/stakeibc/keeper/epoch_tracker_test.go @@ -7,10 +7,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // Prevent strconv unused error diff --git a/x/stakeibc/keeper/grpc_query_address_unbondings.go b/x/stakeibc/keeper/grpc_query_address_unbondings.go index b962420ae5..93e5c60ad2 100644 --- a/x/stakeibc/keeper/grpc_query_address_unbondings.go +++ b/x/stakeibc/keeper/grpc_query_address_unbondings.go @@ -12,8 +12,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) const nanosecondsInDay = 86400000000000 diff --git a/x/stakeibc/keeper/grpc_query_epoch_tracker_test.go b/x/stakeibc/keeper/grpc_query_epoch_tracker_test.go index 748f701b34..0cce15c767 100644 --- a/x/stakeibc/keeper/grpc_query_epoch_tracker_test.go +++ b/x/stakeibc/keeper/grpc_query_epoch_tracker_test.go @@ -9,9 +9,9 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // Prevent strconv unused error diff --git a/x/stakeibc/keeper/grpc_query_host_zone_test.go b/x/stakeibc/keeper/grpc_query_host_zone_test.go index 543e94324a..0c3fddc631 100644 --- a/x/stakeibc/keeper/grpc_query_host_zone_test.go +++ b/x/stakeibc/keeper/grpc_query_host_zone_test.go @@ -11,9 +11,9 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func TestHostZoneQuerySingle(t *testing.T) { diff --git a/x/stakeibc/keeper/grpc_query_params_test.go b/x/stakeibc/keeper/grpc_query_params_test.go index 322aa8a3e8..02e83438c4 100644 --- a/x/stakeibc/keeper/grpc_query_params_test.go +++ b/x/stakeibc/keeper/grpc_query_params_test.go @@ -6,8 +6,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - testkeeper "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + testkeeper "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func TestParamsQuery(t *testing.T) { diff --git a/x/stakeibc/keeper/grpc_query_validator_test.go b/x/stakeibc/keeper/grpc_query_validator_test.go index 8b12069146..dac46174bf 100644 --- a/x/stakeibc/keeper/grpc_query_validator_test.go +++ b/x/stakeibc/keeper/grpc_query_validator_test.go @@ -8,9 +8,9 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func TestValidatorQuery(t *testing.T) { diff --git a/x/stakeibc/keeper/hooks.go b/x/stakeibc/keeper/hooks.go index aa2af86e0b..166ffe9e51 100644 --- a/x/stakeibc/keeper/hooks.go +++ b/x/stakeibc/keeper/hooks.go @@ -9,10 +9,10 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/Stride-Labs/stride/v6/utils" - epochstypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + epochstypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (k Keeper) BeforeEpochStart(ctx sdk.Context, epochInfo epochstypes.EpochInfo) { diff --git a/x/stakeibc/keeper/host_zone.go b/x/stakeibc/keeper/host_zone.go index e35d0d4cdd..adca6219b3 100644 --- a/x/stakeibc/keeper/host_zone.go +++ b/x/stakeibc/keeper/host_zone.go @@ -13,8 +13,8 @@ import ( errorsmod "cosmossdk.io/errors" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/utils" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // SetHostZone set a specific hostZone in the store diff --git a/x/stakeibc/keeper/host_zone_test.go b/x/stakeibc/keeper/host_zone_test.go index 3b0b274d46..5fc8f26d71 100644 --- a/x/stakeibc/keeper/host_zone_test.go +++ b/x/stakeibc/keeper/host_zone_test.go @@ -9,10 +9,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - keepertest "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/testutil/nullify" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + keepertest "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/testutil/nullify" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func createNHostZone(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.HostZone { diff --git a/x/stakeibc/keeper/icacallbacks_claim.go b/x/stakeibc/keeper/icacallbacks_claim.go index 5db9fc549c..513f1de719 100644 --- a/x/stakeibc/keeper/icacallbacks_claim.go +++ b/x/stakeibc/keeper/icacallbacks_claim.go @@ -3,10 +3,10 @@ package keeper import ( "fmt" - "github.com/Stride-Labs/stride/v6/utils" - icacallbackstypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + icacallbackstypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/stakeibc/keeper/icacallbacks_claim_test.go b/x/stakeibc/keeper/icacallbacks_claim_test.go index cc487ac669..32655e8b59 100644 --- a/x/stakeibc/keeper/icacallbacks_claim_test.go +++ b/x/stakeibc/keeper/icacallbacks_claim_test.go @@ -7,10 +7,10 @@ import ( channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" _ "github.com/stretchr/testify/suite" - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" - stakeibckeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" + stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type ClaimCallbackState struct { diff --git a/x/stakeibc/keeper/icacallbacks_delegate.go b/x/stakeibc/keeper/icacallbacks_delegate.go index 63a10cdb26..c0b4667f59 100644 --- a/x/stakeibc/keeper/icacallbacks_delegate.go +++ b/x/stakeibc/keeper/icacallbacks_delegate.go @@ -5,11 +5,11 @@ import ( "github.com/spf13/cast" - "github.com/Stride-Labs/stride/v6/utils" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" - icacallbackstypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + icacallbackstypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/stakeibc/keeper/icacallbacks_delegate_test.go b/x/stakeibc/keeper/icacallbacks_delegate_test.go index 318342dcbb..8ca4264912 100644 --- a/x/stakeibc/keeper/icacallbacks_delegate_test.go +++ b/x/stakeibc/keeper/icacallbacks_delegate_test.go @@ -6,12 +6,12 @@ import ( channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" _ "github.com/stretchr/testify/suite" - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" - stakeibckeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" - stakeibc "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" + stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" + stakeibc "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type DelegateCallbackState struct { diff --git a/x/stakeibc/keeper/icacallbacks_rebalance.go b/x/stakeibc/keeper/icacallbacks_rebalance.go index ecbfd66664..4caf0c380c 100644 --- a/x/stakeibc/keeper/icacallbacks_rebalance.go +++ b/x/stakeibc/keeper/icacallbacks_rebalance.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - "github.com/Stride-Labs/stride/v6/utils" - icacallbackstypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + icacallbackstypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/stakeibc/keeper/icacallbacks_rebalance_test.go b/x/stakeibc/keeper/icacallbacks_rebalance_test.go index 1ae9ede469..da073add78 100644 --- a/x/stakeibc/keeper/icacallbacks_rebalance_test.go +++ b/x/stakeibc/keeper/icacallbacks_rebalance_test.go @@ -5,10 +5,10 @@ import ( channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" _ "github.com/stretchr/testify/suite" - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - stakeibckeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type RebalanceCallbackState struct { diff --git a/x/stakeibc/keeper/icacallbacks_redemption.go b/x/stakeibc/keeper/icacallbacks_redemption.go index eff45496ac..1209c2d29d 100644 --- a/x/stakeibc/keeper/icacallbacks_redemption.go +++ b/x/stakeibc/keeper/icacallbacks_redemption.go @@ -3,10 +3,10 @@ package keeper import ( "fmt" - "github.com/Stride-Labs/stride/v6/utils" - icacallbackstypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + icacallbackstypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/stakeibc/keeper/icacallbacks_redemption_test.go b/x/stakeibc/keeper/icacallbacks_redemption_test.go index 67b08e9bef..4876738999 100644 --- a/x/stakeibc/keeper/icacallbacks_redemption_test.go +++ b/x/stakeibc/keeper/icacallbacks_redemption_test.go @@ -7,12 +7,12 @@ import ( channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" _ "github.com/stretchr/testify/suite" - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" - stakeibckeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" + stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" - stakeibc "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" + stakeibc "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type RedemptionCallbackState struct { diff --git a/x/stakeibc/keeper/icacallbacks_reinvest.go b/x/stakeibc/keeper/icacallbacks_reinvest.go index 4c0f27cbf3..3b26d08fea 100644 --- a/x/stakeibc/keeper/icacallbacks_reinvest.go +++ b/x/stakeibc/keeper/icacallbacks_reinvest.go @@ -3,11 +3,11 @@ package keeper import ( "fmt" - "github.com/Stride-Labs/stride/v6/utils" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - icacallbackstypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + icacallbackstypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/stakeibc/keeper/icacallbacks_reinvest_test.go b/x/stakeibc/keeper/icacallbacks_reinvest_test.go index bece32db6c..1d9b0dde1d 100644 --- a/x/stakeibc/keeper/icacallbacks_reinvest_test.go +++ b/x/stakeibc/keeper/icacallbacks_reinvest_test.go @@ -6,14 +6,14 @@ import ( channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" _ "github.com/stretchr/testify/suite" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" - stakeibckeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" + stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" - stakeibc "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" + stakeibc "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type ReinvestCallbackState struct { diff --git a/x/stakeibc/keeper/icacallbacks_undelegate.go b/x/stakeibc/keeper/icacallbacks_undelegate.go index 89ddea236f..fa4e20a15a 100644 --- a/x/stakeibc/keeper/icacallbacks_undelegate.go +++ b/x/stakeibc/keeper/icacallbacks_undelegate.go @@ -7,10 +7,10 @@ import ( sdkmath "cosmossdk.io/math" "github.com/spf13/cast" - "github.com/Stride-Labs/stride/v6/utils" - icacallbackstypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + icacallbackstypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/stakeibc/keeper/icacallbacks_undelegate_test.go b/x/stakeibc/keeper/icacallbacks_undelegate_test.go index 6436636be2..8e017e9dd2 100644 --- a/x/stakeibc/keeper/icacallbacks_undelegate_test.go +++ b/x/stakeibc/keeper/icacallbacks_undelegate_test.go @@ -11,11 +11,11 @@ import ( sdkmath "cosmossdk.io/math" - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" - stakeibckeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" - stakeibc "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" + stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" + stakeibc "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type UndelegateCallbackState struct { diff --git a/x/stakeibc/keeper/icqcallbacks_delegator_shares.go b/x/stakeibc/keeper/icqcallbacks_delegator_shares.go index afdd7087ae..c5322ee8e5 100644 --- a/x/stakeibc/keeper/icqcallbacks_delegator_shares.go +++ b/x/stakeibc/keeper/icqcallbacks_delegator_shares.go @@ -8,10 +8,10 @@ import ( stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - "github.com/Stride-Labs/stride/v6/utils" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - icqtypes "github.com/Stride-Labs/stride/v6/x/interchainquery/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + icqtypes "github.com/Stride-Labs/stride/v7/x/interchainquery/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // DelegatorSharesCallback is a callback handler for UpdateValidatorSharesExchRate queries. diff --git a/x/stakeibc/keeper/icqcallbacks_delegator_shares_test.go b/x/stakeibc/keeper/icqcallbacks_delegator_shares_test.go index b1c25b3eae..65278e977d 100644 --- a/x/stakeibc/keeper/icqcallbacks_delegator_shares_test.go +++ b/x/stakeibc/keeper/icqcallbacks_delegator_shares_test.go @@ -8,10 +8,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - icqtypes "github.com/Stride-Labs/stride/v6/x/interchainquery/types" - stakeibckeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + icqtypes "github.com/Stride-Labs/stride/v7/x/interchainquery/types" + stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type DelegatorSharesICQCallbackState struct { diff --git a/x/stakeibc/keeper/icqcallbacks_validator_exchange_rate.go b/x/stakeibc/keeper/icqcallbacks_validator_exchange_rate.go index bbba2cc86a..dbb76a8de7 100644 --- a/x/stakeibc/keeper/icqcallbacks_validator_exchange_rate.go +++ b/x/stakeibc/keeper/icqcallbacks_validator_exchange_rate.go @@ -7,10 +7,10 @@ import ( stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - "github.com/Stride-Labs/stride/v6/utils" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - icqtypes "github.com/Stride-Labs/stride/v6/x/interchainquery/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + icqtypes "github.com/Stride-Labs/stride/v7/x/interchainquery/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // ValidatorCallback is a callback handler for validator queries. diff --git a/x/stakeibc/keeper/icqcallbacks_validator_exchange_rate_test.go b/x/stakeibc/keeper/icqcallbacks_validator_exchange_rate_test.go index ee4f21db13..a530a8b27b 100644 --- a/x/stakeibc/keeper/icqcallbacks_validator_exchange_rate_test.go +++ b/x/stakeibc/keeper/icqcallbacks_validator_exchange_rate_test.go @@ -9,10 +9,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - icqtypes "github.com/Stride-Labs/stride/v6/x/interchainquery/types" - stakeibckeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + icqtypes "github.com/Stride-Labs/stride/v7/x/interchainquery/types" + stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type ValidatorICQCallbackState struct { diff --git a/x/stakeibc/keeper/icqcallbacks_withdrawal_balance.go b/x/stakeibc/keeper/icqcallbacks_withdrawal_balance.go index 1482d5d972..4a71a345be 100644 --- a/x/stakeibc/keeper/icqcallbacks_withdrawal_balance.go +++ b/x/stakeibc/keeper/icqcallbacks_withdrawal_balance.go @@ -16,9 +16,9 @@ import ( ibctypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types" clienttypes "github.com/cosmos/ibc-go/v5/modules/core/02-client/types" - "github.com/Stride-Labs/stride/v6/utils" - icqtypes "github.com/Stride-Labs/stride/v6/x/interchainquery/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + icqtypes "github.com/Stride-Labs/stride/v7/x/interchainquery/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // WithdrawalBalanceCallback is a callback handler for WithdrawalBalance queries. diff --git a/x/stakeibc/keeper/icqcallbacks_withdrawal_balance_test.go b/x/stakeibc/keeper/icqcallbacks_withdrawal_balance_test.go index 4e85b1fef0..03acb9c60f 100644 --- a/x/stakeibc/keeper/icqcallbacks_withdrawal_balance_test.go +++ b/x/stakeibc/keeper/icqcallbacks_withdrawal_balance_test.go @@ -11,11 +11,11 @@ import ( icatypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/types" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - icacallbackstypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - icqtypes "github.com/Stride-Labs/stride/v6/x/interchainquery/types" - stakeibckeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + icacallbackstypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + icqtypes "github.com/Stride-Labs/stride/v7/x/interchainquery/types" + stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type WithdrawalBalanceICQCallbackState struct { diff --git a/x/stakeibc/keeper/keeper.go b/x/stakeibc/keeper/keeper.go index 2844a85f90..11d3036cc3 100644 --- a/x/stakeibc/keeper/keeper.go +++ b/x/stakeibc/keeper/keeper.go @@ -14,8 +14,8 @@ import ( capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" - icqkeeper "github.com/Stride-Labs/stride/v6/x/interchainquery/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + icqkeeper "github.com/Stride-Labs/stride/v7/x/interchainquery/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" @@ -25,9 +25,9 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" - epochstypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - icacallbackskeeper "github.com/Stride-Labs/stride/v6/x/icacallbacks/keeper" - recordsmodulekeeper "github.com/Stride-Labs/stride/v6/x/records/keeper" + epochstypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + icacallbackskeeper "github.com/Stride-Labs/stride/v7/x/icacallbacks/keeper" + recordsmodulekeeper "github.com/Stride-Labs/stride/v7/x/records/keeper" ) type ( diff --git a/x/stakeibc/keeper/keeper_test.go b/x/stakeibc/keeper/keeper_test.go index 658cd8e63b..d4b133804d 100644 --- a/x/stakeibc/keeper/keeper_test.go +++ b/x/stakeibc/keeper/keeper_test.go @@ -6,9 +6,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/suite" - "github.com/Stride-Labs/stride/v6/app/apptesting" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/app/apptesting" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) const ( diff --git a/x/stakeibc/keeper/msg_server_claim_undelegated_tokens.go b/x/stakeibc/keeper/msg_server_claim_undelegated_tokens.go index 31074fca4c..8cc4fac02e 100644 --- a/x/stakeibc/keeper/msg_server_claim_undelegated_tokens.go +++ b/x/stakeibc/keeper/msg_server_claim_undelegated_tokens.go @@ -4,14 +4,14 @@ import ( "context" "fmt" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" bankTypes "github.com/cosmos/cosmos-sdk/x/bank/types" - epochstypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochstypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type IcaTx struct { diff --git a/x/stakeibc/keeper/msg_server_claim_undelegated_tokens_test.go b/x/stakeibc/keeper/msg_server_claim_undelegated_tokens_test.go index ecfdd51ed4..d70328b9a5 100644 --- a/x/stakeibc/keeper/msg_server_claim_undelegated_tokens_test.go +++ b/x/stakeibc/keeper/msg_server_claim_undelegated_tokens_test.go @@ -10,10 +10,10 @@ import ( ibctesting "github.com/cosmos/ibc-go/v5/testing" _ "github.com/stretchr/testify/suite" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" - stakeibckeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" + stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type ClaimUndelegatedState struct { diff --git a/x/stakeibc/keeper/msg_server_clear_balance_test.go b/x/stakeibc/keeper/msg_server_clear_balance_test.go index 7168607e57..26fd0ca9f0 100644 --- a/x/stakeibc/keeper/msg_server_clear_balance_test.go +++ b/x/stakeibc/keeper/msg_server_clear_balance_test.go @@ -9,8 +9,8 @@ import ( ibctesting "github.com/cosmos/ibc-go/v5/testing" _ "github.com/stretchr/testify/suite" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type ClearBalanceState struct { diff --git a/x/stakeibc/keeper/msg_server_liquid_stake.go b/x/stakeibc/keeper/msg_server_liquid_stake.go index 8798fbb61f..154774b8a3 100644 --- a/x/stakeibc/keeper/msg_server_liquid_stake.go +++ b/x/stakeibc/keeper/msg_server_liquid_stake.go @@ -8,8 +8,8 @@ import ( errorsmod "cosmossdk.io/errors" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // Exchanges a user's native tokens for stTokens using the current redemption rate diff --git a/x/stakeibc/keeper/msg_server_liquid_stake_test.go b/x/stakeibc/keeper/msg_server_liquid_stake_test.go index 33181e9d35..cb92f6b281 100644 --- a/x/stakeibc/keeper/msg_server_liquid_stake_test.go +++ b/x/stakeibc/keeper/msg_server_liquid_stake_test.go @@ -7,9 +7,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" _ "github.com/stretchr/testify/suite" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type Account struct { diff --git a/x/stakeibc/keeper/msg_server_rebalance_validators.go b/x/stakeibc/keeper/msg_server_rebalance_validators.go index 7b64d2cb59..d8fb6001ef 100644 --- a/x/stakeibc/keeper/msg_server_rebalance_validators.go +++ b/x/stakeibc/keeper/msg_server_rebalance_validators.go @@ -12,8 +12,8 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" stakingTypes "github.com/cosmos/cosmos-sdk/x/staking/types" - "github.com/Stride-Labs/stride/v6/utils" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (k msgServer) RebalanceValidators(goCtx context.Context, msg *types.MsgRebalanceValidators) (*types.MsgRebalanceValidatorsResponse, error) { diff --git a/x/stakeibc/keeper/msg_server_rebalance_validators_test.go b/x/stakeibc/keeper/msg_server_rebalance_validators_test.go index c3b8fbf5a5..b5833a7541 100644 --- a/x/stakeibc/keeper/msg_server_rebalance_validators_test.go +++ b/x/stakeibc/keeper/msg_server_rebalance_validators_test.go @@ -8,9 +8,9 @@ import ( icatypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/types" ibctesting "github.com/cosmos/ibc-go/v5/testing" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - icacallbackstypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + icacallbackstypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type RebalanceValidatorsTestCase struct { diff --git a/x/stakeibc/keeper/msg_server_redeem_stake.go b/x/stakeibc/keeper/msg_server_redeem_stake.go index 0f36671369..f67c454701 100644 --- a/x/stakeibc/keeper/msg_server_redeem_stake.go +++ b/x/stakeibc/keeper/msg_server_redeem_stake.go @@ -4,14 +4,14 @@ import ( "context" "fmt" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/utils" + "github.com/Stride-Labs/stride/v7/utils" ) func (k msgServer) RedeemStake(goCtx context.Context, msg *types.MsgRedeemStake) (*types.MsgRedeemStakeResponse, error) { diff --git a/x/stakeibc/keeper/msg_server_redeem_stake_test.go b/x/stakeibc/keeper/msg_server_redeem_stake_test.go index 4b61236b20..541f6ae732 100644 --- a/x/stakeibc/keeper/msg_server_redeem_stake_test.go +++ b/x/stakeibc/keeper/msg_server_redeem_stake_test.go @@ -7,9 +7,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" _ "github.com/stretchr/testify/suite" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type RedeemStakeState struct { diff --git a/x/stakeibc/keeper/msg_server_register_host_zone.go b/x/stakeibc/keeper/msg_server_register_host_zone.go index 53b9e6426b..0a3e1fe08c 100644 --- a/x/stakeibc/keeper/msg_server_register_host_zone.go +++ b/x/stakeibc/keeper/msg_server_register_host_zone.go @@ -7,10 +7,10 @@ import ( sdkmath "cosmossdk.io/math" icatypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/types" - "github.com/Stride-Labs/stride/v6/utils" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/stakeibc/keeper/msg_server_register_host_zone_test.go b/x/stakeibc/keeper/msg_server_register_host_zone_test.go index 2dcae1ed21..8ee27d3452 100644 --- a/x/stakeibc/keeper/msg_server_register_host_zone_test.go +++ b/x/stakeibc/keeper/msg_server_register_host_zone_test.go @@ -12,10 +12,10 @@ import ( channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type RegisterHostZoneTestCase struct { diff --git a/x/stakeibc/keeper/msg_server_restore_interchain_account.go b/x/stakeibc/keeper/msg_server_restore_interchain_account.go index b4e3f770a8..1b99ef967d 100644 --- a/x/stakeibc/keeper/msg_server_restore_interchain_account.go +++ b/x/stakeibc/keeper/msg_server_restore_interchain_account.go @@ -9,8 +9,8 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" icatypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (k msgServer) RestoreInterchainAccount(goCtx context.Context, msg *types.MsgRestoreInterchainAccount) (*types.MsgRestoreInterchainAccountResponse, error) { diff --git a/x/stakeibc/keeper/msg_server_restore_interchain_account_test.go b/x/stakeibc/keeper/msg_server_restore_interchain_account_test.go index 013182ffda..bee9ebf6bb 100644 --- a/x/stakeibc/keeper/msg_server_restore_interchain_account_test.go +++ b/x/stakeibc/keeper/msg_server_restore_interchain_account_test.go @@ -10,8 +10,8 @@ import ( icatypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/types" channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" - stakeibc "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" + stakeibc "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type DepositRecordStatusUpdate struct { diff --git a/x/stakeibc/keeper/msg_server_submit_tx.go b/x/stakeibc/keeper/msg_server_submit_tx.go index 50de45a967..6330868c67 100644 --- a/x/stakeibc/keeper/msg_server_submit_tx.go +++ b/x/stakeibc/keeper/msg_server_submit_tx.go @@ -9,11 +9,11 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/spf13/cast" - "github.com/Stride-Labs/stride/v6/utils" - icacallbackstypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/utils" + icacallbackstypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" bankTypes "github.com/cosmos/cosmos-sdk/x/bank/types" distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types" @@ -21,8 +21,8 @@ import ( stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - epochstypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - icqtypes "github.com/Stride-Labs/stride/v6/x/interchainquery/types" + epochstypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + icqtypes "github.com/Stride-Labs/stride/v7/x/interchainquery/types" sdk "github.com/cosmos/cosmos-sdk/types" icatypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/types" diff --git a/x/stakeibc/keeper/params_test.go b/x/stakeibc/keeper/params_test.go index e98919de43..0e7cc2d942 100644 --- a/x/stakeibc/keeper/params_test.go +++ b/x/stakeibc/keeper/params_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - testkeeper "github.com/Stride-Labs/stride/v6/testutil/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + testkeeper "github.com/Stride-Labs/stride/v7/testutil/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func TestGetParams(t *testing.T) { diff --git a/x/stakeibc/keeper/reward_allocation_test.go b/x/stakeibc/keeper/reward_allocation_test.go index ba64c7571c..3533e910c5 100644 --- a/x/stakeibc/keeper/reward_allocation_test.go +++ b/x/stakeibc/keeper/reward_allocation_test.go @@ -10,9 +10,9 @@ import ( icatypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/types" clienttypes "github.com/cosmos/ibc-go/v5/modules/core/02-client/types" sdkmath "cosmossdk.io/math" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" "github.com/cosmos/cosmos-sdk/simapp" "github.com/cosmos/cosmos-sdk/x/staking/teststaking" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" @@ -20,7 +20,7 @@ import ( ibctypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types" channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" abci "github.com/tendermint/tendermint/abci/types" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" ) var ( diff --git a/x/stakeibc/keeper/unbonding_records.go b/x/stakeibc/keeper/unbonding_records.go index d24b40b2bb..b744d8e39f 100644 --- a/x/stakeibc/keeper/unbonding_records.go +++ b/x/stakeibc/keeper/unbonding_records.go @@ -12,9 +12,9 @@ import ( stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" "github.com/spf13/cast" - "github.com/Stride-Labs/stride/v6/utils" - recordstypes "github.com/Stride-Labs/stride/v6/x/records/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (k Keeper) CreateEpochUnbondingRecord(ctx sdk.Context, epochNumber uint64) bool { diff --git a/x/stakeibc/keeper/unbonding_records_cleanup_test.go b/x/stakeibc/keeper/unbonding_records_cleanup_test.go index a264302f7b..315b71579e 100644 --- a/x/stakeibc/keeper/unbonding_records_cleanup_test.go +++ b/x/stakeibc/keeper/unbonding_records_cleanup_test.go @@ -4,9 +4,9 @@ import ( sdkmath "cosmossdk.io/math" _ "github.com/stretchr/testify/suite" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" - stakeibc "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + stakeibc "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type CleanupEpochUnbondingRecordsTestCase struct { diff --git a/x/stakeibc/keeper/unbonding_records_get_host_zone_unbondings_msgs_test.go b/x/stakeibc/keeper/unbonding_records_get_host_zone_unbondings_msgs_test.go index 1326b9eab9..9e5eb1fa2d 100644 --- a/x/stakeibc/keeper/unbonding_records_get_host_zone_unbondings_msgs_test.go +++ b/x/stakeibc/keeper/unbonding_records_get_host_zone_unbondings_msgs_test.go @@ -8,9 +8,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" _ "github.com/stretchr/testify/suite" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" - stakeibc "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + stakeibc "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type GetHostZoneUnbondingMsgsTestCase struct { diff --git a/x/stakeibc/keeper/unbonding_records_initiate_all_unbondings_test.go b/x/stakeibc/keeper/unbonding_records_initiate_all_unbondings_test.go index 5cc8bdb8d0..62741d7019 100644 --- a/x/stakeibc/keeper/unbonding_records_initiate_all_unbondings_test.go +++ b/x/stakeibc/keeper/unbonding_records_initiate_all_unbondings_test.go @@ -5,9 +5,9 @@ import ( ibctesting "github.com/cosmos/ibc-go/v5/testing" _ "github.com/stretchr/testify/suite" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" - stakeibc "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + stakeibc "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type InitiateAllHostZoneUnbondingsTestCase struct { diff --git a/x/stakeibc/keeper/unbonding_records_sweep_unbonded_tokens_test.go b/x/stakeibc/keeper/unbonding_records_sweep_unbonded_tokens_test.go index 910af4fad5..bbfcadac7c 100644 --- a/x/stakeibc/keeper/unbonding_records_sweep_unbonded_tokens_test.go +++ b/x/stakeibc/keeper/unbonding_records_sweep_unbonded_tokens_test.go @@ -5,10 +5,10 @@ import ( ibctesting "github.com/cosmos/ibc-go/v5/testing" _ "github.com/stretchr/testify/suite" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - stakeibc "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + stakeibc "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type SweepUnbondedTokensTestCase struct { diff --git a/x/stakeibc/keeper/update_redemption_rates_test.go b/x/stakeibc/keeper/update_redemption_rates_test.go index dc4a415cd7..f772a169cf 100644 --- a/x/stakeibc/keeper/update_redemption_rates_test.go +++ b/x/stakeibc/keeper/update_redemption_rates_test.go @@ -10,9 +10,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" _ "github.com/stretchr/testify/suite" - recordtypes "github.com/Stride-Labs/stride/v6/x/records/types" + recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type UpdateRedemptionRatesTestCase struct { diff --git a/x/stakeibc/keeper/update_validator_shares_exch_rate_test.go b/x/stakeibc/keeper/update_validator_shares_exch_rate_test.go index 91f0fa8ff0..59b7c8b6f7 100644 --- a/x/stakeibc/keeper/update_validator_shares_exch_rate_test.go +++ b/x/stakeibc/keeper/update_validator_shares_exch_rate_test.go @@ -6,9 +6,9 @@ import ( ibctesting "github.com/cosmos/ibc-go/v5/testing" _ "github.com/stretchr/testify/suite" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // ================================ 1: QueryValidatorExchangeRate ============================================= diff --git a/x/stakeibc/keeper/validator_selection.go b/x/stakeibc/keeper/validator_selection.go index 99250a108c..fa990c1e8e 100644 --- a/x/stakeibc/keeper/validator_selection.go +++ b/x/stakeibc/keeper/validator_selection.go @@ -7,8 +7,8 @@ import ( sdkmath "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/utils" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // This function returns a map from Validator Address to how many extra tokens need to be given to that validator diff --git a/x/stakeibc/migrations/v2/convert.go b/x/stakeibc/migrations/v2/convert.go index 3047c4db00..7f1e3ef751 100644 --- a/x/stakeibc/migrations/v2/convert.go +++ b/x/stakeibc/migrations/v2/convert.go @@ -3,8 +3,8 @@ package v2 import ( sdkmath "cosmossdk.io/math" - oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func convertToNewValidator(oldValidator oldstakeibctypes.Validator) stakeibctypes.Validator { diff --git a/x/stakeibc/migrations/v2/convert_test.go b/x/stakeibc/migrations/v2/convert_test.go index 461204dab6..5825d5625a 100644 --- a/x/stakeibc/migrations/v2/convert_test.go +++ b/x/stakeibc/migrations/v2/convert_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/require" - oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func TestConvertToNewValidator(t *testing.T) { diff --git a/x/stakeibc/migrations/v2/migrations.go b/x/stakeibc/migrations/v2/migrations.go index 3617e56602..72683faab2 100644 --- a/x/stakeibc/migrations/v2/migrations.go +++ b/x/stakeibc/migrations/v2/migrations.go @@ -8,8 +8,8 @@ import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func migrateHostZone(store sdk.KVStore, cdc codec.BinaryCodec) error { diff --git a/x/stakeibc/module.go b/x/stakeibc/module.go index e7fa5b909a..96003ade95 100644 --- a/x/stakeibc/module.go +++ b/x/stakeibc/module.go @@ -19,9 +19,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/Stride-Labs/stride/v6/x/stakeibc/client/cli" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/client/cli" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) var ( diff --git a/x/stakeibc/module_ibc.go b/x/stakeibc/module_ibc.go index 6b83a67f41..183db39742 100644 --- a/x/stakeibc/module_ibc.go +++ b/x/stakeibc/module_ibc.go @@ -11,11 +11,11 @@ import ( host "github.com/cosmos/ibc-go/v5/modules/core/24-host" ibcexported "github.com/cosmos/ibc-go/v5/modules/core/exported" - "github.com/Stride-Labs/stride/v6/x/icacallbacks" - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // IBCModule implements the ICS26 interface for interchain accounts controller chains diff --git a/x/stakeibc/module_simulation.go b/x/stakeibc/module_simulation.go index 882c42c0e9..04341628b7 100644 --- a/x/stakeibc/module_simulation.go +++ b/x/stakeibc/module_simulation.go @@ -10,9 +10,9 @@ import ( simtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/Stride-Labs/stride/v6/testutil/sample" - stakeibcsimulation "github.com/Stride-Labs/stride/v6/x/stakeibc/simulation" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/testutil/sample" + stakeibcsimulation "github.com/Stride-Labs/stride/v7/x/stakeibc/simulation" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // avoid unused import issue diff --git a/x/stakeibc/proposal_handler.go b/x/stakeibc/proposal_handler.go index fab718b7b5..587ac9edf1 100644 --- a/x/stakeibc/proposal_handler.go +++ b/x/stakeibc/proposal_handler.go @@ -6,9 +6,9 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func NewStakeibcProposalHandler(k keeper.Keeper) govtypes.Handler { diff --git a/x/stakeibc/simulation/add_validator.go b/x/stakeibc/simulation/add_validator.go index 38ab9ed8cc..6b3719363e 100644 --- a/x/stakeibc/simulation/add_validator.go +++ b/x/stakeibc/simulation/add_validator.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func SimulateMsgAddValidator( diff --git a/x/stakeibc/simulation/change_validator_weight.go b/x/stakeibc/simulation/change_validator_weight.go index 4cbef9f87f..4e6dee2bd7 100644 --- a/x/stakeibc/simulation/change_validator_weight.go +++ b/x/stakeibc/simulation/change_validator_weight.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func SimulateMsgChangeValidatorWeight( diff --git a/x/stakeibc/simulation/claim_undelegated_tokens.go b/x/stakeibc/simulation/claim_undelegated_tokens.go index 847f4a478e..06ba1066e6 100644 --- a/x/stakeibc/simulation/claim_undelegated_tokens.go +++ b/x/stakeibc/simulation/claim_undelegated_tokens.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func SimulateMsgClaimUndelegatedTokens( diff --git a/x/stakeibc/simulation/delete_validator.go b/x/stakeibc/simulation/delete_validator.go index 4cdccdc640..93be8c93d5 100644 --- a/x/stakeibc/simulation/delete_validator.go +++ b/x/stakeibc/simulation/delete_validator.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func SimulateMsgDeleteValidator( diff --git a/x/stakeibc/simulation/liquid_stake.go b/x/stakeibc/simulation/liquid_stake.go index 55071618a0..e79a674d69 100644 --- a/x/stakeibc/simulation/liquid_stake.go +++ b/x/stakeibc/simulation/liquid_stake.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func SimulateMsgLiquidStake( diff --git a/x/stakeibc/simulation/rebalance_validators.go b/x/stakeibc/simulation/rebalance_validators.go index dc29fee7bd..1ff34370e3 100644 --- a/x/stakeibc/simulation/rebalance_validators.go +++ b/x/stakeibc/simulation/rebalance_validators.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func SimulateMsgRebalanceValidators( diff --git a/x/stakeibc/simulation/restore_interchain_account.go b/x/stakeibc/simulation/restore_interchain_account.go index b333aee9f0..359b681cc8 100644 --- a/x/stakeibc/simulation/restore_interchain_account.go +++ b/x/stakeibc/simulation/restore_interchain_account.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func SimulateMsgRestoreInterchainAccount( diff --git a/x/stakeibc/simulation/update_delegation.go b/x/stakeibc/simulation/update_delegation.go index 07983d011f..ea49c6ffca 100644 --- a/x/stakeibc/simulation/update_delegation.go +++ b/x/stakeibc/simulation/update_delegation.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func SimulateMsgUpdateValidatorSharesExchRate( diff --git a/x/stakeibc/types/message_rebalance_validators_test.go b/x/stakeibc/types/message_rebalance_validators_test.go index d9d1d7445e..c56db010e7 100644 --- a/x/stakeibc/types/message_rebalance_validators_test.go +++ b/x/stakeibc/types/message_rebalance_validators_test.go @@ -6,8 +6,8 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/app/apptesting" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/app/apptesting" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func TestMsgRebalanceValidators_ValidateBasic(t *testing.T) { From 53b566419f506d5e5a0e2f8c2640a23dab108d9f Mon Sep 17 00:00:00 2001 From: Aidan Salzmann Date: Sun, 12 Mar 2023 22:31:59 -0400 Subject: [PATCH 04/10] more replacements --- app/test_setup.go | 2 +- app/upgrades/v3/upgrades_test.go | 2 +- app/upgrades/v4/upgrades_test.go | 2 +- app/upgrades/v6/upgrades.go | 2 +- testutil/network/network.go | 2 +- x/autopilot/client/cli/query.go | 2 +- x/autopilot/keeper/grpc_query_params.go | 2 +- x/autopilot/keeper/grpc_query_params_test.go | 2 +- x/autopilot/keeper/params.go | 2 +- x/autopilot/keeper/params_test.go | 2 +- x/autopilot/types/genesis_test.go | 2 +- x/claim/client/cli/query.go | 2 +- x/claim/client/cli/tx.go | 2 +- x/claim/client/cli/tx_claim_free_amount.go | 2 +- x/claim/client/cli/tx_create_airdrop.go | 2 +- x/claim/client/cli/tx_delete_airdrop.go | 2 +- x/claim/client/cli/tx_set_airdrop_allocations.go | 2 +- x/claim/keeper/genesis.go | 2 +- x/claim/keeper/grpc_query.go | 2 +- x/claim/keeper/keeper.go | 2 +- x/claim/keeper/msg_server.go | 2 +- x/claim/keeper/params.go | 2 +- x/claim/keeper/query.go | 2 +- x/claim/types/expected_keepers.go | 2 +- x/claim/types/msgs.go | 2 +- x/claim/vesting/client/cli/tx.go | 2 +- x/claim/vesting/client/testutil/suite.go | 2 +- x/claim/vesting/handler.go | 2 +- x/claim/vesting/msg_server.go | 2 +- x/claim/vesting/types/codec.go | 2 +- x/claim/vesting/types/common_test.go | 2 +- x/claim/vesting/types/vesting_account_test.go | 2 +- x/epochs/client/cli/query.go | 2 +- x/epochs/keeper/epoch.go | 2 +- x/epochs/keeper/epoch_test.go | 2 +- x/epochs/keeper/grpc_query.go | 2 +- x/epochs/keeper/grpc_query_test.go | 2 +- x/epochs/keeper/hooks.go | 2 +- x/epochs/keeper/keeper.go | 2 +- x/epochs/simulation/genesis.go | 2 +- x/icacallbacks/client/cli/query.go | 2 +- x/icacallbacks/client/cli/query_callback_data.go | 2 +- x/icacallbacks/client/cli/query_params.go | 2 +- x/icacallbacks/client/cli/tx.go | 2 +- x/icacallbacks/icacallbacks.go | 2 +- x/icacallbacks/keeper/callback_data.go | 2 +- x/icacallbacks/keeper/grpc_query.go | 2 +- x/icacallbacks/keeper/grpc_query_callback_data.go | 2 +- x/icacallbacks/keeper/grpc_query_params.go | 2 +- x/icacallbacks/keeper/msg_server.go | 2 +- x/icacallbacks/keeper/params.go | 2 +- x/icacallbacks/migrations/v2/migrations.go | 2 +- x/icacallbacks/types/genesis_test.go | 2 +- x/interchainquery/client/cli/query.go | 2 +- x/interchainquery/keeper/abci.go | 2 +- x/interchainquery/keeper/grpc_query.go | 2 +- x/interchainquery/keeper/msg_submit_query_response_test.go | 2 +- x/interchainquery/keeper/new_query_test.go | 2 +- x/interchainquery/keeper/queries.go | 2 +- x/mint/client/cli/query.go | 2 +- x/mint/keeper/grpc_query.go | 2 +- x/mint/keeper/keeper.go | 2 +- x/mint/types/expected_keepers.go | 2 +- x/mint/types/params.go | 2 +- x/ratelimit/client/cli/query.go | 2 +- x/ratelimit/client/cli/tx.go | 2 +- x/ratelimit/client/proposal_handler.go | 2 +- x/ratelimit/ibc_middleware.go | 2 +- x/ratelimit/keeper/grpc_query.go | 2 +- x/ratelimit/keeper/grpc_query_test.go | 2 +- x/ratelimit/keeper/hooks.go | 2 +- x/ratelimit/keeper/keeper.go | 2 +- x/ratelimit/keeper/packet.go | 2 +- x/ratelimit/keeper/params.go | 2 +- x/ratelimit/keeper/rate_limit.go | 2 +- x/ratelimit/types/flow_test.go | 2 +- x/ratelimit/types/quota_test.go | 2 +- x/records/client/cli/query.go | 2 +- x/records/client/cli/query_deposit_record.go | 2 +- x/records/client/cli/query_epoch_unbonding_record.go | 2 +- x/records/client/cli/query_params.go | 2 +- x/records/client/cli/query_user_redemption_record.go | 2 +- x/records/client/cli/tx.go | 2 +- x/records/keeper/callbacks.go | 2 +- x/records/keeper/deposit_record.go | 2 +- x/records/keeper/grpc_query.go | 2 +- x/records/keeper/grpc_query_deposit_record.go | 2 +- x/records/keeper/grpc_query_epoch_unbonding_record.go | 2 +- x/records/keeper/grpc_query_params.go | 2 +- x/records/keeper/grpc_query_user_redemption_record.go | 2 +- x/records/keeper/grpc_query_user_redemption_record_for_user.go | 2 +- x/records/keeper/msg_server.go | 2 +- x/records/keeper/params.go | 2 +- x/records/keeper/user_redemption_record.go | 2 +- x/records/types/genesis_test.go | 2 +- x/stakeibc/client/cli/query.go | 2 +- x/stakeibc/client/cli/query_epoch_tracker.go | 2 +- x/stakeibc/client/cli/query_host_zone.go | 2 +- x/stakeibc/client/cli/query_module_address.go | 2 +- x/stakeibc/client/cli/query_next_packet_sequence.go | 2 +- x/stakeibc/client/cli/query_params.go | 2 +- x/stakeibc/client/cli/query_register_ica.go | 2 +- x/stakeibc/client/cli/query_validator.go | 2 +- x/stakeibc/client/cli/tx.go | 2 +- x/stakeibc/client/cli/tx_add_validator.go | 2 +- x/stakeibc/client/cli/tx_add_validator_proposal.go | 2 +- x/stakeibc/client/cli/tx_change_validator_weight.go | 2 +- x/stakeibc/client/cli/tx_claim_undelegated_tokens.go | 2 +- x/stakeibc/client/cli/tx_clear_balance.go | 2 +- x/stakeibc/client/cli/tx_delete_validator.go | 2 +- x/stakeibc/client/cli/tx_liquid_stake.go | 2 +- x/stakeibc/client/cli/tx_rebalance_validators.go | 2 +- x/stakeibc/client/cli/tx_redeem_stake.go | 2 +- x/stakeibc/client/cli/tx_register_host_zone.go | 2 +- x/stakeibc/client/cli/tx_restore_interchain_account.go | 2 +- x/stakeibc/client/cli/tx_update_delegation.go | 2 +- x/stakeibc/client/proposal_handler.go | 2 +- x/stakeibc/keeper/epoch_tracker.go | 2 +- x/stakeibc/keeper/gov.go | 2 +- x/stakeibc/keeper/grpc_query.go | 2 +- x/stakeibc/keeper/grpc_query_epoch_tracker.go | 2 +- x/stakeibc/keeper/grpc_query_host_zone.go | 2 +- x/stakeibc/keeper/grpc_query_module_address.go | 2 +- x/stakeibc/keeper/grpc_query_next_packet_sequence.go | 2 +- x/stakeibc/keeper/grpc_query_next_packet_sequence_test.go | 2 +- x/stakeibc/keeper/grpc_query_params.go | 2 +- x/stakeibc/keeper/grpc_query_register_ica.go | 2 +- x/stakeibc/keeper/grpc_query_validator.go | 2 +- x/stakeibc/keeper/icacallbacks.go | 2 +- x/stakeibc/keeper/icqcallbacks.go | 2 +- x/stakeibc/keeper/msg_server.go | 2 +- x/stakeibc/keeper/msg_server_add_validator.go | 2 +- x/stakeibc/keeper/msg_server_add_validator_test.go | 2 +- x/stakeibc/keeper/msg_server_change_validator_weight.go | 2 +- x/stakeibc/keeper/msg_server_clear_balance.go | 2 +- x/stakeibc/keeper/msg_server_delete_validator.go | 2 +- x/stakeibc/keeper/msg_server_delete_validator_test.go | 2 +- .../keeper/msg_server_update_validator_shares_exch_rate.go | 2 +- x/stakeibc/keeper/params.go | 2 +- x/stakeibc/types/genesis_test.go | 2 +- x/stakeibc/types/message_add_validator.go | 2 +- x/stakeibc/types/message_add_validator_test.go | 2 +- x/stakeibc/types/message_change_validator_weight.go | 2 +- x/stakeibc/types/message_change_validator_weight_test.go | 2 +- x/stakeibc/types/message_claim_undelegated_tokens.go | 2 +- x/stakeibc/types/message_claim_undelegated_tokens_test.go | 2 +- x/stakeibc/types/message_clear_balance.go | 2 +- x/stakeibc/types/message_delete_validator.go | 2 +- x/stakeibc/types/message_delete_validator_test.go | 2 +- x/stakeibc/types/message_liquid_stake_test.go | 2 +- x/stakeibc/types/message_rebalance_validators.go | 2 +- x/stakeibc/types/message_redeem_stake_test.go | 2 +- x/stakeibc/types/message_register_host_zone.go | 2 +- x/stakeibc/types/message_restore_interchain_account_test.go | 2 +- x/stakeibc/types/message_update_delegation.go | 2 +- 155 files changed, 155 insertions(+), 155 deletions(-) diff --git a/app/test_setup.go b/app/test_setup.go index 2bfdd0dd45..9f8b5d7d9f 100644 --- a/app/test_setup.go +++ b/app/test_setup.go @@ -20,7 +20,7 @@ import ( tmtypes "github.com/tendermint/tendermint/types" dbm "github.com/tendermint/tm-db" - cmdcfg "github.com/Stride-Labs/stride/v6/cmd/strided/config" + cmdcfg "github.com/Stride-Labs/stride/v7/cmd/strided/config" ) const Bech32Prefix = "stride" diff --git a/app/upgrades/v3/upgrades_test.go b/app/upgrades/v3/upgrades_test.go index 75c1756a15..c218c447c1 100644 --- a/app/upgrades/v3/upgrades_test.go +++ b/app/upgrades/v3/upgrades_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/suite" - "github.com/Stride-Labs/stride/v6/app/apptesting" + "github.com/Stride-Labs/stride/v7/app/apptesting" ) var ( diff --git a/app/upgrades/v4/upgrades_test.go b/app/upgrades/v4/upgrades_test.go index a0ba1d3d5f..01de6a68a1 100644 --- a/app/upgrades/v4/upgrades_test.go +++ b/app/upgrades/v4/upgrades_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/suite" - "github.com/Stride-Labs/stride/v6/app/apptesting" + "github.com/Stride-Labs/stride/v7/app/apptesting" ) const dummyUpgradeHeight = 5 diff --git a/app/upgrades/v6/upgrades.go b/app/upgrades/v6/upgrades.go index df8e37a350..bce1096973 100644 --- a/app/upgrades/v6/upgrades.go +++ b/app/upgrades/v6/upgrades.go @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - claimkeeper "github.com/Stride-Labs/stride/v6/x/claim/keeper" + claimkeeper "github.com/Stride-Labs/stride/v7/x/claim/keeper" ) // Note: ensure these values are properly set before running upgrade diff --git a/testutil/network/network.go b/testutil/network/network.go index 280317481f..0ac9023372 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -17,7 +17,7 @@ import ( tmrand "github.com/tendermint/tendermint/libs/rand" tmdb "github.com/tendermint/tm-db" - "github.com/Stride-Labs/stride/v6/app" + "github.com/Stride-Labs/stride/v7/app" ) type ( diff --git a/x/autopilot/client/cli/query.go b/x/autopilot/client/cli/query.go index 78e7555e83..990a737323 100644 --- a/x/autopilot/client/cli/query.go +++ b/x/autopilot/client/cli/query.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" - "github.com/Stride-Labs/stride/v6/x/autopilot/types" + "github.com/Stride-Labs/stride/v7/x/autopilot/types" "github.com/cosmos/cosmos-sdk/client/flags" ) diff --git a/x/autopilot/keeper/grpc_query_params.go b/x/autopilot/keeper/grpc_query_params.go index 831f2aa9f8..00165b9835 100644 --- a/x/autopilot/keeper/grpc_query_params.go +++ b/x/autopilot/keeper/grpc_query_params.go @@ -7,7 +7,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/x/autopilot/types" + "github.com/Stride-Labs/stride/v7/x/autopilot/types" ) func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { diff --git a/x/autopilot/keeper/grpc_query_params_test.go b/x/autopilot/keeper/grpc_query_params_test.go index 6d38a1705b..ef6db262cf 100644 --- a/x/autopilot/keeper/grpc_query_params_test.go +++ b/x/autopilot/keeper/grpc_query_params_test.go @@ -3,7 +3,7 @@ package keeper_test import ( "context" - "github.com/Stride-Labs/stride/v6/x/autopilot/types" + "github.com/Stride-Labs/stride/v7/x/autopilot/types" ) func (s *KeeperTestSuite) TestParamsQuery() { diff --git a/x/autopilot/keeper/params.go b/x/autopilot/keeper/params.go index 23082dddd7..126fa6db52 100644 --- a/x/autopilot/keeper/params.go +++ b/x/autopilot/keeper/params.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/autopilot/types" + "github.com/Stride-Labs/stride/v7/x/autopilot/types" ) // GetParams get all parameters as types.Params diff --git a/x/autopilot/keeper/params_test.go b/x/autopilot/keeper/params_test.go index fd17f74d68..ac9b934a2c 100644 --- a/x/autopilot/keeper/params_test.go +++ b/x/autopilot/keeper/params_test.go @@ -1,7 +1,7 @@ package keeper_test import ( - "github.com/Stride-Labs/stride/v6/x/autopilot/types" + "github.com/Stride-Labs/stride/v7/x/autopilot/types" ) func (s *KeeperTestSuite) TestGetParams() { diff --git a/x/autopilot/types/genesis_test.go b/x/autopilot/types/genesis_test.go index 2fe45cb34f..1778a0cc12 100644 --- a/x/autopilot/types/genesis_test.go +++ b/x/autopilot/types/genesis_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/x/autopilot/types" + "github.com/Stride-Labs/stride/v7/x/autopilot/types" ) func TestGenesisState_Validate(t *testing.T) { diff --git a/x/claim/client/cli/query.go b/x/claim/client/cli/query.go index f1fb6ce9d0..66ea52188c 100644 --- a/x/claim/client/cli/query.go +++ b/x/claim/client/cli/query.go @@ -10,7 +10,7 @@ import ( "github.com/cosmos/cosmos-sdk/version" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/x/claim/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/claim/client/cli/tx.go b/x/claim/client/cli/tx.go index 49559477aa..a040044031 100644 --- a/x/claim/client/cli/tx.go +++ b/x/claim/client/cli/tx.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/x/claim/types" ) // GetTxCmd returns the transaction commands for this module diff --git a/x/claim/client/cli/tx_claim_free_amount.go b/x/claim/client/cli/tx_claim_free_amount.go index 3cf14a4ff6..09acfec9b9 100644 --- a/x/claim/client/cli/tx_claim_free_amount.go +++ b/x/claim/client/cli/tx_claim_free_amount.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/tx" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/x/claim/types" ) func CmdClaimFreeAmount() *cobra.Command { diff --git a/x/claim/client/cli/tx_create_airdrop.go b/x/claim/client/cli/tx_create_airdrop.go index 0780d3840a..02295f17ef 100644 --- a/x/claim/client/cli/tx_create_airdrop.go +++ b/x/claim/client/cli/tx_create_airdrop.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/tx" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/x/claim/types" ) func CmdCreateAirdrop() *cobra.Command { diff --git a/x/claim/client/cli/tx_delete_airdrop.go b/x/claim/client/cli/tx_delete_airdrop.go index b09645c469..eb0d517181 100644 --- a/x/claim/client/cli/tx_delete_airdrop.go +++ b/x/claim/client/cli/tx_delete_airdrop.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/tx" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/x/claim/types" ) func CmdDeleteAirdrop() *cobra.Command { diff --git a/x/claim/client/cli/tx_set_airdrop_allocations.go b/x/claim/client/cli/tx_set_airdrop_allocations.go index c6a456c2d6..5e6e50319a 100644 --- a/x/claim/client/cli/tx_set_airdrop_allocations.go +++ b/x/claim/client/cli/tx_set_airdrop_allocations.go @@ -10,7 +10,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/x/claim/types" ) func CmdSetAirdropAllocations() *cobra.Command { diff --git a/x/claim/keeper/genesis.go b/x/claim/keeper/genesis.go index 796d001a37..8c456991ee 100644 --- a/x/claim/keeper/genesis.go +++ b/x/claim/keeper/genesis.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/x/claim/types" ) // InitGenesis initializes the capability module's state from a provided genesis diff --git a/x/claim/keeper/grpc_query.go b/x/claim/keeper/grpc_query.go index bb8ac35bf0..2d4c178903 100644 --- a/x/claim/keeper/grpc_query.go +++ b/x/claim/keeper/grpc_query.go @@ -7,7 +7,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/x/claim/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/claim/keeper/keeper.go b/x/claim/keeper/keeper.go index 9f09aba056..44edd67070 100644 --- a/x/claim/keeper/keeper.go +++ b/x/claim/keeper/keeper.go @@ -9,7 +9,7 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/x/claim/types" ) // Keeper struct diff --git a/x/claim/keeper/msg_server.go b/x/claim/keeper/msg_server.go index b4cab9e230..66979faf60 100644 --- a/x/claim/keeper/msg_server.go +++ b/x/claim/keeper/msg_server.go @@ -8,7 +8,7 @@ import ( errorsmod "cosmossdk.io/errors" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/x/claim/types" ) type msgServer struct { diff --git a/x/claim/keeper/params.go b/x/claim/keeper/params.go index 1862ef09cb..cdbab56948 100644 --- a/x/claim/keeper/params.go +++ b/x/claim/keeper/params.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/x/claim/types" ) // GetParams get params diff --git a/x/claim/keeper/query.go b/x/claim/keeper/query.go index cf37c0cf73..1cc9985d16 100644 --- a/x/claim/keeper/query.go +++ b/x/claim/keeper/query.go @@ -7,7 +7,7 @@ import ( errorsmod "cosmossdk.io/errors" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/x/claim/types" + "github.com/Stride-Labs/stride/v7/x/claim/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/claim/types/expected_keepers.go b/x/claim/types/expected_keepers.go index a0f8cef398..dd059f6a66 100644 --- a/x/claim/types/expected_keepers.go +++ b/x/claim/types/expected_keepers.go @@ -4,7 +4,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - epochstypes "github.com/Stride-Labs/stride/v6/x/epochs/types" + epochstypes "github.com/Stride-Labs/stride/v7/x/epochs/types" ) // BankKeeper defines the banking contract that must be fulfilled when diff --git a/x/claim/types/msgs.go b/x/claim/types/msgs.go index 100eeefc19..e5a3ebca2d 100644 --- a/x/claim/types/msgs.go +++ b/x/claim/types/msgs.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/utils" + "github.com/Stride-Labs/stride/v7/utils" ) // Msg type for MsgSetAirdropAllocations diff --git a/x/claim/vesting/client/cli/tx.go b/x/claim/vesting/client/cli/tx.go index d854efc292..c9f79cb8d9 100644 --- a/x/claim/vesting/client/cli/tx.go +++ b/x/claim/vesting/client/cli/tx.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" - "github.com/Stride-Labs/stride/v6/x/claim/vesting/types" + "github.com/Stride-Labs/stride/v7/x/claim/vesting/types" ) // GetTxCmd returns stride vesting module's transaction commands. diff --git a/x/claim/vesting/client/testutil/suite.go b/x/claim/vesting/client/testutil/suite.go index df0c48e2de..f613b779b1 100644 --- a/x/claim/vesting/client/testutil/suite.go +++ b/x/claim/vesting/client/testutil/suite.go @@ -3,7 +3,7 @@ package testutil import ( "github.com/stretchr/testify/suite" - "github.com/Stride-Labs/stride/v6/testutil/network" + "github.com/Stride-Labs/stride/v7/testutil/network" ) type IntegrationTestSuite struct { diff --git a/x/claim/vesting/handler.go b/x/claim/vesting/handler.go index 6292acb2f0..7a9968cf87 100644 --- a/x/claim/vesting/handler.go +++ b/x/claim/vesting/handler.go @@ -6,7 +6,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/x/auth/keeper" - "github.com/Stride-Labs/stride/v6/x/claim/vesting/types" + "github.com/Stride-Labs/stride/v7/x/claim/vesting/types" ) // NewHandler returns a handler for x/auth message types. diff --git a/x/claim/vesting/msg_server.go b/x/claim/vesting/msg_server.go index 0018b83b3d..eb8ca25671 100644 --- a/x/claim/vesting/msg_server.go +++ b/x/claim/vesting/msg_server.go @@ -3,7 +3,7 @@ package vesting import ( "github.com/cosmos/cosmos-sdk/x/auth/keeper" - "github.com/Stride-Labs/stride/v6/x/claim/vesting/types" + "github.com/Stride-Labs/stride/v7/x/claim/vesting/types" ) type msgServer struct { diff --git a/x/claim/vesting/types/codec.go b/x/claim/vesting/types/codec.go index f29b0d42fd..2ff1cb4ca5 100644 --- a/x/claim/vesting/types/codec.go +++ b/x/claim/vesting/types/codec.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/msgservice" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/Stride-Labs/stride/v6/x/claim/vesting/exported" + "github.com/Stride-Labs/stride/v7/x/claim/vesting/exported" ) // RegisterLegacyAminoCodec registers the vesting interfaces and concrete types on the diff --git a/x/claim/vesting/types/common_test.go b/x/claim/vesting/types/common_test.go index ee89b393a8..c7671e382b 100644 --- a/x/claim/vesting/types/common_test.go +++ b/x/claim/vesting/types/common_test.go @@ -1,7 +1,7 @@ package types_test import ( - strideApp "github.com/Stride-Labs/stride/v6/app" + strideApp "github.com/Stride-Labs/stride/v7/app" ) var ( diff --git a/x/claim/vesting/types/vesting_account_test.go b/x/claim/vesting/types/vesting_account_test.go index dae6f82c48..e564b1bd14 100644 --- a/x/claim/vesting/types/vesting_account_test.go +++ b/x/claim/vesting/types/vesting_account_test.go @@ -11,7 +11,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/Stride-Labs/stride/v6/x/claim/vesting/types" + "github.com/Stride-Labs/stride/v7/x/claim/vesting/types" ) var ( diff --git a/x/epochs/client/cli/query.go b/x/epochs/client/cli/query.go index 0a42b61cee..a06fea1b8d 100644 --- a/x/epochs/client/cli/query.go +++ b/x/epochs/client/cli/query.go @@ -12,7 +12,7 @@ import ( "github.com/spf13/cast" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/epochs/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/epochs/keeper/epoch.go b/x/epochs/keeper/epoch.go index 1d05991b25..0ec509382c 100644 --- a/x/epochs/keeper/epoch.go +++ b/x/epochs/keeper/epoch.go @@ -4,7 +4,7 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/epochs/types" ) // GetEpochInfo returns epoch info by identifier diff --git a/x/epochs/keeper/epoch_test.go b/x/epochs/keeper/epoch_test.go index 5b96f267d7..7b5425b5c9 100644 --- a/x/epochs/keeper/epoch_test.go +++ b/x/epochs/keeper/epoch_test.go @@ -5,7 +5,7 @@ import ( _ "github.com/stretchr/testify/suite" - "github.com/Stride-Labs/stride/v6/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/epochs/types" ) func (suite *KeeperTestSuite) TestEpochLifeCycle() { diff --git a/x/epochs/keeper/grpc_query.go b/x/epochs/keeper/grpc_query.go index 9c50552923..2a32c60d5b 100644 --- a/x/epochs/keeper/grpc_query.go +++ b/x/epochs/keeper/grpc_query.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/epochs/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/epochs/keeper/grpc_query_test.go b/x/epochs/keeper/grpc_query_test.go index 17096246e4..c68ae1d946 100644 --- a/x/epochs/keeper/grpc_query_test.go +++ b/x/epochs/keeper/grpc_query_test.go @@ -6,7 +6,7 @@ import ( _ "github.com/stretchr/testify/suite" - "github.com/Stride-Labs/stride/v6/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/epochs/types" ) func (suite *KeeperTestSuite) TestQueryEpochInfos() { diff --git a/x/epochs/keeper/hooks.go b/x/epochs/keeper/hooks.go index 110ab64b41..82431ade69 100644 --- a/x/epochs/keeper/hooks.go +++ b/x/epochs/keeper/hooks.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/epochs/types" ) // AfterEpochEnd executes the indicated hook after epochs ends diff --git a/x/epochs/keeper/keeper.go b/x/epochs/keeper/keeper.go index 0d85d5508f..de8cc11fd7 100644 --- a/x/epochs/keeper/keeper.go +++ b/x/epochs/keeper/keeper.go @@ -8,7 +8,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/tendermint/tendermint/libs/log" - "github.com/Stride-Labs/stride/v6/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/epochs/types" ) // Keeper of this module maintains collections of epochs and hooks. diff --git a/x/epochs/simulation/genesis.go b/x/epochs/simulation/genesis.go index 0658eb9566..4fb988f033 100644 --- a/x/epochs/simulation/genesis.go +++ b/x/epochs/simulation/genesis.go @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" - "github.com/Stride-Labs/stride/v6/x/epochs/types" + "github.com/Stride-Labs/stride/v7/x/epochs/types" ) // RandomizedGenState generates a random GenesisState for mint diff --git a/x/icacallbacks/client/cli/query.go b/x/icacallbacks/client/cli/query.go index b6bdc2ecac..40fc51e8b6 100644 --- a/x/icacallbacks/client/cli/query.go +++ b/x/icacallbacks/client/cli/query.go @@ -10,7 +10,7 @@ import ( // "github.com/cosmos/cosmos-sdk/client/flags" // sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/icacallbacks/client/cli/query_callback_data.go b/x/icacallbacks/client/cli/query_callback_data.go index a34b1d4ec4..63020c18a2 100644 --- a/x/icacallbacks/client/cli/query_callback_data.go +++ b/x/icacallbacks/client/cli/query_callback_data.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) func CmdListCallbackData() *cobra.Command { diff --git a/x/icacallbacks/client/cli/query_params.go b/x/icacallbacks/client/cli/query_params.go index 29b31800db..b310eb7a8e 100644 --- a/x/icacallbacks/client/cli/query_params.go +++ b/x/icacallbacks/client/cli/query_params.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) func CmdQueryParams() *cobra.Command { diff --git a/x/icacallbacks/client/cli/tx.go b/x/icacallbacks/client/cli/tx.go index ca04ec0609..da7e2e033a 100644 --- a/x/icacallbacks/client/cli/tx.go +++ b/x/icacallbacks/client/cli/tx.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" // "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) // GetTxCmd returns the transaction commands for this module diff --git a/x/icacallbacks/icacallbacks.go b/x/icacallbacks/icacallbacks.go index 235fd27d11..2dd235cdbe 100644 --- a/x/icacallbacks/icacallbacks.go +++ b/x/icacallbacks/icacallbacks.go @@ -11,7 +11,7 @@ import ( "github.com/gogo/protobuf/proto" "github.com/tendermint/tendermint/libs/log" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) // Parses ICA tx responses and returns a list of each serialized response diff --git a/x/icacallbacks/keeper/callback_data.go b/x/icacallbacks/keeper/callback_data.go index 35b11c6124..acd1e2ccd3 100644 --- a/x/icacallbacks/keeper/callback_data.go +++ b/x/icacallbacks/keeper/callback_data.go @@ -4,7 +4,7 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) // SetCallbackData set a specific callbackData in the store from its index diff --git a/x/icacallbacks/keeper/grpc_query.go b/x/icacallbacks/keeper/grpc_query.go index 0fd95dc62b..84de02926d 100644 --- a/x/icacallbacks/keeper/grpc_query.go +++ b/x/icacallbacks/keeper/grpc_query.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/icacallbacks/keeper/grpc_query_callback_data.go b/x/icacallbacks/keeper/grpc_query_callback_data.go index 4757ed5b5d..d1aeaade26 100644 --- a/x/icacallbacks/keeper/grpc_query_callback_data.go +++ b/x/icacallbacks/keeper/grpc_query_callback_data.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) func (k Keeper) CallbackDataAll(c context.Context, req *types.QueryAllCallbackDataRequest) (*types.QueryAllCallbackDataResponse, error) { diff --git a/x/icacallbacks/keeper/grpc_query_params.go b/x/icacallbacks/keeper/grpc_query_params.go index 6ee7e914f7..735fdc15ff 100644 --- a/x/icacallbacks/keeper/grpc_query_params.go +++ b/x/icacallbacks/keeper/grpc_query_params.go @@ -7,7 +7,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { diff --git a/x/icacallbacks/keeper/msg_server.go b/x/icacallbacks/keeper/msg_server.go index 1ae7779289..0ad6bfd1f9 100644 --- a/x/icacallbacks/keeper/msg_server.go +++ b/x/icacallbacks/keeper/msg_server.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) type msgServer struct { diff --git a/x/icacallbacks/keeper/params.go b/x/icacallbacks/keeper/params.go index 0d30672280..499a118c3a 100644 --- a/x/icacallbacks/keeper/params.go +++ b/x/icacallbacks/keeper/params.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) // GetParams get all parameters as types.Params diff --git a/x/icacallbacks/migrations/v2/migrations.go b/x/icacallbacks/migrations/v2/migrations.go index fc85b0e3ee..13a1d05ecf 100644 --- a/x/icacallbacks/migrations/v2/migrations.go +++ b/x/icacallbacks/migrations/v2/migrations.go @@ -8,7 +8,7 @@ import ( errorsmod "cosmossdk.io/errors" - icacallbacktypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) func migrateCallbacks(store sdk.KVStore, cdc codec.BinaryCodec) error { diff --git a/x/icacallbacks/types/genesis_test.go b/x/icacallbacks/types/genesis_test.go index 3abad9a549..67e88e0cf8 100644 --- a/x/icacallbacks/types/genesis_test.go +++ b/x/icacallbacks/types/genesis_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" ) func TestGenesisState_Validate(t *testing.T) { diff --git a/x/interchainquery/client/cli/query.go b/x/interchainquery/client/cli/query.go index d1755505b1..8210f025b5 100644 --- a/x/interchainquery/client/cli/query.go +++ b/x/interchainquery/client/cli/query.go @@ -12,7 +12,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/version" - "github.com/Stride-Labs/stride/v6/x/interchainquery/types" + "github.com/Stride-Labs/stride/v7/x/interchainquery/types" ) // GetQueryCmd returns the cli query commands for this module. diff --git a/x/interchainquery/keeper/abci.go b/x/interchainquery/keeper/abci.go index 2d7db8c841..5f20615366 100644 --- a/x/interchainquery/keeper/abci.go +++ b/x/interchainquery/keeper/abci.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/interchainquery/types" + "github.com/Stride-Labs/stride/v7/x/interchainquery/types" ) // EndBlocker of interchainquery module diff --git a/x/interchainquery/keeper/grpc_query.go b/x/interchainquery/keeper/grpc_query.go index c91b3bf2ce..5b25d2e4c2 100644 --- a/x/interchainquery/keeper/grpc_query.go +++ b/x/interchainquery/keeper/grpc_query.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/interchainquery/types" + "github.com/Stride-Labs/stride/v7/x/interchainquery/types" ) var _ types.QueryServiceServer = Keeper{} diff --git a/x/interchainquery/keeper/msg_submit_query_response_test.go b/x/interchainquery/keeper/msg_submit_query_response_test.go index d7d990dd39..67c5fcd59b 100644 --- a/x/interchainquery/keeper/msg_submit_query_response_test.go +++ b/x/interchainquery/keeper/msg_submit_query_response_test.go @@ -10,7 +10,7 @@ import ( _ "github.com/stretchr/testify/suite" "github.com/tendermint/tendermint/proto/tendermint/crypto" - "github.com/Stride-Labs/stride/v6/x/interchainquery/types" + "github.com/Stride-Labs/stride/v7/x/interchainquery/types" ) const ( diff --git a/x/interchainquery/keeper/new_query_test.go b/x/interchainquery/keeper/new_query_test.go index 38c8659fb7..2751c8c6ef 100644 --- a/x/interchainquery/keeper/new_query_test.go +++ b/x/interchainquery/keeper/new_query_test.go @@ -1,7 +1,7 @@ package keeper_test import ( - icqtypes "github.com/Stride-Labs/stride/v6/x/interchainquery/types" + icqtypes "github.com/Stride-Labs/stride/v7/x/interchainquery/types" _ "github.com/stretchr/testify/suite" ) diff --git a/x/interchainquery/keeper/queries.go b/x/interchainquery/keeper/queries.go index ceaebeba45..371d1287e3 100644 --- a/x/interchainquery/keeper/queries.go +++ b/x/interchainquery/keeper/queries.go @@ -7,7 +7,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/tendermint/tendermint/crypto" - "github.com/Stride-Labs/stride/v6/x/interchainquery/types" + "github.com/Stride-Labs/stride/v7/x/interchainquery/types" ) func GenerateQueryHash(connectionId string, chainId string, queryType string, request []byte, module string, callbackId string) string { diff --git a/x/mint/client/cli/query.go b/x/mint/client/cli/query.go index cc016f4141..15614ecc64 100644 --- a/x/mint/client/cli/query.go +++ b/x/mint/client/cli/query.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/mint/types" + "github.com/Stride-Labs/stride/v7/x/mint/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" diff --git a/x/mint/keeper/grpc_query.go b/x/mint/keeper/grpc_query.go index b2e2219ca2..ff0b0768ca 100644 --- a/x/mint/keeper/grpc_query.go +++ b/x/mint/keeper/grpc_query.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/mint/types" + "github.com/Stride-Labs/stride/v7/x/mint/types" ) var _ types.QueryServer = Querier{} diff --git a/x/mint/keeper/keeper.go b/x/mint/keeper/keeper.go index 76a0c0183e..1bc53ecea0 100644 --- a/x/mint/keeper/keeper.go +++ b/x/mint/keeper/keeper.go @@ -10,7 +10,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/Stride-Labs/stride/v6/x/mint/types" + "github.com/Stride-Labs/stride/v7/x/mint/types" "github.com/cosmos/cosmos-sdk/codec" storetypes "github.com/cosmos/cosmos-sdk/store/types" diff --git a/x/mint/types/expected_keepers.go b/x/mint/types/expected_keepers.go index e121007784..3e254a7f63 100644 --- a/x/mint/types/expected_keepers.go +++ b/x/mint/types/expected_keepers.go @@ -1,7 +1,7 @@ package types // noalias import ( - epochstypes "github.com/Stride-Labs/stride/v6/x/epochs/types" + epochstypes "github.com/Stride-Labs/stride/v7/x/epochs/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/mint/types/params.go b/x/mint/types/params.go index 032b928304..0a9612fa7d 100644 --- a/x/mint/types/params.go +++ b/x/mint/types/params.go @@ -7,7 +7,7 @@ import ( yaml "gopkg.in/yaml.v2" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" sdk "github.com/cosmos/cosmos-sdk/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" diff --git a/x/ratelimit/client/cli/query.go b/x/ratelimit/client/cli/query.go index 8b8d28753f..0226506f95 100644 --- a/x/ratelimit/client/cli/query.go +++ b/x/ratelimit/client/cli/query.go @@ -11,7 +11,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/version" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) const ( diff --git a/x/ratelimit/client/cli/tx.go b/x/ratelimit/client/cli/tx.go index d773045515..7e0e006de7 100644 --- a/x/ratelimit/client/cli/tx.go +++ b/x/ratelimit/client/cli/tx.go @@ -19,7 +19,7 @@ import ( govcli "github.com/cosmos/cosmos-sdk/x/gov/client/cli" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) // Parse the gov proposal file into a proto message diff --git a/x/ratelimit/client/proposal_handler.go b/x/ratelimit/client/proposal_handler.go index c1f0130584..6dfb100b4d 100644 --- a/x/ratelimit/client/proposal_handler.go +++ b/x/ratelimit/client/proposal_handler.go @@ -1,7 +1,7 @@ package client import ( - "github.com/Stride-Labs/stride/v6/x/ratelimit/client/cli" + "github.com/Stride-Labs/stride/v7/x/ratelimit/client/cli" govclient "github.com/cosmos/cosmos-sdk/x/gov/client" ) diff --git a/x/ratelimit/ibc_middleware.go b/x/ratelimit/ibc_middleware.go index 568e0779d6..0e751b1729 100644 --- a/x/ratelimit/ibc_middleware.go +++ b/x/ratelimit/ibc_middleware.go @@ -3,7 +3,7 @@ package ratelimit import ( "fmt" - "github.com/Stride-Labs/stride/v6/x/ratelimit/keeper" + "github.com/Stride-Labs/stride/v7/x/ratelimit/keeper" sdk "github.com/cosmos/cosmos-sdk/types" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" diff --git a/x/ratelimit/keeper/grpc_query.go b/x/ratelimit/keeper/grpc_query.go index b4ab67d150..fd49756c4f 100644 --- a/x/ratelimit/keeper/grpc_query.go +++ b/x/ratelimit/keeper/grpc_query.go @@ -9,7 +9,7 @@ import ( transfertypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types" ibctmtypes "github.com/cosmos/ibc-go/v5/modules/light-clients/07-tendermint/types" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/ratelimit/keeper/grpc_query_test.go b/x/ratelimit/keeper/grpc_query_test.go index bd7b105c6d..6b79474380 100644 --- a/x/ratelimit/keeper/grpc_query_test.go +++ b/x/ratelimit/keeper/grpc_query_test.go @@ -11,7 +11,7 @@ import ( channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" ibctmtypes "github.com/cosmos/ibc-go/v5/modules/light-clients/07-tendermint/types" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) // Add three rate limits on different channels diff --git a/x/ratelimit/keeper/hooks.go b/x/ratelimit/keeper/hooks.go index 287639677e..8be0d1ecae 100644 --- a/x/ratelimit/keeper/hooks.go +++ b/x/ratelimit/keeper/hooks.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - epochstypes "github.com/Stride-Labs/stride/v6/x/epochs/types" + epochstypes "github.com/Stride-Labs/stride/v7/x/epochs/types" ) // Before each hour epoch, check if any of the rate limits have expired, diff --git a/x/ratelimit/keeper/keeper.go b/x/ratelimit/keeper/keeper.go index 7ac1f388b8..aa4b816e82 100644 --- a/x/ratelimit/keeper/keeper.go +++ b/x/ratelimit/keeper/keeper.go @@ -10,7 +10,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) type ( diff --git a/x/ratelimit/keeper/packet.go b/x/ratelimit/keeper/packet.go index 34f3b1ff4f..4bf16ada17 100644 --- a/x/ratelimit/keeper/packet.go +++ b/x/ratelimit/keeper/packet.go @@ -12,7 +12,7 @@ import ( channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" ibcexported "github.com/cosmos/ibc-go/v5/modules/core/exported" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) // Parse the denom from the Send Packet that will be used by the rate limit module diff --git a/x/ratelimit/keeper/params.go b/x/ratelimit/keeper/params.go index 51f091f06a..30941f072b 100644 --- a/x/ratelimit/keeper/params.go +++ b/x/ratelimit/keeper/params.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) // GetParams get all parameters as types.Params diff --git a/x/ratelimit/keeper/rate_limit.go b/x/ratelimit/keeper/rate_limit.go index 212def42dc..d288704616 100644 --- a/x/ratelimit/keeper/rate_limit.go +++ b/x/ratelimit/keeper/rate_limit.go @@ -10,7 +10,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) // Get the rate limit byte key built from the denom and channelId diff --git a/x/ratelimit/types/flow_test.go b/x/ratelimit/types/flow_test.go index c57d4aa4a6..51ff86989c 100644 --- a/x/ratelimit/types/flow_test.go +++ b/x/ratelimit/types/flow_test.go @@ -6,7 +6,7 @@ import ( sdkmath "cosmossdk.io/math" "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) func TestAddInflow(t *testing.T) { diff --git a/x/ratelimit/types/quota_test.go b/x/ratelimit/types/quota_test.go index af1941a0ce..a7ac9dee82 100644 --- a/x/ratelimit/types/quota_test.go +++ b/x/ratelimit/types/quota_test.go @@ -6,7 +6,7 @@ import ( sdkmath "cosmossdk.io/math" "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/x/ratelimit/types" + "github.com/Stride-Labs/stride/v7/x/ratelimit/types" ) func TestCheckExceedsQuota(t *testing.T) { diff --git a/x/records/client/cli/query.go b/x/records/client/cli/query.go index 918a5a198d..a4a101364b 100644 --- a/x/records/client/cli/query.go +++ b/x/records/client/cli/query.go @@ -10,7 +10,7 @@ import ( // "github.com/cosmos/cosmos-sdk/client/flags" // sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/records/client/cli/query_deposit_record.go b/x/records/client/cli/query_deposit_record.go index bea6bbc082..9e533bf487 100644 --- a/x/records/client/cli/query_deposit_record.go +++ b/x/records/client/cli/query_deposit_record.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func CmdListDepositRecord() *cobra.Command { diff --git a/x/records/client/cli/query_epoch_unbonding_record.go b/x/records/client/cli/query_epoch_unbonding_record.go index e4f65ef5f2..f6788d2511 100644 --- a/x/records/client/cli/query_epoch_unbonding_record.go +++ b/x/records/client/cli/query_epoch_unbonding_record.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func CmdListEpochUnbondingRecord() *cobra.Command { diff --git a/x/records/client/cli/query_params.go b/x/records/client/cli/query_params.go index 3a01efd319..bf6ed3bf7b 100644 --- a/x/records/client/cli/query_params.go +++ b/x/records/client/cli/query_params.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func CmdQueryParams() *cobra.Command { diff --git a/x/records/client/cli/query_user_redemption_record.go b/x/records/client/cli/query_user_redemption_record.go index cafec0cb1c..022e89163a 100644 --- a/x/records/client/cli/query_user_redemption_record.go +++ b/x/records/client/cli/query_user_redemption_record.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func CmdListUserRedemptionRecord() *cobra.Command { diff --git a/x/records/client/cli/tx.go b/x/records/client/cli/tx.go index 36e5dd5408..435a427784 100644 --- a/x/records/client/cli/tx.go +++ b/x/records/client/cli/tx.go @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" // "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) var DefaultRelativePacketTimeoutTimestamp = cast.ToUint64((time.Duration(10) * time.Minute).Nanoseconds()) diff --git a/x/records/keeper/callbacks.go b/x/records/keeper/callbacks.go index 259fb4d269..af722b427b 100644 --- a/x/records/keeper/callbacks.go +++ b/x/records/keeper/callbacks.go @@ -1,7 +1,7 @@ package keeper import ( - icacallbackstypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + icacallbackstypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" sdk "github.com/cosmos/cosmos-sdk/types" channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" diff --git a/x/records/keeper/deposit_record.go b/x/records/keeper/deposit_record.go index 191600b5ce..c1d67a90bb 100644 --- a/x/records/keeper/deposit_record.go +++ b/x/records/keeper/deposit_record.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) // GetDepositRecordCount get the total number of depositRecord diff --git a/x/records/keeper/grpc_query.go b/x/records/keeper/grpc_query.go index ad7d327787..53465599f6 100644 --- a/x/records/keeper/grpc_query.go +++ b/x/records/keeper/grpc_query.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/records/keeper/grpc_query_deposit_record.go b/x/records/keeper/grpc_query_deposit_record.go index c54f65d72c..f31908b75e 100644 --- a/x/records/keeper/grpc_query_deposit_record.go +++ b/x/records/keeper/grpc_query_deposit_record.go @@ -11,7 +11,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func (k Keeper) DepositRecordAll(c context.Context, req *types.QueryAllDepositRecordRequest) (*types.QueryAllDepositRecordResponse, error) { diff --git a/x/records/keeper/grpc_query_epoch_unbonding_record.go b/x/records/keeper/grpc_query_epoch_unbonding_record.go index 9229519bd4..4019298284 100644 --- a/x/records/keeper/grpc_query_epoch_unbonding_record.go +++ b/x/records/keeper/grpc_query_epoch_unbonding_record.go @@ -11,7 +11,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func (k Keeper) EpochUnbondingRecordAll(c context.Context, req *types.QueryAllEpochUnbondingRecordRequest) (*types.QueryAllEpochUnbondingRecordResponse, error) { diff --git a/x/records/keeper/grpc_query_params.go b/x/records/keeper/grpc_query_params.go index 3f0029ce1b..bbbf513ad1 100644 --- a/x/records/keeper/grpc_query_params.go +++ b/x/records/keeper/grpc_query_params.go @@ -7,7 +7,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { diff --git a/x/records/keeper/grpc_query_user_redemption_record.go b/x/records/keeper/grpc_query_user_redemption_record.go index 7000c1732a..39e538b0b2 100644 --- a/x/records/keeper/grpc_query_user_redemption_record.go +++ b/x/records/keeper/grpc_query_user_redemption_record.go @@ -11,7 +11,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func (k Keeper) UserRedemptionRecordAll(c context.Context, req *types.QueryAllUserRedemptionRecordRequest) (*types.QueryAllUserRedemptionRecordResponse, error) { diff --git a/x/records/keeper/grpc_query_user_redemption_record_for_user.go b/x/records/keeper/grpc_query_user_redemption_record_for_user.go index ddb897aa9d..24412e57b6 100644 --- a/x/records/keeper/grpc_query_user_redemption_record_for_user.go +++ b/x/records/keeper/grpc_query_user_redemption_record_for_user.go @@ -9,7 +9,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func (k Keeper) UserRedemptionRecordForUser(c context.Context, req *types.QueryAllUserRedemptionRecordForUserRequest) (*types.QueryAllUserRedemptionRecordForUserResponse, error) { diff --git a/x/records/keeper/msg_server.go b/x/records/keeper/msg_server.go index 196ba4a3b7..3dbf2109ee 100644 --- a/x/records/keeper/msg_server.go +++ b/x/records/keeper/msg_server.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) type msgServer struct { diff --git a/x/records/keeper/params.go b/x/records/keeper/params.go index 84b336732b..cb923f129c 100644 --- a/x/records/keeper/params.go +++ b/x/records/keeper/params.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) // GetParams get all parameters as types.Params diff --git a/x/records/keeper/user_redemption_record.go b/x/records/keeper/user_redemption_record.go index 3dc642faa4..e331d1338c 100644 --- a/x/records/keeper/user_redemption_record.go +++ b/x/records/keeper/user_redemption_record.go @@ -4,7 +4,7 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) // SetUserRedemptionRecord set a specific userRedemptionRecord in the store diff --git a/x/records/types/genesis_test.go b/x/records/types/genesis_test.go index 2d0479e530..4ff479196c 100644 --- a/x/records/types/genesis_test.go +++ b/x/records/types/genesis_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/x/records/types" + "github.com/Stride-Labs/stride/v7/x/records/types" ) func TestGenesisState_Validate(t *testing.T) { diff --git a/x/stakeibc/client/cli/query.go b/x/stakeibc/client/cli/query.go index 2ef058a131..5bd58f1fb2 100644 --- a/x/stakeibc/client/cli/query.go +++ b/x/stakeibc/client/cli/query.go @@ -10,7 +10,7 @@ import ( // "github.com/cosmos/cosmos-sdk/client/flags" // sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/stakeibc/client/cli/query_epoch_tracker.go b/x/stakeibc/client/cli/query_epoch_tracker.go index 96ed1b9012..ebafebab38 100644 --- a/x/stakeibc/client/cli/query_epoch_tracker.go +++ b/x/stakeibc/client/cli/query_epoch_tracker.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func CmdListEpochTracker() *cobra.Command { diff --git a/x/stakeibc/client/cli/query_host_zone.go b/x/stakeibc/client/cli/query_host_zone.go index 7b22e8893e..538a4eb839 100644 --- a/x/stakeibc/client/cli/query_host_zone.go +++ b/x/stakeibc/client/cli/query_host_zone.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func CmdListHostZone() *cobra.Command { diff --git a/x/stakeibc/client/cli/query_module_address.go b/x/stakeibc/client/cli/query_module_address.go index 76be639ddb..42ae14c5e3 100644 --- a/x/stakeibc/client/cli/query_module_address.go +++ b/x/stakeibc/client/cli/query_module_address.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) var _ = strconv.Itoa(0) diff --git a/x/stakeibc/client/cli/query_next_packet_sequence.go b/x/stakeibc/client/cli/query_next_packet_sequence.go index e842938931..3055813f8d 100644 --- a/x/stakeibc/client/cli/query_next_packet_sequence.go +++ b/x/stakeibc/client/cli/query_next_packet_sequence.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func CmdNextPacketSequence() *cobra.Command { diff --git a/x/stakeibc/client/cli/query_params.go b/x/stakeibc/client/cli/query_params.go index 8aee49da03..d35550e253 100644 --- a/x/stakeibc/client/cli/query_params.go +++ b/x/stakeibc/client/cli/query_params.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func CmdQueryParams() *cobra.Command { diff --git a/x/stakeibc/client/cli/query_register_ica.go b/x/stakeibc/client/cli/query_register_ica.go index 05b0f9063a..370a245ebf 100644 --- a/x/stakeibc/client/cli/query_register_ica.go +++ b/x/stakeibc/client/cli/query_register_ica.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func CmdShowInterchainAccount() *cobra.Command { diff --git a/x/stakeibc/client/cli/query_validator.go b/x/stakeibc/client/cli/query_validator.go index 9def20b4f8..6fe2ee3ef3 100644 --- a/x/stakeibc/client/cli/query_validator.go +++ b/x/stakeibc/client/cli/query_validator.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func CmdShowValidators() *cobra.Command { diff --git a/x/stakeibc/client/cli/tx.go b/x/stakeibc/client/cli/tx.go index b1d5f036a9..73529027f0 100644 --- a/x/stakeibc/client/cli/tx.go +++ b/x/stakeibc/client/cli/tx.go @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) var DefaultRelativePacketTimeoutTimestamp = cast.ToUint64((time.Duration(10) * time.Minute).Nanoseconds()) diff --git a/x/stakeibc/client/cli/tx_add_validator.go b/x/stakeibc/client/cli/tx_add_validator.go index 69c56a99e9..9141714f84 100644 --- a/x/stakeibc/client/cli/tx_add_validator.go +++ b/x/stakeibc/client/cli/tx_add_validator.go @@ -7,7 +7,7 @@ import ( "github.com/spf13/cast" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func CmdAddValidator() *cobra.Command { diff --git a/x/stakeibc/client/cli/tx_add_validator_proposal.go b/x/stakeibc/client/cli/tx_add_validator_proposal.go index 3d5789c07d..72d4390913 100644 --- a/x/stakeibc/client/cli/tx_add_validator_proposal.go +++ b/x/stakeibc/client/cli/tx_add_validator_proposal.go @@ -18,7 +18,7 @@ import ( govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func parseAddValidatorProposalFile(cdc codec.JSONCodec, proposalFile string) (types.AddValidatorProposal, error) { diff --git a/x/stakeibc/client/cli/tx_change_validator_weight.go b/x/stakeibc/client/cli/tx_change_validator_weight.go index 3c67994629..23e9231d0f 100644 --- a/x/stakeibc/client/cli/tx_change_validator_weight.go +++ b/x/stakeibc/client/cli/tx_change_validator_weight.go @@ -9,7 +9,7 @@ import ( "github.com/spf13/cast" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) var _ = strconv.Itoa(0) diff --git a/x/stakeibc/client/cli/tx_claim_undelegated_tokens.go b/x/stakeibc/client/cli/tx_claim_undelegated_tokens.go index e223bec2fd..8f56199da1 100644 --- a/x/stakeibc/client/cli/tx_claim_undelegated_tokens.go +++ b/x/stakeibc/client/cli/tx_claim_undelegated_tokens.go @@ -9,7 +9,7 @@ import ( "github.com/spf13/cast" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) var _ = strconv.Itoa(0) diff --git a/x/stakeibc/client/cli/tx_clear_balance.go b/x/stakeibc/client/cli/tx_clear_balance.go index 2113f2584a..0b2ea71bb1 100644 --- a/x/stakeibc/client/cli/tx_clear_balance.go +++ b/x/stakeibc/client/cli/tx_clear_balance.go @@ -12,7 +12,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) var _ = strconv.Itoa(0) diff --git a/x/stakeibc/client/cli/tx_delete_validator.go b/x/stakeibc/client/cli/tx_delete_validator.go index 6c14b7bd20..2c1b5eb8ce 100644 --- a/x/stakeibc/client/cli/tx_delete_validator.go +++ b/x/stakeibc/client/cli/tx_delete_validator.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/tx" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func CmdDeleteValidator() *cobra.Command { diff --git a/x/stakeibc/client/cli/tx_liquid_stake.go b/x/stakeibc/client/cli/tx_liquid_stake.go index d5cbdf129a..acbeddcf7b 100644 --- a/x/stakeibc/client/cli/tx_liquid_stake.go +++ b/x/stakeibc/client/cli/tx_liquid_stake.go @@ -12,7 +12,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) var _ = strconv.Itoa(0) diff --git a/x/stakeibc/client/cli/tx_rebalance_validators.go b/x/stakeibc/client/cli/tx_rebalance_validators.go index 6718b3af7a..6fdfb7f9fe 100644 --- a/x/stakeibc/client/cli/tx_rebalance_validators.go +++ b/x/stakeibc/client/cli/tx_rebalance_validators.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/tx" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) var _ = strconv.Itoa(0) diff --git a/x/stakeibc/client/cli/tx_redeem_stake.go b/x/stakeibc/client/cli/tx_redeem_stake.go index 9b627c08f9..1dd88c210f 100644 --- a/x/stakeibc/client/cli/tx_redeem_stake.go +++ b/x/stakeibc/client/cli/tx_redeem_stake.go @@ -12,7 +12,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) var _ = strconv.Itoa(0) diff --git a/x/stakeibc/client/cli/tx_register_host_zone.go b/x/stakeibc/client/cli/tx_register_host_zone.go index 3a44e06a6a..cfb8ced5ef 100644 --- a/x/stakeibc/client/cli/tx_register_host_zone.go +++ b/x/stakeibc/client/cli/tx_register_host_zone.go @@ -9,7 +9,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) const ( diff --git a/x/stakeibc/client/cli/tx_restore_interchain_account.go b/x/stakeibc/client/cli/tx_restore_interchain_account.go index 6327b8ed74..33c30e3c40 100644 --- a/x/stakeibc/client/cli/tx_restore_interchain_account.go +++ b/x/stakeibc/client/cli/tx_restore_interchain_account.go @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/tx" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) var _ = strconv.Itoa(0) diff --git a/x/stakeibc/client/cli/tx_update_delegation.go b/x/stakeibc/client/cli/tx_update_delegation.go index 77c8982e7e..b276cf7896 100644 --- a/x/stakeibc/client/cli/tx_update_delegation.go +++ b/x/stakeibc/client/cli/tx_update_delegation.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/tx" "github.com/spf13/cobra" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) var _ = strconv.Itoa(0) diff --git a/x/stakeibc/client/proposal_handler.go b/x/stakeibc/client/proposal_handler.go index d647d1e0b6..33b754638b 100644 --- a/x/stakeibc/client/proposal_handler.go +++ b/x/stakeibc/client/proposal_handler.go @@ -1,7 +1,7 @@ package client import ( - "github.com/Stride-Labs/stride/v6/x/stakeibc/client/cli" + "github.com/Stride-Labs/stride/v7/x/stakeibc/client/cli" govclient "github.com/cosmos/cosmos-sdk/x/gov/client" ) diff --git a/x/stakeibc/keeper/epoch_tracker.go b/x/stakeibc/keeper/epoch_tracker.go index dc61fbeef5..5208a43364 100644 --- a/x/stakeibc/keeper/epoch_tracker.go +++ b/x/stakeibc/keeper/epoch_tracker.go @@ -4,7 +4,7 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // SetEpochTracker set a specific epochTracker in the store from its index diff --git a/x/stakeibc/keeper/gov.go b/x/stakeibc/keeper/gov.go index c08e5c9fe0..2fc30ee4b5 100644 --- a/x/stakeibc/keeper/gov.go +++ b/x/stakeibc/keeper/gov.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (k Keeper) AddValidatorProposal(ctx sdk.Context, msg *types.AddValidatorProposal) error { diff --git a/x/stakeibc/keeper/grpc_query.go b/x/stakeibc/keeper/grpc_query.go index 9eed304633..c698c36fd2 100644 --- a/x/stakeibc/keeper/grpc_query.go +++ b/x/stakeibc/keeper/grpc_query.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/stakeibc/keeper/grpc_query_epoch_tracker.go b/x/stakeibc/keeper/grpc_query_epoch_tracker.go index 523e673d80..6910d263e1 100644 --- a/x/stakeibc/keeper/grpc_query_epoch_tracker.go +++ b/x/stakeibc/keeper/grpc_query_epoch_tracker.go @@ -7,7 +7,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (k Keeper) EpochTrackerAll(c context.Context, req *types.QueryAllEpochTrackerRequest) (*types.QueryAllEpochTrackerResponse, error) { diff --git a/x/stakeibc/keeper/grpc_query_host_zone.go b/x/stakeibc/keeper/grpc_query_host_zone.go index cf6d5e241b..73aeb64fc8 100644 --- a/x/stakeibc/keeper/grpc_query_host_zone.go +++ b/x/stakeibc/keeper/grpc_query_host_zone.go @@ -11,7 +11,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (k Keeper) HostZoneAll(c context.Context, req *types.QueryAllHostZoneRequest) (*types.QueryAllHostZoneResponse, error) { diff --git a/x/stakeibc/keeper/grpc_query_module_address.go b/x/stakeibc/keeper/grpc_query_module_address.go index e5309330c4..2ce9d9352b 100644 --- a/x/stakeibc/keeper/grpc_query_module_address.go +++ b/x/stakeibc/keeper/grpc_query_module_address.go @@ -7,7 +7,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (k Keeper) ModuleAddress(goCtx context.Context, req *types.QueryModuleAddressRequest) (*types.QueryModuleAddressResponse, error) { diff --git a/x/stakeibc/keeper/grpc_query_next_packet_sequence.go b/x/stakeibc/keeper/grpc_query_next_packet_sequence.go index 774eae6451..1540448919 100644 --- a/x/stakeibc/keeper/grpc_query_next_packet_sequence.go +++ b/x/stakeibc/keeper/grpc_query_next_packet_sequence.go @@ -7,7 +7,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (k Keeper) NextPacketSequence(c context.Context, req *types.QueryGetNextPacketSequenceRequest) (*types.QueryGetNextPacketSequenceResponse, error) { diff --git a/x/stakeibc/keeper/grpc_query_next_packet_sequence_test.go b/x/stakeibc/keeper/grpc_query_next_packet_sequence_test.go index 5fffcb1811..a5ca67a140 100644 --- a/x/stakeibc/keeper/grpc_query_next_packet_sequence_test.go +++ b/x/stakeibc/keeper/grpc_query_next_packet_sequence_test.go @@ -3,7 +3,7 @@ package keeper_test import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (s *KeeperTestSuite) TestNextPacketSequenceQuery() { diff --git a/x/stakeibc/keeper/grpc_query_params.go b/x/stakeibc/keeper/grpc_query_params.go index b4acb226e2..41466f0310 100644 --- a/x/stakeibc/keeper/grpc_query_params.go +++ b/x/stakeibc/keeper/grpc_query_params.go @@ -7,7 +7,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { diff --git a/x/stakeibc/keeper/grpc_query_register_ica.go b/x/stakeibc/keeper/grpc_query_register_ica.go index dc7286c399..fcfe4546ef 100644 --- a/x/stakeibc/keeper/grpc_query_register_ica.go +++ b/x/stakeibc/keeper/grpc_query_register_ica.go @@ -9,7 +9,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" icatypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // InterchainAccountFromAddress implements the Query/InterchainAccountFromAddress gRPC method diff --git a/x/stakeibc/keeper/grpc_query_validator.go b/x/stakeibc/keeper/grpc_query_validator.go index 22a377cb75..5ee833f87d 100644 --- a/x/stakeibc/keeper/grpc_query_validator.go +++ b/x/stakeibc/keeper/grpc_query_validator.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (k Keeper) Validators(c context.Context, req *types.QueryGetValidatorsRequest) (*types.QueryGetValidatorsResponse, error) { diff --git a/x/stakeibc/keeper/icacallbacks.go b/x/stakeibc/keeper/icacallbacks.go index 5b5583e393..0310a1c536 100644 --- a/x/stakeibc/keeper/icacallbacks.go +++ b/x/stakeibc/keeper/icacallbacks.go @@ -1,7 +1,7 @@ package keeper import ( - icacallbackstypes "github.com/Stride-Labs/stride/v6/x/icacallbacks/types" + icacallbackstypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" sdk "github.com/cosmos/cosmos-sdk/types" channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" diff --git a/x/stakeibc/keeper/icqcallbacks.go b/x/stakeibc/keeper/icqcallbacks.go index d1601d625b..893b04a787 100644 --- a/x/stakeibc/keeper/icqcallbacks.go +++ b/x/stakeibc/keeper/icqcallbacks.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - icqtypes "github.com/Stride-Labs/stride/v6/x/interchainquery/types" + icqtypes "github.com/Stride-Labs/stride/v7/x/interchainquery/types" ) const ( diff --git a/x/stakeibc/keeper/msg_server.go b/x/stakeibc/keeper/msg_server.go index 7895b08ec6..72fc092552 100644 --- a/x/stakeibc/keeper/msg_server.go +++ b/x/stakeibc/keeper/msg_server.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type msgServer struct { diff --git a/x/stakeibc/keeper/msg_server_add_validator.go b/x/stakeibc/keeper/msg_server_add_validator.go index 866145ff69..90cd819d1b 100644 --- a/x/stakeibc/keeper/msg_server_add_validator.go +++ b/x/stakeibc/keeper/msg_server_add_validator.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (k msgServer) AddValidator(goCtx context.Context, msg *types.MsgAddValidator) (*types.MsgAddValidatorResponse, error) { diff --git a/x/stakeibc/keeper/msg_server_add_validator_test.go b/x/stakeibc/keeper/msg_server_add_validator_test.go index 0ecbeec362..6302b8b27b 100644 --- a/x/stakeibc/keeper/msg_server_add_validator_test.go +++ b/x/stakeibc/keeper/msg_server_add_validator_test.go @@ -6,7 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type AddValidatorTestCase struct { diff --git a/x/stakeibc/keeper/msg_server_change_validator_weight.go b/x/stakeibc/keeper/msg_server_change_validator_weight.go index 054c682926..602f7ef22f 100644 --- a/x/stakeibc/keeper/msg_server_change_validator_weight.go +++ b/x/stakeibc/keeper/msg_server_change_validator_weight.go @@ -7,7 +7,7 @@ import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (k msgServer) ChangeValidatorWeight(goCtx context.Context, msg *types.MsgChangeValidatorWeight) (*types.MsgChangeValidatorWeightResponse, error) { diff --git a/x/stakeibc/keeper/msg_server_clear_balance.go b/x/stakeibc/keeper/msg_server_clear_balance.go index c5ef3037c5..144add2edb 100644 --- a/x/stakeibc/keeper/msg_server_clear_balance.go +++ b/x/stakeibc/keeper/msg_server_clear_balance.go @@ -9,7 +9,7 @@ import ( ibctransfertypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types" "github.com/spf13/cast" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (k msgServer) ClearBalance(goCtx context.Context, msg *types.MsgClearBalance) (*types.MsgClearBalanceResponse, error) { diff --git a/x/stakeibc/keeper/msg_server_delete_validator.go b/x/stakeibc/keeper/msg_server_delete_validator.go index c520d15deb..27f758a112 100644 --- a/x/stakeibc/keeper/msg_server_delete_validator.go +++ b/x/stakeibc/keeper/msg_server_delete_validator.go @@ -7,7 +7,7 @@ import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func (k msgServer) DeleteValidator(goCtx context.Context, msg *types.MsgDeleteValidator) (*types.MsgDeleteValidatorResponse, error) { diff --git a/x/stakeibc/keeper/msg_server_delete_validator_test.go b/x/stakeibc/keeper/msg_server_delete_validator_test.go index a7df5d450d..6f6bad2530 100644 --- a/x/stakeibc/keeper/msg_server_delete_validator_test.go +++ b/x/stakeibc/keeper/msg_server_delete_validator_test.go @@ -6,7 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type DeleteValidatorTestCase struct { diff --git a/x/stakeibc/keeper/msg_server_update_validator_shares_exch_rate.go b/x/stakeibc/keeper/msg_server_update_validator_shares_exch_rate.go index 8cc9225ebe..0668dae0ca 100644 --- a/x/stakeibc/keeper/msg_server_update_validator_shares_exch_rate.go +++ b/x/stakeibc/keeper/msg_server_update_validator_shares_exch_rate.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // This kicks off two ICQs, each with a callback, that will update the number of tokens on a validator diff --git a/x/stakeibc/keeper/params.go b/x/stakeibc/keeper/params.go index e5434e2aa8..c81a3d9e36 100644 --- a/x/stakeibc/keeper/params.go +++ b/x/stakeibc/keeper/params.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // GetParams get all parameters as types.Params diff --git a/x/stakeibc/types/genesis_test.go b/x/stakeibc/types/genesis_test.go index 43bdad4c2f..03e202c555 100644 --- a/x/stakeibc/types/genesis_test.go +++ b/x/stakeibc/types/genesis_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) func TestGenesisState_Validate(t *testing.T) { diff --git a/x/stakeibc/types/message_add_validator.go b/x/stakeibc/types/message_add_validator.go index 04e50e101d..3af3bd24c1 100644 --- a/x/stakeibc/types/message_add_validator.go +++ b/x/stakeibc/types/message_add_validator.go @@ -7,7 +7,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/utils" + "github.com/Stride-Labs/stride/v7/utils" ) const TypeMsgAddValidator = "add_validator" diff --git a/x/stakeibc/types/message_add_validator_test.go b/x/stakeibc/types/message_add_validator_test.go index 96ea17986e..fc7af5dd21 100644 --- a/x/stakeibc/types/message_add_validator_test.go +++ b/x/stakeibc/types/message_add_validator_test.go @@ -6,7 +6,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/testutil/sample" + "github.com/Stride-Labs/stride/v7/testutil/sample" ) func TestMsgAddValidator_ValidateBasic(t *testing.T) { diff --git a/x/stakeibc/types/message_change_validator_weight.go b/x/stakeibc/types/message_change_validator_weight.go index 3e05920f56..95d28d09f2 100644 --- a/x/stakeibc/types/message_change_validator_weight.go +++ b/x/stakeibc/types/message_change_validator_weight.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/utils" + "github.com/Stride-Labs/stride/v7/utils" ) const TypeMsgChangeValidatorWeight = "change_validator_weight" diff --git a/x/stakeibc/types/message_change_validator_weight_test.go b/x/stakeibc/types/message_change_validator_weight_test.go index 1c4168e18e..2d8751e82c 100644 --- a/x/stakeibc/types/message_change_validator_weight_test.go +++ b/x/stakeibc/types/message_change_validator_weight_test.go @@ -6,7 +6,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/testutil/sample" + "github.com/Stride-Labs/stride/v7/testutil/sample" ) func TestMsgChangeValidatorWeight_ValidateBasic(t *testing.T) { diff --git a/x/stakeibc/types/message_claim_undelegated_tokens.go b/x/stakeibc/types/message_claim_undelegated_tokens.go index 24224d3815..f49e2c0b5c 100644 --- a/x/stakeibc/types/message_claim_undelegated_tokens.go +++ b/x/stakeibc/types/message_claim_undelegated_tokens.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/utils" + "github.com/Stride-Labs/stride/v7/utils" ) const TypeMsgClaimUndelegatedTokens = "claim_undelegated_tokens" diff --git a/x/stakeibc/types/message_claim_undelegated_tokens_test.go b/x/stakeibc/types/message_claim_undelegated_tokens_test.go index e2666ba173..c8806529e3 100644 --- a/x/stakeibc/types/message_claim_undelegated_tokens_test.go +++ b/x/stakeibc/types/message_claim_undelegated_tokens_test.go @@ -7,7 +7,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/testutil/sample" + "github.com/Stride-Labs/stride/v7/testutil/sample" ) func TestMsgClaimUndelegatedTokens_ValidateBasic(t *testing.T) { diff --git a/x/stakeibc/types/message_clear_balance.go b/x/stakeibc/types/message_clear_balance.go index d0b60b1dda..1ca4217d29 100644 --- a/x/stakeibc/types/message_clear_balance.go +++ b/x/stakeibc/types/message_clear_balance.go @@ -8,7 +8,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" - "github.com/Stride-Labs/stride/v6/utils" + "github.com/Stride-Labs/stride/v7/utils" ) const TypeMsgClearBalance = "clear_balance" diff --git a/x/stakeibc/types/message_delete_validator.go b/x/stakeibc/types/message_delete_validator.go index 233600ef75..c3cae1db9e 100644 --- a/x/stakeibc/types/message_delete_validator.go +++ b/x/stakeibc/types/message_delete_validator.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/utils" + "github.com/Stride-Labs/stride/v7/utils" ) const TypeMsgDeleteValidator = "delete_validator" diff --git a/x/stakeibc/types/message_delete_validator_test.go b/x/stakeibc/types/message_delete_validator_test.go index e6df51d396..79bc159ab8 100644 --- a/x/stakeibc/types/message_delete_validator_test.go +++ b/x/stakeibc/types/message_delete_validator_test.go @@ -6,7 +6,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/testutil/sample" + "github.com/Stride-Labs/stride/v7/testutil/sample" ) func TestMsgDeleteValidator_ValidateBasic(t *testing.T) { diff --git a/x/stakeibc/types/message_liquid_stake_test.go b/x/stakeibc/types/message_liquid_stake_test.go index 02f6638f5c..1b7ba6482d 100644 --- a/x/stakeibc/types/message_liquid_stake_test.go +++ b/x/stakeibc/types/message_liquid_stake_test.go @@ -7,7 +7,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/testutil/sample" + "github.com/Stride-Labs/stride/v7/testutil/sample" ) func TestMsgLiquidStake_ValidateBasic(t *testing.T) { diff --git a/x/stakeibc/types/message_rebalance_validators.go b/x/stakeibc/types/message_rebalance_validators.go index 34b2a95849..6d28872e8b 100644 --- a/x/stakeibc/types/message_rebalance_validators.go +++ b/x/stakeibc/types/message_rebalance_validators.go @@ -7,7 +7,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/utils" + "github.com/Stride-Labs/stride/v7/utils" ) const ( diff --git a/x/stakeibc/types/message_redeem_stake_test.go b/x/stakeibc/types/message_redeem_stake_test.go index af908c2331..76e79e1a12 100644 --- a/x/stakeibc/types/message_redeem_stake_test.go +++ b/x/stakeibc/types/message_redeem_stake_test.go @@ -8,7 +8,7 @@ import ( sdkmath "cosmossdk.io/math" - "github.com/Stride-Labs/stride/v6/testutil/sample" + "github.com/Stride-Labs/stride/v7/testutil/sample" ) func TestMsgRedeemStake_ValidateBasic(t *testing.T) { diff --git a/x/stakeibc/types/message_register_host_zone.go b/x/stakeibc/types/message_register_host_zone.go index a0b45b2116..6f33884840 100644 --- a/x/stakeibc/types/message_register_host_zone.go +++ b/x/stakeibc/types/message_register_host_zone.go @@ -10,7 +10,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ibctransfertypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types" - "github.com/Stride-Labs/stride/v6/utils" + "github.com/Stride-Labs/stride/v7/utils" ) const TypeMsgRegisterHostZone = "register_host_zone" diff --git a/x/stakeibc/types/message_restore_interchain_account_test.go b/x/stakeibc/types/message_restore_interchain_account_test.go index fc1e02a744..26f61d612a 100644 --- a/x/stakeibc/types/message_restore_interchain_account_test.go +++ b/x/stakeibc/types/message_restore_interchain_account_test.go @@ -6,7 +6,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/testutil/sample" + "github.com/Stride-Labs/stride/v7/testutil/sample" ) func TestMsgRestoreInterchainAccount_ValidateBasic(t *testing.T) { diff --git a/x/stakeibc/types/message_update_delegation.go b/x/stakeibc/types/message_update_delegation.go index b7d1b6df9e..7ba491fe73 100644 --- a/x/stakeibc/types/message_update_delegation.go +++ b/x/stakeibc/types/message_update_delegation.go @@ -7,7 +7,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/Stride-Labs/stride/v6/utils" + "github.com/Stride-Labs/stride/v7/utils" ) const TypeMsgUpdateValidatorSharesExchRate = "update_validator_shares_exch_rate" From 3e9680f71a1d83eb2fd800da75298f56f3881962 Mon Sep 17 00:00:00 2001 From: Aidan Salzmann Date: Sun, 12 Mar 2023 22:36:07 -0400 Subject: [PATCH 05/10] regenerate pb.go files --- x/autopilot/types/genesis.pb.go | 323 ++ x/autopilot/types/params.pb.go | 308 ++ x/autopilot/types/query.pb.go | 535 +++ x/claim/types/claim.pb.go | 558 +++ x/claim/types/genesis.pb.go | 389 ++ x/claim/types/params.pb.go | 778 ++++ x/claim/types/query.pb.go | 2800 +++++++++++ x/claim/types/tx.pb.go | 1972 ++++++++ x/claim/vesting/types/tx.pb.go | 81 + x/claim/vesting/types/vesting.pb.go | 1055 +++++ x/epochs/types/genesis.pb.go | 785 ++++ x/epochs/types/query.pb.go | 1418 ++++++ x/icacallbacks/types/callback_data.pb.go | 564 +++ x/icacallbacks/types/genesis.pb.go | 439 ++ x/icacallbacks/types/packet.pb.go | 501 ++ x/icacallbacks/types/params.pb.go | 264 ++ x/icacallbacks/types/query.pb.go | 1389 ++++++ x/icacallbacks/types/tx.pb.go | 81 + x/interchainquery/types/genesis.pb.go | 1172 +++++ x/interchainquery/types/messages.pb.go | 759 +++ x/interchainquery/types/query.pb.go | 543 +++ x/mint/types/genesis.pb.go | 417 ++ x/mint/types/mint.pb.go | 1105 +++++ x/mint/types/query.pb.go | 870 ++++ x/ratelimit/types/genesis.pb.go | 389 ++ x/ratelimit/types/gov.pb.go | 1922 ++++++++ x/ratelimit/types/params.pb.go | 263 ++ x/ratelimit/types/query.pb.go | 1765 +++++++ x/ratelimit/types/ratelimit.pb.go | 1220 +++++ x/records/types/callbacks.pb.go | 301 ++ x/records/types/genesis.pb.go | 2858 ++++++++++++ x/records/types/query.pb.go | 4091 ++++++++++++++++ x/stakeibc/types/address_unbonding.pb.go | 570 +++ x/stakeibc/types/callbacks.pb.go | 2264 +++++++++ x/stakeibc/types/epoch_tracker.pb.go | 427 ++ x/stakeibc/types/genesis.pb.go | 506 ++ x/stakeibc/types/gov.pb.go | 579 +++ x/stakeibc/types/host_zone.pb.go | 1349 ++++++ x/stakeibc/types/ica_account.pb.go | 391 ++ x/stakeibc/types/packet.pb.go | 500 ++ x/stakeibc/types/params.pb.go | 1066 +++++ x/stakeibc/types/query.pb.go | 4157 +++++++++++++++++ x/stakeibc/types/tx.pb.go | 5446 ++++++++++++++++++++++ x/stakeibc/types/validator.pb.go | 828 ++++ 44 files changed, 49998 insertions(+) create mode 100644 x/autopilot/types/genesis.pb.go create mode 100644 x/autopilot/types/params.pb.go create mode 100644 x/autopilot/types/query.pb.go create mode 100644 x/claim/types/claim.pb.go create mode 100644 x/claim/types/genesis.pb.go create mode 100644 x/claim/types/params.pb.go create mode 100644 x/claim/types/query.pb.go create mode 100644 x/claim/types/tx.pb.go create mode 100644 x/claim/vesting/types/tx.pb.go create mode 100644 x/claim/vesting/types/vesting.pb.go create mode 100644 x/epochs/types/genesis.pb.go create mode 100644 x/epochs/types/query.pb.go create mode 100644 x/icacallbacks/types/callback_data.pb.go create mode 100644 x/icacallbacks/types/genesis.pb.go create mode 100644 x/icacallbacks/types/packet.pb.go create mode 100644 x/icacallbacks/types/params.pb.go create mode 100644 x/icacallbacks/types/query.pb.go create mode 100644 x/icacallbacks/types/tx.pb.go create mode 100644 x/interchainquery/types/genesis.pb.go create mode 100644 x/interchainquery/types/messages.pb.go create mode 100644 x/interchainquery/types/query.pb.go create mode 100644 x/mint/types/genesis.pb.go create mode 100644 x/mint/types/mint.pb.go create mode 100644 x/mint/types/query.pb.go create mode 100644 x/ratelimit/types/genesis.pb.go create mode 100644 x/ratelimit/types/gov.pb.go create mode 100644 x/ratelimit/types/params.pb.go create mode 100644 x/ratelimit/types/query.pb.go create mode 100644 x/ratelimit/types/ratelimit.pb.go create mode 100644 x/records/types/callbacks.pb.go create mode 100644 x/records/types/genesis.pb.go create mode 100644 x/records/types/query.pb.go create mode 100644 x/stakeibc/types/address_unbonding.pb.go create mode 100644 x/stakeibc/types/callbacks.pb.go create mode 100644 x/stakeibc/types/epoch_tracker.pb.go create mode 100644 x/stakeibc/types/genesis.pb.go create mode 100644 x/stakeibc/types/gov.pb.go create mode 100644 x/stakeibc/types/host_zone.pb.go create mode 100644 x/stakeibc/types/ica_account.pb.go create mode 100644 x/stakeibc/types/packet.pb.go create mode 100644 x/stakeibc/types/params.pb.go create mode 100644 x/stakeibc/types/query.pb.go create mode 100644 x/stakeibc/types/tx.pb.go create mode 100644 x/stakeibc/types/validator.pb.go diff --git a/x/autopilot/types/genesis.pb.go b/x/autopilot/types/genesis.pb.go new file mode 100644 index 0000000000..ad5465b220 --- /dev/null +++ b/x/autopilot/types/genesis.pb.go @@ -0,0 +1,323 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/autopilot/genesis.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +// GenesisState defines the claim module's genesis state. +type GenesisState struct { + // params defines all the parameters of the module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"` +} + +func (m *GenesisState) Reset() { *m = GenesisState{} } +func (m *GenesisState) String() string { return proto.CompactTextString(m) } +func (*GenesisState) ProtoMessage() {} +func (*GenesisState) Descriptor() ([]byte, []int) { + return fileDescriptor_a7e087b21fd12e65, []int{0} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "stride.autopilot.GenesisState") +} + +func init() { proto.RegisterFile("stride/autopilot/genesis.proto", fileDescriptor_a7e087b21fd12e65) } + +var fileDescriptor_a7e087b21fd12e65 = []byte{ + // 211 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2b, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0x4f, 0x2c, 0x2d, 0xc9, 0x2f, 0xc8, 0xcc, 0xc9, 0x2f, 0xd1, 0x4f, 0x4f, 0xcd, + 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0xc8, 0xeb, 0xc1, + 0xe5, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x92, 0xfa, 0x20, 0x16, 0x44, 0x9d, 0x94, 0x2c, + 0x86, 0x39, 0x05, 0x89, 0x45, 0x89, 0xb9, 0x50, 0x63, 0x94, 0xc2, 0xb9, 0x78, 0xdc, 0x21, 0xe6, + 0x06, 0x97, 0x24, 0x96, 0xa4, 0x0a, 0xb9, 0x73, 0xb1, 0x41, 0xe4, 0x25, 0x18, 0x15, 0x18, 0x35, + 0xb8, 0x8d, 0x24, 0xf4, 0xd0, 0xed, 0xd1, 0x0b, 0x00, 0xcb, 0x3b, 0x89, 0x9e, 0xb8, 0x27, 0xcf, + 0xf0, 0xe9, 0x9e, 0x3c, 0x6f, 0x65, 0x62, 0x6e, 0x8e, 0x95, 0x12, 0x44, 0x97, 0x52, 0x10, 0x54, + 0xbb, 0x93, 0xcf, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, + 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x19, 0xa5, 0x67, + 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x07, 0x83, 0x0d, 0xd7, 0xf5, 0x49, 0x4c, + 0x2a, 0xd6, 0x87, 0x3a, 0xb4, 0xcc, 0x5c, 0xbf, 0x02, 0xc9, 0xb5, 0x25, 0x95, 0x05, 0xa9, 0xc5, + 0x49, 0x6c, 0x60, 0xd7, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5d, 0x40, 0x24, 0xe5, 0x16, + 0x01, 0x00, 0x00, +} + +func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisState) 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 ErrIntOverflowGenesis + } + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/autopilot/types/params.pb.go b/x/autopilot/types/params.pb.go new file mode 100644 index 0000000000..1ed3ebae22 --- /dev/null +++ b/x/autopilot/types/params.pb.go @@ -0,0 +1,308 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/autopilot/params.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +// Params defines the parameters for the module. +// next id: 1 +type Params struct { + // optionally, turn off this module + Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` +} + +func (m *Params) Reset() { *m = Params{} } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_b0b993e9f5195319, []int{0} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +func (m *Params) GetActive() bool { + if m != nil { + return m.Active + } + return false +} + +func init() { + proto.RegisterType((*Params)(nil), "stride.autopilot.Params") +} + +func init() { proto.RegisterFile("stride/autopilot/params.proto", fileDescriptor_b0b993e9f5195319) } + +var fileDescriptor_b0b993e9f5195319 = []byte{ + // 175 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2d, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0x4f, 0x2c, 0x2d, 0xc9, 0x2f, 0xc8, 0xcc, 0xc9, 0x2f, 0xd1, 0x2f, 0x48, 0x2c, + 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0x48, 0xeb, 0xc1, 0xa5, + 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x92, 0xfa, 0x20, 0x16, 0x44, 0x9d, 0x92, 0x1a, 0x17, + 0x5b, 0x00, 0x58, 0x9f, 0x90, 0x18, 0x17, 0x5b, 0x62, 0x72, 0x49, 0x66, 0x59, 0xaa, 0x04, 0xa3, + 0x02, 0xa3, 0x06, 0x47, 0x10, 0x94, 0x67, 0xc5, 0x32, 0x63, 0x81, 0x3c, 0x83, 0x93, 0xcf, 0x89, + 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, + 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x19, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, + 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x07, 0x83, 0x2d, 0xd5, 0xf5, 0x49, 0x4c, 0x2a, 0xd6, 0x87, 0xba, + 0xaf, 0xcc, 0x5c, 0xbf, 0x02, 0xc9, 0x91, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0xcb, + 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xe1, 0x52, 0xd9, 0xbf, 0xc5, 0x00, 0x00, 0x00, +} + +func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Active { + i-- + if m.Active { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintParams(dAtA []byte, offset int, v uint64) int { + offset -= sovParams(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Active { + n += 2 + } + return n +} + +func sovParams(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozParams(x uint64) (n int) { + return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Params) 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 ErrIntOverflowParams + } + 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: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Active = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipParams(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthParams + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipParams(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, ErrIntOverflowParams + } + 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, ErrIntOverflowParams + } + 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, ErrIntOverflowParams + } + 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, ErrInvalidLengthParams + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupParams + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthParams + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/autopilot/types/query.pb.go b/x/autopilot/types/query.pb.go new file mode 100644 index 0000000000..e6e23dab2f --- /dev/null +++ b/x/autopilot/types/query.pb.go @@ -0,0 +1,535 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/autopilot/query.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + 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 + +// QueryParamsRequest is request type for the Query/Params RPC method. +type QueryParamsRequest struct { +} + +func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } +func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryParamsRequest) ProtoMessage() {} +func (*QueryParamsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1dd160550c308365, []int{0} +} +func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsRequest.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 *QueryParamsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsRequest.Merge(m, src) +} +func (m *QueryParamsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo + +// QueryParamsResponse is response type for the Query/Params RPC method. +type QueryParamsResponse struct { + // params holds all the parameters of this module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` +} + +func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } +func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryParamsResponse) ProtoMessage() {} +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1dd160550c308365, []int{1} +} +func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsResponse.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 *QueryParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsResponse.Merge(m, src) +} +func (m *QueryParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo + +func (m *QueryParamsResponse) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func init() { + proto.RegisterType((*QueryParamsRequest)(nil), "stride.autopilot.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "stride.autopilot.QueryParamsResponse") +} + +func init() { proto.RegisterFile("stride/autopilot/query.proto", fileDescriptor_1dd160550c308365) } + +var fileDescriptor_1dd160550c308365 = []byte{ + // 277 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x29, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0x4f, 0x2c, 0x2d, 0xc9, 0x2f, 0xc8, 0xcc, 0xc9, 0x2f, 0xd1, 0x2f, 0x2c, 0x4d, + 0x2d, 0xaa, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0xc8, 0xea, 0xc1, 0x65, 0xa5, + 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x92, 0xfa, 0x20, 0x16, 0x44, 0x9d, 0x94, 0x4c, 0x7a, 0x7e, + 0x7e, 0x7a, 0x4e, 0xaa, 0x7e, 0x62, 0x41, 0xa6, 0x7e, 0x62, 0x5e, 0x5e, 0x7e, 0x49, 0x62, 0x49, + 0x66, 0x7e, 0x5e, 0x31, 0x54, 0x56, 0x16, 0xc3, 0x8e, 0x82, 0xc4, 0xa2, 0xc4, 0x5c, 0xa8, 0xb4, + 0x92, 0x08, 0x97, 0x50, 0x20, 0xc8, 0xce, 0x00, 0xb0, 0x60, 0x50, 0x6a, 0x61, 0x69, 0x6a, 0x71, + 0x89, 0x92, 0x2f, 0x97, 0x30, 0x8a, 0x68, 0x71, 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0x90, 0x19, 0x17, + 0x1b, 0x44, 0xb3, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xb7, 0x91, 0x84, 0x1e, 0xba, 0x13, 0xf5, 0x20, + 0x3a, 0x9c, 0x58, 0x4e, 0xdc, 0x93, 0x67, 0x08, 0x82, 0xaa, 0x36, 0xea, 0x65, 0xe4, 0x62, 0x05, + 0x9b, 0x27, 0xd4, 0xcc, 0xc8, 0xc5, 0x06, 0x51, 0x22, 0xa4, 0x82, 0xa9, 0x19, 0xd3, 0x25, 0x52, + 0xaa, 0x04, 0x54, 0x41, 0x5c, 0xa6, 0xa4, 0xd3, 0x74, 0xf9, 0xc9, 0x64, 0x26, 0x35, 0x21, 0x15, + 0xfd, 0x60, 0xb0, 0x72, 0x5d, 0x9f, 0xc4, 0xa4, 0x62, 0x7d, 0x1c, 0x5e, 0x77, 0xf2, 0x39, 0xf1, + 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, + 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xa3, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, + 0xbd, 0xe4, 0xfc, 0x5c, 0x6c, 0x26, 0x95, 0x99, 0xeb, 0x57, 0x20, 0x19, 0x57, 0x52, 0x59, 0x90, + 0x5a, 0x9c, 0xc4, 0x06, 0x0e, 0x49, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5f, 0xfc, 0xe7, + 0x1a, 0xce, 0x01, 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 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // Parameters queries the parameters of the module. + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/stride.autopilot.Query/Params", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // Parameters queries the parameters of the module. + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.autopilot.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "stride.autopilot.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "stride/autopilot/query.proto", +} + +func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryParamsResponse) 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 *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryParamsRequest) 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 ErrIntOverflowQuery + } + 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: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsResponse) 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 ErrIntOverflowQuery + } + 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: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/claim/types/claim.pb.go b/x/claim/types/claim.pb.go new file mode 100644 index 0000000000..aadd3fbede --- /dev/null +++ b/x/claim/types/claim.pb.go @@ -0,0 +1,558 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/claim/claim.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +type Action int32 + +const ( + ACTION_FREE Action = 0 + ACTION_LIQUID_STAKE Action = 1 + ACTION_DELEGATE_STAKE Action = 2 +) + +var Action_name = map[int32]string{ + 0: "ACTION_FREE", + 1: "ACTION_LIQUID_STAKE", + 2: "ACTION_DELEGATE_STAKE", +} + +var Action_value = map[string]int32{ + "ACTION_FREE": 0, + "ACTION_LIQUID_STAKE": 1, + "ACTION_DELEGATE_STAKE": 2, +} + +func (x Action) String() string { + return proto.EnumName(Action_name, int32(x)) +} + +func (Action) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_b4747d999b9dc0da, []int{0} +} + +// A Claim Records is the metadata of claim data per address +type ClaimRecord struct { + // airdrop identifier + AirdropIdentifier string `protobuf:"bytes,1,opt,name=airdrop_identifier,json=airdropIdentifier,proto3" json:"airdrop_identifier,omitempty" yaml:"airdrop_identifier"` + // address of claim user + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` + // weight that represent the portion from total allocation + Weight github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=weight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"weight" yaml:"weight"` + // true if action is completed + // index of bool in array refers to action enum # + ActionCompleted []bool `protobuf:"varint,4,rep,packed,name=action_completed,json=actionCompleted,proto3" json:"action_completed,omitempty" yaml:"action_completed"` +} + +func (m *ClaimRecord) Reset() { *m = ClaimRecord{} } +func (m *ClaimRecord) String() string { return proto.CompactTextString(m) } +func (*ClaimRecord) ProtoMessage() {} +func (*ClaimRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_b4747d999b9dc0da, []int{0} +} +func (m *ClaimRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClaimRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ClaimRecord.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 *ClaimRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClaimRecord.Merge(m, src) +} +func (m *ClaimRecord) XXX_Size() int { + return m.Size() +} +func (m *ClaimRecord) XXX_DiscardUnknown() { + xxx_messageInfo_ClaimRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_ClaimRecord proto.InternalMessageInfo + +func (m *ClaimRecord) GetAirdropIdentifier() string { + if m != nil { + return m.AirdropIdentifier + } + return "" +} + +func (m *ClaimRecord) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *ClaimRecord) GetActionCompleted() []bool { + if m != nil { + return m.ActionCompleted + } + return nil +} + +func init() { + proto.RegisterEnum("stride.claim.Action", Action_name, Action_value) + proto.RegisterType((*ClaimRecord)(nil), "stride.claim.ClaimRecord") +} + +func init() { proto.RegisterFile("stride/claim/claim.proto", fileDescriptor_b4747d999b9dc0da) } + +var fileDescriptor_b4747d999b9dc0da = []byte{ + // 394 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x4f, 0xce, 0xd2, 0x40, + 0x00, 0xc5, 0x5b, 0x20, 0xa8, 0x83, 0x0a, 0x8e, 0x1a, 0x0a, 0xc6, 0x96, 0x74, 0x61, 0x88, 0x91, + 0x76, 0xe1, 0xc2, 0xc4, 0x8d, 0x29, 0x50, 0xb4, 0xb1, 0xd1, 0x58, 0x30, 0x26, 0x6e, 0x9a, 0xd2, + 0x19, 0xcb, 0x44, 0xca, 0x34, 0x9d, 0xf1, 0x0f, 0x37, 0x70, 0xe9, 0x1d, 0xdc, 0x79, 0x12, 0x96, + 0x2c, 0x8d, 0x8b, 0xc6, 0xc0, 0x0d, 0x7a, 0x02, 0xc3, 0x74, 0x30, 0xe6, 0xfb, 0x36, 0x6d, 0xf3, + 0xfb, 0xbd, 0xbc, 0x74, 0xe6, 0x01, 0x8d, 0xf1, 0x9c, 0x20, 0x6c, 0xc7, 0xeb, 0x88, 0xa4, 0xd5, + 0xd3, 0xca, 0x72, 0xca, 0x29, 0xbc, 0x5e, 0x19, 0x4b, 0xb0, 0xfe, 0x9d, 0x84, 0x26, 0x54, 0x08, + 0xfb, 0xf4, 0x55, 0x65, 0xcc, 0x9f, 0x35, 0xd0, 0x9a, 0x9c, 0x7c, 0x80, 0x63, 0x9a, 0x23, 0xe8, + 0x03, 0x18, 0x91, 0x1c, 0xe5, 0x34, 0x0b, 0x09, 0xc2, 0x1b, 0x4e, 0x3e, 0x10, 0x9c, 0x6b, 0xea, + 0x40, 0x1d, 0x5e, 0x1b, 0xdf, 0x2f, 0x0b, 0xa3, 0xb7, 0x8d, 0xd2, 0xf5, 0x53, 0xf3, 0x72, 0xc6, + 0x0c, 0x6e, 0x49, 0xe8, 0xfd, 0x63, 0xf0, 0x11, 0xb8, 0x12, 0x21, 0x94, 0x63, 0xc6, 0xb4, 0x9a, + 0xa8, 0x80, 0x65, 0x61, 0xdc, 0x94, 0x15, 0x95, 0x30, 0x83, 0x73, 0x04, 0xbe, 0x03, 0xcd, 0x2f, + 0x98, 0x24, 0x2b, 0xae, 0xd5, 0x45, 0xf8, 0xd9, 0xae, 0x30, 0x94, 0xdf, 0x85, 0xf1, 0x20, 0x21, + 0x7c, 0xf5, 0x69, 0x69, 0xc5, 0x34, 0xb5, 0x63, 0xca, 0x52, 0xca, 0xe4, 0x6b, 0xc4, 0xd0, 0x47, + 0x9b, 0x6f, 0x33, 0xcc, 0xac, 0x29, 0x8e, 0xcb, 0xc2, 0xb8, 0x51, 0x55, 0x57, 0x2d, 0x66, 0x20, + 0xeb, 0xe0, 0x0c, 0x74, 0xa2, 0x98, 0x13, 0xba, 0x09, 0x63, 0x9a, 0x66, 0x6b, 0xcc, 0x31, 0xd2, + 0x1a, 0x83, 0xfa, 0xf0, 0xea, 0xf8, 0x5e, 0x59, 0x18, 0x5d, 0xf9, 0x3f, 0x17, 0x12, 0x66, 0xd0, + 0xae, 0xd0, 0xe4, 0x4c, 0x1e, 0xce, 0x41, 0xd3, 0x11, 0x08, 0xb6, 0x41, 0xcb, 0x99, 0x2c, 0xbc, + 0xd7, 0xaf, 0xc2, 0x59, 0xe0, 0xba, 0x1d, 0x05, 0x76, 0xc1, 0x6d, 0x09, 0x7c, 0xef, 0xcd, 0x5b, + 0x6f, 0x1a, 0xce, 0x17, 0xce, 0x4b, 0xb7, 0xa3, 0xc2, 0x1e, 0xb8, 0x2b, 0xc5, 0xd4, 0xf5, 0xdd, + 0xe7, 0xce, 0xc2, 0x95, 0xaa, 0xd6, 0x6f, 0x7c, 0xfb, 0xa1, 0x2b, 0xe3, 0x17, 0xbb, 0x83, 0xae, + 0xee, 0x0f, 0xba, 0xfa, 0xe7, 0xa0, 0xab, 0xdf, 0x8f, 0xba, 0xb2, 0x3f, 0xea, 0xca, 0xaf, 0xa3, + 0xae, 0xbc, 0xb7, 0xfe, 0x3b, 0xf7, 0x5c, 0x4c, 0x39, 0xf2, 0xa3, 0x25, 0xb3, 0xe5, 0xe0, 0x9f, + 0x9f, 0xd8, 0x5f, 0xe5, 0xea, 0xe2, 0x0e, 0x96, 0x4d, 0x31, 0xe9, 0xe3, 0xbf, 0x01, 0x00, 0x00, + 0xff, 0xff, 0xf2, 0x69, 0x3b, 0xfa, 0x12, 0x02, 0x00, 0x00, +} + +func (m *ClaimRecord) 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 *ClaimRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClaimRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ActionCompleted) > 0 { + for iNdEx := len(m.ActionCompleted) - 1; iNdEx >= 0; iNdEx-- { + i-- + if m.ActionCompleted[iNdEx] { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + } + i = encodeVarintClaim(dAtA, i, uint64(len(m.ActionCompleted))) + i-- + dAtA[i] = 0x22 + } + { + size := m.Weight.Size() + i -= size + if _, err := m.Weight.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintClaim(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintClaim(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.AirdropIdentifier) > 0 { + i -= len(m.AirdropIdentifier) + copy(dAtA[i:], m.AirdropIdentifier) + i = encodeVarintClaim(dAtA, i, uint64(len(m.AirdropIdentifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintClaim(dAtA []byte, offset int, v uint64) int { + offset -= sovClaim(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ClaimRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AirdropIdentifier) + if l > 0 { + n += 1 + l + sovClaim(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovClaim(uint64(l)) + } + l = m.Weight.Size() + n += 1 + l + sovClaim(uint64(l)) + if len(m.ActionCompleted) > 0 { + n += 1 + sovClaim(uint64(len(m.ActionCompleted))) + len(m.ActionCompleted)*1 + } + return n +} + +func sovClaim(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozClaim(x uint64) (n int) { + return sovClaim(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ClaimRecord) 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 ErrIntOverflowClaim + } + 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: ClaimRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClaimRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropIdentifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClaim + } + 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 ErrInvalidLengthClaim + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthClaim + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AirdropIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClaim + } + 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 ErrInvalidLengthClaim + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthClaim + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClaim + } + 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 ErrInvalidLengthClaim + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthClaim + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Weight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType == 0 { + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClaim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ActionCompleted = append(m.ActionCompleted, bool(v != 0)) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClaim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthClaim + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthClaim + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + elementCount = packedLen + if elementCount != 0 && len(m.ActionCompleted) == 0 { + m.ActionCompleted = make([]bool, 0, elementCount) + } + for iNdEx < postIndex { + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowClaim + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ActionCompleted = append(m.ActionCompleted, bool(v != 0)) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field ActionCompleted", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipClaim(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthClaim + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipClaim(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, ErrIntOverflowClaim + } + 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, ErrIntOverflowClaim + } + 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, ErrIntOverflowClaim + } + 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, ErrInvalidLengthClaim + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupClaim + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthClaim + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthClaim = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowClaim = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupClaim = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/claim/types/genesis.pb.go b/x/claim/types/genesis.pb.go new file mode 100644 index 0000000000..855ec3420c --- /dev/null +++ b/x/claim/types/genesis.pb.go @@ -0,0 +1,389 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/claim/genesis.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +// GenesisState defines the claim module's genesis state. +type GenesisState struct { + // params defines all the parameters of the module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"` + // list of claim records, one for every airdrop recipient + ClaimRecords []ClaimRecord `protobuf:"bytes,2,rep,name=claim_records,json=claimRecords,proto3" json:"claim_records" yaml:"claim_records"` +} + +func (m *GenesisState) Reset() { *m = GenesisState{} } +func (m *GenesisState) String() string { return proto.CompactTextString(m) } +func (*GenesisState) ProtoMessage() {} +func (*GenesisState) Descriptor() ([]byte, []int) { + return fileDescriptor_ecf5648202726596, []int{0} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func (m *GenesisState) GetClaimRecords() []ClaimRecord { + if m != nil { + return m.ClaimRecords + } + return nil +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "stride.claim.GenesisState") +} + +func init() { proto.RegisterFile("stride/claim/genesis.proto", fileDescriptor_ecf5648202726596) } + +var fileDescriptor_ecf5648202726596 = []byte{ + // 261 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2a, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0x4f, 0xce, 0x49, 0xcc, 0xcc, 0xd5, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, + 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x81, 0xc8, 0xe9, 0x81, 0xe5, 0xa4, 0x44, 0xd2, + 0xf3, 0xd3, 0xf3, 0xc1, 0x12, 0xfa, 0x20, 0x16, 0x44, 0x8d, 0x94, 0x04, 0x8a, 0x7e, 0x30, 0x09, + 0x95, 0x91, 0x44, 0x91, 0x29, 0x48, 0x2c, 0x4a, 0xcc, 0x85, 0x1a, 0xac, 0xb4, 0x91, 0x91, 0x8b, + 0xc7, 0x1d, 0x62, 0x55, 0x70, 0x49, 0x62, 0x49, 0xaa, 0x90, 0x33, 0x17, 0x1b, 0x44, 0x81, 0x04, + 0xa3, 0x02, 0xa3, 0x06, 0xb7, 0x91, 0x88, 0x1e, 0xb2, 0xd5, 0x7a, 0x01, 0x60, 0x39, 0x27, 0xd1, + 0x13, 0xf7, 0xe4, 0x19, 0x3e, 0xdd, 0x93, 0xe7, 0xad, 0x4c, 0xcc, 0xcd, 0xb1, 0x52, 0x82, 0xe8, + 0x50, 0x0a, 0x82, 0x6a, 0x15, 0x8a, 0xe1, 0xe2, 0x05, 0x2b, 0x8f, 0x2f, 0x4a, 0x4d, 0xce, 0x2f, + 0x4a, 0x29, 0x96, 0x60, 0x52, 0x60, 0xd6, 0xe0, 0x36, 0x92, 0x44, 0x35, 0xcb, 0x19, 0x44, 0x06, + 0x81, 0x55, 0x38, 0xc9, 0x40, 0x0d, 0x14, 0x81, 0x18, 0x88, 0xa2, 0x5b, 0x29, 0x88, 0x27, 0x19, + 0xa1, 0xb4, 0xd8, 0xc9, 0xe3, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, + 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xf4, + 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x83, 0xc1, 0x56, 0xe9, 0xfa, + 0x24, 0x26, 0x15, 0xeb, 0x43, 0xfd, 0x5f, 0x66, 0xae, 0x5f, 0x01, 0x0d, 0x84, 0x92, 0xca, 0x82, + 0xd4, 0xe2, 0x24, 0x36, 0x70, 0x20, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x15, 0x6a, + 0xaa, 0x7b, 0x01, 0x00, 0x00, +} + +func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ClaimRecords) > 0 { + for iNdEx := len(m.ClaimRecords) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ClaimRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + if len(m.ClaimRecords) > 0 { + for _, e := range m.ClaimRecords { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisState) 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 ErrIntOverflowGenesis + } + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimRecords", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClaimRecords = append(m.ClaimRecords, ClaimRecord{}) + if err := m.ClaimRecords[len(m.ClaimRecords)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/claim/types/params.pb.go b/x/claim/types/params.pb.go new file mode 100644 index 0000000000..6ec154e431 --- /dev/null +++ b/x/claim/types/params.pb.go @@ -0,0 +1,778 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/claim/params.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + _ "github.com/gogo/protobuf/types" + github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" + io "io" + math "math" + math_bits "math/bits" + time "time" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// 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 + +// Params defines the claim module's parameters. +type Params struct { + Airdrops []*Airdrop `protobuf:"bytes,1,rep,name=airdrops,proto3" json:"airdrops,omitempty"` +} + +func (m *Params) Reset() { *m = Params{} } +func (m *Params) String() string { return proto.CompactTextString(m) } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_dd7ac871d3875dc3, []int{0} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +func (m *Params) GetAirdrops() []*Airdrop { + if m != nil { + return m.Airdrops + } + return nil +} + +type Airdrop struct { + AirdropIdentifier string `protobuf:"bytes,1,opt,name=airdrop_identifier,json=airdropIdentifier,proto3" json:"airdrop_identifier,omitempty" yaml:"airdrop_identifier"` + // seconds + AirdropStartTime time.Time `protobuf:"bytes,2,opt,name=airdrop_start_time,json=airdropStartTime,proto3,stdtime" json:"airdrop_start_time" yaml:"airdrop_start_time"` + // seconds + AirdropDuration time.Duration `protobuf:"bytes,3,opt,name=airdrop_duration,json=airdropDuration,proto3,stdduration" json:"airdrop_duration,omitempty" yaml:"airdrop_duration"` + // denom of claimable asset + ClaimDenom string `protobuf:"bytes,4,opt,name=claim_denom,json=claimDenom,proto3" json:"claim_denom,omitempty"` + // airdrop distribution account + DistributorAddress string `protobuf:"bytes,5,opt,name=distributor_address,json=distributorAddress,proto3" json:"distributor_address,omitempty"` + // ustrd tokens claimed so far in the current period + ClaimedSoFar github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=claimed_so_far,json=claimedSoFar,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"claimed_so_far"` +} + +func (m *Airdrop) Reset() { *m = Airdrop{} } +func (m *Airdrop) String() string { return proto.CompactTextString(m) } +func (*Airdrop) ProtoMessage() {} +func (*Airdrop) Descriptor() ([]byte, []int) { + return fileDescriptor_dd7ac871d3875dc3, []int{1} +} +func (m *Airdrop) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Airdrop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Airdrop.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 *Airdrop) XXX_Merge(src proto.Message) { + xxx_messageInfo_Airdrop.Merge(m, src) +} +func (m *Airdrop) XXX_Size() int { + return m.Size() +} +func (m *Airdrop) XXX_DiscardUnknown() { + xxx_messageInfo_Airdrop.DiscardUnknown(m) +} + +var xxx_messageInfo_Airdrop proto.InternalMessageInfo + +func (m *Airdrop) GetAirdropIdentifier() string { + if m != nil { + return m.AirdropIdentifier + } + return "" +} + +func (m *Airdrop) GetAirdropStartTime() time.Time { + if m != nil { + return m.AirdropStartTime + } + return time.Time{} +} + +func (m *Airdrop) GetAirdropDuration() time.Duration { + if m != nil { + return m.AirdropDuration + } + return 0 +} + +func (m *Airdrop) GetClaimDenom() string { + if m != nil { + return m.ClaimDenom + } + return "" +} + +func (m *Airdrop) GetDistributorAddress() string { + if m != nil { + return m.DistributorAddress + } + return "" +} + +func init() { + proto.RegisterType((*Params)(nil), "stride.claim.Params") + proto.RegisterType((*Airdrop)(nil), "stride.claim.Airdrop") +} + +func init() { proto.RegisterFile("stride/claim/params.proto", fileDescriptor_dd7ac871d3875dc3) } + +var fileDescriptor_dd7ac871d3875dc3 = []byte{ + // 472 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x52, 0x3f, 0x8f, 0x13, 0x3f, + 0x10, 0xcd, 0xfe, 0xf2, 0x23, 0x80, 0x73, 0xe2, 0x8f, 0x01, 0xb1, 0x89, 0xc4, 0x6e, 0xb4, 0x12, + 0x28, 0x05, 0x67, 0x8b, 0xa3, 0x40, 0x82, 0x2a, 0xd1, 0x09, 0x71, 0xd2, 0x15, 0x68, 0x73, 0x15, + 0xcd, 0xca, 0x1b, 0x3b, 0x8b, 0x45, 0x1c, 0xaf, 0x6c, 0x07, 0x91, 0x4f, 0x40, 0x7b, 0x25, 0x1f, + 0xe9, 0xca, 0x2b, 0x11, 0xc5, 0x82, 0x92, 0x8e, 0xf2, 0x4a, 0x2a, 0x64, 0xaf, 0xf7, 0x2e, 0x5c, + 0xaa, 0x64, 0xdf, 0x7b, 0xf3, 0xe6, 0xcd, 0x78, 0x40, 0x4f, 0x1b, 0xc5, 0x29, 0xc3, 0xd3, 0x39, + 0xe1, 0x02, 0x97, 0x44, 0x11, 0xa1, 0x51, 0xa9, 0xa4, 0x91, 0x70, 0xaf, 0xa6, 0x90, 0xa3, 0xfa, + 0x0f, 0x0b, 0x59, 0x48, 0x47, 0x60, 0xfb, 0xaf, 0xd6, 0xf4, 0xa3, 0x42, 0xca, 0x62, 0xce, 0xb0, + 0xfb, 0xca, 0x97, 0x33, 0x4c, 0x97, 0x8a, 0x18, 0x2e, 0x17, 0x9e, 0x8f, 0xaf, 0xf3, 0x86, 0x0b, + 0xa6, 0x0d, 0x11, 0x65, 0x2d, 0x48, 0xde, 0x80, 0xce, 0x7b, 0xd7, 0x14, 0xbe, 0x00, 0xb7, 0x08, + 0x57, 0x54, 0xc9, 0x52, 0x87, 0xc1, 0xa0, 0x3d, 0xec, 0x1e, 0x3c, 0x42, 0xdb, 0x09, 0xd0, 0xa8, + 0x66, 0xd3, 0x4b, 0x59, 0xf2, 0xa7, 0x0d, 0x6e, 0x7a, 0x14, 0x1e, 0x03, 0xe8, 0xf1, 0x8c, 0x53, + 0xb6, 0x30, 0x7c, 0xc6, 0x99, 0x0a, 0x83, 0x41, 0x30, 0xbc, 0x3d, 0x7e, 0x72, 0x51, 0xc5, 0xbd, + 0x15, 0x11, 0xf3, 0xd7, 0xc9, 0xae, 0x26, 0x49, 0xef, 0x7b, 0xf0, 0xe8, 0x12, 0x83, 0xf2, 0xca, + 0x4d, 0x1b, 0xa2, 0x4c, 0x66, 0x73, 0x87, 0xff, 0x0d, 0x82, 0x61, 0xf7, 0xa0, 0x8f, 0xea, 0xa1, + 0x50, 0x33, 0x14, 0x3a, 0x69, 0x86, 0x1a, 0x3f, 0x3d, 0xab, 0xe2, 0xd6, 0x6e, 0xb7, 0x2b, 0x8f, + 0xe4, 0xf4, 0x67, 0x1c, 0xa4, 0xf7, 0x3c, 0x31, 0xb1, 0xb8, 0xad, 0x86, 0x5f, 0x03, 0xd0, 0x80, + 0x59, 0xb3, 0xc3, 0xb0, 0xed, 0xfa, 0xf5, 0x76, 0xfa, 0x1d, 0x7a, 0xc1, 0x78, 0x64, 0xdb, 0xfd, + 0xae, 0xe2, 0xfe, 0xf5, 0xd2, 0xe7, 0x52, 0x70, 0xc3, 0x44, 0x69, 0x56, 0x17, 0x55, 0xfc, 0xf8, + 0xdf, 0x30, 0x8d, 0x26, 0xf9, 0x66, 0xa3, 0xdc, 0xf5, 0x70, 0xe3, 0x09, 0x63, 0xd0, 0x75, 0xfb, + 0xce, 0x28, 0x5b, 0x48, 0x11, 0xfe, 0x6f, 0x37, 0x98, 0x02, 0x07, 0x1d, 0x5a, 0x04, 0x62, 0xf0, + 0x80, 0x72, 0xfb, 0x32, 0xf9, 0xd2, 0x48, 0x95, 0x11, 0x4a, 0x15, 0xd3, 0x3a, 0xbc, 0xe1, 0x84, + 0x70, 0x8b, 0x1a, 0xd5, 0x0c, 0x3c, 0x01, 0x77, 0x5c, 0x39, 0xa3, 0x99, 0x96, 0xd9, 0x8c, 0xa8, + 0xb0, 0xe3, 0x9e, 0x05, 0xd9, 0xf4, 0x3f, 0xaa, 0xf8, 0x59, 0xc1, 0xcd, 0xc7, 0x65, 0x8e, 0xa6, + 0x52, 0xe0, 0xa9, 0xd4, 0x42, 0x6a, 0xff, 0xb3, 0xaf, 0xe9, 0x27, 0x6c, 0x56, 0x25, 0xd3, 0xe8, + 0x68, 0x61, 0xd2, 0x3d, 0xef, 0x32, 0x91, 0x6f, 0x89, 0x1a, 0xbf, 0x3b, 0x5b, 0x47, 0xc1, 0xf9, + 0x3a, 0x0a, 0x7e, 0xad, 0xa3, 0xe0, 0x74, 0x13, 0xb5, 0xce, 0x37, 0x51, 0xeb, 0xfb, 0x26, 0x6a, + 0x7d, 0x40, 0x5b, 0x7e, 0x13, 0x77, 0x41, 0xfb, 0xc7, 0x24, 0xd7, 0xd8, 0x9f, 0xfa, 0xe7, 0x57, + 0xf8, 0x8b, 0xbf, 0x77, 0xe7, 0x9d, 0x77, 0xdc, 0x62, 0x5f, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, + 0x5d, 0x88, 0xc7, 0x8b, 0x0c, 0x03, 0x00, 0x00, +} + +func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Airdrops) > 0 { + for iNdEx := len(m.Airdrops) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Airdrops[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Airdrop) 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 *Airdrop) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Airdrop) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.ClaimedSoFar.Size() + i -= size + if _, err := m.ClaimedSoFar.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + if len(m.DistributorAddress) > 0 { + i -= len(m.DistributorAddress) + copy(dAtA[i:], m.DistributorAddress) + i = encodeVarintParams(dAtA, i, uint64(len(m.DistributorAddress))) + i-- + dAtA[i] = 0x2a + } + if len(m.ClaimDenom) > 0 { + i -= len(m.ClaimDenom) + copy(dAtA[i:], m.ClaimDenom) + i = encodeVarintParams(dAtA, i, uint64(len(m.ClaimDenom))) + i-- + dAtA[i] = 0x22 + } + n1, err1 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.AirdropDuration, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.AirdropDuration):]) + if err1 != nil { + return 0, err1 + } + i -= n1 + i = encodeVarintParams(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0x1a + n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.AirdropStartTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.AirdropStartTime):]) + if err2 != nil { + return 0, err2 + } + i -= n2 + i = encodeVarintParams(dAtA, i, uint64(n2)) + i-- + dAtA[i] = 0x12 + if len(m.AirdropIdentifier) > 0 { + i -= len(m.AirdropIdentifier) + copy(dAtA[i:], m.AirdropIdentifier) + i = encodeVarintParams(dAtA, i, uint64(len(m.AirdropIdentifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintParams(dAtA []byte, offset int, v uint64) int { + offset -= sovParams(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Airdrops) > 0 { + for _, e := range m.Airdrops { + l = e.Size() + n += 1 + l + sovParams(uint64(l)) + } + } + return n +} + +func (m *Airdrop) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AirdropIdentifier) + if l > 0 { + n += 1 + l + sovParams(uint64(l)) + } + l = github_com_gogo_protobuf_types.SizeOfStdTime(m.AirdropStartTime) + n += 1 + l + sovParams(uint64(l)) + l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.AirdropDuration) + n += 1 + l + sovParams(uint64(l)) + l = len(m.ClaimDenom) + if l > 0 { + n += 1 + l + sovParams(uint64(l)) + } + l = len(m.DistributorAddress) + if l > 0 { + n += 1 + l + sovParams(uint64(l)) + } + l = m.ClaimedSoFar.Size() + n += 1 + l + sovParams(uint64(l)) + return n +} + +func sovParams(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozParams(x uint64) (n int) { + return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Params) 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 ErrIntOverflowParams + } + 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: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Airdrops", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Airdrops = append(m.Airdrops, &Airdrop{}) + if err := m.Airdrops[len(m.Airdrops)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipParams(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthParams + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Airdrop) 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 ErrIntOverflowParams + } + 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: Airdrop: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Airdrop: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropIdentifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + 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 ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AirdropIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropStartTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.AirdropStartTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropDuration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.AirdropDuration, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + 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 ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClaimDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DistributorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + 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 ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DistributorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimedSoFar", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + 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 ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ClaimedSoFar.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipParams(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthParams + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipParams(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, ErrIntOverflowParams + } + 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, ErrIntOverflowParams + } + 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, ErrIntOverflowParams + } + 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, ErrInvalidLengthParams + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupParams + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthParams + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/claim/types/query.pb.go b/x/claim/types/query.pb.go new file mode 100644 index 0000000000..c00e3f49b7 --- /dev/null +++ b/x/claim/types/query.pb.go @@ -0,0 +1,2800 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/claim/query.proto + +package types + +import ( + context "context" + fmt "fmt" + types1 "github.com/Stride-Labs/stride/v7/x/claim/vesting/types" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + 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 + +// QueryParamsRequest is the request type for the Query/Params RPC method. +type QueryDistributorAccountBalanceRequest struct { + AirdropIdentifier string `protobuf:"bytes,1,opt,name=airdrop_identifier,json=airdropIdentifier,proto3" json:"airdrop_identifier,omitempty" yaml:"airdrop_identifier"` +} + +func (m *QueryDistributorAccountBalanceRequest) Reset() { *m = QueryDistributorAccountBalanceRequest{} } +func (m *QueryDistributorAccountBalanceRequest) String() string { return proto.CompactTextString(m) } +func (*QueryDistributorAccountBalanceRequest) ProtoMessage() {} +func (*QueryDistributorAccountBalanceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_baa87682a02846df, []int{0} +} +func (m *QueryDistributorAccountBalanceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDistributorAccountBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDistributorAccountBalanceRequest.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 *QueryDistributorAccountBalanceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDistributorAccountBalanceRequest.Merge(m, src) +} +func (m *QueryDistributorAccountBalanceRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryDistributorAccountBalanceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDistributorAccountBalanceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDistributorAccountBalanceRequest proto.InternalMessageInfo + +func (m *QueryDistributorAccountBalanceRequest) GetAirdropIdentifier() string { + if m != nil { + return m.AirdropIdentifier + } + return "" +} + +// QueryParamsResponse is the response type for the Query/Params RPC method. +type QueryDistributorAccountBalanceResponse struct { + // params defines the parameters of the module. + DistributorAccountBalance github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=distributor_account_balance,json=distributorAccountBalance,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"distributor_account_balance" yaml:"distributor_account_balance"` +} + +func (m *QueryDistributorAccountBalanceResponse) Reset() { + *m = QueryDistributorAccountBalanceResponse{} +} +func (m *QueryDistributorAccountBalanceResponse) String() string { return proto.CompactTextString(m) } +func (*QueryDistributorAccountBalanceResponse) ProtoMessage() {} +func (*QueryDistributorAccountBalanceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_baa87682a02846df, []int{1} +} +func (m *QueryDistributorAccountBalanceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDistributorAccountBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDistributorAccountBalanceResponse.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 *QueryDistributorAccountBalanceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDistributorAccountBalanceResponse.Merge(m, src) +} +func (m *QueryDistributorAccountBalanceResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryDistributorAccountBalanceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDistributorAccountBalanceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDistributorAccountBalanceResponse proto.InternalMessageInfo + +func (m *QueryDistributorAccountBalanceResponse) GetDistributorAccountBalance() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.DistributorAccountBalance + } + return nil +} + +// QueryParamsRequest is the request type for the Query/Params RPC method. +type QueryParamsRequest struct { +} + +func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } +func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryParamsRequest) ProtoMessage() {} +func (*QueryParamsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_baa87682a02846df, []int{2} +} +func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsRequest.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 *QueryParamsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsRequest.Merge(m, src) +} +func (m *QueryParamsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo + +// QueryParamsResponse is the response type for the Query/Params RPC method. +type QueryParamsResponse struct { + // params defines the parameters of the module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` +} + +func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } +func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryParamsResponse) ProtoMessage() {} +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_baa87682a02846df, []int{3} +} +func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsResponse.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 *QueryParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsResponse.Merge(m, src) +} +func (m *QueryParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo + +func (m *QueryParamsResponse) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +type QueryClaimRecordRequest struct { + AirdropIdentifier string `protobuf:"bytes,1,opt,name=airdrop_identifier,json=airdropIdentifier,proto3" json:"airdrop_identifier,omitempty" yaml:"airdrop_identifier"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` +} + +func (m *QueryClaimRecordRequest) Reset() { *m = QueryClaimRecordRequest{} } +func (m *QueryClaimRecordRequest) String() string { return proto.CompactTextString(m) } +func (*QueryClaimRecordRequest) ProtoMessage() {} +func (*QueryClaimRecordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_baa87682a02846df, []int{4} +} +func (m *QueryClaimRecordRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryClaimRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryClaimRecordRequest.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 *QueryClaimRecordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryClaimRecordRequest.Merge(m, src) +} +func (m *QueryClaimRecordRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryClaimRecordRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryClaimRecordRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryClaimRecordRequest proto.InternalMessageInfo + +func (m *QueryClaimRecordRequest) GetAirdropIdentifier() string { + if m != nil { + return m.AirdropIdentifier + } + return "" +} + +func (m *QueryClaimRecordRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +type QueryClaimRecordResponse struct { + ClaimRecord ClaimRecord `protobuf:"bytes,1,opt,name=claim_record,json=claimRecord,proto3" json:"claim_record" yaml:"claim_record"` +} + +func (m *QueryClaimRecordResponse) Reset() { *m = QueryClaimRecordResponse{} } +func (m *QueryClaimRecordResponse) String() string { return proto.CompactTextString(m) } +func (*QueryClaimRecordResponse) ProtoMessage() {} +func (*QueryClaimRecordResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_baa87682a02846df, []int{5} +} +func (m *QueryClaimRecordResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryClaimRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryClaimRecordResponse.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 *QueryClaimRecordResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryClaimRecordResponse.Merge(m, src) +} +func (m *QueryClaimRecordResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryClaimRecordResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryClaimRecordResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryClaimRecordResponse proto.InternalMessageInfo + +func (m *QueryClaimRecordResponse) GetClaimRecord() ClaimRecord { + if m != nil { + return m.ClaimRecord + } + return ClaimRecord{} +} + +type QueryClaimableForActionRequest struct { + AirdropIdentifier string `protobuf:"bytes,1,opt,name=airdrop_identifier,json=airdropIdentifier,proto3" json:"airdrop_identifier,omitempty" yaml:"airdrop_identifier"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` + Action Action `protobuf:"varint,3,opt,name=action,proto3,enum=stride.claim.Action" json:"action,omitempty" yaml:"action"` +} + +func (m *QueryClaimableForActionRequest) Reset() { *m = QueryClaimableForActionRequest{} } +func (m *QueryClaimableForActionRequest) String() string { return proto.CompactTextString(m) } +func (*QueryClaimableForActionRequest) ProtoMessage() {} +func (*QueryClaimableForActionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_baa87682a02846df, []int{6} +} +func (m *QueryClaimableForActionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryClaimableForActionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryClaimableForActionRequest.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 *QueryClaimableForActionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryClaimableForActionRequest.Merge(m, src) +} +func (m *QueryClaimableForActionRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryClaimableForActionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryClaimableForActionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryClaimableForActionRequest proto.InternalMessageInfo + +func (m *QueryClaimableForActionRequest) GetAirdropIdentifier() string { + if m != nil { + return m.AirdropIdentifier + } + return "" +} + +func (m *QueryClaimableForActionRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryClaimableForActionRequest) GetAction() Action { + if m != nil { + return m.Action + } + return ACTION_FREE +} + +type QueryClaimableForActionResponse struct { + Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins" yaml:"coins"` +} + +func (m *QueryClaimableForActionResponse) Reset() { *m = QueryClaimableForActionResponse{} } +func (m *QueryClaimableForActionResponse) String() string { return proto.CompactTextString(m) } +func (*QueryClaimableForActionResponse) ProtoMessage() {} +func (*QueryClaimableForActionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_baa87682a02846df, []int{7} +} +func (m *QueryClaimableForActionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryClaimableForActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryClaimableForActionResponse.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 *QueryClaimableForActionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryClaimableForActionResponse.Merge(m, src) +} +func (m *QueryClaimableForActionResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryClaimableForActionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryClaimableForActionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryClaimableForActionResponse proto.InternalMessageInfo + +func (m *QueryClaimableForActionResponse) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Coins + } + return nil +} + +type QueryTotalClaimableRequest struct { + AirdropIdentifier string `protobuf:"bytes,1,opt,name=airdrop_identifier,json=airdropIdentifier,proto3" json:"airdrop_identifier,omitempty" yaml:"airdrop_identifier"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` + IncludeClaimed bool `protobuf:"varint,3,opt,name=include_claimed,json=includeClaimed,proto3" json:"include_claimed,omitempty"` +} + +func (m *QueryTotalClaimableRequest) Reset() { *m = QueryTotalClaimableRequest{} } +func (m *QueryTotalClaimableRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTotalClaimableRequest) ProtoMessage() {} +func (*QueryTotalClaimableRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_baa87682a02846df, []int{8} +} +func (m *QueryTotalClaimableRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTotalClaimableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTotalClaimableRequest.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 *QueryTotalClaimableRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTotalClaimableRequest.Merge(m, src) +} +func (m *QueryTotalClaimableRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryTotalClaimableRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTotalClaimableRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTotalClaimableRequest proto.InternalMessageInfo + +func (m *QueryTotalClaimableRequest) GetAirdropIdentifier() string { + if m != nil { + return m.AirdropIdentifier + } + return "" +} + +func (m *QueryTotalClaimableRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryTotalClaimableRequest) GetIncludeClaimed() bool { + if m != nil { + return m.IncludeClaimed + } + return false +} + +type QueryTotalClaimableResponse struct { + Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins" yaml:"coins"` +} + +func (m *QueryTotalClaimableResponse) Reset() { *m = QueryTotalClaimableResponse{} } +func (m *QueryTotalClaimableResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTotalClaimableResponse) ProtoMessage() {} +func (*QueryTotalClaimableResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_baa87682a02846df, []int{9} +} +func (m *QueryTotalClaimableResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryTotalClaimableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryTotalClaimableResponse.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 *QueryTotalClaimableResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTotalClaimableResponse.Merge(m, src) +} +func (m *QueryTotalClaimableResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryTotalClaimableResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTotalClaimableResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryTotalClaimableResponse proto.InternalMessageInfo + +func (m *QueryTotalClaimableResponse) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Coins + } + return nil +} + +type QueryUserVestingsRequest struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` +} + +func (m *QueryUserVestingsRequest) Reset() { *m = QueryUserVestingsRequest{} } +func (m *QueryUserVestingsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryUserVestingsRequest) ProtoMessage() {} +func (*QueryUserVestingsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_baa87682a02846df, []int{10} +} +func (m *QueryUserVestingsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryUserVestingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryUserVestingsRequest.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 *QueryUserVestingsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryUserVestingsRequest.Merge(m, src) +} +func (m *QueryUserVestingsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryUserVestingsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryUserVestingsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryUserVestingsRequest proto.InternalMessageInfo + +func (m *QueryUserVestingsRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +type QueryUserVestingsResponse struct { + SpendableCoins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=spendable_coins,json=spendableCoins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"spendable_coins" yaml:"spendable_coins"` + Periods []types1.Period `protobuf:"bytes,1,rep,name=periods,proto3" json:"periods" yaml:"periods"` +} + +func (m *QueryUserVestingsResponse) Reset() { *m = QueryUserVestingsResponse{} } +func (m *QueryUserVestingsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryUserVestingsResponse) ProtoMessage() {} +func (*QueryUserVestingsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_baa87682a02846df, []int{11} +} +func (m *QueryUserVestingsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryUserVestingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryUserVestingsResponse.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 *QueryUserVestingsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryUserVestingsResponse.Merge(m, src) +} +func (m *QueryUserVestingsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryUserVestingsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryUserVestingsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryUserVestingsResponse proto.InternalMessageInfo + +func (m *QueryUserVestingsResponse) GetSpendableCoins() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.SpendableCoins + } + return nil +} + +func (m *QueryUserVestingsResponse) GetPeriods() []types1.Period { + if m != nil { + return m.Periods + } + return nil +} + +func init() { + proto.RegisterType((*QueryDistributorAccountBalanceRequest)(nil), "stride.claim.QueryDistributorAccountBalanceRequest") + proto.RegisterType((*QueryDistributorAccountBalanceResponse)(nil), "stride.claim.QueryDistributorAccountBalanceResponse") + proto.RegisterType((*QueryParamsRequest)(nil), "stride.claim.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "stride.claim.QueryParamsResponse") + proto.RegisterType((*QueryClaimRecordRequest)(nil), "stride.claim.QueryClaimRecordRequest") + proto.RegisterType((*QueryClaimRecordResponse)(nil), "stride.claim.QueryClaimRecordResponse") + proto.RegisterType((*QueryClaimableForActionRequest)(nil), "stride.claim.QueryClaimableForActionRequest") + proto.RegisterType((*QueryClaimableForActionResponse)(nil), "stride.claim.QueryClaimableForActionResponse") + proto.RegisterType((*QueryTotalClaimableRequest)(nil), "stride.claim.QueryTotalClaimableRequest") + proto.RegisterType((*QueryTotalClaimableResponse)(nil), "stride.claim.QueryTotalClaimableResponse") + proto.RegisterType((*QueryUserVestingsRequest)(nil), "stride.claim.QueryUserVestingsRequest") + proto.RegisterType((*QueryUserVestingsResponse)(nil), "stride.claim.QueryUserVestingsResponse") +} + +func init() { proto.RegisterFile("stride/claim/query.proto", fileDescriptor_baa87682a02846df) } + +var fileDescriptor_baa87682a02846df = []byte{ + // 948 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x41, 0x6f, 0xdc, 0x44, + 0x14, 0xce, 0x34, 0x74, 0x0b, 0x93, 0x74, 0xa3, 0x4e, 0x43, 0xd8, 0x75, 0x5a, 0xef, 0x32, 0x52, + 0xd2, 0x45, 0x6a, 0x6c, 0x9a, 0x22, 0x90, 0xb8, 0x00, 0x1b, 0x84, 0x52, 0xd4, 0x43, 0x31, 0x50, + 0x09, 0x2e, 0xab, 0xb1, 0x3d, 0x5d, 0x2c, 0xbc, 0x1e, 0xc7, 0x63, 0x57, 0x44, 0x55, 0x2f, 0x70, + 0xe0, 0x06, 0x95, 0x80, 0x1f, 0x01, 0x12, 0x07, 0x7e, 0x02, 0xb7, 0x1e, 0x2b, 0x71, 0xe1, 0x00, + 0x0b, 0x4a, 0xb8, 0x71, 0xcb, 0x81, 0x33, 0xf2, 0xcc, 0x73, 0xd6, 0x4e, 0xbc, 0xdd, 0xe4, 0x80, + 0xc8, 0x25, 0xce, 0xce, 0xfb, 0xde, 0x7b, 0xdf, 0xf7, 0x8d, 0xe7, 0x8d, 0x71, 0x4b, 0xa6, 0x49, + 0xe0, 0x73, 0xdb, 0x0b, 0x59, 0x30, 0xb2, 0x77, 0x32, 0x9e, 0xec, 0x5a, 0x71, 0x22, 0x52, 0x41, + 0x16, 0x75, 0xc4, 0x52, 0x11, 0x63, 0x79, 0x28, 0x86, 0x42, 0x05, 0xec, 0xfc, 0x3f, 0x8d, 0x31, + 0xae, 0x0c, 0x85, 0x18, 0x86, 0xdc, 0x66, 0x71, 0x60, 0xb3, 0x28, 0x12, 0x29, 0x4b, 0x03, 0x11, + 0x49, 0x88, 0x9a, 0x9e, 0x90, 0x23, 0x21, 0x6d, 0x97, 0x49, 0x6e, 0xdf, 0xbf, 0xe1, 0xf2, 0x94, + 0xdd, 0xb0, 0x3d, 0x11, 0x44, 0x10, 0xaf, 0xf6, 0x56, 0x7f, 0x21, 0xd2, 0xae, 0x44, 0x62, 0x96, + 0xb0, 0x51, 0x51, 0xf4, 0x0a, 0x84, 0xee, 0x73, 0x99, 0x06, 0xd1, 0xb0, 0x78, 0xea, 0x28, 0xcd, + 0xf0, 0xda, 0x7b, 0xb9, 0x86, 0xb7, 0x83, 0x1c, 0xe6, 0x66, 0xa9, 0x48, 0xde, 0xf2, 0x3c, 0x91, + 0x45, 0x69, 0x9f, 0x85, 0x2c, 0xf2, 0xb8, 0xc3, 0x77, 0x32, 0x2e, 0x53, 0x72, 0x1b, 0x13, 0x16, + 0x24, 0x7e, 0x22, 0xe2, 0x41, 0xe0, 0xf3, 0x28, 0x0d, 0xee, 0x05, 0x3c, 0x69, 0xa1, 0x2e, 0xea, + 0x3d, 0xd7, 0xbf, 0x7a, 0x30, 0xee, 0xb4, 0x77, 0xd9, 0x28, 0x7c, 0x9d, 0x1e, 0xc7, 0x50, 0xe7, + 0x12, 0x2c, 0xde, 0x9a, 0xac, 0xfd, 0x86, 0xf0, 0xfa, 0xac, 0xbe, 0x32, 0x16, 0x91, 0xe4, 0xe4, + 0x27, 0x84, 0x57, 0xfd, 0x09, 0x6a, 0xc0, 0x34, 0x6c, 0xe0, 0x6a, 0x5c, 0x0b, 0x75, 0xe7, 0x7b, + 0x0b, 0x9b, 0x6d, 0x4b, 0x7b, 0x67, 0xe5, 0xde, 0x59, 0xe0, 0x9d, 0xb5, 0x25, 0x82, 0xa8, 0x7f, + 0xf7, 0xf1, 0xb8, 0x33, 0x77, 0x30, 0xee, 0x50, 0xcd, 0xf0, 0x29, 0xb5, 0xe8, 0x0f, 0x7f, 0x74, + 0x7a, 0xc3, 0x20, 0xfd, 0x24, 0x73, 0x2d, 0x4f, 0x8c, 0x6c, 0xd8, 0x0e, 0xfd, 0xd8, 0x90, 0xfe, + 0xa7, 0x76, 0xba, 0x1b, 0x73, 0xa9, 0xca, 0x4a, 0xa7, 0xed, 0x4f, 0xe3, 0x4e, 0x97, 0x31, 0x51, + 0xea, 0xee, 0xa8, 0x8d, 0x00, 0x0b, 0xe9, 0x2d, 0x7c, 0xb9, 0xb2, 0x0a, 0x02, 0x37, 0x71, 0x43, + 0x6f, 0x98, 0x72, 0x73, 0x61, 0x73, 0xd9, 0x2a, 0xbf, 0x48, 0x96, 0x46, 0xf7, 0x9f, 0xc9, 0x55, + 0x38, 0x80, 0xa4, 0xdf, 0x21, 0xfc, 0x82, 0xaa, 0xb5, 0x95, 0x63, 0x1c, 0xee, 0x89, 0xc4, 0xff, + 0x4f, 0x76, 0x8a, 0x5c, 0xc7, 0x17, 0x98, 0xef, 0x27, 0x5c, 0xca, 0xd6, 0x39, 0x55, 0x82, 0x1c, + 0x8c, 0x3b, 0x4d, 0x28, 0xa1, 0x03, 0xd4, 0x29, 0x20, 0x34, 0xc3, 0xad, 0xe3, 0xb4, 0x40, 0xe7, + 0x47, 0x78, 0x51, 0x29, 0x1a, 0x24, 0x6a, 0x1d, 0xd4, 0xb6, 0xab, 0x6a, 0x4b, 0x89, 0xfd, 0x55, + 0xd8, 0xb8, 0xcb, 0xba, 0x5b, 0x39, 0x99, 0x3a, 0x0b, 0xde, 0x04, 0x49, 0x7f, 0x47, 0xd8, 0x9c, + 0xf4, 0x65, 0x6e, 0xc8, 0xdf, 0xc9, 0xf7, 0x24, 0x3f, 0x5b, 0x67, 0xc0, 0x15, 0xf2, 0x06, 0x6e, + 0x30, 0x45, 0xa6, 0x35, 0xdf, 0x45, 0xbd, 0xe6, 0xd1, 0x1d, 0xd6, 0x44, 0xfb, 0x97, 0x0e, 0xc6, + 0x9d, 0x8b, 0x50, 0x42, 0xad, 0x50, 0x07, 0xd2, 0xe8, 0xb7, 0x08, 0x77, 0xa6, 0xea, 0x03, 0x7b, + 0x77, 0xf0, 0xf9, 0x7c, 0x54, 0xc8, 0xd9, 0x07, 0xe2, 0x4d, 0xf0, 0x75, 0x11, 0x7c, 0xcd, 0xb3, + 0x4e, 0xf7, 0xea, 0xeb, 0x4e, 0xf4, 0x67, 0x84, 0x0d, 0x45, 0xeb, 0x03, 0x91, 0xb2, 0xf0, 0x90, + 0xdb, 0x59, 0xb0, 0xfc, 0x1a, 0x5e, 0x0a, 0x22, 0x2f, 0xcc, 0x7c, 0x3e, 0x50, 0x26, 0x73, 0x5f, + 0x79, 0xff, 0xac, 0xd3, 0x84, 0xe5, 0x2d, 0xbd, 0x4a, 0x1f, 0x21, 0xbc, 0x5a, 0xab, 0xe1, 0xff, + 0xb3, 0x75, 0x1b, 0x0e, 0xd1, 0x87, 0x92, 0x27, 0x77, 0xf5, 0xb4, 0x2e, 0x66, 0x48, 0xd9, 0x05, + 0x34, 0xfb, 0x38, 0xfe, 0x83, 0x70, 0xbb, 0xa6, 0x14, 0x48, 0xfb, 0x0a, 0xe1, 0x25, 0x19, 0xf3, + 0xc8, 0xcf, 0x05, 0x0f, 0xb4, 0xca, 0xf9, 0x59, 0x2a, 0xdf, 0x05, 0x95, 0x2b, 0xba, 0xe7, 0x91, + 0xfc, 0xd3, 0xe9, 0x6d, 0x1e, 0x66, 0xab, 0xdf, 0x64, 0x1b, 0x5f, 0x88, 0x79, 0x12, 0x08, 0xbf, + 0x70, 0x7b, 0xa5, 0x38, 0x28, 0xc5, 0xa5, 0x75, 0x47, 0x85, 0xfb, 0x2b, 0x40, 0x02, 0x84, 0x43, + 0x12, 0x75, 0x8a, 0xf4, 0xcd, 0xbf, 0x1b, 0xf8, 0xbc, 0x12, 0x4e, 0x7e, 0x44, 0xb8, 0x3d, 0xf5, + 0x92, 0x21, 0x37, 0xab, 0x27, 0xf1, 0x44, 0x57, 0xa1, 0xf1, 0xca, 0xe9, 0x92, 0xb4, 0xdb, 0x74, + 0xed, 0xf3, 0x5f, 0xfe, 0xfa, 0xe6, 0x5c, 0x87, 0x5c, 0x85, 0x4b, 0x7a, 0x24, 0xfc, 0x2c, 0xe4, + 0x47, 0xaf, 0x20, 0xe2, 0xe3, 0x86, 0x9e, 0xf8, 0xa4, 0x5b, 0xd3, 0xa6, 0x72, 0xa1, 0x18, 0x2f, + 0x3e, 0x05, 0x01, 0x5d, 0x9f, 0x57, 0x5d, 0x97, 0xc8, 0xc5, 0xca, 0xa7, 0x01, 0xf9, 0x02, 0xe1, + 0x85, 0xd2, 0xa8, 0x25, 0x6b, 0x35, 0x95, 0x8e, 0x5f, 0x2d, 0xc6, 0xfa, 0x2c, 0xd8, 0x14, 0xad, + 0xe5, 0xd1, 0x6d, 0x3f, 0x80, 0xb7, 0xf3, 0x21, 0xf9, 0x1e, 0x61, 0x72, 0x7c, 0xa2, 0x91, 0xeb, + 0xd3, 0xba, 0xd4, 0x0d, 0x76, 0x63, 0xe3, 0x84, 0x68, 0xa0, 0xf6, 0xaa, 0xa2, 0xf6, 0x32, 0xb1, + 0xca, 0xd4, 0xd4, 0x0b, 0x7c, 0x4f, 0x7d, 0x10, 0xe4, 0xe0, 0x09, 0x45, 0xfb, 0x81, 0x5e, 0x79, + 0x48, 0xbe, 0x46, 0xb8, 0x59, 0x1d, 0x11, 0xa4, 0x57, 0xd3, 0xb9, 0x76, 0x12, 0x1a, 0x2f, 0x9d, + 0x00, 0x09, 0xfc, 0x7a, 0x8a, 0x1f, 0x25, 0x5d, 0xe0, 0x97, 0xe6, 0xb0, 0xc1, 0x21, 0xcb, 0x92, + 0x7b, 0x5f, 0x22, 0xbc, 0x58, 0x3e, 0xd7, 0xa4, 0x6e, 0x77, 0x6a, 0x66, 0x88, 0x71, 0x6d, 0x26, + 0x0e, 0xb8, 0xac, 0x2b, 0x2e, 0x5d, 0x62, 0x02, 0x97, 0x4c, 0xf2, 0x64, 0x00, 0x47, 0x51, 0x4e, + 0x98, 0xf4, 0xb7, 0x1f, 0xef, 0x99, 0xe8, 0xc9, 0x9e, 0x89, 0xfe, 0xdc, 0x33, 0xd1, 0xa3, 0x7d, + 0x73, 0xee, 0xc9, 0xbe, 0x39, 0xf7, 0xeb, 0xbe, 0x39, 0xf7, 0xb1, 0x55, 0x9a, 0x05, 0xef, 0xab, + 0xa6, 0x1b, 0xb7, 0x99, 0x2b, 0xed, 0xe2, 0x9b, 0xf4, 0x35, 0xfb, 0xb3, 0x42, 0x67, 0x3e, 0x17, + 0xdc, 0x86, 0xfa, 0x2a, 0xbd, 0xf9, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa1, 0xb9, 0x1a, 0x52, + 0x66, 0x0b, 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 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + DistributorAccountBalance(ctx context.Context, in *QueryDistributorAccountBalanceRequest, opts ...grpc.CallOption) (*QueryDistributorAccountBalanceResponse, error) + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + ClaimRecord(ctx context.Context, in *QueryClaimRecordRequest, opts ...grpc.CallOption) (*QueryClaimRecordResponse, error) + ClaimableForAction(ctx context.Context, in *QueryClaimableForActionRequest, opts ...grpc.CallOption) (*QueryClaimableForActionResponse, error) + TotalClaimable(ctx context.Context, in *QueryTotalClaimableRequest, opts ...grpc.CallOption) (*QueryTotalClaimableResponse, error) + UserVestings(ctx context.Context, in *QueryUserVestingsRequest, opts ...grpc.CallOption) (*QueryUserVestingsResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) DistributorAccountBalance(ctx context.Context, in *QueryDistributorAccountBalanceRequest, opts ...grpc.CallOption) (*QueryDistributorAccountBalanceResponse, error) { + out := new(QueryDistributorAccountBalanceResponse) + err := c.cc.Invoke(ctx, "/stride.claim.Query/DistributorAccountBalance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/stride.claim.Query/Params", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ClaimRecord(ctx context.Context, in *QueryClaimRecordRequest, opts ...grpc.CallOption) (*QueryClaimRecordResponse, error) { + out := new(QueryClaimRecordResponse) + err := c.cc.Invoke(ctx, "/stride.claim.Query/ClaimRecord", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ClaimableForAction(ctx context.Context, in *QueryClaimableForActionRequest, opts ...grpc.CallOption) (*QueryClaimableForActionResponse, error) { + out := new(QueryClaimableForActionResponse) + err := c.cc.Invoke(ctx, "/stride.claim.Query/ClaimableForAction", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) TotalClaimable(ctx context.Context, in *QueryTotalClaimableRequest, opts ...grpc.CallOption) (*QueryTotalClaimableResponse, error) { + out := new(QueryTotalClaimableResponse) + err := c.cc.Invoke(ctx, "/stride.claim.Query/TotalClaimable", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) UserVestings(ctx context.Context, in *QueryUserVestingsRequest, opts ...grpc.CallOption) (*QueryUserVestingsResponse, error) { + out := new(QueryUserVestingsResponse) + err := c.cc.Invoke(ctx, "/stride.claim.Query/UserVestings", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + DistributorAccountBalance(context.Context, *QueryDistributorAccountBalanceRequest) (*QueryDistributorAccountBalanceResponse, error) + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + ClaimRecord(context.Context, *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error) + ClaimableForAction(context.Context, *QueryClaimableForActionRequest) (*QueryClaimableForActionResponse, error) + TotalClaimable(context.Context, *QueryTotalClaimableRequest) (*QueryTotalClaimableResponse, error) + UserVestings(context.Context, *QueryUserVestingsRequest) (*QueryUserVestingsResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) DistributorAccountBalance(ctx context.Context, req *QueryDistributorAccountBalanceRequest) (*QueryDistributorAccountBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DistributorAccountBalance not implemented") +} +func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (*UnimplementedQueryServer) ClaimRecord(ctx context.Context, req *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClaimRecord not implemented") +} +func (*UnimplementedQueryServer) ClaimableForAction(ctx context.Context, req *QueryClaimableForActionRequest) (*QueryClaimableForActionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClaimableForAction not implemented") +} +func (*UnimplementedQueryServer) TotalClaimable(ctx context.Context, req *QueryTotalClaimableRequest) (*QueryTotalClaimableResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TotalClaimable not implemented") +} +func (*UnimplementedQueryServer) UserVestings(ctx context.Context, req *QueryUserVestingsRequest) (*QueryUserVestingsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserVestings not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_DistributorAccountBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDistributorAccountBalanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).DistributorAccountBalance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.claim.Query/DistributorAccountBalance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).DistributorAccountBalance(ctx, req.(*QueryDistributorAccountBalanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.claim.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ClaimRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryClaimRecordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ClaimRecord(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.claim.Query/ClaimRecord", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ClaimRecord(ctx, req.(*QueryClaimRecordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ClaimableForAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryClaimableForActionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ClaimableForAction(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.claim.Query/ClaimableForAction", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ClaimableForAction(ctx, req.(*QueryClaimableForActionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_TotalClaimable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryTotalClaimableRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).TotalClaimable(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.claim.Query/TotalClaimable", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).TotalClaimable(ctx, req.(*QueryTotalClaimableRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_UserVestings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryUserVestingsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).UserVestings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.claim.Query/UserVestings", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).UserVestings(ctx, req.(*QueryUserVestingsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "stride.claim.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "DistributorAccountBalance", + Handler: _Query_DistributorAccountBalance_Handler, + }, + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "ClaimRecord", + Handler: _Query_ClaimRecord_Handler, + }, + { + MethodName: "ClaimableForAction", + Handler: _Query_ClaimableForAction_Handler, + }, + { + MethodName: "TotalClaimable", + Handler: _Query_TotalClaimable_Handler, + }, + { + MethodName: "UserVestings", + Handler: _Query_UserVestings_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "stride/claim/query.proto", +} + +func (m *QueryDistributorAccountBalanceRequest) 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 *QueryDistributorAccountBalanceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDistributorAccountBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AirdropIdentifier) > 0 { + i -= len(m.AirdropIdentifier) + copy(dAtA[i:], m.AirdropIdentifier) + i = encodeVarintQuery(dAtA, i, uint64(len(m.AirdropIdentifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryDistributorAccountBalanceResponse) 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 *QueryDistributorAccountBalanceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDistributorAccountBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DistributorAccountBalance) > 0 { + for iNdEx := len(m.DistributorAccountBalance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DistributorAccountBalance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryParamsResponse) 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 *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryClaimRecordRequest) 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 *QueryClaimRecordRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryClaimRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.AirdropIdentifier) > 0 { + i -= len(m.AirdropIdentifier) + copy(dAtA[i:], m.AirdropIdentifier) + i = encodeVarintQuery(dAtA, i, uint64(len(m.AirdropIdentifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryClaimRecordResponse) 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 *QueryClaimRecordResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryClaimRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.ClaimRecord.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryClaimableForActionRequest) 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 *QueryClaimableForActionRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryClaimableForActionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Action != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Action)) + i-- + dAtA[i] = 0x18 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.AirdropIdentifier) > 0 { + i -= len(m.AirdropIdentifier) + copy(dAtA[i:], m.AirdropIdentifier) + i = encodeVarintQuery(dAtA, i, uint64(len(m.AirdropIdentifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryClaimableForActionResponse) 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 *QueryClaimableForActionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryClaimableForActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Coins) > 0 { + for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryTotalClaimableRequest) 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 *QueryTotalClaimableRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTotalClaimableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IncludeClaimed { + i-- + if m.IncludeClaimed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.AirdropIdentifier) > 0 { + i -= len(m.AirdropIdentifier) + copy(dAtA[i:], m.AirdropIdentifier) + i = encodeVarintQuery(dAtA, i, uint64(len(m.AirdropIdentifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryTotalClaimableResponse) 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 *QueryTotalClaimableResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTotalClaimableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Coins) > 0 { + for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryUserVestingsRequest) 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 *QueryUserVestingsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryUserVestingsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryUserVestingsResponse) 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 *QueryUserVestingsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryUserVestingsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SpendableCoins) > 0 { + for iNdEx := len(m.SpendableCoins) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SpendableCoins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Periods) > 0 { + for iNdEx := len(m.Periods) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Periods[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryDistributorAccountBalanceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AirdropIdentifier) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryDistributorAccountBalanceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.DistributorAccountBalance) > 0 { + for _, e := range m.DistributorAccountBalance { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryClaimRecordRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AirdropIdentifier) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryClaimRecordResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ClaimRecord.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryClaimableForActionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AirdropIdentifier) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Action != 0 { + n += 1 + sovQuery(uint64(m.Action)) + } + return n +} + +func (m *QueryClaimableForActionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Coins) > 0 { + for _, e := range m.Coins { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryTotalClaimableRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AirdropIdentifier) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.IncludeClaimed { + n += 2 + } + return n +} + +func (m *QueryTotalClaimableResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Coins) > 0 { + for _, e := range m.Coins { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryUserVestingsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryUserVestingsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Periods) > 0 { + for _, e := range m.Periods { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if len(m.SpendableCoins) > 0 { + for _, e := range m.SpendableCoins { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryDistributorAccountBalanceRequest) 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 ErrIntOverflowQuery + } + 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: QueryDistributorAccountBalanceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDistributorAccountBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropIdentifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AirdropIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryDistributorAccountBalanceResponse) 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 ErrIntOverflowQuery + } + 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: QueryDistributorAccountBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDistributorAccountBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DistributorAccountBalance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DistributorAccountBalance = append(m.DistributorAccountBalance, types.Coin{}) + if err := m.DistributorAccountBalance[len(m.DistributorAccountBalance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsRequest) 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 ErrIntOverflowQuery + } + 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: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsResponse) 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 ErrIntOverflowQuery + } + 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: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryClaimRecordRequest) 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 ErrIntOverflowQuery + } + 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: QueryClaimRecordRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryClaimRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropIdentifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AirdropIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryClaimRecordResponse) 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 ErrIntOverflowQuery + } + 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: QueryClaimRecordResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryClaimRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimRecord", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ClaimRecord.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryClaimableForActionRequest) 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 ErrIntOverflowQuery + } + 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: QueryClaimableForActionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryClaimableForActionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropIdentifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AirdropIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + m.Action = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Action |= Action(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryClaimableForActionResponse) 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 ErrIntOverflowQuery + } + 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: QueryClaimableForActionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryClaimableForActionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coins = append(m.Coins, types.Coin{}) + if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTotalClaimableRequest) 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 ErrIntOverflowQuery + } + 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: QueryTotalClaimableRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTotalClaimableRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropIdentifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AirdropIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeClaimed", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeClaimed = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryTotalClaimableResponse) 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 ErrIntOverflowQuery + } + 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: QueryTotalClaimableResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryTotalClaimableResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coins = append(m.Coins, types.Coin{}) + if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryUserVestingsRequest) 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 ErrIntOverflowQuery + } + 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: QueryUserVestingsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryUserVestingsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryUserVestingsResponse) 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 ErrIntOverflowQuery + } + 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: QueryUserVestingsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryUserVestingsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Periods", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Periods = append(m.Periods, types1.Period{}) + if err := m.Periods[len(m.Periods)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SpendableCoins", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SpendableCoins = append(m.SpendableCoins, types.Coin{}) + if err := m.SpendableCoins[len(m.SpendableCoins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/claim/types/tx.pb.go b/x/claim/types/tx.pb.go new file mode 100644 index 0000000000..47991f96e8 --- /dev/null +++ b/x/claim/types/tx.pb.go @@ -0,0 +1,1972 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/claim/tx.proto + +package types + +import ( + context "context" + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types "github.com/cosmos/cosmos-sdk/types" + _ "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 + +type MsgSetAirdropAllocations struct { + Allocator string `protobuf:"bytes,1,opt,name=allocator,proto3" json:"allocator,omitempty"` + AirdropIdentifier string `protobuf:"bytes,2,opt,name=airdrop_identifier,json=airdropIdentifier,proto3" json:"airdrop_identifier,omitempty" yaml:"airdrop_identifier"` + Users []string `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` + Weights []github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,rep,name=weights,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"weights" yaml:"weights"` +} + +func (m *MsgSetAirdropAllocations) Reset() { *m = MsgSetAirdropAllocations{} } +func (m *MsgSetAirdropAllocations) String() string { return proto.CompactTextString(m) } +func (*MsgSetAirdropAllocations) ProtoMessage() {} +func (*MsgSetAirdropAllocations) Descriptor() ([]byte, []int) { + return fileDescriptor_9d435242bf328977, []int{0} +} +func (m *MsgSetAirdropAllocations) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetAirdropAllocations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetAirdropAllocations.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 *MsgSetAirdropAllocations) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetAirdropAllocations.Merge(m, src) +} +func (m *MsgSetAirdropAllocations) XXX_Size() int { + return m.Size() +} +func (m *MsgSetAirdropAllocations) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetAirdropAllocations.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetAirdropAllocations proto.InternalMessageInfo + +func (m *MsgSetAirdropAllocations) GetAllocator() string { + if m != nil { + return m.Allocator + } + return "" +} + +func (m *MsgSetAirdropAllocations) GetAirdropIdentifier() string { + if m != nil { + return m.AirdropIdentifier + } + return "" +} + +func (m *MsgSetAirdropAllocations) GetUsers() []string { + if m != nil { + return m.Users + } + return nil +} + +type MsgSetAirdropAllocationsResponse struct { +} + +func (m *MsgSetAirdropAllocationsResponse) Reset() { *m = MsgSetAirdropAllocationsResponse{} } +func (m *MsgSetAirdropAllocationsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetAirdropAllocationsResponse) ProtoMessage() {} +func (*MsgSetAirdropAllocationsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9d435242bf328977, []int{1} +} +func (m *MsgSetAirdropAllocationsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetAirdropAllocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetAirdropAllocationsResponse.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 *MsgSetAirdropAllocationsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetAirdropAllocationsResponse.Merge(m, src) +} +func (m *MsgSetAirdropAllocationsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetAirdropAllocationsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetAirdropAllocationsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetAirdropAllocationsResponse proto.InternalMessageInfo + +type MsgClaimFreeAmount struct { + User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` +} + +func (m *MsgClaimFreeAmount) Reset() { *m = MsgClaimFreeAmount{} } +func (m *MsgClaimFreeAmount) String() string { return proto.CompactTextString(m) } +func (*MsgClaimFreeAmount) ProtoMessage() {} +func (*MsgClaimFreeAmount) Descriptor() ([]byte, []int) { + return fileDescriptor_9d435242bf328977, []int{2} +} +func (m *MsgClaimFreeAmount) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgClaimFreeAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgClaimFreeAmount.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 *MsgClaimFreeAmount) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgClaimFreeAmount.Merge(m, src) +} +func (m *MsgClaimFreeAmount) XXX_Size() int { + return m.Size() +} +func (m *MsgClaimFreeAmount) XXX_DiscardUnknown() { + xxx_messageInfo_MsgClaimFreeAmount.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgClaimFreeAmount proto.InternalMessageInfo + +func (m *MsgClaimFreeAmount) GetUser() string { + if m != nil { + return m.User + } + return "" +} + +type MsgClaimFreeAmountResponse struct { + ClaimedAmount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=claimed_amount,json=claimedAmount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"claimed_amount"` +} + +func (m *MsgClaimFreeAmountResponse) Reset() { *m = MsgClaimFreeAmountResponse{} } +func (m *MsgClaimFreeAmountResponse) String() string { return proto.CompactTextString(m) } +func (*MsgClaimFreeAmountResponse) ProtoMessage() {} +func (*MsgClaimFreeAmountResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9d435242bf328977, []int{3} +} +func (m *MsgClaimFreeAmountResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgClaimFreeAmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgClaimFreeAmountResponse.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 *MsgClaimFreeAmountResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgClaimFreeAmountResponse.Merge(m, src) +} +func (m *MsgClaimFreeAmountResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgClaimFreeAmountResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgClaimFreeAmountResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgClaimFreeAmountResponse proto.InternalMessageInfo + +func (m *MsgClaimFreeAmountResponse) GetClaimedAmount() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.ClaimedAmount + } + return nil +} + +type MsgCreateAirdrop struct { + Distributor string `protobuf:"bytes,1,opt,name=distributor,proto3" json:"distributor,omitempty"` + Identifier string `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` + StartTime uint64 `protobuf:"varint,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + Duration uint64 `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"` + Denom string `protobuf:"bytes,5,opt,name=denom,proto3" json:"denom,omitempty"` +} + +func (m *MsgCreateAirdrop) Reset() { *m = MsgCreateAirdrop{} } +func (m *MsgCreateAirdrop) String() string { return proto.CompactTextString(m) } +func (*MsgCreateAirdrop) ProtoMessage() {} +func (*MsgCreateAirdrop) Descriptor() ([]byte, []int) { + return fileDescriptor_9d435242bf328977, []int{4} +} +func (m *MsgCreateAirdrop) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateAirdrop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateAirdrop.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 *MsgCreateAirdrop) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateAirdrop.Merge(m, src) +} +func (m *MsgCreateAirdrop) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateAirdrop) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateAirdrop.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateAirdrop proto.InternalMessageInfo + +func (m *MsgCreateAirdrop) GetDistributor() string { + if m != nil { + return m.Distributor + } + return "" +} + +func (m *MsgCreateAirdrop) GetIdentifier() string { + if m != nil { + return m.Identifier + } + return "" +} + +func (m *MsgCreateAirdrop) GetStartTime() uint64 { + if m != nil { + return m.StartTime + } + return 0 +} + +func (m *MsgCreateAirdrop) GetDuration() uint64 { + if m != nil { + return m.Duration + } + return 0 +} + +func (m *MsgCreateAirdrop) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +type MsgCreateAirdropResponse struct { +} + +func (m *MsgCreateAirdropResponse) Reset() { *m = MsgCreateAirdropResponse{} } +func (m *MsgCreateAirdropResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateAirdropResponse) ProtoMessage() {} +func (*MsgCreateAirdropResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9d435242bf328977, []int{5} +} +func (m *MsgCreateAirdropResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateAirdropResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateAirdropResponse.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 *MsgCreateAirdropResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateAirdropResponse.Merge(m, src) +} +func (m *MsgCreateAirdropResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateAirdropResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateAirdropResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateAirdropResponse proto.InternalMessageInfo + +type MsgDeleteAirdrop struct { + Distributor string `protobuf:"bytes,1,opt,name=distributor,proto3" json:"distributor,omitempty"` + Identifier string `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` +} + +func (m *MsgDeleteAirdrop) Reset() { *m = MsgDeleteAirdrop{} } +func (m *MsgDeleteAirdrop) String() string { return proto.CompactTextString(m) } +func (*MsgDeleteAirdrop) ProtoMessage() {} +func (*MsgDeleteAirdrop) Descriptor() ([]byte, []int) { + return fileDescriptor_9d435242bf328977, []int{6} +} +func (m *MsgDeleteAirdrop) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDeleteAirdrop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDeleteAirdrop.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 *MsgDeleteAirdrop) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeleteAirdrop.Merge(m, src) +} +func (m *MsgDeleteAirdrop) XXX_Size() int { + return m.Size() +} +func (m *MsgDeleteAirdrop) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeleteAirdrop.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDeleteAirdrop proto.InternalMessageInfo + +func (m *MsgDeleteAirdrop) GetDistributor() string { + if m != nil { + return m.Distributor + } + return "" +} + +func (m *MsgDeleteAirdrop) GetIdentifier() string { + if m != nil { + return m.Identifier + } + return "" +} + +type MsgDeleteAirdropResponse struct { +} + +func (m *MsgDeleteAirdropResponse) Reset() { *m = MsgDeleteAirdropResponse{} } +func (m *MsgDeleteAirdropResponse) String() string { return proto.CompactTextString(m) } +func (*MsgDeleteAirdropResponse) ProtoMessage() {} +func (*MsgDeleteAirdropResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9d435242bf328977, []int{7} +} +func (m *MsgDeleteAirdropResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDeleteAirdropResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDeleteAirdropResponse.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 *MsgDeleteAirdropResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeleteAirdropResponse.Merge(m, src) +} +func (m *MsgDeleteAirdropResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgDeleteAirdropResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeleteAirdropResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDeleteAirdropResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgSetAirdropAllocations)(nil), "stride.claim.MsgSetAirdropAllocations") + proto.RegisterType((*MsgSetAirdropAllocationsResponse)(nil), "stride.claim.MsgSetAirdropAllocationsResponse") + proto.RegisterType((*MsgClaimFreeAmount)(nil), "stride.claim.MsgClaimFreeAmount") + proto.RegisterType((*MsgClaimFreeAmountResponse)(nil), "stride.claim.MsgClaimFreeAmountResponse") + proto.RegisterType((*MsgCreateAirdrop)(nil), "stride.claim.MsgCreateAirdrop") + proto.RegisterType((*MsgCreateAirdropResponse)(nil), "stride.claim.MsgCreateAirdropResponse") + proto.RegisterType((*MsgDeleteAirdrop)(nil), "stride.claim.MsgDeleteAirdrop") + proto.RegisterType((*MsgDeleteAirdropResponse)(nil), "stride.claim.MsgDeleteAirdropResponse") +} + +func init() { proto.RegisterFile("stride/claim/tx.proto", fileDescriptor_9d435242bf328977) } + +var fileDescriptor_9d435242bf328977 = []byte{ + // 600 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4d, 0x6f, 0xd3, 0x30, + 0x18, 0x6e, 0x68, 0x07, 0xd4, 0x63, 0x03, 0xac, 0x4d, 0xca, 0x22, 0x96, 0x46, 0x39, 0x4c, 0xb9, + 0xcc, 0x61, 0xe3, 0x80, 0xc4, 0x89, 0x76, 0x13, 0x02, 0x69, 0xbd, 0x64, 0x93, 0x90, 0x26, 0xa1, + 0x2a, 0x1f, 0x26, 0xb3, 0x68, 0xe2, 0xca, 0x76, 0xc7, 0xf6, 0x0b, 0xb8, 0xee, 0x4f, 0x70, 0xe1, + 0x97, 0xec, 0xb8, 0x23, 0xe2, 0x50, 0x50, 0xfb, 0x0f, 0x76, 0xe2, 0x88, 0x6c, 0xa7, 0x5d, 0xfa, + 0x31, 0xd8, 0x81, 0x53, 0xe2, 0xe7, 0x7d, 0xfd, 0xf8, 0x7d, 0xfc, 0xbc, 0xaf, 0xc1, 0x3a, 0x17, + 0x8c, 0x24, 0xd8, 0x8f, 0xbb, 0x21, 0xc9, 0x7c, 0x71, 0x86, 0x7a, 0x8c, 0x0a, 0x0a, 0x1f, 0x69, + 0x18, 0x29, 0xd8, 0x5a, 0x4b, 0x69, 0x4a, 0x55, 0xc0, 0x97, 0x7f, 0x3a, 0xc7, 0xb2, 0x63, 0xca, + 0x33, 0xca, 0xfd, 0x28, 0xe4, 0xd8, 0x3f, 0xdd, 0x89, 0xb0, 0x08, 0x77, 0xfc, 0x98, 0x92, 0x5c, + 0xc7, 0xdd, 0xdf, 0x06, 0x30, 0xdb, 0x3c, 0x3d, 0xc4, 0xa2, 0x49, 0x58, 0xc2, 0x68, 0xaf, 0xd9, + 0xed, 0xd2, 0x38, 0x14, 0x84, 0xe6, 0x1c, 0x3e, 0x03, 0xf5, 0x50, 0x2f, 0x29, 0x33, 0x0d, 0xc7, + 0xf0, 0xea, 0xc1, 0x0d, 0x00, 0x0f, 0x00, 0x0c, 0xf5, 0x9e, 0x0e, 0x49, 0x70, 0x2e, 0xc8, 0x47, + 0x82, 0x99, 0x79, 0x4f, 0xa6, 0xb5, 0x36, 0xaf, 0x07, 0x8d, 0x8d, 0xf3, 0x30, 0xeb, 0xbe, 0x72, + 0xe7, 0x73, 0xdc, 0xe0, 0x69, 0x01, 0xbe, 0x9b, 0x60, 0x70, 0x0d, 0x2c, 0xf5, 0x39, 0x66, 0xdc, + 0xac, 0x3a, 0x55, 0xaf, 0x1e, 0xe8, 0x05, 0x3c, 0x06, 0x0f, 0x3e, 0x63, 0x92, 0x9e, 0x08, 0x6e, + 0xd6, 0x24, 0xde, 0x7a, 0x7d, 0x39, 0x68, 0x54, 0x7e, 0x0c, 0x1a, 0x5b, 0x29, 0x11, 0x27, 0xfd, + 0x08, 0xc5, 0x34, 0xf3, 0x0b, 0x89, 0xfa, 0xb3, 0xcd, 0x93, 0x4f, 0xbe, 0x38, 0xef, 0x61, 0x8e, + 0xf6, 0x71, 0x7c, 0x3d, 0x68, 0xac, 0xea, 0x32, 0x0a, 0x1a, 0x37, 0x18, 0x13, 0xba, 0x2e, 0x70, + 0x6e, 0x53, 0x1e, 0x60, 0xde, 0xa3, 0x39, 0xc7, 0xae, 0x07, 0x60, 0x9b, 0xa7, 0x7b, 0xf2, 0x82, + 0xdf, 0x30, 0x8c, 0x9b, 0x19, 0xed, 0xe7, 0x02, 0x42, 0x50, 0x93, 0xe5, 0x15, 0x57, 0xa2, 0xfe, + 0xdd, 0x0b, 0x03, 0x58, 0xf3, 0xa9, 0x63, 0x22, 0xc8, 0xc0, 0xaa, 0xb2, 0x09, 0x27, 0x9d, 0x50, + 0x45, 0x94, 0xce, 0xe5, 0xdd, 0x0d, 0xa4, 0xcb, 0x46, 0xd2, 0x20, 0x54, 0x18, 0x84, 0xf6, 0x28, + 0xc9, 0x5b, 0xcf, 0xa5, 0xd4, 0x6f, 0x3f, 0x1b, 0xde, 0x1d, 0xa4, 0xca, 0x0d, 0x3c, 0x58, 0x29, + 0x8e, 0xd0, 0x67, 0xbb, 0x5f, 0x0d, 0xf0, 0x44, 0x96, 0xc4, 0x70, 0x28, 0x70, 0x21, 0x12, 0x3a, + 0x60, 0x39, 0x21, 0xb2, 0x71, 0xa2, 0xfe, 0x8d, 0xab, 0x65, 0x08, 0xda, 0x00, 0xcc, 0xfa, 0x19, + 0x94, 0x10, 0xb8, 0x09, 0x00, 0x17, 0x21, 0x13, 0x1d, 0x41, 0x32, 0x6c, 0x56, 0x1d, 0xc3, 0xab, + 0x05, 0x75, 0x85, 0x1c, 0x91, 0x0c, 0x43, 0x0b, 0x3c, 0x4c, 0xfa, 0x4c, 0xdd, 0xa3, 0x59, 0x53, + 0xc1, 0xc9, 0x5a, 0x9a, 0x9c, 0xe0, 0x9c, 0x66, 0xe6, 0x92, 0x62, 0xd5, 0x0b, 0xd7, 0x52, 0x2d, + 0x38, 0x55, 0xe6, 0xc4, 0x80, 0x23, 0x25, 0x61, 0x1f, 0x77, 0xf1, 0x7f, 0x94, 0x50, 0x9c, 0x38, + 0xc5, 0x3a, 0x3e, 0x71, 0xf7, 0x4b, 0x15, 0x54, 0xdb, 0x3c, 0x85, 0x14, 0xac, 0x2f, 0x9e, 0x8a, + 0x2d, 0x54, 0x9e, 0x3b, 0x74, 0x5b, 0x0f, 0x59, 0xe8, 0x6e, 0x79, 0x93, 0x16, 0xf9, 0x00, 0x1e, + 0xcf, 0x36, 0x9a, 0x33, 0x47, 0x31, 0x93, 0x61, 0x79, 0xff, 0xca, 0x98, 0xd0, 0xbf, 0x07, 0x2b, + 0xd3, 0x9d, 0x60, 0xcf, 0x6f, 0x2d, 0xc7, 0xad, 0xad, 0xbf, 0xc7, 0xcb, 0xc4, 0xd3, 0xfe, 0xcc, + 0x13, 0x4f, 0xc5, 0x17, 0x10, 0x2f, 0x74, 0xa2, 0xf5, 0xf6, 0x72, 0x68, 0x1b, 0x57, 0x43, 0xdb, + 0xf8, 0x35, 0xb4, 0x8d, 0x8b, 0x91, 0x5d, 0xb9, 0x1a, 0xd9, 0x95, 0xef, 0x23, 0xbb, 0x72, 0x8c, + 0x4a, 0x23, 0x71, 0xa8, 0xb8, 0xb6, 0x0f, 0xc2, 0x88, 0xfb, 0xc5, 0x3b, 0x79, 0xfa, 0xd2, 0x3f, + 0x1b, 0x3f, 0x96, 0x72, 0x3c, 0xa2, 0xfb, 0xea, 0xb1, 0x7b, 0xf1, 0x27, 0x00, 0x00, 0xff, 0xff, + 0x5e, 0x93, 0x49, 0x74, 0x49, 0x05, 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 { + SetAirdropAllocations(ctx context.Context, in *MsgSetAirdropAllocations, opts ...grpc.CallOption) (*MsgSetAirdropAllocationsResponse, error) + ClaimFreeAmount(ctx context.Context, in *MsgClaimFreeAmount, opts ...grpc.CallOption) (*MsgClaimFreeAmountResponse, error) + CreateAirdrop(ctx context.Context, in *MsgCreateAirdrop, opts ...grpc.CallOption) (*MsgCreateAirdropResponse, error) + DeleteAirdrop(ctx context.Context, in *MsgDeleteAirdrop, opts ...grpc.CallOption) (*MsgDeleteAirdropResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) SetAirdropAllocations(ctx context.Context, in *MsgSetAirdropAllocations, opts ...grpc.CallOption) (*MsgSetAirdropAllocationsResponse, error) { + out := new(MsgSetAirdropAllocationsResponse) + err := c.cc.Invoke(ctx, "/stride.claim.Msg/SetAirdropAllocations", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ClaimFreeAmount(ctx context.Context, in *MsgClaimFreeAmount, opts ...grpc.CallOption) (*MsgClaimFreeAmountResponse, error) { + out := new(MsgClaimFreeAmountResponse) + err := c.cc.Invoke(ctx, "/stride.claim.Msg/ClaimFreeAmount", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CreateAirdrop(ctx context.Context, in *MsgCreateAirdrop, opts ...grpc.CallOption) (*MsgCreateAirdropResponse, error) { + out := new(MsgCreateAirdropResponse) + err := c.cc.Invoke(ctx, "/stride.claim.Msg/CreateAirdrop", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) DeleteAirdrop(ctx context.Context, in *MsgDeleteAirdrop, opts ...grpc.CallOption) (*MsgDeleteAirdropResponse, error) { + out := new(MsgDeleteAirdropResponse) + err := c.cc.Invoke(ctx, "/stride.claim.Msg/DeleteAirdrop", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { + SetAirdropAllocations(context.Context, *MsgSetAirdropAllocations) (*MsgSetAirdropAllocationsResponse, error) + ClaimFreeAmount(context.Context, *MsgClaimFreeAmount) (*MsgClaimFreeAmountResponse, error) + CreateAirdrop(context.Context, *MsgCreateAirdrop) (*MsgCreateAirdropResponse, error) + DeleteAirdrop(context.Context, *MsgDeleteAirdrop) (*MsgDeleteAirdropResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) SetAirdropAllocations(ctx context.Context, req *MsgSetAirdropAllocations) (*MsgSetAirdropAllocationsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetAirdropAllocations not implemented") +} +func (*UnimplementedMsgServer) ClaimFreeAmount(ctx context.Context, req *MsgClaimFreeAmount) (*MsgClaimFreeAmountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClaimFreeAmount not implemented") +} +func (*UnimplementedMsgServer) CreateAirdrop(ctx context.Context, req *MsgCreateAirdrop) (*MsgCreateAirdropResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateAirdrop not implemented") +} +func (*UnimplementedMsgServer) DeleteAirdrop(ctx context.Context, req *MsgDeleteAirdrop) (*MsgDeleteAirdropResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteAirdrop not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_SetAirdropAllocations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetAirdropAllocations) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetAirdropAllocations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.claim.Msg/SetAirdropAllocations", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetAirdropAllocations(ctx, req.(*MsgSetAirdropAllocations)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ClaimFreeAmount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgClaimFreeAmount) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ClaimFreeAmount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.claim.Msg/ClaimFreeAmount", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ClaimFreeAmount(ctx, req.(*MsgClaimFreeAmount)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateAirdrop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateAirdrop) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateAirdrop(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.claim.Msg/CreateAirdrop", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateAirdrop(ctx, req.(*MsgCreateAirdrop)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_DeleteAirdrop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDeleteAirdrop) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).DeleteAirdrop(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.claim.Msg/DeleteAirdrop", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DeleteAirdrop(ctx, req.(*MsgDeleteAirdrop)) + } + return interceptor(ctx, in, info, handler) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "stride.claim.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "SetAirdropAllocations", + Handler: _Msg_SetAirdropAllocations_Handler, + }, + { + MethodName: "ClaimFreeAmount", + Handler: _Msg_ClaimFreeAmount_Handler, + }, + { + MethodName: "CreateAirdrop", + Handler: _Msg_CreateAirdrop_Handler, + }, + { + MethodName: "DeleteAirdrop", + Handler: _Msg_DeleteAirdrop_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "stride/claim/tx.proto", +} + +func (m *MsgSetAirdropAllocations) 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 *MsgSetAirdropAllocations) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetAirdropAllocations) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Weights) > 0 { + for iNdEx := len(m.Weights) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.Weights[iNdEx].Size() + i -= size + if _, err := m.Weights[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Users) > 0 { + for iNdEx := len(m.Users) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Users[iNdEx]) + copy(dAtA[i:], m.Users[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Users[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.AirdropIdentifier) > 0 { + i -= len(m.AirdropIdentifier) + copy(dAtA[i:], m.AirdropIdentifier) + i = encodeVarintTx(dAtA, i, uint64(len(m.AirdropIdentifier))) + i-- + dAtA[i] = 0x12 + } + if len(m.Allocator) > 0 { + i -= len(m.Allocator) + copy(dAtA[i:], m.Allocator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Allocator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetAirdropAllocationsResponse) 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 *MsgSetAirdropAllocationsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetAirdropAllocationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgClaimFreeAmount) 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 *MsgClaimFreeAmount) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgClaimFreeAmount) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.User) > 0 { + i -= len(m.User) + copy(dAtA[i:], m.User) + i = encodeVarintTx(dAtA, i, uint64(len(m.User))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgClaimFreeAmountResponse) 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 *MsgClaimFreeAmountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgClaimFreeAmountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ClaimedAmount) > 0 { + for iNdEx := len(m.ClaimedAmount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ClaimedAmount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateAirdrop) 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 *MsgCreateAirdrop) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateAirdrop) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintTx(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x2a + } + if m.Duration != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Duration)) + i-- + dAtA[i] = 0x20 + } + if m.StartTime != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.StartTime)) + i-- + dAtA[i] = 0x18 + } + if len(m.Identifier) > 0 { + i -= len(m.Identifier) + copy(dAtA[i:], m.Identifier) + i = encodeVarintTx(dAtA, i, uint64(len(m.Identifier))) + i-- + dAtA[i] = 0x12 + } + if len(m.Distributor) > 0 { + i -= len(m.Distributor) + copy(dAtA[i:], m.Distributor) + i = encodeVarintTx(dAtA, i, uint64(len(m.Distributor))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateAirdropResponse) 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 *MsgCreateAirdropResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateAirdropResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgDeleteAirdrop) 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 *MsgDeleteAirdrop) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDeleteAirdrop) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Identifier) > 0 { + i -= len(m.Identifier) + copy(dAtA[i:], m.Identifier) + i = encodeVarintTx(dAtA, i, uint64(len(m.Identifier))) + i-- + dAtA[i] = 0x12 + } + if len(m.Distributor) > 0 { + i -= len(m.Distributor) + copy(dAtA[i:], m.Distributor) + i = encodeVarintTx(dAtA, i, uint64(len(m.Distributor))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDeleteAirdropResponse) 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 *MsgDeleteAirdropResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDeleteAirdropResponse) 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 *MsgSetAirdropAllocations) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Allocator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.AirdropIdentifier) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.Users) > 0 { + for _, s := range m.Users { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.Weights) > 0 { + for _, e := range m.Weights { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSetAirdropAllocationsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgClaimFreeAmount) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.User) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgClaimFreeAmountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ClaimedAmount) > 0 { + for _, e := range m.ClaimedAmount { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgCreateAirdrop) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Distributor) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Identifier) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.StartTime != 0 { + n += 1 + sovTx(uint64(m.StartTime)) + } + if m.Duration != 0 { + n += 1 + sovTx(uint64(m.Duration)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCreateAirdropResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgDeleteAirdrop) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Distributor) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Identifier) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgDeleteAirdropResponse) 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 *MsgSetAirdropAllocations) 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: MsgSetAirdropAllocations: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetAirdropAllocations: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Allocator", 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.Allocator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropIdentifier", 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.AirdropIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Users", 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.Users = append(m.Users, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Weights", 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 + } + var v github_com_cosmos_cosmos_sdk_types.Dec + m.Weights = append(m.Weights, v) + if err := m.Weights[len(m.Weights)-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 *MsgSetAirdropAllocationsResponse) 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: MsgSetAirdropAllocationsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetAirdropAllocationsResponse: 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 (m *MsgClaimFreeAmount) 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: MsgClaimFreeAmount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgClaimFreeAmount: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field User", 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.User = string(dAtA[iNdEx:postIndex]) + 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 *MsgClaimFreeAmountResponse) 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: MsgClaimFreeAmountResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgClaimFreeAmountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimedAmount", 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.ClaimedAmount = append(m.ClaimedAmount, types.Coin{}) + if err := m.ClaimedAmount[len(m.ClaimedAmount)-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 *MsgCreateAirdrop) 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: MsgCreateAirdrop: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateAirdrop: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Distributor", 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.Distributor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identifier", 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.Identifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) + } + m.StartTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartTime |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) + } + m.Duration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Duration |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", 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.Denom = string(dAtA[iNdEx:postIndex]) + 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 *MsgCreateAirdropResponse) 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: MsgCreateAirdropResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateAirdropResponse: 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 (m *MsgDeleteAirdrop) 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: MsgDeleteAirdrop: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDeleteAirdrop: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Distributor", 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.Distributor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identifier", 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.Identifier = string(dAtA[iNdEx:postIndex]) + 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 *MsgDeleteAirdropResponse) 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: MsgDeleteAirdropResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDeleteAirdropResponse: 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") +) diff --git a/x/claim/vesting/types/tx.pb.go b/x/claim/vesting/types/tx.pb.go new file mode 100644 index 0000000000..42f512d222 --- /dev/null +++ b/x/claim/vesting/types/tx.pb.go @@ -0,0 +1,81 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/vesting/tx.proto + +package types + +import ( + context "context" + fmt "fmt" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + grpc "google.golang.org/grpc" + math "math" +) + +// 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 + +func init() { proto.RegisterFile("stride/vesting/tx.proto", fileDescriptor_5ebed07aad5e90bd) } + +var fileDescriptor_5ebed07aad5e90bd = []byte{ + // 135 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2f, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0x2f, 0x4b, 0x2d, 0x2e, 0xc9, 0xcc, 0x4b, 0xd7, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, + 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x83, 0x48, 0xe8, 0x41, 0x25, 0x8c, 0x58, 0xb9, 0x98, 0x7d, 0x8b, + 0xd3, 0x9d, 0x02, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, + 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x2c, 0x3d, + 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, 0x18, 0xac, 0x57, 0xd7, 0x27, 0x31, + 0xa9, 0x58, 0x1f, 0x66, 0x81, 0xb9, 0x7e, 0x85, 0x7e, 0x72, 0x4e, 0x62, 0x66, 0x2e, 0xc2, 0xae, + 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0x7d, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x50, + 0x9d, 0x87, 0xa5, 0x8a, 0x00, 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 { +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "stride.vesting.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{}, + Metadata: "stride/vesting/tx.proto", +} diff --git a/x/claim/vesting/types/vesting.pb.go b/x/claim/vesting/types/vesting.pb.go new file mode 100644 index 0000000000..0b382ba85c --- /dev/null +++ b/x/claim/vesting/types/vesting.pb.go @@ -0,0 +1,1055 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/vesting/vesting.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types1 "github.com/cosmos/cosmos-sdk/types" + types "github.com/cosmos/cosmos-sdk/x/auth/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +// BaseVestingAccount implements the VestingAccount interface. It contains all +// the necessary fields needed for any vesting account implementation. +type BaseVestingAccount struct { + *types.BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3,embedded=base_account" json:"base_account,omitempty"` + OriginalVesting github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=original_vesting,json=originalVesting,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"original_vesting" yaml:"original_vesting"` + DelegatedFree github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=delegated_free,json=delegatedFree,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"delegated_free" yaml:"delegated_free"` + DelegatedVesting github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=delegated_vesting,json=delegatedVesting,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"delegated_vesting" yaml:"delegated_vesting"` + EndTime int64 `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty" yaml:"end_time"` +} + +func (m *BaseVestingAccount) Reset() { *m = BaseVestingAccount{} } +func (*BaseVestingAccount) ProtoMessage() {} +func (*BaseVestingAccount) Descriptor() ([]byte, []int) { + return fileDescriptor_41f0278a453c26b3, []int{0} +} +func (m *BaseVestingAccount) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BaseVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BaseVestingAccount.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 *BaseVestingAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_BaseVestingAccount.Merge(m, src) +} +func (m *BaseVestingAccount) XXX_Size() int { + return m.Size() +} +func (m *BaseVestingAccount) XXX_DiscardUnknown() { + xxx_messageInfo_BaseVestingAccount.DiscardUnknown(m) +} + +var xxx_messageInfo_BaseVestingAccount proto.InternalMessageInfo + +// Period defines a length of time and amount of coins that will vest. +type Period struct { + StartTime int64 `protobuf:"varint,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + Length int64 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` + 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"` + ActionType int32 `protobuf:"varint,4,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"` +} + +func (m *Period) Reset() { *m = Period{} } +func (*Period) ProtoMessage() {} +func (*Period) Descriptor() ([]byte, []int) { + return fileDescriptor_41f0278a453c26b3, []int{1} +} +func (m *Period) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Period) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Period.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 *Period) XXX_Merge(src proto.Message) { + xxx_messageInfo_Period.Merge(m, src) +} +func (m *Period) XXX_Size() int { + return m.Size() +} +func (m *Period) XXX_DiscardUnknown() { + xxx_messageInfo_Period.DiscardUnknown(m) +} + +var xxx_messageInfo_Period proto.InternalMessageInfo + +func (m *Period) GetStartTime() int64 { + if m != nil { + return m.StartTime + } + return 0 +} + +func (m *Period) GetLength() int64 { + if m != nil { + return m.Length + } + return 0 +} + +func (m *Period) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins { + if m != nil { + return m.Amount + } + return nil +} + +func (m *Period) GetActionType() int32 { + if m != nil { + return m.ActionType + } + return 0 +} + +// StridePeriodicVestingAccount implements the VestingAccount interface. It +// periodically vests by unlocking coins during each specified period. +type StridePeriodicVestingAccount struct { + *BaseVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3,embedded=base_vesting_account" json:"base_vesting_account,omitempty"` + VestingPeriods []Period `protobuf:"bytes,3,rep,name=vesting_periods,json=vestingPeriods,proto3" json:"vesting_periods" yaml:"vesting_periods"` +} + +func (m *StridePeriodicVestingAccount) Reset() { *m = StridePeriodicVestingAccount{} } +func (*StridePeriodicVestingAccount) ProtoMessage() {} +func (*StridePeriodicVestingAccount) Descriptor() ([]byte, []int) { + return fileDescriptor_41f0278a453c26b3, []int{2} +} +func (m *StridePeriodicVestingAccount) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StridePeriodicVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StridePeriodicVestingAccount.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 *StridePeriodicVestingAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_StridePeriodicVestingAccount.Merge(m, src) +} +func (m *StridePeriodicVestingAccount) XXX_Size() int { + return m.Size() +} +func (m *StridePeriodicVestingAccount) XXX_DiscardUnknown() { + xxx_messageInfo_StridePeriodicVestingAccount.DiscardUnknown(m) +} + +var xxx_messageInfo_StridePeriodicVestingAccount proto.InternalMessageInfo + +func init() { + proto.RegisterType((*BaseVestingAccount)(nil), "stride.vesting.BaseVestingAccount") + proto.RegisterType((*Period)(nil), "stride.vesting.Period") + proto.RegisterType((*StridePeriodicVestingAccount)(nil), "stride.vesting.StridePeriodicVestingAccount") +} + +func init() { proto.RegisterFile("stride/vesting/vesting.proto", fileDescriptor_41f0278a453c26b3) } + +var fileDescriptor_41f0278a453c26b3 = []byte{ + // 589 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x6f, 0xd3, 0x3e, + 0x1c, 0x8d, 0xd7, 0xae, 0xff, 0xfd, 0x5d, 0x58, 0x47, 0x18, 0x25, 0x4c, 0x23, 0xa9, 0x72, 0xea, + 0x65, 0x09, 0x1b, 0x12, 0x48, 0xbd, 0x11, 0x24, 0xa4, 0x89, 0x1d, 0xa6, 0x30, 0x71, 0xd8, 0x25, + 0x72, 0x12, 0x93, 0x5a, 0x34, 0x71, 0x15, 0xbb, 0x13, 0xfd, 0x06, 0x48, 0x5c, 0x40, 0xe2, 0xc0, + 0x71, 0x67, 0x3e, 0xc9, 0x24, 0x2e, 0x15, 0x27, 0x4e, 0x05, 0xb5, 0xe2, 0x0b, 0xec, 0x13, 0xa0, + 0xd8, 0x4e, 0xcb, 0xb2, 0x43, 0x35, 0x4e, 0x89, 0xfd, 0xf3, 0x7b, 0x7e, 0xbf, 0x67, 0x3f, 0xc3, + 0x5d, 0xc6, 0x73, 0x12, 0x63, 0xf7, 0x0c, 0x33, 0x4e, 0xb2, 0xa4, 0xfc, 0x3a, 0xc3, 0x9c, 0x72, + 0xaa, 0x6f, 0xca, 0xaa, 0xa3, 0x66, 0x77, 0xb6, 0x13, 0x9a, 0x50, 0x51, 0x72, 0x8b, 0x3f, 0xb9, + 0x6a, 0xc7, 0x8c, 0x28, 0x4b, 0x29, 0x73, 0x43, 0xc4, 0xb0, 0x7b, 0xb6, 0x1f, 0x62, 0x8e, 0xf6, + 0xdd, 0x88, 0x92, 0xac, 0x52, 0x47, 0x23, 0xde, 0x5f, 0xd4, 0x8b, 0x81, 0xac, 0xdb, 0xdf, 0xeb, + 0x50, 0xf7, 0x10, 0xc3, 0xaf, 0xe5, 0x2e, 0xcf, 0xa2, 0x88, 0x8e, 0x32, 0xae, 0x1f, 0xc2, 0x5b, + 0x05, 0x63, 0x80, 0xe4, 0xd8, 0x00, 0x1d, 0xd0, 0x6d, 0x1e, 0x74, 0x1c, 0xc9, 0xe6, 0x08, 0x02, + 0xc5, 0xe6, 0x14, 0x70, 0x85, 0xf3, 0xea, 0x93, 0xa9, 0x05, 0xfc, 0x66, 0xb8, 0x9c, 0xd2, 0x3f, + 0x01, 0xb8, 0x45, 0x73, 0x92, 0x90, 0x0c, 0x0d, 0x02, 0xd5, 0x8c, 0xb1, 0xd6, 0xa9, 0x75, 0x9b, + 0x07, 0x0f, 0x4a, 0xbe, 0x62, 0xfd, 0x82, 0xef, 0x39, 0x25, 0x99, 0xf7, 0xf2, 0x62, 0x6a, 0x69, + 0x97, 0x53, 0xeb, 0xfe, 0x18, 0xa5, 0x83, 0x9e, 0x5d, 0x25, 0xb0, 0xbf, 0xfe, 0xb4, 0xba, 0x09, + 0xe1, 0xfd, 0x51, 0xe8, 0x44, 0x34, 0x75, 0x55, 0x97, 0xf2, 0xb3, 0xc7, 0xe2, 0xb7, 0x2e, 0x1f, + 0x0f, 0x31, 0x13, 0x5c, 0xcc, 0x6f, 0x95, 0x70, 0xd5, 0xa5, 0xfe, 0x01, 0xc0, 0xcd, 0x18, 0x0f, + 0x70, 0x82, 0x38, 0x8e, 0x83, 0x37, 0x39, 0xc6, 0x46, 0x6d, 0x95, 0xa2, 0x43, 0xa5, 0xe8, 0x9e, + 0x54, 0x74, 0x15, 0x7e, 0x33, 0x3d, 0xb7, 0x17, 0xe0, 0x17, 0x39, 0xc6, 0xfa, 0x67, 0x00, 0xef, + 0x2c, 0xe9, 0x4a, 0x8b, 0xea, 0xab, 0x04, 0x1d, 0x29, 0x41, 0x46, 0x55, 0xd0, 0x3f, 0x79, 0xb4, + 0xb5, 0xc0, 0x97, 0x26, 0x39, 0x70, 0x03, 0x67, 0x71, 0xc0, 0x49, 0x8a, 0x8d, 0xf5, 0x0e, 0xe8, + 0xd6, 0xbc, 0xbb, 0x97, 0x53, 0xab, 0x25, 0x77, 0x2b, 0x2b, 0xb6, 0xff, 0x1f, 0xce, 0xe2, 0x13, + 0x92, 0xe2, 0xde, 0xc6, 0xfb, 0x73, 0x4b, 0xfb, 0x72, 0x6e, 0x69, 0xf6, 0x37, 0x00, 0x1b, 0xc7, + 0x38, 0x27, 0x34, 0xd6, 0x1f, 0x42, 0xc8, 0x38, 0xca, 0xb9, 0xa4, 0x29, 0xae, 0x51, 0xcd, 0xff, + 0x5f, 0xcc, 0x14, 0x18, 0xbd, 0x0d, 0x1b, 0x03, 0x9c, 0x25, 0xbc, 0x6f, 0xac, 0x89, 0x92, 0x1a, + 0xe9, 0x11, 0x6c, 0xa0, 0x54, 0xdc, 0xbc, 0x95, 0xe7, 0xf2, 0xa8, 0xb0, 0xe1, 0x46, 0xad, 0x2a, + 0x6a, 0xdd, 0x82, 0x4d, 0x14, 0x71, 0x42, 0xb3, 0xa0, 0xa8, 0x1a, 0xf5, 0x0e, 0xe8, 0xae, 0xfb, + 0x50, 0x4e, 0x9d, 0x8c, 0x87, 0xb8, 0x57, 0x17, 0xdd, 0xfc, 0x06, 0x70, 0xf7, 0x95, 0xc8, 0xa2, + 0xec, 0x89, 0x44, 0x95, 0xb0, 0x9c, 0xc2, 0x6d, 0x11, 0x16, 0xe5, 0x7b, 0x25, 0x34, 0xb6, 0x73, + 0x35, 0xc8, 0xce, 0xf5, 0xb8, 0xa9, 0xd8, 0xe8, 0xe1, 0xf5, 0x20, 0x06, 0xb0, 0x55, 0xd2, 0x0e, + 0xc5, 0xee, 0x4c, 0x39, 0xd2, 0xae, 0xd2, 0x4a, 0x71, 0x9e, 0xa9, 0x6e, 0x45, 0x5b, 0x9e, 0x53, + 0x05, 0x6c, 0xfb, 0x9b, 0x6a, 0x46, 0x2e, 0x67, 0xcb, 0x53, 0xf3, 0x8e, 0x2f, 0x66, 0x26, 0x98, + 0xcc, 0x4c, 0xf0, 0x6b, 0x66, 0x82, 0x8f, 0x73, 0x53, 0x9b, 0xcc, 0x4d, 0xed, 0xc7, 0xdc, 0xd4, + 0x4e, 0x9f, 0xfc, 0x65, 0xad, 0x74, 0x62, 0xef, 0x08, 0x85, 0xcc, 0x2d, 0xdf, 0xaf, 0xa7, 0xee, + 0x3b, 0x37, 0x1a, 0x20, 0x92, 0x2e, 0x9e, 0x32, 0x61, 0x77, 0xd8, 0x10, 0x6f, 0xcc, 0xe3, 0x3f, + 0x01, 0x00, 0x00, 0xff, 0xff, 0xbb, 0x20, 0x68, 0xb3, 0xe9, 0x04, 0x00, 0x00, +} + +func (m *BaseVestingAccount) 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 *BaseVestingAccount) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BaseVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EndTime != 0 { + i = encodeVarintVesting(dAtA, i, uint64(m.EndTime)) + i-- + dAtA[i] = 0x28 + } + if len(m.DelegatedVesting) > 0 { + for iNdEx := len(m.DelegatedVesting) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DelegatedVesting[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVesting(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.DelegatedFree) > 0 { + for iNdEx := len(m.DelegatedFree) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DelegatedFree[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVesting(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.OriginalVesting) > 0 { + for iNdEx := len(m.OriginalVesting) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginalVesting[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVesting(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.BaseAccount != nil { + { + size, err := m.BaseAccount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVesting(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Period) 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 *Period) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Period) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ActionType != 0 { + i = encodeVarintVesting(dAtA, i, uint64(m.ActionType)) + i-- + dAtA[i] = 0x20 + } + 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 = encodeVarintVesting(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Length != 0 { + i = encodeVarintVesting(dAtA, i, uint64(m.Length)) + i-- + dAtA[i] = 0x10 + } + if m.StartTime != 0 { + i = encodeVarintVesting(dAtA, i, uint64(m.StartTime)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StridePeriodicVestingAccount) 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 *StridePeriodicVestingAccount) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StridePeriodicVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.VestingPeriods) > 0 { + for iNdEx := len(m.VestingPeriods) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.VestingPeriods[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVesting(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.BaseVestingAccount != nil { + { + size, err := m.BaseVestingAccount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVesting(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintVesting(dAtA []byte, offset int, v uint64) int { + offset -= sovVesting(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *BaseVestingAccount) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BaseAccount != nil { + l = m.BaseAccount.Size() + n += 1 + l + sovVesting(uint64(l)) + } + if len(m.OriginalVesting) > 0 { + for _, e := range m.OriginalVesting { + l = e.Size() + n += 1 + l + sovVesting(uint64(l)) + } + } + if len(m.DelegatedFree) > 0 { + for _, e := range m.DelegatedFree { + l = e.Size() + n += 1 + l + sovVesting(uint64(l)) + } + } + if len(m.DelegatedVesting) > 0 { + for _, e := range m.DelegatedVesting { + l = e.Size() + n += 1 + l + sovVesting(uint64(l)) + } + } + if m.EndTime != 0 { + n += 1 + sovVesting(uint64(m.EndTime)) + } + return n +} + +func (m *Period) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StartTime != 0 { + n += 1 + sovVesting(uint64(m.StartTime)) + } + if m.Length != 0 { + n += 1 + sovVesting(uint64(m.Length)) + } + if len(m.Amount) > 0 { + for _, e := range m.Amount { + l = e.Size() + n += 1 + l + sovVesting(uint64(l)) + } + } + if m.ActionType != 0 { + n += 1 + sovVesting(uint64(m.ActionType)) + } + return n +} + +func (m *StridePeriodicVestingAccount) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BaseVestingAccount != nil { + l = m.BaseVestingAccount.Size() + n += 1 + l + sovVesting(uint64(l)) + } + if len(m.VestingPeriods) > 0 { + for _, e := range m.VestingPeriods { + l = e.Size() + n += 1 + l + sovVesting(uint64(l)) + } + } + return n +} + +func sovVesting(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozVesting(x uint64) (n int) { + return sovVesting(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *BaseVestingAccount) 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 ErrIntOverflowVesting + } + 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: BaseVestingAccount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BaseVestingAccount: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseAccount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVesting + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVesting + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVesting + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.BaseAccount == nil { + m.BaseAccount = &types.BaseAccount{} + } + if err := m.BaseAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginalVesting", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVesting + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVesting + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVesting + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginalVesting = append(m.OriginalVesting, types1.Coin{}) + if err := m.OriginalVesting[len(m.OriginalVesting)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegatedFree", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVesting + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVesting + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVesting + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DelegatedFree = append(m.DelegatedFree, types1.Coin{}) + if err := m.DelegatedFree[len(m.DelegatedFree)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegatedVesting", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVesting + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVesting + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVesting + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DelegatedVesting = append(m.DelegatedVesting, types1.Coin{}) + if err := m.DelegatedVesting[len(m.DelegatedVesting)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EndTime", wireType) + } + m.EndTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVesting + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EndTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipVesting(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthVesting + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Period) 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 ErrIntOverflowVesting + } + 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: Period: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Period: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) + } + m.StartTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVesting + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Length", wireType) + } + m.Length = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVesting + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Length |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 ErrIntOverflowVesting + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVesting + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVesting + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = append(m.Amount, types1.Coin{}) + if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActionType", wireType) + } + m.ActionType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVesting + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ActionType |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipVesting(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthVesting + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StridePeriodicVestingAccount) 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 ErrIntOverflowVesting + } + 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: StridePeriodicVestingAccount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StridePeriodicVestingAccount: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseVestingAccount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVesting + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVesting + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVesting + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.BaseVestingAccount == nil { + m.BaseVestingAccount = &BaseVestingAccount{} + } + if err := m.BaseVestingAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VestingPeriods", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVesting + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVesting + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVesting + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VestingPeriods = append(m.VestingPeriods, Period{}) + if err := m.VestingPeriods[len(m.VestingPeriods)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVesting(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthVesting + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipVesting(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, ErrIntOverflowVesting + } + 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, ErrIntOverflowVesting + } + 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, ErrIntOverflowVesting + } + 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, ErrInvalidLengthVesting + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupVesting + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthVesting + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthVesting = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowVesting = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupVesting = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/epochs/types/genesis.pb.go b/x/epochs/types/genesis.pb.go new file mode 100644 index 0000000000..e200d2a3ce --- /dev/null +++ b/x/epochs/types/genesis.pb.go @@ -0,0 +1,785 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/epochs/genesis.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + _ "github.com/gogo/protobuf/types" + github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" + io "io" + math "math" + math_bits "math/bits" + time "time" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// 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 + +type EpochInfo struct { + Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + StartTime time.Time `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` + Duration time.Duration `protobuf:"bytes,3,opt,name=duration,proto3,stdduration" json:"duration,omitempty" yaml:"duration"` + CurrentEpoch int64 `protobuf:"varint,4,opt,name=current_epoch,json=currentEpoch,proto3" json:"current_epoch,omitempty"` + CurrentEpochStartTime time.Time `protobuf:"bytes,5,opt,name=current_epoch_start_time,json=currentEpochStartTime,proto3,stdtime" json:"current_epoch_start_time" yaml:"current_epoch_start_time"` + EpochCountingStarted bool `protobuf:"varint,6,opt,name=epoch_counting_started,json=epochCountingStarted,proto3" json:"epoch_counting_started,omitempty"` + CurrentEpochStartHeight int64 `protobuf:"varint,7,opt,name=current_epoch_start_height,json=currentEpochStartHeight,proto3" json:"current_epoch_start_height,omitempty"` +} + +func (m *EpochInfo) Reset() { *m = EpochInfo{} } +func (m *EpochInfo) String() string { return proto.CompactTextString(m) } +func (*EpochInfo) ProtoMessage() {} +func (*EpochInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_92af8154b2eb736d, []int{0} +} +func (m *EpochInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EpochInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EpochInfo.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 *EpochInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_EpochInfo.Merge(m, src) +} +func (m *EpochInfo) XXX_Size() int { + return m.Size() +} +func (m *EpochInfo) XXX_DiscardUnknown() { + xxx_messageInfo_EpochInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_EpochInfo proto.InternalMessageInfo + +func (m *EpochInfo) GetIdentifier() string { + if m != nil { + return m.Identifier + } + return "" +} + +func (m *EpochInfo) GetStartTime() time.Time { + if m != nil { + return m.StartTime + } + return time.Time{} +} + +func (m *EpochInfo) GetDuration() time.Duration { + if m != nil { + return m.Duration + } + return 0 +} + +func (m *EpochInfo) GetCurrentEpoch() int64 { + if m != nil { + return m.CurrentEpoch + } + return 0 +} + +func (m *EpochInfo) GetCurrentEpochStartTime() time.Time { + if m != nil { + return m.CurrentEpochStartTime + } + return time.Time{} +} + +func (m *EpochInfo) GetEpochCountingStarted() bool { + if m != nil { + return m.EpochCountingStarted + } + return false +} + +func (m *EpochInfo) GetCurrentEpochStartHeight() int64 { + if m != nil { + return m.CurrentEpochStartHeight + } + return 0 +} + +// GenesisState defines the epochs module's genesis state. +type GenesisState struct { + Epochs []EpochInfo `protobuf:"bytes,1,rep,name=epochs,proto3" json:"epochs"` +} + +func (m *GenesisState) Reset() { *m = GenesisState{} } +func (m *GenesisState) String() string { return proto.CompactTextString(m) } +func (*GenesisState) ProtoMessage() {} +func (*GenesisState) Descriptor() ([]byte, []int) { + return fileDescriptor_92af8154b2eb736d, []int{1} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetEpochs() []EpochInfo { + if m != nil { + return m.Epochs + } + return nil +} + +func init() { + proto.RegisterType((*EpochInfo)(nil), "stride.epochs.EpochInfo") + proto.RegisterType((*GenesisState)(nil), "stride.epochs.GenesisState") +} + +func init() { proto.RegisterFile("stride/epochs/genesis.proto", fileDescriptor_92af8154b2eb736d) } + +var fileDescriptor_92af8154b2eb736d = []byte{ + // 467 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xbf, 0x6f, 0xd3, 0x40, + 0x14, 0xc7, 0x73, 0x24, 0x84, 0xe6, 0xda, 0x0a, 0x71, 0x2a, 0x70, 0x04, 0x61, 0x5b, 0x66, 0xb1, + 0x04, 0xf8, 0x44, 0x41, 0x20, 0xc1, 0x16, 0x7e, 0x56, 0x62, 0x72, 0x18, 0x10, 0x4b, 0xe4, 0x24, + 0x97, 0xf3, 0x49, 0xb5, 0xcf, 0xf2, 0x3d, 0x23, 0xb2, 0x31, 0x33, 0x75, 0xe4, 0x4f, 0xea, 0xd8, + 0x91, 0x29, 0xa0, 0x64, 0x63, 0xec, 0x5f, 0x80, 0x7c, 0x67, 0x87, 0x94, 0x82, 0xba, 0xd9, 0xf7, + 0xf9, 0xbe, 0xef, 0xf7, 0xde, 0xd3, 0x3b, 0x7c, 0x5b, 0x43, 0x21, 0xa7, 0x9c, 0xf1, 0x5c, 0x4d, + 0x12, 0xcd, 0x04, 0xcf, 0xb8, 0x96, 0x3a, 0xcc, 0x0b, 0x05, 0x8a, 0xec, 0x5a, 0x18, 0x5a, 0xd8, + 0xdf, 0x13, 0x4a, 0x28, 0x43, 0x58, 0xf5, 0x65, 0x45, 0x7d, 0x47, 0x28, 0x25, 0x0e, 0x39, 0x33, + 0x7f, 0xe3, 0x72, 0xc6, 0xa6, 0x65, 0x11, 0x83, 0x54, 0x59, 0xcd, 0xdd, 0xbf, 0x39, 0xc8, 0x94, + 0x6b, 0x88, 0xd3, 0xdc, 0x0a, 0xfc, 0xaf, 0x1d, 0xdc, 0x7b, 0x55, 0x25, 0x1c, 0x64, 0x33, 0x45, + 0x1c, 0x8c, 0xe5, 0x94, 0x67, 0x20, 0x67, 0x92, 0x17, 0x14, 0x79, 0x28, 0xe8, 0x45, 0x1b, 0x27, + 0xe4, 0x03, 0xc6, 0x1a, 0xe2, 0x02, 0x46, 0x95, 0x0d, 0xbd, 0xe4, 0xa1, 0x60, 0x7b, 0xbf, 0x1f, + 0xda, 0x8c, 0xb0, 0xc9, 0x08, 0xdf, 0x37, 0x19, 0x83, 0x3b, 0xc7, 0x0b, 0xb7, 0x75, 0xba, 0x70, + 0xaf, 0xcd, 0xe3, 0xf4, 0xf0, 0x99, 0xff, 0xa7, 0xd6, 0x3f, 0xfa, 0xe1, 0xa2, 0xa8, 0x67, 0x0e, + 0x2a, 0x39, 0x49, 0xf0, 0x56, 0x73, 0x75, 0xda, 0x36, 0xbe, 0xb7, 0xce, 0xf9, 0xbe, 0xac, 0x05, + 0x83, 0x87, 0x95, 0xed, 0xaf, 0x85, 0x4b, 0x9a, 0x92, 0xfb, 0x2a, 0x95, 0xc0, 0xd3, 0x1c, 0xe6, + 0xa7, 0x0b, 0xf7, 0xaa, 0x0d, 0x6b, 0x98, 0xff, 0xad, 0x8a, 0x5a, 0xbb, 0x93, 0xbb, 0x78, 0x77, + 0x52, 0x16, 0x05, 0xcf, 0x60, 0x64, 0x46, 0x4b, 0x3b, 0x1e, 0x0a, 0xda, 0xd1, 0x4e, 0x7d, 0x68, + 0x86, 0x41, 0xbe, 0x20, 0x4c, 0xcf, 0xa8, 0x46, 0x1b, 0x7d, 0x5f, 0xbe, 0xb0, 0xef, 0x7b, 0x75, + 0xdf, 0xae, 0xbd, 0xca, 0xff, 0x9c, 0xec, 0x14, 0xae, 0x6f, 0x26, 0x0f, 0xd7, 0x13, 0x79, 0x8c, + 0x6f, 0x58, 0xfd, 0x44, 0x95, 0x19, 0xc8, 0x4c, 0xd8, 0x42, 0x3e, 0xa5, 0x5d, 0x0f, 0x05, 0x5b, + 0xd1, 0x9e, 0xa1, 0x2f, 0x6a, 0x38, 0xb4, 0x8c, 0x3c, 0xc7, 0xfd, 0x7f, 0xa5, 0x25, 0x5c, 0x8a, + 0x04, 0xe8, 0x15, 0xd3, 0xea, 0xcd, 0x73, 0x81, 0x6f, 0x0d, 0xf6, 0x5f, 0xe3, 0x9d, 0x37, 0x76, + 0x07, 0x87, 0x10, 0x03, 0x27, 0x4f, 0x70, 0xd7, 0x6e, 0x1f, 0x45, 0x5e, 0x3b, 0xd8, 0xde, 0xa7, + 0xe1, 0x99, 0x9d, 0x0c, 0xd7, 0x8b, 0x33, 0xe8, 0x54, 0x0d, 0x47, 0xb5, 0x7a, 0x70, 0x70, 0xbc, + 0x74, 0xd0, 0xc9, 0xd2, 0x41, 0x3f, 0x97, 0x0e, 0x3a, 0x5a, 0x39, 0xad, 0x93, 0x95, 0xd3, 0xfa, + 0xbe, 0x72, 0x5a, 0x1f, 0x99, 0x90, 0x90, 0x94, 0xe3, 0x70, 0xa2, 0x52, 0x36, 0x34, 0x5e, 0x0f, + 0xde, 0xc5, 0x63, 0xcd, 0xea, 0x87, 0xf0, 0xe9, 0x29, 0xfb, 0xdc, 0xbc, 0x06, 0x98, 0xe7, 0x5c, + 0x8f, 0xbb, 0x66, 0xba, 0x8f, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0xb4, 0xee, 0xc9, 0x92, 0x2b, + 0x03, 0x00, 0x00, +} + +func (m *EpochInfo) 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 *EpochInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EpochInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CurrentEpochStartHeight != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.CurrentEpochStartHeight)) + i-- + dAtA[i] = 0x38 + } + if m.EpochCountingStarted { + i-- + if m.EpochCountingStarted { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CurrentEpochStartTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.CurrentEpochStartTime):]) + if err1 != nil { + return 0, err1 + } + i -= n1 + i = encodeVarintGenesis(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0x2a + if m.CurrentEpoch != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.CurrentEpoch)) + i-- + dAtA[i] = 0x20 + } + n2, err2 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.Duration, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.Duration):]) + if err2 != nil { + return 0, err2 + } + i -= n2 + i = encodeVarintGenesis(dAtA, i, uint64(n2)) + i-- + dAtA[i] = 0x1a + n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.StartTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.StartTime):]) + if err3 != nil { + return 0, err3 + } + i -= n3 + i = encodeVarintGenesis(dAtA, i, uint64(n3)) + i-- + dAtA[i] = 0x12 + if len(m.Identifier) > 0 { + i -= len(m.Identifier) + copy(dAtA[i:], m.Identifier) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Identifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Epochs) > 0 { + for iNdEx := len(m.Epochs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Epochs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *EpochInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Identifier) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = github_com_gogo_protobuf_types.SizeOfStdTime(m.StartTime) + n += 1 + l + sovGenesis(uint64(l)) + l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.Duration) + n += 1 + l + sovGenesis(uint64(l)) + if m.CurrentEpoch != 0 { + n += 1 + sovGenesis(uint64(m.CurrentEpoch)) + } + l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CurrentEpochStartTime) + n += 1 + l + sovGenesis(uint64(l)) + if m.EpochCountingStarted { + n += 2 + } + if m.CurrentEpochStartHeight != 0 { + n += 1 + sovGenesis(uint64(m.CurrentEpochStartHeight)) + } + return n +} + +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Epochs) > 0 { + for _, e := range m.Epochs { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *EpochInfo) 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 ErrIntOverflowGenesis + } + 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: EpochInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EpochInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Identifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.StartTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.Duration, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentEpoch", wireType) + } + m.CurrentEpoch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CurrentEpoch |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentEpochStartTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.CurrentEpochStartTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochCountingStarted", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EpochCountingStarted = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentEpochStartHeight", wireType) + } + m.CurrentEpochStartHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CurrentEpochStartHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GenesisState) 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 ErrIntOverflowGenesis + } + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Epochs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Epochs = append(m.Epochs, EpochInfo{}) + if err := m.Epochs[len(m.Epochs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/epochs/types/query.pb.go b/x/epochs/types/query.pb.go new file mode 100644 index 0000000000..12dd1e58ed --- /dev/null +++ b/x/epochs/types/query.pb.go @@ -0,0 +1,1418 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/epochs/query.proto + +package types + +import ( + context "context" + fmt "fmt" + query "github.com/cosmos/cosmos-sdk/types/query" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + 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 + +type QueryEpochsInfoRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryEpochsInfoRequest) Reset() { *m = QueryEpochsInfoRequest{} } +func (m *QueryEpochsInfoRequest) String() string { return proto.CompactTextString(m) } +func (*QueryEpochsInfoRequest) ProtoMessage() {} +func (*QueryEpochsInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_de81e87fff8f1327, []int{0} +} +func (m *QueryEpochsInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryEpochsInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryEpochsInfoRequest.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 *QueryEpochsInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEpochsInfoRequest.Merge(m, src) +} +func (m *QueryEpochsInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryEpochsInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEpochsInfoRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryEpochsInfoRequest proto.InternalMessageInfo + +func (m *QueryEpochsInfoRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryEpochsInfoResponse struct { + Epochs []EpochInfo `protobuf:"bytes,1,rep,name=epochs,proto3" json:"epochs"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryEpochsInfoResponse) Reset() { *m = QueryEpochsInfoResponse{} } +func (m *QueryEpochsInfoResponse) String() string { return proto.CompactTextString(m) } +func (*QueryEpochsInfoResponse) ProtoMessage() {} +func (*QueryEpochsInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_de81e87fff8f1327, []int{1} +} +func (m *QueryEpochsInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryEpochsInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryEpochsInfoResponse.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 *QueryEpochsInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEpochsInfoResponse.Merge(m, src) +} +func (m *QueryEpochsInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryEpochsInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEpochsInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryEpochsInfoResponse proto.InternalMessageInfo + +func (m *QueryEpochsInfoResponse) GetEpochs() []EpochInfo { + if m != nil { + return m.Epochs + } + return nil +} + +func (m *QueryEpochsInfoResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryCurrentEpochRequest struct { + Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` +} + +func (m *QueryCurrentEpochRequest) Reset() { *m = QueryCurrentEpochRequest{} } +func (m *QueryCurrentEpochRequest) String() string { return proto.CompactTextString(m) } +func (*QueryCurrentEpochRequest) ProtoMessage() {} +func (*QueryCurrentEpochRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_de81e87fff8f1327, []int{2} +} +func (m *QueryCurrentEpochRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryCurrentEpochRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryCurrentEpochRequest.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 *QueryCurrentEpochRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCurrentEpochRequest.Merge(m, src) +} +func (m *QueryCurrentEpochRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryCurrentEpochRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCurrentEpochRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryCurrentEpochRequest proto.InternalMessageInfo + +func (m *QueryCurrentEpochRequest) GetIdentifier() string { + if m != nil { + return m.Identifier + } + return "" +} + +type QueryCurrentEpochResponse struct { + CurrentEpoch int64 `protobuf:"varint,1,opt,name=current_epoch,json=currentEpoch,proto3" json:"current_epoch,omitempty"` +} + +func (m *QueryCurrentEpochResponse) Reset() { *m = QueryCurrentEpochResponse{} } +func (m *QueryCurrentEpochResponse) String() string { return proto.CompactTextString(m) } +func (*QueryCurrentEpochResponse) ProtoMessage() {} +func (*QueryCurrentEpochResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_de81e87fff8f1327, []int{3} +} +func (m *QueryCurrentEpochResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryCurrentEpochResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryCurrentEpochResponse.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 *QueryCurrentEpochResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryCurrentEpochResponse.Merge(m, src) +} +func (m *QueryCurrentEpochResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryCurrentEpochResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryCurrentEpochResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryCurrentEpochResponse proto.InternalMessageInfo + +func (m *QueryCurrentEpochResponse) GetCurrentEpoch() int64 { + if m != nil { + return m.CurrentEpoch + } + return 0 +} + +type QueryEpochInfoRequest struct { + Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` +} + +func (m *QueryEpochInfoRequest) Reset() { *m = QueryEpochInfoRequest{} } +func (m *QueryEpochInfoRequest) String() string { return proto.CompactTextString(m) } +func (*QueryEpochInfoRequest) ProtoMessage() {} +func (*QueryEpochInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_de81e87fff8f1327, []int{4} +} +func (m *QueryEpochInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryEpochInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryEpochInfoRequest.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 *QueryEpochInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEpochInfoRequest.Merge(m, src) +} +func (m *QueryEpochInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryEpochInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEpochInfoRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryEpochInfoRequest proto.InternalMessageInfo + +func (m *QueryEpochInfoRequest) GetIdentifier() string { + if m != nil { + return m.Identifier + } + return "" +} + +type QueryEpochInfoResponse struct { + Epoch EpochInfo `protobuf:"bytes,1,opt,name=epoch,proto3" json:"epoch"` +} + +func (m *QueryEpochInfoResponse) Reset() { *m = QueryEpochInfoResponse{} } +func (m *QueryEpochInfoResponse) String() string { return proto.CompactTextString(m) } +func (*QueryEpochInfoResponse) ProtoMessage() {} +func (*QueryEpochInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_de81e87fff8f1327, []int{5} +} +func (m *QueryEpochInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryEpochInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryEpochInfoResponse.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 *QueryEpochInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEpochInfoResponse.Merge(m, src) +} +func (m *QueryEpochInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryEpochInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEpochInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryEpochInfoResponse proto.InternalMessageInfo + +func (m *QueryEpochInfoResponse) GetEpoch() EpochInfo { + if m != nil { + return m.Epoch + } + return EpochInfo{} +} + +func init() { + proto.RegisterType((*QueryEpochsInfoRequest)(nil), "stride.epochs.QueryEpochsInfoRequest") + proto.RegisterType((*QueryEpochsInfoResponse)(nil), "stride.epochs.QueryEpochsInfoResponse") + proto.RegisterType((*QueryCurrentEpochRequest)(nil), "stride.epochs.QueryCurrentEpochRequest") + proto.RegisterType((*QueryCurrentEpochResponse)(nil), "stride.epochs.QueryCurrentEpochResponse") + proto.RegisterType((*QueryEpochInfoRequest)(nil), "stride.epochs.QueryEpochInfoRequest") + proto.RegisterType((*QueryEpochInfoResponse)(nil), "stride.epochs.QueryEpochInfoResponse") +} + +func init() { proto.RegisterFile("stride/epochs/query.proto", fileDescriptor_de81e87fff8f1327) } + +var fileDescriptor_de81e87fff8f1327 = []byte{ + // 507 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0x4d, 0x6f, 0xd3, 0x30, + 0x18, 0xae, 0x57, 0x36, 0x69, 0xef, 0xb6, 0x8b, 0xc5, 0x47, 0xdb, 0xa1, 0x30, 0xc2, 0xd6, 0x16, + 0x04, 0xb6, 0x56, 0x10, 0x93, 0x38, 0x21, 0x10, 0xa0, 0x49, 0x08, 0x41, 0xb8, 0x71, 0x19, 0x49, + 0xe6, 0x65, 0x96, 0x36, 0x3b, 0x8b, 0xdd, 0x89, 0x5d, 0x38, 0x70, 0xe0, 0x8c, 0xe0, 0xc6, 0x9d, + 0xff, 0xb2, 0xe3, 0x24, 0x2e, 0x9c, 0x10, 0x6a, 0xf9, 0x21, 0x28, 0xb6, 0xd7, 0x26, 0x2c, 0x55, + 0x4e, 0xad, 0xfc, 0x3e, 0x5f, 0x7e, 0x5e, 0x07, 0xda, 0x4a, 0x67, 0x7c, 0x97, 0x51, 0x96, 0xca, + 0x78, 0x5f, 0xd1, 0xa3, 0x21, 0xcb, 0x4e, 0x48, 0x9a, 0x49, 0x2d, 0xf1, 0x8a, 0x1d, 0x11, 0x3b, + 0xea, 0x5c, 0x4e, 0x64, 0x22, 0xcd, 0x84, 0xe6, 0xff, 0x2c, 0xa8, 0x73, 0x3d, 0x91, 0x32, 0x39, + 0x60, 0x34, 0x4c, 0x39, 0x0d, 0x85, 0x90, 0x3a, 0xd4, 0x5c, 0x0a, 0xe5, 0xa6, 0x77, 0x62, 0xa9, + 0x0e, 0xa5, 0xa2, 0x51, 0xa8, 0x98, 0xd5, 0xa6, 0xc7, 0x9b, 0x11, 0xd3, 0xe1, 0x26, 0x4d, 0xc3, + 0x84, 0x0b, 0x03, 0x76, 0xd8, 0xd5, 0x72, 0x92, 0x84, 0x09, 0xa6, 0xb8, 0x13, 0xf2, 0xdf, 0xc3, + 0xd5, 0x37, 0x39, 0xfd, 0x99, 0x19, 0x6e, 0x8b, 0x3d, 0x19, 0xb0, 0xa3, 0x21, 0x53, 0x1a, 0x3f, + 0x07, 0x98, 0x4a, 0xb5, 0xd0, 0x1a, 0xea, 0x2f, 0x0d, 0xba, 0xc4, 0xfa, 0x92, 0xdc, 0x97, 0xd8, + 0x3b, 0x39, 0x5f, 0xf2, 0x3a, 0x4c, 0x98, 0xe3, 0x06, 0x05, 0xa6, 0xff, 0x1d, 0xc1, 0xb5, 0x0b, + 0x16, 0x2a, 0x95, 0x42, 0x31, 0xfc, 0x10, 0x16, 0x6c, 0xaa, 0x16, 0x5a, 0x6b, 0xf6, 0x97, 0x06, + 0x2d, 0x52, 0xaa, 0x86, 0x18, 0x4a, 0xce, 0x78, 0x72, 0xe9, 0xf4, 0xf7, 0x8d, 0x46, 0xe0, 0xd0, + 0xf8, 0x45, 0x29, 0xdb, 0x9c, 0xc9, 0xd6, 0xab, 0xcd, 0x66, 0x4d, 0x4b, 0xe1, 0x1e, 0x41, 0xcb, + 0x64, 0x7b, 0x3a, 0xcc, 0x32, 0x26, 0xb4, 0xf1, 0x3b, 0x2f, 0xc0, 0x03, 0xe0, 0xbb, 0x4c, 0x68, + 0xbe, 0xc7, 0x59, 0x66, 0x0a, 0x58, 0x0c, 0x0a, 0x27, 0xfe, 0x63, 0x68, 0x57, 0x70, 0xdd, 0xcd, + 0x6e, 0xc1, 0x4a, 0x6c, 0xcf, 0x77, 0x4c, 0x66, 0xc3, 0x6f, 0x06, 0xcb, 0x71, 0x01, 0xec, 0x6f, + 0xc1, 0x95, 0x69, 0x33, 0xc5, 0xee, 0xeb, 0xac, 0x5f, 0x15, 0xb7, 0x56, 0x6a, 0xf4, 0x01, 0xcc, + 0x4f, 0xfd, 0xea, 0x0b, 0xb5, 0xe0, 0xc1, 0x8f, 0x26, 0xcc, 0x1b, 0x41, 0xfc, 0x11, 0x60, 0x82, + 0x51, 0x78, 0xe3, 0x3f, 0x7a, 0xf5, 0x53, 0xe9, 0x74, 0xeb, 0x60, 0x36, 0x9c, 0x7f, 0xf3, 0xd3, + 0xcf, 0xbf, 0xdf, 0xe6, 0x56, 0x71, 0x9b, 0xbe, 0x35, 0xf8, 0x83, 0x30, 0x52, 0xb4, 0xf4, 0x3a, + 0xf1, 0x57, 0x04, 0xcb, 0xc5, 0x42, 0x71, 0xaf, 0x4a, 0xbb, 0x62, 0x5d, 0x9d, 0x7e, 0x3d, 0xd0, + 0xc5, 0xa0, 0x26, 0xc6, 0x6d, 0xdc, 0x9b, 0x19, 0x83, 0x96, 0x76, 0x87, 0x3f, 0x23, 0x58, 0x9c, + 0xb4, 0x82, 0xd7, 0x67, 0xde, 0xb6, 0xd8, 0xc9, 0x46, 0x0d, 0xca, 0x65, 0xb9, 0x6b, 0xb2, 0x74, + 0xf1, 0xfa, 0xec, 0x2c, 0xe6, 0x67, 0x87, 0xe7, 0x4b, 0xdb, 0x3e, 0x1d, 0x79, 0xe8, 0x6c, 0xe4, + 0xa1, 0x3f, 0x23, 0x0f, 0x7d, 0x19, 0x7b, 0x8d, 0xb3, 0xb1, 0xd7, 0xf8, 0x35, 0xf6, 0x1a, 0xef, + 0x68, 0xc2, 0xf5, 0xfe, 0x30, 0x22, 0xb1, 0x3c, 0x74, 0x4a, 0xf7, 0x5e, 0x16, 0xa4, 0x8e, 0xb7, + 0xe8, 0x87, 0x73, 0x3d, 0x7d, 0x92, 0x32, 0x15, 0x2d, 0x98, 0xef, 0xff, 0xfe, 0xbf, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x33, 0xf5, 0x20, 0x08, 0xa8, 0x04, 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 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // EpochInfos provide running epochInfos + EpochInfos(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) + // CurrentEpoch provide current epoch of specified identifier + CurrentEpoch(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) + // CurrentEpoch provide current epoch of specified identifier + EpochInfo(ctx context.Context, in *QueryEpochInfoRequest, opts ...grpc.CallOption) (*QueryEpochInfoResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) EpochInfos(ctx context.Context, in *QueryEpochsInfoRequest, opts ...grpc.CallOption) (*QueryEpochsInfoResponse, error) { + out := new(QueryEpochsInfoResponse) + err := c.cc.Invoke(ctx, "/stride.epochs.Query/EpochInfos", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) CurrentEpoch(ctx context.Context, in *QueryCurrentEpochRequest, opts ...grpc.CallOption) (*QueryCurrentEpochResponse, error) { + out := new(QueryCurrentEpochResponse) + err := c.cc.Invoke(ctx, "/stride.epochs.Query/CurrentEpoch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) EpochInfo(ctx context.Context, in *QueryEpochInfoRequest, opts ...grpc.CallOption) (*QueryEpochInfoResponse, error) { + out := new(QueryEpochInfoResponse) + err := c.cc.Invoke(ctx, "/stride.epochs.Query/EpochInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // EpochInfos provide running epochInfos + EpochInfos(context.Context, *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) + // CurrentEpoch provide current epoch of specified identifier + CurrentEpoch(context.Context, *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) + // CurrentEpoch provide current epoch of specified identifier + EpochInfo(context.Context, *QueryEpochInfoRequest) (*QueryEpochInfoResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) EpochInfos(ctx context.Context, req *QueryEpochsInfoRequest) (*QueryEpochsInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochInfos not implemented") +} +func (*UnimplementedQueryServer) CurrentEpoch(ctx context.Context, req *QueryCurrentEpochRequest) (*QueryCurrentEpochResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CurrentEpoch not implemented") +} +func (*UnimplementedQueryServer) EpochInfo(ctx context.Context, req *QueryEpochInfoRequest) (*QueryEpochInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochInfo not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_EpochInfos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryEpochsInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EpochInfos(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.epochs.Query/EpochInfos", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EpochInfos(ctx, req.(*QueryEpochsInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_CurrentEpoch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryCurrentEpochRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).CurrentEpoch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.epochs.Query/CurrentEpoch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).CurrentEpoch(ctx, req.(*QueryCurrentEpochRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_EpochInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryEpochInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EpochInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.epochs.Query/EpochInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EpochInfo(ctx, req.(*QueryEpochInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "stride.epochs.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "EpochInfos", + Handler: _Query_EpochInfos_Handler, + }, + { + MethodName: "CurrentEpoch", + Handler: _Query_CurrentEpoch_Handler, + }, + { + MethodName: "EpochInfo", + Handler: _Query_EpochInfo_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "stride/epochs/query.proto", +} + +func (m *QueryEpochsInfoRequest) 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 *QueryEpochsInfoRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryEpochsInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryEpochsInfoResponse) 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 *QueryEpochsInfoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryEpochsInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Epochs) > 0 { + for iNdEx := len(m.Epochs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Epochs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryCurrentEpochRequest) 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 *QueryCurrentEpochRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCurrentEpochRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Identifier) > 0 { + i -= len(m.Identifier) + copy(dAtA[i:], m.Identifier) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Identifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryCurrentEpochResponse) 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 *QueryCurrentEpochResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryCurrentEpochResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CurrentEpoch != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.CurrentEpoch)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryEpochInfoRequest) 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 *QueryEpochInfoRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryEpochInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Identifier) > 0 { + i -= len(m.Identifier) + copy(dAtA[i:], m.Identifier) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Identifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryEpochInfoResponse) 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 *QueryEpochInfoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryEpochInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Epoch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryEpochsInfoRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryEpochsInfoResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Epochs) > 0 { + for _, e := range m.Epochs { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryCurrentEpochRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Identifier) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryCurrentEpochResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CurrentEpoch != 0 { + n += 1 + sovQuery(uint64(m.CurrentEpoch)) + } + return n +} + +func (m *QueryEpochInfoRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Identifier) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryEpochInfoResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Epoch.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryEpochsInfoRequest) 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 ErrIntOverflowQuery + } + 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: QueryEpochsInfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryEpochsInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryEpochsInfoResponse) 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 ErrIntOverflowQuery + } + 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: QueryEpochsInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryEpochsInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Epochs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Epochs = append(m.Epochs, EpochInfo{}) + if err := m.Epochs[len(m.Epochs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryCurrentEpochRequest) 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 ErrIntOverflowQuery + } + 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: QueryCurrentEpochRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCurrentEpochRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Identifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryCurrentEpochResponse) 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 ErrIntOverflowQuery + } + 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: QueryCurrentEpochResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryCurrentEpochResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentEpoch", wireType) + } + m.CurrentEpoch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CurrentEpoch |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryEpochInfoRequest) 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 ErrIntOverflowQuery + } + 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: QueryEpochInfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryEpochInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Identifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryEpochInfoResponse) 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 ErrIntOverflowQuery + } + 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: QueryEpochInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryEpochInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Epoch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/icacallbacks/types/callback_data.pb.go b/x/icacallbacks/types/callback_data.pb.go new file mode 100644 index 0000000000..a47504e04c --- /dev/null +++ b/x/icacallbacks/types/callback_data.pb.go @@ -0,0 +1,564 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/icacallbacks/callback_data.proto + +package types + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + 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 + +type CallbackData struct { + CallbackKey string `protobuf:"bytes,1,opt,name=callback_key,json=callbackKey,proto3" json:"callback_key,omitempty"` + PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` + ChannelId string `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` + CallbackId string `protobuf:"bytes,5,opt,name=callback_id,json=callbackId,proto3" json:"callback_id,omitempty"` + CallbackArgs []byte `protobuf:"bytes,6,opt,name=callback_args,json=callbackArgs,proto3" json:"callback_args,omitempty"` +} + +func (m *CallbackData) Reset() { *m = CallbackData{} } +func (m *CallbackData) String() string { return proto.CompactTextString(m) } +func (*CallbackData) ProtoMessage() {} +func (*CallbackData) Descriptor() ([]byte, []int) { + return fileDescriptor_19b6f19ce856679b, []int{0} +} +func (m *CallbackData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CallbackData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CallbackData.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 *CallbackData) XXX_Merge(src proto.Message) { + xxx_messageInfo_CallbackData.Merge(m, src) +} +func (m *CallbackData) XXX_Size() int { + return m.Size() +} +func (m *CallbackData) XXX_DiscardUnknown() { + xxx_messageInfo_CallbackData.DiscardUnknown(m) +} + +var xxx_messageInfo_CallbackData proto.InternalMessageInfo + +func (m *CallbackData) GetCallbackKey() string { + if m != nil { + return m.CallbackKey + } + return "" +} + +func (m *CallbackData) GetPortId() string { + if m != nil { + return m.PortId + } + return "" +} + +func (m *CallbackData) GetChannelId() string { + if m != nil { + return m.ChannelId + } + return "" +} + +func (m *CallbackData) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *CallbackData) GetCallbackId() string { + if m != nil { + return m.CallbackId + } + return "" +} + +func (m *CallbackData) GetCallbackArgs() []byte { + if m != nil { + return m.CallbackArgs + } + return nil +} + +func init() { + proto.RegisterType((*CallbackData)(nil), "stride.icacallbacks.CallbackData") +} + +func init() { + proto.RegisterFile("stride/icacallbacks/callback_data.proto", fileDescriptor_19b6f19ce856679b) +} + +var fileDescriptor_19b6f19ce856679b = []byte{ + // 268 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2f, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0xcf, 0x4c, 0x4e, 0x4c, 0x4e, 0xcc, 0xc9, 0x49, 0x4a, 0x4c, 0xce, 0x2e, 0xd6, + 0x87, 0xb1, 0xe2, 0x53, 0x12, 0x4b, 0x12, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x84, 0x21, + 0x0a, 0xf5, 0x90, 0x15, 0x2a, 0x9d, 0x66, 0xe4, 0xe2, 0x71, 0x86, 0xf2, 0x5c, 0x12, 0x4b, 0x12, + 0x85, 0x14, 0xb9, 0x78, 0xe0, 0x9a, 0xb3, 0x53, 0x2b, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, + 0xb8, 0x61, 0x62, 0xde, 0xa9, 0x95, 0x42, 0xe2, 0x5c, 0xec, 0x05, 0xf9, 0x45, 0x25, 0xf1, 0x99, + 0x29, 0x12, 0x4c, 0x60, 0x59, 0x36, 0x10, 0xd7, 0x33, 0x45, 0x48, 0x96, 0x8b, 0x2b, 0x39, 0x23, + 0x31, 0x2f, 0x2f, 0x35, 0x07, 0x24, 0xc7, 0x0c, 0x96, 0xe3, 0x84, 0x8a, 0x78, 0xa6, 0x08, 0x49, + 0x71, 0x71, 0x14, 0xa7, 0x16, 0x96, 0xa6, 0xe6, 0x25, 0xa7, 0x4a, 0xb0, 0x28, 0x30, 0x6a, 0xb0, + 0x04, 0xc1, 0xf9, 0x42, 0xf2, 0x5c, 0x70, 0x2b, 0x40, 0x7a, 0x59, 0xc1, 0x7a, 0xb9, 0x60, 0x42, + 0x9e, 0x29, 0x42, 0xca, 0x5c, 0xbc, 0x70, 0x05, 0x89, 0x45, 0xe9, 0xc5, 0x12, 0x6c, 0x0a, 0x8c, + 0x1a, 0x3c, 0x41, 0x70, 0xc7, 0x3a, 0x16, 0xa5, 0x17, 0x3b, 0xf9, 0x9f, 0x78, 0x24, 0xc7, 0x78, + 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, + 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x69, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, + 0xae, 0x7e, 0x30, 0x38, 0x1c, 0x74, 0x7d, 0x12, 0x93, 0x8a, 0xf5, 0xa1, 0x81, 0x57, 0x66, 0xae, + 0x5f, 0x81, 0x1a, 0x82, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0xe0, 0xa0, 0x33, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0x2b, 0xd5, 0x80, 0xcc, 0x65, 0x01, 0x00, 0x00, +} + +func (m *CallbackData) 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 *CallbackData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CallbackData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CallbackArgs) > 0 { + i -= len(m.CallbackArgs) + copy(dAtA[i:], m.CallbackArgs) + i = encodeVarintCallbackData(dAtA, i, uint64(len(m.CallbackArgs))) + i-- + dAtA[i] = 0x32 + } + if len(m.CallbackId) > 0 { + i -= len(m.CallbackId) + copy(dAtA[i:], m.CallbackId) + i = encodeVarintCallbackData(dAtA, i, uint64(len(m.CallbackId))) + i-- + dAtA[i] = 0x2a + } + if m.Sequence != 0 { + i = encodeVarintCallbackData(dAtA, i, uint64(m.Sequence)) + i-- + dAtA[i] = 0x20 + } + if len(m.ChannelId) > 0 { + i -= len(m.ChannelId) + copy(dAtA[i:], m.ChannelId) + i = encodeVarintCallbackData(dAtA, i, uint64(len(m.ChannelId))) + i-- + dAtA[i] = 0x1a + } + if len(m.PortId) > 0 { + i -= len(m.PortId) + copy(dAtA[i:], m.PortId) + i = encodeVarintCallbackData(dAtA, i, uint64(len(m.PortId))) + i-- + dAtA[i] = 0x12 + } + if len(m.CallbackKey) > 0 { + i -= len(m.CallbackKey) + copy(dAtA[i:], m.CallbackKey) + i = encodeVarintCallbackData(dAtA, i, uint64(len(m.CallbackKey))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintCallbackData(dAtA []byte, offset int, v uint64) int { + offset -= sovCallbackData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *CallbackData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.CallbackKey) + if l > 0 { + n += 1 + l + sovCallbackData(uint64(l)) + } + l = len(m.PortId) + if l > 0 { + n += 1 + l + sovCallbackData(uint64(l)) + } + l = len(m.ChannelId) + if l > 0 { + n += 1 + l + sovCallbackData(uint64(l)) + } + if m.Sequence != 0 { + n += 1 + sovCallbackData(uint64(m.Sequence)) + } + l = len(m.CallbackId) + if l > 0 { + n += 1 + l + sovCallbackData(uint64(l)) + } + l = len(m.CallbackArgs) + if l > 0 { + n += 1 + l + sovCallbackData(uint64(l)) + } + return n +} + +func sovCallbackData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozCallbackData(x uint64) (n int) { + return sovCallbackData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *CallbackData) 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 ErrIntOverflowCallbackData + } + 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: CallbackData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CallbackData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CallbackKey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbackData + } + 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 ErrInvalidLengthCallbackData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbackData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CallbackKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbackData + } + 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 ErrInvalidLengthCallbackData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbackData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PortId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbackData + } + 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 ErrInvalidLengthCallbackData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbackData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChannelId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + } + m.Sequence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbackData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Sequence |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CallbackId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbackData + } + 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 ErrInvalidLengthCallbackData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbackData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CallbackId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CallbackArgs", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbackData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthCallbackData + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthCallbackData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CallbackArgs = append(m.CallbackArgs[:0], dAtA[iNdEx:postIndex]...) + if m.CallbackArgs == nil { + m.CallbackArgs = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCallbackData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbackData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipCallbackData(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, ErrIntOverflowCallbackData + } + 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, ErrIntOverflowCallbackData + } + 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, ErrIntOverflowCallbackData + } + 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, ErrInvalidLengthCallbackData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupCallbackData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthCallbackData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthCallbackData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCallbackData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCallbackData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/icacallbacks/types/genesis.pb.go b/x/icacallbacks/types/genesis.pb.go new file mode 100644 index 0000000000..aeffec322f --- /dev/null +++ b/x/icacallbacks/types/genesis.pb.go @@ -0,0 +1,439 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/icacallbacks/genesis.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +// GenesisState defines the icacallbacks module's genesis state. +type GenesisState struct { + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` + CallbackDataList []CallbackData `protobuf:"bytes,3,rep,name=callback_data_list,json=callbackDataList,proto3" json:"callback_data_list"` +} + +func (m *GenesisState) Reset() { *m = GenesisState{} } +func (m *GenesisState) String() string { return proto.CompactTextString(m) } +func (*GenesisState) ProtoMessage() {} +func (*GenesisState) Descriptor() ([]byte, []int) { + return fileDescriptor_8c333baddfa20681, []int{0} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func (m *GenesisState) GetPortId() string { + if m != nil { + return m.PortId + } + return "" +} + +func (m *GenesisState) GetCallbackDataList() []CallbackData { + if m != nil { + return m.CallbackDataList + } + return nil +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "stride.icacallbacks.GenesisState") +} + +func init() { proto.RegisterFile("stride/icacallbacks/genesis.proto", fileDescriptor_8c333baddfa20681) } + +var fileDescriptor_8c333baddfa20681 = []byte{ + // 278 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0xcf, 0x4c, 0x4e, 0x4c, 0x4e, 0xcc, 0xc9, 0x49, 0x4a, 0x4c, 0xce, 0x2e, 0xd6, + 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, + 0x28, 0xd1, 0x43, 0x56, 0x22, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x96, 0xd7, 0x07, 0xb1, 0x20, + 0x4a, 0xa5, 0x14, 0xb0, 0x99, 0x56, 0x90, 0x58, 0x94, 0x98, 0x0b, 0x35, 0x4c, 0x4a, 0x1d, 0x9b, + 0x0a, 0x18, 0x2b, 0x3e, 0x25, 0xb1, 0x24, 0x11, 0xa2, 0x50, 0x69, 0x27, 0x23, 0x17, 0x8f, 0x3b, + 0xc4, 0x1d, 0xc1, 0x25, 0x89, 0x25, 0xa9, 0x42, 0x96, 0x5c, 0x6c, 0x10, 0x93, 0x24, 0x18, 0x15, + 0x18, 0x35, 0xb8, 0x8d, 0xa4, 0xf5, 0xb0, 0xb8, 0x4b, 0x2f, 0x00, 0xac, 0xc4, 0x89, 0xe5, 0xc4, + 0x3d, 0x79, 0x86, 0x20, 0xa8, 0x06, 0x21, 0x71, 0x2e, 0xf6, 0x82, 0xfc, 0xa2, 0x92, 0xf8, 0xcc, + 0x14, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x36, 0x10, 0xd7, 0x33, 0x45, 0x28, 0x94, 0x4b, + 0x08, 0xc5, 0xee, 0xf8, 0x9c, 0xcc, 0xe2, 0x12, 0x09, 0x66, 0x05, 0x66, 0x0d, 0x6e, 0x23, 0x45, + 0xac, 0xe6, 0x3b, 0x43, 0x59, 0x2e, 0x89, 0x25, 0x89, 0x50, 0x5b, 0x04, 0x92, 0x91, 0xc4, 0x7c, + 0x32, 0x8b, 0x4b, 0x9c, 0xfc, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, + 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, + 0x34, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, 0x18, 0x6c, 0xbc, 0xae, + 0x4f, 0x62, 0x52, 0xb1, 0x3e, 0x34, 0x54, 0xca, 0xcc, 0xf5, 0x2b, 0x50, 0x83, 0xa6, 0xa4, 0xb2, + 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x1c, 0x26, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x01, 0x1e, + 0x6a, 0xd0, 0xae, 0x01, 0x00, 0x00, +} + +func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CallbackDataList) > 0 { + for iNdEx := len(m.CallbackDataList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CallbackDataList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.PortId) > 0 { + i -= len(m.PortId) + copy(dAtA[i:], m.PortId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.PortId))) + i-- + dAtA[i] = 0x12 + } + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = len(m.PortId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.CallbackDataList) > 0 { + for _, e := range m.CallbackDataList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisState) 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 ErrIntOverflowGenesis + } + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PortId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CallbackDataList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CallbackDataList = append(m.CallbackDataList, CallbackData{}) + if err := m.CallbackDataList[len(m.CallbackDataList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/icacallbacks/types/packet.pb.go b/x/icacallbacks/types/packet.pb.go new file mode 100644 index 0000000000..801b162eb4 --- /dev/null +++ b/x/icacallbacks/types/packet.pb.go @@ -0,0 +1,501 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/icacallbacks/packet.proto + +package types + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + 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 + +type IcacallbacksPacketData struct { + // Types that are valid to be assigned to Packet: + // *IcacallbacksPacketData_NoData + Packet isIcacallbacksPacketData_Packet `protobuf_oneof:"packet"` +} + +func (m *IcacallbacksPacketData) Reset() { *m = IcacallbacksPacketData{} } +func (m *IcacallbacksPacketData) String() string { return proto.CompactTextString(m) } +func (*IcacallbacksPacketData) ProtoMessage() {} +func (*IcacallbacksPacketData) Descriptor() ([]byte, []int) { + return fileDescriptor_e68b4c401320f2a0, []int{0} +} +func (m *IcacallbacksPacketData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IcacallbacksPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IcacallbacksPacketData.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 *IcacallbacksPacketData) XXX_Merge(src proto.Message) { + xxx_messageInfo_IcacallbacksPacketData.Merge(m, src) +} +func (m *IcacallbacksPacketData) XXX_Size() int { + return m.Size() +} +func (m *IcacallbacksPacketData) XXX_DiscardUnknown() { + xxx_messageInfo_IcacallbacksPacketData.DiscardUnknown(m) +} + +var xxx_messageInfo_IcacallbacksPacketData proto.InternalMessageInfo + +type isIcacallbacksPacketData_Packet interface { + isIcacallbacksPacketData_Packet() + MarshalTo([]byte) (int, error) + Size() int +} + +type IcacallbacksPacketData_NoData struct { + NoData *NoData `protobuf:"bytes,1,opt,name=no_data,json=noData,proto3,oneof" json:"no_data,omitempty"` +} + +func (*IcacallbacksPacketData_NoData) isIcacallbacksPacketData_Packet() {} + +func (m *IcacallbacksPacketData) GetPacket() isIcacallbacksPacketData_Packet { + if m != nil { + return m.Packet + } + return nil +} + +func (m *IcacallbacksPacketData) GetNoData() *NoData { + if x, ok := m.GetPacket().(*IcacallbacksPacketData_NoData); ok { + return x.NoData + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*IcacallbacksPacketData) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*IcacallbacksPacketData_NoData)(nil), + } +} + +type NoData struct { +} + +func (m *NoData) Reset() { *m = NoData{} } +func (m *NoData) String() string { return proto.CompactTextString(m) } +func (*NoData) ProtoMessage() {} +func (*NoData) Descriptor() ([]byte, []int) { + return fileDescriptor_e68b4c401320f2a0, []int{1} +} +func (m *NoData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NoData.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 *NoData) XXX_Merge(src proto.Message) { + xxx_messageInfo_NoData.Merge(m, src) +} +func (m *NoData) XXX_Size() int { + return m.Size() +} +func (m *NoData) XXX_DiscardUnknown() { + xxx_messageInfo_NoData.DiscardUnknown(m) +} + +var xxx_messageInfo_NoData proto.InternalMessageInfo + +func init() { + proto.RegisterType((*IcacallbacksPacketData)(nil), "stride.icacallbacks.IcacallbacksPacketData") + proto.RegisterType((*NoData)(nil), "stride.icacallbacks.NoData") +} + +func init() { proto.RegisterFile("stride/icacallbacks/packet.proto", fileDescriptor_e68b4c401320f2a0) } + +var fileDescriptor_e68b4c401320f2a0 = []byte{ + // 194 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x28, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0xcf, 0x4c, 0x4e, 0x4c, 0x4e, 0xcc, 0xc9, 0x49, 0x4a, 0x4c, 0xce, 0x2e, 0xd6, + 0x2f, 0x48, 0x4c, 0xce, 0x4e, 0x2d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0xa8, + 0xd0, 0x43, 0x56, 0xa1, 0x14, 0xc5, 0x25, 0xe6, 0x89, 0xc4, 0x0f, 0x00, 0x6b, 0x70, 0x49, 0x2c, + 0x49, 0x14, 0x32, 0xe3, 0x62, 0xcf, 0xcb, 0x8f, 0x4f, 0x49, 0x2c, 0x49, 0x94, 0x60, 0x54, 0x60, + 0xd4, 0xe0, 0x36, 0x92, 0xd6, 0xc3, 0x62, 0x80, 0x9e, 0x5f, 0x3e, 0x48, 0xb5, 0x07, 0x43, 0x10, + 0x5b, 0x1e, 0x98, 0xe5, 0xc4, 0xc1, 0xc5, 0x06, 0xb1, 0x56, 0x89, 0x83, 0x8b, 0x0d, 0x22, 0xeb, + 0xe4, 0x7f, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, + 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xa6, 0xe9, 0x99, 0x25, + 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xc1, 0x60, 0xe3, 0x75, 0x7d, 0x12, 0x93, 0x8a, + 0xf5, 0xa1, 0xbe, 0x29, 0x33, 0xd7, 0xaf, 0x40, 0xf5, 0x52, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, + 0x1b, 0xd8, 0x4b, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xda, 0xc0, 0x35, 0xeb, 0xf6, 0x00, + 0x00, 0x00, +} + +func (m *IcacallbacksPacketData) 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 *IcacallbacksPacketData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IcacallbacksPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Packet != nil { + { + size := m.Packet.Size() + i -= size + if _, err := m.Packet.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *IcacallbacksPacketData_NoData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IcacallbacksPacketData_NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NoData != nil { + { + size, err := m.NoData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacket(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *NoData) 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 *NoData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintPacket(dAtA []byte, offset int, v uint64) int { + offset -= sovPacket(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *IcacallbacksPacketData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packet != nil { + n += m.Packet.Size() + } + return n +} + +func (m *IcacallbacksPacketData_NoData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoData != nil { + l = m.NoData.Size() + n += 1 + l + sovPacket(uint64(l)) + } + return n +} +func (m *NoData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovPacket(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPacket(x uint64) (n int) { + return sovPacket(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *IcacallbacksPacketData) 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 ErrIntOverflowPacket + } + 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: IcacallbacksPacketData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IcacallbacksPacketData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NoData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacket + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacket + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacket + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NoData{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &IcacallbacksPacketData_NoData{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPacket(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPacket + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NoData) 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 ErrIntOverflowPacket + } + 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: NoData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NoData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipPacket(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPacket + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPacket(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, ErrIntOverflowPacket + } + 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, ErrIntOverflowPacket + } + 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, ErrIntOverflowPacket + } + 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, ErrInvalidLengthPacket + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPacket + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPacket + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPacket = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPacket = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/icacallbacks/types/params.pb.go b/x/icacallbacks/types/params.pb.go new file mode 100644 index 0000000000..050420fa71 --- /dev/null +++ b/x/icacallbacks/types/params.pb.go @@ -0,0 +1,264 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/icacallbacks/params.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +// Params defines the parameters for the module. +type Params struct { +} + +func (m *Params) Reset() { *m = Params{} } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_4c402599e6cfed62, []int{0} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Params)(nil), "stride.icacallbacks.Params") +} + +func init() { proto.RegisterFile("stride/icacallbacks/params.proto", fileDescriptor_4c402599e6cfed62) } + +var fileDescriptor_4c402599e6cfed62 = []byte{ + // 159 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x28, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0xcf, 0x4c, 0x4e, 0x4c, 0x4e, 0xcc, 0xc9, 0x49, 0x4a, 0x4c, 0xce, 0x2e, 0xd6, + 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0xa8, + 0xd0, 0x43, 0x56, 0x21, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x96, 0xd7, 0x07, 0xb1, 0x20, 0x4a, + 0x95, 0xf8, 0xb8, 0xd8, 0x02, 0xc0, 0x5a, 0xad, 0x58, 0x66, 0x2c, 0x90, 0x67, 0x70, 0xf2, 0x3f, + 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, + 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xd3, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, + 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0x60, 0xb0, 0xf9, 0xba, 0x3e, 0x89, 0x49, 0xc5, 0xfa, 0x50, + 0xd7, 0x94, 0x99, 0xeb, 0x57, 0xa0, 0x3a, 0xa9, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x6c, + 0x8f, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x05, 0x53, 0xe6, 0xd0, 0xb6, 0x00, 0x00, 0x00, +} + +func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintParams(dAtA []byte, offset int, v uint64) int { + offset -= sovParams(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovParams(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozParams(x uint64) (n int) { + return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Params) 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 ErrIntOverflowParams + } + 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: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipParams(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthParams + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipParams(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, ErrIntOverflowParams + } + 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, ErrIntOverflowParams + } + 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, ErrIntOverflowParams + } + 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, ErrInvalidLengthParams + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupParams + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthParams + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/icacallbacks/types/query.pb.go b/x/icacallbacks/types/query.pb.go new file mode 100644 index 0000000000..70fd1da685 --- /dev/null +++ b/x/icacallbacks/types/query.pb.go @@ -0,0 +1,1389 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/icacallbacks/query.proto + +package types + +import ( + context "context" + fmt "fmt" + query "github.com/cosmos/cosmos-sdk/types/query" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + 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 + +// QueryParamsRequest is request type for the Query/Params RPC method. +type QueryParamsRequest struct { +} + +func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } +func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryParamsRequest) ProtoMessage() {} +func (*QueryParamsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_5e73b99abb7e91c2, []int{0} +} +func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsRequest.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 *QueryParamsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsRequest.Merge(m, src) +} +func (m *QueryParamsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo + +// QueryParamsResponse is response type for the Query/Params RPC method. +type QueryParamsResponse struct { + // params holds all the parameters of this module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` +} + +func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } +func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryParamsResponse) ProtoMessage() {} +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5e73b99abb7e91c2, []int{1} +} +func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsResponse.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 *QueryParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsResponse.Merge(m, src) +} +func (m *QueryParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo + +func (m *QueryParamsResponse) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +type QueryGetCallbackDataRequest struct { + CallbackKey string `protobuf:"bytes,1,opt,name=callback_key,json=callbackKey,proto3" json:"callback_key,omitempty"` +} + +func (m *QueryGetCallbackDataRequest) Reset() { *m = QueryGetCallbackDataRequest{} } +func (m *QueryGetCallbackDataRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetCallbackDataRequest) ProtoMessage() {} +func (*QueryGetCallbackDataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_5e73b99abb7e91c2, []int{2} +} +func (m *QueryGetCallbackDataRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetCallbackDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetCallbackDataRequest.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 *QueryGetCallbackDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetCallbackDataRequest.Merge(m, src) +} +func (m *QueryGetCallbackDataRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetCallbackDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetCallbackDataRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetCallbackDataRequest proto.InternalMessageInfo + +func (m *QueryGetCallbackDataRequest) GetCallbackKey() string { + if m != nil { + return m.CallbackKey + } + return "" +} + +type QueryGetCallbackDataResponse struct { + CallbackData CallbackData `protobuf:"bytes,1,opt,name=callback_data,json=callbackData,proto3" json:"callback_data"` +} + +func (m *QueryGetCallbackDataResponse) Reset() { *m = QueryGetCallbackDataResponse{} } +func (m *QueryGetCallbackDataResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetCallbackDataResponse) ProtoMessage() {} +func (*QueryGetCallbackDataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5e73b99abb7e91c2, []int{3} +} +func (m *QueryGetCallbackDataResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetCallbackDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetCallbackDataResponse.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 *QueryGetCallbackDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetCallbackDataResponse.Merge(m, src) +} +func (m *QueryGetCallbackDataResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetCallbackDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetCallbackDataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetCallbackDataResponse proto.InternalMessageInfo + +func (m *QueryGetCallbackDataResponse) GetCallbackData() CallbackData { + if m != nil { + return m.CallbackData + } + return CallbackData{} +} + +type QueryAllCallbackDataRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllCallbackDataRequest) Reset() { *m = QueryAllCallbackDataRequest{} } +func (m *QueryAllCallbackDataRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllCallbackDataRequest) ProtoMessage() {} +func (*QueryAllCallbackDataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_5e73b99abb7e91c2, []int{4} +} +func (m *QueryAllCallbackDataRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllCallbackDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllCallbackDataRequest.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 *QueryAllCallbackDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllCallbackDataRequest.Merge(m, src) +} +func (m *QueryAllCallbackDataRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllCallbackDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllCallbackDataRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllCallbackDataRequest proto.InternalMessageInfo + +func (m *QueryAllCallbackDataRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllCallbackDataResponse struct { + CallbackData []CallbackData `protobuf:"bytes,1,rep,name=callback_data,json=callbackData,proto3" json:"callback_data"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllCallbackDataResponse) Reset() { *m = QueryAllCallbackDataResponse{} } +func (m *QueryAllCallbackDataResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllCallbackDataResponse) ProtoMessage() {} +func (*QueryAllCallbackDataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5e73b99abb7e91c2, []int{5} +} +func (m *QueryAllCallbackDataResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllCallbackDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllCallbackDataResponse.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 *QueryAllCallbackDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllCallbackDataResponse.Merge(m, src) +} +func (m *QueryAllCallbackDataResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllCallbackDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllCallbackDataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllCallbackDataResponse proto.InternalMessageInfo + +func (m *QueryAllCallbackDataResponse) GetCallbackData() []CallbackData { + if m != nil { + return m.CallbackData + } + return nil +} + +func (m *QueryAllCallbackDataResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +func init() { + proto.RegisterType((*QueryParamsRequest)(nil), "stride.icacallbacks.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "stride.icacallbacks.QueryParamsResponse") + proto.RegisterType((*QueryGetCallbackDataRequest)(nil), "stride.icacallbacks.QueryGetCallbackDataRequest") + proto.RegisterType((*QueryGetCallbackDataResponse)(nil), "stride.icacallbacks.QueryGetCallbackDataResponse") + proto.RegisterType((*QueryAllCallbackDataRequest)(nil), "stride.icacallbacks.QueryAllCallbackDataRequest") + proto.RegisterType((*QueryAllCallbackDataResponse)(nil), "stride.icacallbacks.QueryAllCallbackDataResponse") +} + +func init() { proto.RegisterFile("stride/icacallbacks/query.proto", fileDescriptor_5e73b99abb7e91c2) } + +var fileDescriptor_5e73b99abb7e91c2 = []byte{ + // 520 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x4f, 0x6b, 0x14, 0x31, + 0x18, 0xc6, 0x37, 0xb5, 0x2e, 0x98, 0x56, 0x84, 0xb4, 0x07, 0xd9, 0x96, 0x69, 0x3b, 0x07, 0xb7, + 0x0a, 0x26, 0xdd, 0x8a, 0x8a, 0x07, 0xd1, 0xd6, 0x3f, 0x3d, 0x58, 0x70, 0x5d, 0x6f, 0x5e, 0xe4, + 0x9d, 0x69, 0x18, 0x87, 0x66, 0x27, 0xd3, 0x4d, 0xb6, 0xb8, 0x88, 0x17, 0xf1, 0xe8, 0x41, 0xf0, + 0x7b, 0x78, 0xf3, 0xe2, 0x27, 0xe8, 0xb1, 0xe0, 0xc5, 0x93, 0xc8, 0xae, 0x1f, 0x44, 0x36, 0xc9, + 0xd6, 0x19, 0x9a, 0xe9, 0x52, 0x6f, 0x21, 0x79, 0xde, 0xe7, 0xf9, 0xbd, 0xf3, 0xbe, 0x0c, 0x5e, + 0x51, 0xba, 0x97, 0xee, 0x71, 0x96, 0xc6, 0x10, 0x83, 0x10, 0x11, 0xc4, 0xfb, 0x8a, 0x1d, 0xf4, + 0x79, 0x6f, 0x40, 0xf3, 0x9e, 0xd4, 0x92, 0x2c, 0x58, 0x01, 0x2d, 0x0a, 0x1a, 0x8b, 0x89, 0x4c, + 0xa4, 0x79, 0x67, 0xe3, 0x93, 0x95, 0x36, 0x96, 0x13, 0x29, 0x13, 0xc1, 0x19, 0xe4, 0x29, 0x83, + 0x2c, 0x93, 0x1a, 0x74, 0x2a, 0x33, 0xe5, 0x5e, 0x6f, 0xc4, 0x52, 0x75, 0xa5, 0x62, 0x11, 0x28, + 0x6e, 0x13, 0xd8, 0x61, 0x2b, 0xe2, 0x1a, 0x5a, 0x2c, 0x87, 0x24, 0xcd, 0x8c, 0xd8, 0x69, 0x57, + 0x7d, 0x54, 0x39, 0xf4, 0xa0, 0x3b, 0x71, 0x6b, 0xfa, 0x14, 0x93, 0xd3, 0xeb, 0x3d, 0xd0, 0x60, + 0x85, 0xe1, 0x22, 0x26, 0x2f, 0xc6, 0x61, 0x6d, 0x53, 0xdd, 0xe1, 0x07, 0x7d, 0xae, 0x74, 0xd8, + 0xc6, 0x0b, 0xa5, 0x5b, 0x95, 0xcb, 0x4c, 0x71, 0x72, 0x0f, 0xd7, 0x6d, 0xca, 0x55, 0xb4, 0x8a, + 0xd6, 0xe7, 0x36, 0x97, 0xa8, 0xa7, 0x7b, 0x6a, 0x8b, 0xb6, 0x67, 0x8f, 0x7e, 0xad, 0xd4, 0x3a, + 0xae, 0x20, 0x7c, 0x88, 0x97, 0x8c, 0xe3, 0x0e, 0xd7, 0x8f, 0x9c, 0xf2, 0x31, 0x68, 0x70, 0x81, + 0x64, 0x0d, 0xcf, 0x9f, 0xd0, 0xed, 0xf3, 0x81, 0xf1, 0xbf, 0xd4, 0x99, 0x9b, 0xdc, 0x3d, 0xe3, + 0x83, 0x50, 0xe0, 0x65, 0xbf, 0x83, 0x83, 0xdb, 0xc5, 0x97, 0x4b, 0x0d, 0x3a, 0xc6, 0x35, 0x2f, + 0x63, 0xd1, 0xc1, 0x91, 0x9e, 0x00, 0x8c, 0xef, 0x42, 0xee, 0x78, 0xb7, 0x84, 0xf0, 0xf1, 0x3e, + 0xc5, 0xf8, 0xdf, 0x54, 0x5c, 0xd2, 0x35, 0x6a, 0x47, 0x48, 0xc7, 0x23, 0xa4, 0x76, 0x49, 0xdc, + 0x08, 0x69, 0x1b, 0x12, 0xee, 0x6a, 0x3b, 0x85, 0xca, 0xf0, 0x1b, 0x72, 0x5d, 0x9d, 0xca, 0xa9, + 0xee, 0xea, 0xc2, 0x7f, 0x77, 0x45, 0x76, 0x4a, 0xd8, 0x33, 0x06, 0xbb, 0x39, 0x15, 0xdb, 0xa2, + 0x14, 0xb9, 0x37, 0x3f, 0xce, 0xe2, 0x8b, 0x86, 0x9b, 0x7c, 0x42, 0xb8, 0x6e, 0x27, 0x4e, 0x9a, + 0x5e, 0xa8, 0xd3, 0xeb, 0xd5, 0x58, 0x9f, 0x2e, 0xb4, 0x99, 0x21, 0xfb, 0xf0, 0xe3, 0xcf, 0x97, + 0x99, 0xeb, 0xa4, 0xc9, 0x5e, 0x9a, 0x8a, 0x9b, 0xbb, 0x10, 0x29, 0x56, 0xbd, 0xfe, 0xe4, 0x3b, + 0xc2, 0xf3, 0xc5, 0xcf, 0x40, 0x36, 0xaa, 0xb3, 0xfc, 0xbb, 0xd8, 0x68, 0x9d, 0xa3, 0xc2, 0x61, + 0x3e, 0x31, 0x98, 0x0f, 0xc8, 0xfd, 0xa9, 0x98, 0xa5, 0x61, 0xb2, 0x77, 0xc5, 0xa5, 0x7f, 0x4f, + 0xbe, 0x22, 0x7c, 0xa5, 0xe8, 0xbf, 0x25, 0xc4, 0x59, 0xfc, 0xfe, 0xdd, 0x3c, 0x8b, 0xbf, 0x62, + 0xcb, 0xc2, 0x3b, 0x86, 0x7f, 0x83, 0xd0, 0xf3, 0xf1, 0x6f, 0x3f, 0x3f, 0x1a, 0x06, 0xe8, 0x78, + 0x18, 0xa0, 0xdf, 0xc3, 0x00, 0x7d, 0x1e, 0x05, 0xb5, 0xe3, 0x51, 0x50, 0xfb, 0x39, 0x0a, 0x6a, + 0xaf, 0x6e, 0x27, 0xa9, 0x7e, 0xd3, 0x8f, 0x68, 0x2c, 0xbb, 0x3e, 0xcf, 0xc3, 0xbb, 0xec, 0x6d, + 0xd9, 0x58, 0x0f, 0x72, 0xae, 0xa2, 0xba, 0xf9, 0x2b, 0xdd, 0xfa, 0x1b, 0x00, 0x00, 0xff, 0xff, + 0xbb, 0xe0, 0x2b, 0xe0, 0x78, 0x05, 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 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // Parameters queries the parameters of the module. + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + // Queries a CallbackData by index. + CallbackData(ctx context.Context, in *QueryGetCallbackDataRequest, opts ...grpc.CallOption) (*QueryGetCallbackDataResponse, error) + // Queries a list of CallbackData items. + CallbackDataAll(ctx context.Context, in *QueryAllCallbackDataRequest, opts ...grpc.CallOption) (*QueryAllCallbackDataResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/stride.icacallbacks.Query/Params", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) CallbackData(ctx context.Context, in *QueryGetCallbackDataRequest, opts ...grpc.CallOption) (*QueryGetCallbackDataResponse, error) { + out := new(QueryGetCallbackDataResponse) + err := c.cc.Invoke(ctx, "/stride.icacallbacks.Query/CallbackData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) CallbackDataAll(ctx context.Context, in *QueryAllCallbackDataRequest, opts ...grpc.CallOption) (*QueryAllCallbackDataResponse, error) { + out := new(QueryAllCallbackDataResponse) + err := c.cc.Invoke(ctx, "/stride.icacallbacks.Query/CallbackDataAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // Parameters queries the parameters of the module. + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + // Queries a CallbackData by index. + CallbackData(context.Context, *QueryGetCallbackDataRequest) (*QueryGetCallbackDataResponse, error) + // Queries a list of CallbackData items. + CallbackDataAll(context.Context, *QueryAllCallbackDataRequest) (*QueryAllCallbackDataResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (*UnimplementedQueryServer) CallbackData(ctx context.Context, req *QueryGetCallbackDataRequest) (*QueryGetCallbackDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CallbackData not implemented") +} +func (*UnimplementedQueryServer) CallbackDataAll(ctx context.Context, req *QueryAllCallbackDataRequest) (*QueryAllCallbackDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CallbackDataAll not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.icacallbacks.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_CallbackData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetCallbackDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).CallbackData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.icacallbacks.Query/CallbackData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).CallbackData(ctx, req.(*QueryGetCallbackDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_CallbackDataAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllCallbackDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).CallbackDataAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.icacallbacks.Query/CallbackDataAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).CallbackDataAll(ctx, req.(*QueryAllCallbackDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "stride.icacallbacks.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "CallbackData", + Handler: _Query_CallbackData_Handler, + }, + { + MethodName: "CallbackDataAll", + Handler: _Query_CallbackDataAll_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "stride/icacallbacks/query.proto", +} + +func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryParamsResponse) 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 *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryGetCallbackDataRequest) 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 *QueryGetCallbackDataRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetCallbackDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CallbackKey) > 0 { + i -= len(m.CallbackKey) + copy(dAtA[i:], m.CallbackKey) + i = encodeVarintQuery(dAtA, i, uint64(len(m.CallbackKey))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryGetCallbackDataResponse) 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 *QueryGetCallbackDataResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetCallbackDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.CallbackData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryAllCallbackDataRequest) 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 *QueryAllCallbackDataRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllCallbackDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllCallbackDataResponse) 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 *QueryAllCallbackDataResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllCallbackDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.CallbackData) > 0 { + for iNdEx := len(m.CallbackData) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CallbackData[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryGetCallbackDataRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.CallbackKey) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetCallbackDataResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CallbackData.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAllCallbackDataRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllCallbackDataResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.CallbackData) > 0 { + for _, e := range m.CallbackData { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryParamsRequest) 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 ErrIntOverflowQuery + } + 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: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsResponse) 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 ErrIntOverflowQuery + } + 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: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetCallbackDataRequest) 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 ErrIntOverflowQuery + } + 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: QueryGetCallbackDataRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetCallbackDataRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CallbackKey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CallbackKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetCallbackDataResponse) 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 ErrIntOverflowQuery + } + 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: QueryGetCallbackDataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetCallbackDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CallbackData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CallbackData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllCallbackDataRequest) 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 ErrIntOverflowQuery + } + 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: QueryAllCallbackDataRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllCallbackDataRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllCallbackDataResponse) 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 ErrIntOverflowQuery + } + 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: QueryAllCallbackDataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllCallbackDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CallbackData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CallbackData = append(m.CallbackData, CallbackData{}) + if err := m.CallbackData[len(m.CallbackData)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/icacallbacks/types/tx.pb.go b/x/icacallbacks/types/tx.pb.go new file mode 100644 index 0000000000..273850c2f7 --- /dev/null +++ b/x/icacallbacks/types/tx.pb.go @@ -0,0 +1,81 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/icacallbacks/tx.proto + +package types + +import ( + context "context" + fmt "fmt" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + grpc "google.golang.org/grpc" + math "math" +) + +// 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 + +func init() { proto.RegisterFile("stride/icacallbacks/tx.proto", fileDescriptor_c4981fec5f7fee51) } + +var fileDescriptor_c4981fec5f7fee51 = []byte{ + // 135 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x29, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0xcf, 0x4c, 0x4e, 0x4c, 0x4e, 0xcc, 0xc9, 0x49, 0x4a, 0x4c, 0xce, 0x2e, 0xd6, + 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, 0xc8, 0xea, 0x21, 0xcb, 0x1a, + 0xb1, 0x72, 0x31, 0xfb, 0x16, 0xa7, 0x3b, 0xf9, 0x9f, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, + 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, + 0x1c, 0x43, 0x94, 0x69, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x30, + 0xd8, 0x00, 0x5d, 0x9f, 0xc4, 0xa4, 0x62, 0x7d, 0xa8, 0x55, 0x65, 0xe6, 0xfa, 0x15, 0x68, 0xf6, + 0x55, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0xed, 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x98, + 0xcb, 0x9d, 0xff, 0x93, 0x00, 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 { +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "stride.icacallbacks.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{}, + Metadata: "stride/icacallbacks/tx.proto", +} diff --git a/x/interchainquery/types/genesis.pb.go b/x/interchainquery/types/genesis.pb.go new file mode 100644 index 0000000000..57c839c6e2 --- /dev/null +++ b/x/interchainquery/types/genesis.pb.go @@ -0,0 +1,1172 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/interchainquery/v1/genesis.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +type Query struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` + ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + QueryType string `protobuf:"bytes,4,opt,name=query_type,json=queryType,proto3" json:"query_type,omitempty"` + Request []byte `protobuf:"bytes,5,opt,name=request,proto3" json:"request,omitempty"` + CallbackId string `protobuf:"bytes,8,opt,name=callback_id,json=callbackId,proto3" json:"callback_id,omitempty"` + Ttl uint64 `protobuf:"varint,9,opt,name=ttl,proto3" json:"ttl,omitempty"` + RequestSent bool `protobuf:"varint,11,opt,name=request_sent,json=requestSent,proto3" json:"request_sent,omitempty"` +} + +func (m *Query) Reset() { *m = Query{} } +func (m *Query) String() string { return proto.CompactTextString(m) } +func (*Query) ProtoMessage() {} +func (*Query) Descriptor() ([]byte, []int) { + return fileDescriptor_74cd646eb05658fd, []int{0} +} +func (m *Query) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Query.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 *Query) XXX_Merge(src proto.Message) { + xxx_messageInfo_Query.Merge(m, src) +} +func (m *Query) XXX_Size() int { + return m.Size() +} +func (m *Query) XXX_DiscardUnknown() { + xxx_messageInfo_Query.DiscardUnknown(m) +} + +var xxx_messageInfo_Query proto.InternalMessageInfo + +func (m *Query) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Query) GetConnectionId() string { + if m != nil { + return m.ConnectionId + } + return "" +} + +func (m *Query) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *Query) GetQueryType() string { + if m != nil { + return m.QueryType + } + return "" +} + +func (m *Query) GetRequest() []byte { + if m != nil { + return m.Request + } + return nil +} + +func (m *Query) GetCallbackId() string { + if m != nil { + return m.CallbackId + } + return "" +} + +func (m *Query) GetTtl() uint64 { + if m != nil { + return m.Ttl + } + return 0 +} + +func (m *Query) GetRequestSent() bool { + if m != nil { + return m.RequestSent + } + return false +} + +type DataPoint struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + RemoteHeight github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=remote_height,json=remoteHeight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"remote_height"` + LocalHeight github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=local_height,json=localHeight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"local_height"` + Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"result,omitempty"` +} + +func (m *DataPoint) Reset() { *m = DataPoint{} } +func (m *DataPoint) String() string { return proto.CompactTextString(m) } +func (*DataPoint) ProtoMessage() {} +func (*DataPoint) Descriptor() ([]byte, []int) { + return fileDescriptor_74cd646eb05658fd, []int{1} +} +func (m *DataPoint) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DataPoint.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 *DataPoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_DataPoint.Merge(m, src) +} +func (m *DataPoint) XXX_Size() int { + return m.Size() +} +func (m *DataPoint) XXX_DiscardUnknown() { + xxx_messageInfo_DataPoint.DiscardUnknown(m) +} + +var xxx_messageInfo_DataPoint proto.InternalMessageInfo + +func (m *DataPoint) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *DataPoint) GetValue() []byte { + if m != nil { + return m.Value + } + return nil +} + +// GenesisState defines the epochs module's genesis state. +type GenesisState struct { + Queries []Query `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries"` +} + +func (m *GenesisState) Reset() { *m = GenesisState{} } +func (m *GenesisState) String() string { return proto.CompactTextString(m) } +func (*GenesisState) ProtoMessage() {} +func (*GenesisState) Descriptor() ([]byte, []int) { + return fileDescriptor_74cd646eb05658fd, []int{2} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetQueries() []Query { + if m != nil { + return m.Queries + } + return nil +} + +func init() { + proto.RegisterType((*Query)(nil), "stride.interchainquery.v1.Query") + proto.RegisterType((*DataPoint)(nil), "stride.interchainquery.v1.DataPoint") + proto.RegisterType((*GenesisState)(nil), "stride.interchainquery.v1.GenesisState") +} + +func init() { + proto.RegisterFile("stride/interchainquery/v1/genesis.proto", fileDescriptor_74cd646eb05658fd) +} + +var fileDescriptor_74cd646eb05658fd = []byte{ + // 492 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x52, 0xbd, 0x8e, 0xd3, 0x40, + 0x10, 0xce, 0xe6, 0x87, 0x24, 0x1b, 0x1f, 0x3a, 0xad, 0xae, 0x70, 0x4e, 0xc2, 0x31, 0x41, 0x82, + 0x08, 0x11, 0x5b, 0x07, 0x05, 0x14, 0x14, 0x28, 0x42, 0x02, 0x4b, 0x14, 0x87, 0x43, 0x45, 0x63, + 0x6d, 0xec, 0x95, 0xb3, 0x3a, 0x7b, 0x37, 0xe7, 0x1d, 0x47, 0xe4, 0x19, 0x68, 0x78, 0x18, 0x1e, + 0xe2, 0xca, 0x13, 0x15, 0xa2, 0x88, 0x50, 0x22, 0x51, 0xf0, 0x14, 0xc8, 0xbb, 0x8e, 0x40, 0x9c, + 0xe8, 0xa8, 0xbc, 0x33, 0xdf, 0xcc, 0x37, 0xf3, 0x8d, 0x3f, 0xfc, 0x40, 0x41, 0xc1, 0x13, 0xe6, + 0x73, 0x01, 0xac, 0x88, 0x97, 0x94, 0x8b, 0xcb, 0x92, 0x15, 0x1b, 0x7f, 0x7d, 0xe6, 0xa7, 0x4c, + 0x30, 0xc5, 0x95, 0xb7, 0x2a, 0x24, 0x48, 0x32, 0x34, 0x85, 0xde, 0x5f, 0x85, 0xde, 0xfa, 0xec, + 0xf4, 0x24, 0x95, 0xa9, 0xd4, 0x55, 0x7e, 0xf5, 0x32, 0x0d, 0xa7, 0xc3, 0x58, 0xaa, 0x5c, 0xaa, + 0xc8, 0x00, 0x26, 0x30, 0xd0, 0xf8, 0x07, 0xc2, 0x9d, 0xb7, 0x55, 0x37, 0xb9, 0x8d, 0x9b, 0x3c, + 0xb1, 0x91, 0x8b, 0x26, 0xfd, 0xb0, 0xc9, 0x13, 0x72, 0x0f, 0x1f, 0xc5, 0x52, 0x08, 0x16, 0x03, + 0x97, 0x22, 0xe2, 0x89, 0xdd, 0xd4, 0x90, 0xf5, 0x3b, 0x19, 0x24, 0x64, 0x88, 0x7b, 0x7a, 0x81, + 0x0a, 0x6f, 0x69, 0xbc, 0xab, 0xe3, 0x20, 0x21, 0x77, 0x30, 0xd6, 0x6b, 0x45, 0xb0, 0x59, 0x31, + 0xbb, 0xad, 0xc1, 0xbe, 0xce, 0xbc, 0xdb, 0xac, 0x18, 0xb1, 0x71, 0xb7, 0x60, 0x97, 0x25, 0x53, + 0x60, 0x77, 0x5c, 0x34, 0xb1, 0xc2, 0x43, 0x48, 0x46, 0x78, 0x10, 0xd3, 0x2c, 0x5b, 0xd0, 0xf8, + 0xa2, 0xa2, 0xed, 0xe9, 0x4e, 0x7c, 0x48, 0x05, 0x09, 0x39, 0xc6, 0x2d, 0x80, 0xcc, 0xee, 0xbb, + 0x68, 0xd2, 0x0e, 0xab, 0x27, 0xb9, 0x8b, 0xad, 0xba, 0x3b, 0x52, 0x4c, 0x80, 0x3d, 0x70, 0xd1, + 0xa4, 0x17, 0x0e, 0xea, 0xdc, 0x9c, 0x09, 0x18, 0x7f, 0x6c, 0xe2, 0xfe, 0x4b, 0x0a, 0xf4, 0x5c, + 0x72, 0x01, 0x37, 0xc4, 0x52, 0x7c, 0x54, 0xb0, 0x5c, 0x02, 0x8b, 0x96, 0x8c, 0xa7, 0x4b, 0x30, + 0x62, 0x67, 0xcf, 0xaf, 0xb6, 0xa3, 0xc6, 0xb7, 0xed, 0xe8, 0x7e, 0xca, 0x61, 0x59, 0x2e, 0xbc, + 0x58, 0xe6, 0xf5, 0xf9, 0xea, 0xcf, 0x54, 0x25, 0x17, 0x7e, 0x25, 0x50, 0x79, 0x81, 0x80, 0x2f, + 0x9f, 0xa7, 0xb8, 0xbe, 0x6e, 0x20, 0x20, 0xb4, 0x0c, 0xe5, 0x6b, 0xcd, 0x48, 0x22, 0x6c, 0x65, + 0x32, 0xa6, 0xd9, 0x61, 0x42, 0xeb, 0x3f, 0x4c, 0x18, 0x68, 0xc6, 0x7a, 0xc0, 0x43, 0xdc, 0x59, + 0xd3, 0xac, 0x34, 0xb7, 0xb6, 0x66, 0x27, 0x3f, 0xb7, 0xa3, 0xe3, 0x82, 0xa9, 0x32, 0x83, 0x47, + 0x32, 0xe7, 0xc0, 0xf2, 0x15, 0x6c, 0x42, 0x53, 0x32, 0x3e, 0xc7, 0xd6, 0x2b, 0xe3, 0xa9, 0x39, + 0x50, 0x60, 0xe4, 0x05, 0xee, 0x56, 0xbf, 0x86, 0x33, 0x65, 0x23, 0xb7, 0x35, 0x19, 0x3c, 0x76, + 0xbd, 0x7f, 0x9a, 0xcc, 0xd3, 0x7e, 0x99, 0xb5, 0xab, 0xcd, 0xc3, 0x43, 0xdb, 0x2c, 0xbc, 0xda, + 0x39, 0xe8, 0x7a, 0xe7, 0xa0, 0xef, 0x3b, 0x07, 0x7d, 0xda, 0x3b, 0x8d, 0xeb, 0xbd, 0xd3, 0xf8, + 0xba, 0x77, 0x1a, 0xef, 0x9f, 0xfd, 0x21, 0x6d, 0xae, 0x49, 0xa7, 0x6f, 0xe8, 0x42, 0xf9, 0xb5, + 0xdd, 0xd7, 0x4f, 0xfd, 0x0f, 0x37, 0x3c, 0xaf, 0x05, 0x2f, 0x6e, 0x69, 0x8f, 0x3e, 0xf9, 0x15, + 0x00, 0x00, 0xff, 0xff, 0xf7, 0x8f, 0xa5, 0xcd, 0x1a, 0x03, 0x00, 0x00, +} + +func (m *Query) 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 *Query) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Query) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.RequestSent { + i-- + if m.RequestSent { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x58 + } + if m.Ttl != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.Ttl)) + i-- + dAtA[i] = 0x48 + } + if len(m.CallbackId) > 0 { + i -= len(m.CallbackId) + copy(dAtA[i:], m.CallbackId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.CallbackId))) + i-- + dAtA[i] = 0x42 + } + if len(m.Request) > 0 { + i -= len(m.Request) + copy(dAtA[i:], m.Request) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Request))) + i-- + dAtA[i] = 0x2a + } + if len(m.QueryType) > 0 { + i -= len(m.QueryType) + copy(dAtA[i:], m.QueryType) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.QueryType))) + i-- + dAtA[i] = 0x22 + } + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0x1a + } + if len(m.ConnectionId) > 0 { + i -= len(m.ConnectionId) + copy(dAtA[i:], m.ConnectionId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ConnectionId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DataPoint) 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 *DataPoint) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x22 + } + { + size := m.LocalHeight.Size() + i -= size + if _, err := m.LocalHeight.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.RemoteHeight.Size() + i -= size + if _, err := m.RemoteHeight.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Queries) > 0 { + for iNdEx := len(m.Queries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Queries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Query) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.ConnectionId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.QueryType) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.Request) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.CallbackId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.Ttl != 0 { + n += 1 + sovGenesis(uint64(m.Ttl)) + } + if m.RequestSent { + n += 2 + } + return n +} + +func (m *DataPoint) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = m.RemoteHeight.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = m.LocalHeight.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = len(m.Value) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Queries) > 0 { + for _, e := range m.Queries { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Query) 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 ErrIntOverflowGenesis + } + 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: Query: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Query: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ConnectionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueryType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.QueryType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Request = append(m.Request[:0], dAtA[iNdEx:postIndex]...) + if m.Request == nil { + m.Request = []byte{} + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CallbackId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CallbackId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ttl", wireType) + } + m.Ttl = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Ttl |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestSent", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RequestSent = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DataPoint) 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 ErrIntOverflowGenesis + } + 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: DataPoint: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DataPoint: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemoteHeight", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.RemoteHeight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalHeight", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.LocalHeight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) + if m.Value == nil { + m.Value = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GenesisState) 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 ErrIntOverflowGenesis + } + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Queries", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Queries = append(m.Queries, Query{}) + if err := m.Queries[len(m.Queries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/interchainquery/types/messages.pb.go b/x/interchainquery/types/messages.pb.go new file mode 100644 index 0000000000..3b179b1246 --- /dev/null +++ b/x/interchainquery/types/messages.pb.go @@ -0,0 +1,759 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/interchainquery/v1/messages.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + crypto "github.com/tendermint/tendermint/proto/tendermint/crypto" + _ "google.golang.org/genproto/googleapis/api/annotations" + 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 + +// MsgSubmitQueryResponse represents a message type to fulfil a query request. +type MsgSubmitQueryResponse struct { + ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"` + QueryId string `protobuf:"bytes,2,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty" yaml:"query_id"` + Result []byte `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty" yaml:"result"` + ProofOps *crypto.ProofOps `protobuf:"bytes,4,opt,name=proof_ops,json=proofOps,proto3" json:"proof_ops,omitempty" yaml:"proof_ops"` + Height int64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty" yaml:"height"` + FromAddress string `protobuf:"bytes,6,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` +} + +func (m *MsgSubmitQueryResponse) Reset() { *m = MsgSubmitQueryResponse{} } +func (m *MsgSubmitQueryResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSubmitQueryResponse) ProtoMessage() {} +func (*MsgSubmitQueryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_25adad4f8ed32400, []int{0} +} +func (m *MsgSubmitQueryResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSubmitQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSubmitQueryResponse.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 *MsgSubmitQueryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSubmitQueryResponse.Merge(m, src) +} +func (m *MsgSubmitQueryResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSubmitQueryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSubmitQueryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSubmitQueryResponse proto.InternalMessageInfo + +// MsgSubmitQueryResponseResponse defines the MsgSubmitQueryResponse response +// type. +type MsgSubmitQueryResponseResponse struct { +} + +func (m *MsgSubmitQueryResponseResponse) Reset() { *m = MsgSubmitQueryResponseResponse{} } +func (m *MsgSubmitQueryResponseResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSubmitQueryResponseResponse) ProtoMessage() {} +func (*MsgSubmitQueryResponseResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_25adad4f8ed32400, []int{1} +} +func (m *MsgSubmitQueryResponseResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSubmitQueryResponseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSubmitQueryResponseResponse.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 *MsgSubmitQueryResponseResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSubmitQueryResponseResponse.Merge(m, src) +} +func (m *MsgSubmitQueryResponseResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSubmitQueryResponseResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSubmitQueryResponseResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSubmitQueryResponseResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgSubmitQueryResponse)(nil), "stride.interchainquery.v1.MsgSubmitQueryResponse") + proto.RegisterType((*MsgSubmitQueryResponseResponse)(nil), "stride.interchainquery.v1.MsgSubmitQueryResponseResponse") +} + +func init() { + proto.RegisterFile("stride/interchainquery/v1/messages.proto", fileDescriptor_25adad4f8ed32400) +} + +var fileDescriptor_25adad4f8ed32400 = []byte{ + // 511 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x3f, 0x8f, 0xd3, 0x3e, + 0x18, 0xc7, 0xeb, 0xf6, 0xf7, 0xeb, 0xdd, 0xe5, 0x8a, 0x80, 0x5c, 0x85, 0x72, 0x05, 0x92, 0xca, + 0x0b, 0x05, 0x71, 0xb6, 0x5a, 0x06, 0xa0, 0x4c, 0x74, 0x3b, 0x89, 0xe3, 0x4f, 0xba, 0xb1, 0x54, + 0x49, 0xe3, 0x73, 0x2d, 0x35, 0x71, 0xb0, 0xdd, 0xea, 0xba, 0x32, 0x31, 0x22, 0xb1, 0x30, 0xf6, + 0x45, 0x20, 0x31, 0xb2, 0x32, 0x9e, 0x60, 0x61, 0xaa, 0x50, 0xcb, 0x00, 0x6b, 0x5f, 0x01, 0x8a, + 0x9d, 0x00, 0xba, 0x2b, 0x03, 0x93, 0x9f, 0x3c, 0xdf, 0xcf, 0xf3, 0x2f, 0x7e, 0x6c, 0xb5, 0xa4, + 0x12, 0x2c, 0x22, 0x98, 0x25, 0x8a, 0x88, 0xe1, 0x28, 0x60, 0xc9, 0x8b, 0x09, 0x11, 0x33, 0x3c, + 0x6d, 0xe3, 0x98, 0x48, 0x19, 0x50, 0x22, 0x51, 0x2a, 0xb8, 0xe2, 0xf6, 0xbe, 0x21, 0xd1, 0x19, + 0x12, 0x4d, 0xdb, 0x8d, 0x3a, 0xe5, 0x94, 0x6b, 0x0a, 0x67, 0x96, 0x09, 0x68, 0xec, 0x0f, 0xb9, + 0x8c, 0xb9, 0x1c, 0x18, 0xc1, 0x7c, 0xe4, 0xd2, 0x35, 0xca, 0x39, 0x1d, 0x13, 0x1c, 0xa4, 0x0c, + 0x07, 0x49, 0xc2, 0x55, 0xa0, 0x18, 0x4f, 0x0a, 0xf5, 0xba, 0x22, 0x49, 0x44, 0x44, 0xcc, 0x12, + 0x85, 0x87, 0x62, 0x96, 0x2a, 0x8e, 0x53, 0xc1, 0xf9, 0xb1, 0x91, 0xe1, 0x8f, 0xb2, 0x75, 0xe5, + 0x48, 0xd2, 0xfe, 0x24, 0x8c, 0x99, 0x7a, 0x96, 0xf5, 0xe0, 0x13, 0x99, 0xf2, 0x44, 0x12, 0x1b, + 0x59, 0xdb, 0xba, 0xb3, 0x01, 0x8b, 0x1c, 0xd0, 0x04, 0xad, 0x9d, 0xde, 0xde, 0x7a, 0xe1, 0x5d, + 0x9c, 0x05, 0xf1, 0xb8, 0x0b, 0x0b, 0x05, 0xfa, 0x5b, 0xda, 0x3c, 0x8c, 0x32, 0x5e, 0x0f, 0x91, + 0xf1, 0xe5, 0xb3, 0x7c, 0xa1, 0x40, 0x7f, 0x4b, 0x9b, 0x87, 0x91, 0x7d, 0xd3, 0xaa, 0x0a, 0x22, + 0x27, 0x63, 0xe5, 0x54, 0x9a, 0xa0, 0x55, 0xeb, 0x5d, 0x5e, 0x2f, 0xbc, 0x0b, 0x86, 0x36, 0x7e, + 0xe8, 0xe7, 0x80, 0xfd, 0xd8, 0xda, 0xd1, 0x4d, 0x0f, 0x78, 0x2a, 0x9d, 0xff, 0x9a, 0xa0, 0xb5, + 0xdb, 0xb9, 0x8a, 0x7e, 0x0f, 0x86, 0xcc, 0x60, 0xe8, 0x69, 0xc6, 0x3c, 0x49, 0x65, 0xaf, 0xbe, + 0x5e, 0x78, 0x97, 0x4c, 0xaa, 0x5f, 0x71, 0xd0, 0xdf, 0x4e, 0x73, 0x3d, 0x2b, 0x3d, 0x22, 0x8c, + 0x8e, 0x94, 0xf3, 0x7f, 0x13, 0xb4, 0x2a, 0x7f, 0x96, 0x36, 0x7e, 0xe8, 0xe7, 0x80, 0xfd, 0xc0, + 0xaa, 0x1d, 0x0b, 0x1e, 0x0f, 0x82, 0x28, 0x12, 0x44, 0x4a, 0xa7, 0xaa, 0x27, 0x73, 0x3e, 0xbd, + 0x3b, 0xa8, 0xe7, 0xb7, 0xf0, 0xd0, 0x28, 0x7d, 0x25, 0x58, 0x42, 0xfd, 0xdd, 0x8c, 0xce, 0x5d, + 0xdd, 0xda, 0xab, 0xb9, 0x57, 0x7a, 0x3b, 0xf7, 0xc0, 0xf7, 0xb9, 0x57, 0x82, 0x4d, 0xcb, 0xdd, + 0xfc, 0xab, 0x8b, 0xb3, 0xf3, 0x01, 0x58, 0x95, 0x23, 0x49, 0xed, 0xf7, 0xc0, 0xda, 0xdb, 0x74, + 0x25, 0x6d, 0xf4, 0xd7, 0xbd, 0x41, 0x9b, 0x53, 0x37, 0xee, 0xff, 0x73, 0x48, 0x71, 0xc2, 0xce, + 0xcb, 0xcf, 0xdf, 0xde, 0x94, 0x6f, 0xc3, 0x1b, 0xe7, 0x16, 0x5a, 0x9d, 0xe0, 0x69, 0x3b, 0x24, + 0x2a, 0x68, 0x63, 0xa9, 0x13, 0x68, 0x77, 0x17, 0xdc, 0xea, 0xf9, 0x1f, 0x97, 0x2e, 0x38, 0x5d, + 0xba, 0xe0, 0xeb, 0xd2, 0x05, 0xaf, 0x57, 0x6e, 0xe9, 0x74, 0xe5, 0x96, 0xbe, 0xac, 0xdc, 0xd2, + 0xf3, 0x7b, 0x94, 0xa9, 0xd1, 0x24, 0x44, 0x43, 0x1e, 0xe3, 0xbe, 0x6e, 0xe9, 0xe0, 0x51, 0x10, + 0x4a, 0x9c, 0xbf, 0x99, 0xe9, 0x5d, 0x7c, 0x72, 0xbe, 0xce, 0x2c, 0x25, 0x32, 0xac, 0xea, 0x55, + 0xbd, 0xf3, 0x33, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xc2, 0x1a, 0xfc, 0x5f, 0x03, 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 { + // SubmitQueryResponse defines a method for submit query responses. + SubmitQueryResponse(ctx context.Context, in *MsgSubmitQueryResponse, opts ...grpc.CallOption) (*MsgSubmitQueryResponseResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) SubmitQueryResponse(ctx context.Context, in *MsgSubmitQueryResponse, opts ...grpc.CallOption) (*MsgSubmitQueryResponseResponse, error) { + out := new(MsgSubmitQueryResponseResponse) + err := c.cc.Invoke(ctx, "/stride.interchainquery.v1.Msg/SubmitQueryResponse", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { + // SubmitQueryResponse defines a method for submit query responses. + SubmitQueryResponse(context.Context, *MsgSubmitQueryResponse) (*MsgSubmitQueryResponseResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) SubmitQueryResponse(ctx context.Context, req *MsgSubmitQueryResponse) (*MsgSubmitQueryResponseResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SubmitQueryResponse not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_SubmitQueryResponse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSubmitQueryResponse) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SubmitQueryResponse(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.interchainquery.v1.Msg/SubmitQueryResponse", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SubmitQueryResponse(ctx, req.(*MsgSubmitQueryResponse)) + } + return interceptor(ctx, in, info, handler) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "stride.interchainquery.v1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "SubmitQueryResponse", + Handler: _Msg_SubmitQueryResponse_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "stride/interchainquery/v1/messages.proto", +} + +func (m *MsgSubmitQueryResponse) 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 *MsgSubmitQueryResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSubmitQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FromAddress) > 0 { + i -= len(m.FromAddress) + copy(dAtA[i:], m.FromAddress) + i = encodeVarintMessages(dAtA, i, uint64(len(m.FromAddress))) + i-- + dAtA[i] = 0x32 + } + if m.Height != 0 { + i = encodeVarintMessages(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x28 + } + if m.ProofOps != nil { + { + size, err := m.ProofOps.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessages(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.Result) > 0 { + i -= len(m.Result) + copy(dAtA[i:], m.Result) + i = encodeVarintMessages(dAtA, i, uint64(len(m.Result))) + i-- + dAtA[i] = 0x1a + } + if len(m.QueryId) > 0 { + i -= len(m.QueryId) + copy(dAtA[i:], m.QueryId) + i = encodeVarintMessages(dAtA, i, uint64(len(m.QueryId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintMessages(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSubmitQueryResponseResponse) 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 *MsgSubmitQueryResponseResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSubmitQueryResponseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintMessages(dAtA []byte, offset int, v uint64) int { + offset -= sovMessages(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgSubmitQueryResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovMessages(uint64(l)) + } + l = len(m.QueryId) + if l > 0 { + n += 1 + l + sovMessages(uint64(l)) + } + l = len(m.Result) + if l > 0 { + n += 1 + l + sovMessages(uint64(l)) + } + if m.ProofOps != nil { + l = m.ProofOps.Size() + n += 1 + l + sovMessages(uint64(l)) + } + if m.Height != 0 { + n += 1 + sovMessages(uint64(m.Height)) + } + l = len(m.FromAddress) + if l > 0 { + n += 1 + l + sovMessages(uint64(l)) + } + return n +} + +func (m *MsgSubmitQueryResponseResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovMessages(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMessages(x uint64) (n int) { + return sovMessages(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgSubmitQueryResponse) 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 ErrIntOverflowMessages + } + 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: MsgSubmitQueryResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSubmitQueryResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessages + } + 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 ErrInvalidLengthMessages + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessages + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessages + } + 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 ErrInvalidLengthMessages + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessages + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.QueryId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessages + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMessages + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Result = append(m.Result[:0], dAtA[iNdEx:postIndex]...) + if m.Result == nil { + m.Result = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProofOps", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessages + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessages + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessages + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ProofOps == nil { + m.ProofOps = &crypto.ProofOps{} + } + if err := m.ProofOps.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessages + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FromAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessages + } + 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 ErrInvalidLengthMessages + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessages + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FromAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessages(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSubmitQueryResponseResponse) 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 ErrIntOverflowMessages + } + 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: MsgSubmitQueryResponseResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSubmitQueryResponseResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipMessages(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMessages + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMessages(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, ErrIntOverflowMessages + } + 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, ErrIntOverflowMessages + } + 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, ErrIntOverflowMessages + } + 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, ErrInvalidLengthMessages + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMessages + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMessages + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMessages = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMessages = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMessages = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/interchainquery/types/query.pb.go b/x/interchainquery/types/query.pb.go new file mode 100644 index 0000000000..c09326ff9b --- /dev/null +++ b/x/interchainquery/types/query.pb.go @@ -0,0 +1,543 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/interchainquery/v1/query.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + 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 + +type QueryPendingQueriesRequest struct { +} + +func (m *QueryPendingQueriesRequest) Reset() { *m = QueryPendingQueriesRequest{} } +func (m *QueryPendingQueriesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPendingQueriesRequest) ProtoMessage() {} +func (*QueryPendingQueriesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b720c147b9144d5b, []int{0} +} +func (m *QueryPendingQueriesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryPendingQueriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryPendingQueriesRequest.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 *QueryPendingQueriesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPendingQueriesRequest.Merge(m, src) +} +func (m *QueryPendingQueriesRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryPendingQueriesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPendingQueriesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryPendingQueriesRequest proto.InternalMessageInfo + +type QueryPendingQueriesResponse struct { + PendingQueries []Query `protobuf:"bytes,1,rep,name=pending_queries,json=pendingQueries,proto3" json:"pending_queries"` +} + +func (m *QueryPendingQueriesResponse) Reset() { *m = QueryPendingQueriesResponse{} } +func (m *QueryPendingQueriesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPendingQueriesResponse) ProtoMessage() {} +func (*QueryPendingQueriesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b720c147b9144d5b, []int{1} +} +func (m *QueryPendingQueriesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryPendingQueriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryPendingQueriesResponse.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 *QueryPendingQueriesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPendingQueriesResponse.Merge(m, src) +} +func (m *QueryPendingQueriesResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryPendingQueriesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPendingQueriesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryPendingQueriesResponse proto.InternalMessageInfo + +func (m *QueryPendingQueriesResponse) GetPendingQueries() []Query { + if m != nil { + return m.PendingQueries + } + return nil +} + +func init() { + proto.RegisterType((*QueryPendingQueriesRequest)(nil), "stride.interchainquery.v1.QueryPendingQueriesRequest") + proto.RegisterType((*QueryPendingQueriesResponse)(nil), "stride.interchainquery.v1.QueryPendingQueriesResponse") +} + +func init() { + proto.RegisterFile("stride/interchainquery/v1/query.proto", fileDescriptor_b720c147b9144d5b) +} + +var fileDescriptor_b720c147b9144d5b = []byte{ + // 313 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2d, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0x4a, 0xce, 0x48, 0xcc, 0xcc, 0x2b, 0x2c, 0x4d, + 0x2d, 0xaa, 0xd4, 0x2f, 0x33, 0xd4, 0x07, 0x33, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x24, + 0x21, 0xca, 0xf4, 0xd0, 0x94, 0xe9, 0x95, 0x19, 0x4a, 0xa9, 0xe3, 0x36, 0x21, 0x3d, 0x35, 0x2f, + 0xb5, 0x38, 0xb3, 0x18, 0x62, 0x86, 0x94, 0x4c, 0x7a, 0x7e, 0x7e, 0x7a, 0x4e, 0xaa, 0x7e, 0x62, + 0x41, 0xa6, 0x7e, 0x62, 0x5e, 0x5e, 0x7e, 0x49, 0x62, 0x49, 0x66, 0x7e, 0x1e, 0x4c, 0x56, 0x24, + 0x3d, 0x3f, 0x3d, 0x1f, 0xcc, 0xd4, 0x07, 0xb1, 0x20, 0xa2, 0x4a, 0x32, 0x5c, 0x52, 0x81, 0x20, + 0xd3, 0x02, 0x52, 0xf3, 0x52, 0x32, 0xf3, 0xd2, 0x41, 0xec, 0xcc, 0xd4, 0xe2, 0xa0, 0xd4, 0xc2, + 0xd2, 0xd4, 0xe2, 0x12, 0xa5, 0x3c, 0x2e, 0x69, 0xac, 0xb2, 0xc5, 0x05, 0xf9, 0x79, 0xc5, 0xa9, + 0x42, 0xfe, 0x5c, 0xfc, 0x05, 0x10, 0x99, 0xf8, 0x42, 0x88, 0x94, 0x04, 0xa3, 0x02, 0xb3, 0x06, + 0xb7, 0x91, 0x82, 0x1e, 0x4e, 0xef, 0xe8, 0x81, 0x0d, 0x74, 0x62, 0x39, 0x71, 0x4f, 0x9e, 0x21, + 0x88, 0xaf, 0x00, 0xc5, 0x60, 0xa3, 0xb3, 0x8c, 0x5c, 0x3c, 0x60, 0xf9, 0xe0, 0xd4, 0xa2, 0xb2, + 0xcc, 0xe4, 0x54, 0xa1, 0x3d, 0x8c, 0x5c, 0x7c, 0xa8, 0x96, 0x0b, 0x99, 0x12, 0x32, 0x1b, 0xab, + 0x57, 0xa4, 0xcc, 0x48, 0xd5, 0x06, 0xf1, 0xa3, 0x92, 0x75, 0xd3, 0xe5, 0x27, 0x93, 0x99, 0x4c, + 0x85, 0x8c, 0xf5, 0x83, 0xc1, 0xfa, 0x75, 0x7d, 0x12, 0x93, 0x8a, 0xf5, 0x71, 0x44, 0x09, 0x5a, + 0x68, 0x38, 0x05, 0x9d, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, + 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x45, 0x7a, + 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0x2e, 0x36, 0x83, 0xcb, 0xcc, 0xf5, 0x2b, 0x30, + 0x4c, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x47, 0x9c, 0x31, 0x20, 0x00, 0x00, 0xff, + 0xff, 0xda, 0x81, 0xa1, 0x63, 0x59, 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 + +// QueryServiceClient is the client API for QueryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryServiceClient interface { + PendingQueries(ctx context.Context, in *QueryPendingQueriesRequest, opts ...grpc.CallOption) (*QueryPendingQueriesResponse, error) +} + +type queryServiceClient struct { + cc grpc1.ClientConn +} + +func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { + return &queryServiceClient{cc} +} + +func (c *queryServiceClient) PendingQueries(ctx context.Context, in *QueryPendingQueriesRequest, opts ...grpc.CallOption) (*QueryPendingQueriesResponse, error) { + out := new(QueryPendingQueriesResponse) + err := c.cc.Invoke(ctx, "/stride.interchainquery.v1.QueryService/PendingQueries", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServiceServer is the server API for QueryService service. +type QueryServiceServer interface { + PendingQueries(context.Context, *QueryPendingQueriesRequest) (*QueryPendingQueriesResponse, error) +} + +// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServiceServer struct { +} + +func (*UnimplementedQueryServiceServer) PendingQueries(ctx context.Context, req *QueryPendingQueriesRequest) (*QueryPendingQueriesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PendingQueries not implemented") +} + +func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { + s.RegisterService(&_QueryService_serviceDesc, srv) +} + +func _QueryService_PendingQueries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPendingQueriesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).PendingQueries(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.interchainquery.v1.QueryService/PendingQueries", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).PendingQueries(ctx, req.(*QueryPendingQueriesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _QueryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "stride.interchainquery.v1.QueryService", + HandlerType: (*QueryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "PendingQueries", + Handler: _QueryService_PendingQueries_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "stride/interchainquery/v1/query.proto", +} + +func (m *QueryPendingQueriesRequest) 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 *QueryPendingQueriesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryPendingQueriesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryPendingQueriesResponse) 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 *QueryPendingQueriesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryPendingQueriesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PendingQueries) > 0 { + for iNdEx := len(m.PendingQueries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PendingQueries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryPendingQueriesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryPendingQueriesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.PendingQueries) > 0 { + for _, e := range m.PendingQueries { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryPendingQueriesRequest) 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 ErrIntOverflowQuery + } + 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: QueryPendingQueriesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryPendingQueriesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryPendingQueriesResponse) 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 ErrIntOverflowQuery + } + 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: QueryPendingQueriesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryPendingQueriesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PendingQueries", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PendingQueries = append(m.PendingQueries, Query{}) + if err := m.PendingQueries[len(m.PendingQueries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/mint/types/genesis.pb.go b/x/mint/types/genesis.pb.go new file mode 100644 index 0000000000..986b84af48 --- /dev/null +++ b/x/mint/types/genesis.pb.go @@ -0,0 +1,417 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/mint/v1beta1/genesis.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +// GenesisState defines the mint module's genesis state. +type GenesisState struct { + // minter is a space for holding current rewards information. + Minter Minter `protobuf:"bytes,1,opt,name=minter,proto3" json:"minter"` + // params defines all the paramaters of the module. + Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` + // current reduction period start epoch + ReductionStartedEpoch int64 `protobuf:"varint,3,opt,name=reduction_started_epoch,json=reductionStartedEpoch,proto3" json:"reduction_started_epoch,omitempty" yaml:"reduction_started_epoch"` +} + +func (m *GenesisState) Reset() { *m = GenesisState{} } +func (m *GenesisState) String() string { return proto.CompactTextString(m) } +func (*GenesisState) ProtoMessage() {} +func (*GenesisState) Descriptor() ([]byte, []int) { + return fileDescriptor_f4521d63f51851f3, []int{0} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetMinter() Minter { + if m != nil { + return m.Minter + } + return Minter{} +} + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func (m *GenesisState) GetReductionStartedEpoch() int64 { + if m != nil { + return m.ReductionStartedEpoch + } + return 0 +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "stride.mint.v1beta1.GenesisState") +} + +func init() { proto.RegisterFile("stride/mint/v1beta1/genesis.proto", fileDescriptor_f4521d63f51851f3) } + +var fileDescriptor_f4521d63f51851f3 = []byte{ + // 282 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0xcf, 0xcd, 0xcc, 0x2b, 0xd1, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0xd4, + 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86, + 0x28, 0xd1, 0x03, 0x29, 0xd1, 0x83, 0x2a, 0x91, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xcb, 0xeb, + 0x83, 0x58, 0x10, 0xa5, 0x52, 0x72, 0xd8, 0x4c, 0x03, 0xeb, 0x03, 0xcb, 0x2b, 0x3d, 0x60, 0xe4, + 0xe2, 0x71, 0x87, 0x18, 0x1e, 0x5c, 0x92, 0x58, 0x92, 0x2a, 0x64, 0xc9, 0xc5, 0x06, 0x92, 0x4e, + 0x2d, 0x92, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x36, 0x92, 0xd6, 0xc3, 0x62, 0x99, 0x9e, 0x2f, 0x58, + 0x89, 0x13, 0xcb, 0x89, 0x7b, 0xf2, 0x0c, 0x41, 0x50, 0x0d, 0x20, 0xad, 0x05, 0x89, 0x45, 0x89, + 0xb9, 0xc5, 0x12, 0x4c, 0x78, 0xb4, 0x06, 0x80, 0x95, 0xc0, 0xb4, 0x42, 0x34, 0x08, 0x45, 0x71, + 0x89, 0x17, 0xa5, 0xa6, 0x94, 0x26, 0x97, 0x64, 0xe6, 0xe7, 0xc5, 0x17, 0x97, 0x24, 0x16, 0x95, + 0xa4, 0xa6, 0xc4, 0xa7, 0x16, 0xe4, 0x27, 0x67, 0x48, 0x30, 0x2b, 0x30, 0x6a, 0x30, 0x3b, 0x29, + 0x7d, 0xba, 0x27, 0x2f, 0x57, 0x99, 0x98, 0x9b, 0x63, 0xa5, 0x84, 0x43, 0xa1, 0x52, 0x90, 0x28, + 0x5c, 0x26, 0x18, 0x22, 0xe1, 0x0a, 0x12, 0x77, 0x72, 0x3f, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, + 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, + 0x63, 0x39, 0x86, 0x28, 0xdd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, + 0x60, 0xb0, 0x53, 0x75, 0x7d, 0x12, 0x93, 0x8a, 0xf5, 0xa1, 0x61, 0x56, 0x66, 0xae, 0x5f, 0x01, + 0x09, 0xb8, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0x70, 0x90, 0x19, 0x03, 0x02, 0x00, 0x00, + 0xff, 0xff, 0x67, 0x8a, 0xd7, 0xdc, 0xa2, 0x01, 0x00, 0x00, +} + +func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ReductionStartedEpoch != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.ReductionStartedEpoch)) + i-- + dAtA[i] = 0x18 + } + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.Minter.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Minter.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + if m.ReductionStartedEpoch != 0 { + n += 1 + sovGenesis(uint64(m.ReductionStartedEpoch)) + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisState) 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 ErrIntOverflowGenesis + } + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Minter", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Minter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReductionStartedEpoch", wireType) + } + m.ReductionStartedEpoch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReductionStartedEpoch |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/mint/types/mint.pb.go b/x/mint/types/mint.pb.go new file mode 100644 index 0000000000..8afd38995e --- /dev/null +++ b/x/mint/types/mint.pb.go @@ -0,0 +1,1105 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/mint/v1beta1/mint.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +// Minter represents the minting state. +type Minter struct { + // current epoch provisions + EpochProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=epoch_provisions,json=epochProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"epoch_provisions" yaml:"epoch_provisions"` +} + +func (m *Minter) Reset() { *m = Minter{} } +func (m *Minter) String() string { return proto.CompactTextString(m) } +func (*Minter) ProtoMessage() {} +func (*Minter) Descriptor() ([]byte, []int) { + return fileDescriptor_5ad5fa4b1fdb702f, []int{0} +} +func (m *Minter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Minter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Minter.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 *Minter) XXX_Merge(src proto.Message) { + xxx_messageInfo_Minter.Merge(m, src) +} +func (m *Minter) XXX_Size() int { + return m.Size() +} +func (m *Minter) XXX_DiscardUnknown() { + xxx_messageInfo_Minter.DiscardUnknown(m) +} + +var xxx_messageInfo_Minter proto.InternalMessageInfo + +// next id: 5 +type DistributionProportions struct { + // staking defines the proportion of the minted minted_denom that is to be + // allocated as staking rewards. + Staking github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=staking,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"staking" yaml:"staking"` + // community_pool defines the proportion of the minted mint_denom that is + // to be allocated to the community pool: growth. + CommunityPoolGrowth github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=community_pool_growth,json=communityPoolGrowth,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"community_pool_growth" yaml:"community_pool"` + // community_pool defines the proportion of the minted mint_denom that is + // to be allocated to the community pool: security budget. + CommunityPoolSecurityBudget github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=community_pool_security_budget,json=communityPoolSecurityBudget,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"community_pool_security_budget" yaml:"community_pool"` + // strategic_reserve defines the proportion of the minted mint_denom that is + // to be allocated to the pool: strategic reserve. + StrategicReserve github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=strategic_reserve,json=strategicReserve,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"strategic_reserve" yaml:"community_pool"` +} + +func (m *DistributionProportions) Reset() { *m = DistributionProportions{} } +func (m *DistributionProportions) String() string { return proto.CompactTextString(m) } +func (*DistributionProportions) ProtoMessage() {} +func (*DistributionProportions) Descriptor() ([]byte, []int) { + return fileDescriptor_5ad5fa4b1fdb702f, []int{1} +} +func (m *DistributionProportions) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DistributionProportions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DistributionProportions.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 *DistributionProportions) XXX_Merge(src proto.Message) { + xxx_messageInfo_DistributionProportions.Merge(m, src) +} +func (m *DistributionProportions) XXX_Size() int { + return m.Size() +} +func (m *DistributionProportions) XXX_DiscardUnknown() { + xxx_messageInfo_DistributionProportions.DiscardUnknown(m) +} + +var xxx_messageInfo_DistributionProportions proto.InternalMessageInfo + +// Params holds parameters for the mint module. +type Params struct { + // type of coin to mint + MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` + // epoch provisions from the first epoch + GenesisEpochProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=genesis_epoch_provisions,json=genesisEpochProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"genesis_epoch_provisions" yaml:"genesis_epoch_provisions"` + // mint epoch identifier + EpochIdentifier string `protobuf:"bytes,3,opt,name=epoch_identifier,json=epochIdentifier,proto3" json:"epoch_identifier,omitempty" yaml:"epoch_identifier"` + // number of epochs take to reduce rewards + ReductionPeriodInEpochs int64 `protobuf:"varint,4,opt,name=reduction_period_in_epochs,json=reductionPeriodInEpochs,proto3" json:"reduction_period_in_epochs,omitempty" yaml:"reduction_period_in_epochs"` + // reduction multiplier to execute on each period + ReductionFactor github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=reduction_factor,json=reductionFactor,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"reduction_factor" yaml:"reduction_factor"` + // distribution_proportions defines the proportion of the minted denom + DistributionProportions DistributionProportions `protobuf:"bytes,6,opt,name=distribution_proportions,json=distributionProportions,proto3" json:"distribution_proportions"` + // start epoch to distribute minting rewards + MintingRewardsDistributionStartEpoch int64 `protobuf:"varint,7,opt,name=minting_rewards_distribution_start_epoch,json=mintingRewardsDistributionStartEpoch,proto3" json:"minting_rewards_distribution_start_epoch,omitempty" yaml:"minting_rewards_distribution_start_epoch"` +} + +func (m *Params) Reset() { *m = Params{} } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_5ad5fa4b1fdb702f, []int{2} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +func (m *Params) GetMintDenom() string { + if m != nil { + return m.MintDenom + } + return "" +} + +func (m *Params) GetEpochIdentifier() string { + if m != nil { + return m.EpochIdentifier + } + return "" +} + +func (m *Params) GetReductionPeriodInEpochs() int64 { + if m != nil { + return m.ReductionPeriodInEpochs + } + return 0 +} + +func (m *Params) GetDistributionProportions() DistributionProportions { + if m != nil { + return m.DistributionProportions + } + return DistributionProportions{} +} + +func (m *Params) GetMintingRewardsDistributionStartEpoch() int64 { + if m != nil { + return m.MintingRewardsDistributionStartEpoch + } + return 0 +} + +func init() { + proto.RegisterType((*Minter)(nil), "stride.mint.v1beta1.Minter") + proto.RegisterType((*DistributionProportions)(nil), "stride.mint.v1beta1.DistributionProportions") + proto.RegisterType((*Params)(nil), "stride.mint.v1beta1.Params") +} + +func init() { proto.RegisterFile("stride/mint/v1beta1/mint.proto", fileDescriptor_5ad5fa4b1fdb702f) } + +var fileDescriptor_5ad5fa4b1fdb702f = []byte{ + // 632 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4d, 0x6f, 0xd3, 0x40, + 0x10, 0x8d, 0x69, 0x9b, 0xaa, 0x8b, 0x44, 0x8b, 0x4b, 0x89, 0xd5, 0x0a, 0xbb, 0x58, 0x80, 0x7a, + 0xa0, 0xb6, 0x4a, 0x0f, 0x48, 0x3d, 0xa1, 0xa8, 0xb4, 0x8a, 0x04, 0x52, 0x70, 0x6e, 0xbd, 0x58, + 0xfe, 0xd8, 0x3a, 0xab, 0xc6, 0xbb, 0xd6, 0xee, 0x3a, 0x25, 0x42, 0xe2, 0x0f, 0x94, 0x03, 0x47, + 0x8e, 0xfc, 0x9c, 0x1e, 0x7b, 0x44, 0x3d, 0x44, 0x28, 0xf9, 0x07, 0xb9, 0x70, 0x45, 0xbb, 0xeb, + 0x7c, 0x42, 0x24, 0x22, 0x7a, 0x8a, 0xf7, 0xcd, 0xec, 0xbc, 0x97, 0xb7, 0x33, 0x03, 0x4c, 0xc6, + 0x29, 0x8a, 0xa1, 0x9b, 0x22, 0xcc, 0xdd, 0xf6, 0x41, 0x08, 0x79, 0x70, 0x20, 0x0f, 0x4e, 0x46, + 0x09, 0x27, 0xfa, 0xa6, 0x8a, 0x3b, 0x12, 0x2a, 0xe2, 0xdb, 0x8f, 0x12, 0x92, 0x10, 0x19, 0x77, + 0xc5, 0x97, 0x4a, 0xb5, 0x3f, 0x83, 0xf2, 0x7b, 0x84, 0x39, 0xa4, 0x3a, 0x07, 0x1b, 0x30, 0x23, + 0x51, 0xd3, 0xcf, 0x28, 0x69, 0x23, 0x86, 0x08, 0x66, 0x86, 0xb6, 0xab, 0xed, 0xad, 0x55, 0x6b, + 0xd7, 0x5d, 0xab, 0x74, 0xdb, 0xb5, 0x5e, 0x24, 0x88, 0x37, 0xf3, 0xd0, 0x89, 0x48, 0xea, 0x46, + 0x84, 0xa5, 0x84, 0x15, 0x3f, 0xfb, 0x2c, 0xbe, 0x70, 0x79, 0x27, 0x83, 0xcc, 0x39, 0x86, 0xd1, + 0xa0, 0x6b, 0x55, 0x3a, 0x41, 0xda, 0x3a, 0xb2, 0x67, 0xeb, 0xd9, 0xde, 0xba, 0x84, 0xea, 0x63, + 0xe4, 0xd7, 0x12, 0xa8, 0x1c, 0x23, 0xa1, 0x37, 0xcc, 0x39, 0x22, 0xb8, 0x4e, 0x49, 0x46, 0xa8, + 0xf8, 0x62, 0xfa, 0x19, 0x58, 0x65, 0x3c, 0xb8, 0x40, 0x38, 0x29, 0x84, 0xbc, 0x59, 0x58, 0xc8, + 0x03, 0x25, 0xa4, 0x28, 0x63, 0x7b, 0xc3, 0x82, 0xfa, 0x27, 0xb0, 0x15, 0x91, 0x34, 0xcd, 0x31, + 0xe2, 0x1d, 0x3f, 0x23, 0xa4, 0xe5, 0x27, 0x94, 0x5c, 0xf2, 0xa6, 0x71, 0x4f, 0x32, 0x9d, 0x2e, + 0xcc, 0xb4, 0xa5, 0x98, 0xa6, 0x8b, 0xda, 0xde, 0xe6, 0x08, 0xa8, 0x13, 0xd2, 0x3a, 0x95, 0x1c, + 0xfa, 0x17, 0x0d, 0x98, 0x33, 0xec, 0x0c, 0x46, 0x39, 0x15, 0xa7, 0x30, 0x8f, 0x13, 0xc8, 0x8d, + 0xa5, 0xbb, 0x95, 0xb1, 0x33, 0x25, 0xa3, 0x51, 0x90, 0x55, 0x25, 0x97, 0xce, 0xc1, 0x43, 0xc6, + 0x69, 0xc0, 0x61, 0x82, 0x22, 0x9f, 0x42, 0x06, 0x69, 0x1b, 0x1a, 0xcb, 0x77, 0x2b, 0x60, 0x63, + 0xc4, 0xe0, 0x29, 0x02, 0xfb, 0x76, 0x05, 0x94, 0xeb, 0x01, 0x0d, 0x52, 0xa6, 0x3f, 0x01, 0x40, + 0xb4, 0xaa, 0x1f, 0x43, 0x4c, 0x52, 0xf5, 0xd6, 0xde, 0x9a, 0x40, 0x8e, 0x05, 0xa0, 0x5f, 0x69, + 0xc0, 0x48, 0x20, 0x86, 0x0c, 0x31, 0xff, 0x8f, 0x16, 0x55, 0xef, 0xf5, 0x61, 0x61, 0x9d, 0x96, + 0xd2, 0x39, 0xaf, 0xae, 0xed, 0x3d, 0x2e, 0x42, 0x6f, 0xa7, 0x3b, 0x56, 0x3f, 0x19, 0xce, 0x09, + 0x8a, 0x21, 0xe6, 0xe8, 0x1c, 0x41, 0x5a, 0xbc, 0xd6, 0xce, 0x6c, 0xe7, 0x8f, 0x33, 0x86, 0x9d, + 0x5f, 0x1b, 0x21, 0x7a, 0x08, 0xb6, 0x29, 0x8c, 0xf3, 0x48, 0xf4, 0xba, 0x9f, 0x41, 0x8a, 0x48, + 0xec, 0x23, 0xac, 0x84, 0x30, 0x69, 0xff, 0x52, 0xf5, 0xf9, 0xa0, 0x6b, 0x3d, 0x55, 0x15, 0xe7, + 0xe7, 0xda, 0x5e, 0x65, 0x14, 0xac, 0xcb, 0x58, 0x0d, 0x4b, 0xd1, 0x4c, 0xcc, 0xf4, 0xf8, 0xde, + 0x79, 0x10, 0x71, 0x42, 0x8d, 0x95, 0xff, 0x9b, 0xe9, 0xd9, 0x7a, 0xb6, 0xb7, 0x3e, 0x82, 0x4e, + 0x24, 0xa2, 0xa7, 0xc0, 0x88, 0x27, 0x46, 0x5a, 0xb8, 0x3a, 0x9c, 0x69, 0xa3, 0xbc, 0xab, 0xed, + 0xdd, 0x7f, 0xf5, 0xd2, 0xf9, 0xcb, 0x86, 0x72, 0xe6, 0xec, 0x81, 0xea, 0xb2, 0xd0, 0xea, 0x55, + 0xe2, 0x39, 0x6b, 0xe2, 0x4a, 0x03, 0x7b, 0xa2, 0x0e, 0xc2, 0x89, 0x4f, 0xe1, 0x65, 0x40, 0x63, + 0xe6, 0x4f, 0xf1, 0x33, 0x1e, 0x50, 0xae, 0xcc, 0x32, 0x56, 0xa5, 0xaf, 0x87, 0x83, 0xae, 0xe5, + 0xaa, 0xff, 0xf3, 0xaf, 0x37, 0x6d, 0xef, 0x59, 0x91, 0xea, 0xa9, 0xcc, 0x49, 0xb5, 0x0d, 0x91, + 0x27, 0x3d, 0x3f, 0x5a, 0xfe, 0xf6, 0xdd, 0x2a, 0x55, 0x4f, 0xaf, 0x7b, 0xa6, 0x76, 0xd3, 0x33, + 0xb5, 0x9f, 0x3d, 0x53, 0xfb, 0xda, 0x37, 0x4b, 0x37, 0x7d, 0xb3, 0xf4, 0xa3, 0x6f, 0x96, 0xce, + 0xf6, 0x27, 0x0c, 0x6f, 0x48, 0x13, 0xf6, 0xdf, 0x05, 0x21, 0x73, 0x8b, 0x95, 0xde, 0x7e, 0xed, + 0x7e, 0x54, 0x7b, 0x5d, 0x7a, 0x1f, 0x96, 0xe5, 0x9a, 0x3e, 0xfc, 0x1d, 0x00, 0x00, 0xff, 0xff, + 0x35, 0x9b, 0x91, 0xcc, 0xf3, 0x05, 0x00, 0x00, +} + +func (m *Minter) 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 *Minter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Minter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.EpochProvisions.Size() + i -= size + if _, err := m.EpochProvisions.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintMint(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DistributionProportions) 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 *DistributionProportions) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DistributionProportions) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.StrategicReserve.Size() + i -= size + if _, err := m.StrategicReserve.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintMint(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.CommunityPoolSecurityBudget.Size() + i -= size + if _, err := m.CommunityPoolSecurityBudget.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintMint(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.CommunityPoolGrowth.Size() + i -= size + if _, err := m.CommunityPoolGrowth.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintMint(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.Staking.Size() + i -= size + if _, err := m.Staking.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintMint(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MintingRewardsDistributionStartEpoch != 0 { + i = encodeVarintMint(dAtA, i, uint64(m.MintingRewardsDistributionStartEpoch)) + i-- + dAtA[i] = 0x38 + } + { + size, err := m.DistributionProportions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMint(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + { + size := m.ReductionFactor.Size() + i -= size + if _, err := m.ReductionFactor.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintMint(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if m.ReductionPeriodInEpochs != 0 { + i = encodeVarintMint(dAtA, i, uint64(m.ReductionPeriodInEpochs)) + i-- + dAtA[i] = 0x20 + } + if len(m.EpochIdentifier) > 0 { + i -= len(m.EpochIdentifier) + copy(dAtA[i:], m.EpochIdentifier) + i = encodeVarintMint(dAtA, i, uint64(len(m.EpochIdentifier))) + i-- + dAtA[i] = 0x1a + } + { + size := m.GenesisEpochProvisions.Size() + i -= size + if _, err := m.GenesisEpochProvisions.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintMint(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.MintDenom) > 0 { + i -= len(m.MintDenom) + copy(dAtA[i:], m.MintDenom) + i = encodeVarintMint(dAtA, i, uint64(len(m.MintDenom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMint(dAtA []byte, offset int, v uint64) int { + offset -= sovMint(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Minter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.EpochProvisions.Size() + n += 1 + l + sovMint(uint64(l)) + return n +} + +func (m *DistributionProportions) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Staking.Size() + n += 1 + l + sovMint(uint64(l)) + l = m.CommunityPoolGrowth.Size() + n += 1 + l + sovMint(uint64(l)) + l = m.CommunityPoolSecurityBudget.Size() + n += 1 + l + sovMint(uint64(l)) + l = m.StrategicReserve.Size() + n += 1 + l + sovMint(uint64(l)) + return n +} + +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.MintDenom) + if l > 0 { + n += 1 + l + sovMint(uint64(l)) + } + l = m.GenesisEpochProvisions.Size() + n += 1 + l + sovMint(uint64(l)) + l = len(m.EpochIdentifier) + if l > 0 { + n += 1 + l + sovMint(uint64(l)) + } + if m.ReductionPeriodInEpochs != 0 { + n += 1 + sovMint(uint64(m.ReductionPeriodInEpochs)) + } + l = m.ReductionFactor.Size() + n += 1 + l + sovMint(uint64(l)) + l = m.DistributionProportions.Size() + n += 1 + l + sovMint(uint64(l)) + if m.MintingRewardsDistributionStartEpoch != 0 { + n += 1 + sovMint(uint64(m.MintingRewardsDistributionStartEpoch)) + } + return n +} + +func sovMint(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMint(x uint64) (n int) { + return sovMint(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Minter) 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 ErrIntOverflowMint + } + 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: Minter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Minter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochProvisions", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMint + } + 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 ErrInvalidLengthMint + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMint + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.EpochProvisions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMint(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMint + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DistributionProportions) 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 ErrIntOverflowMint + } + 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: DistributionProportions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DistributionProportions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Staking", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMint + } + 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 ErrInvalidLengthMint + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMint + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Staking.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolGrowth", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMint + } + 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 ErrInvalidLengthMint + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMint + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommunityPoolGrowth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolSecurityBudget", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMint + } + 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 ErrInvalidLengthMint + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMint + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CommunityPoolSecurityBudget.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StrategicReserve", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMint + } + 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 ErrInvalidLengthMint + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMint + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.StrategicReserve.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMint(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMint + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Params) 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 ErrIntOverflowMint + } + 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: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMint + } + 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 ErrInvalidLengthMint + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMint + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GenesisEpochProvisions", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMint + } + 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 ErrInvalidLengthMint + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMint + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.GenesisEpochProvisions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochIdentifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMint + } + 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 ErrInvalidLengthMint + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMint + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EpochIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReductionPeriodInEpochs", wireType) + } + m.ReductionPeriodInEpochs = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMint + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReductionPeriodInEpochs |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReductionFactor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMint + } + 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 ErrInvalidLengthMint + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMint + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ReductionFactor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DistributionProportions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMint + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMint + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMint + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.DistributionProportions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MintingRewardsDistributionStartEpoch", wireType) + } + m.MintingRewardsDistributionStartEpoch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMint + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MintingRewardsDistributionStartEpoch |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipMint(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMint + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMint(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, ErrIntOverflowMint + } + 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, ErrIntOverflowMint + } + 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, ErrIntOverflowMint + } + 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, ErrInvalidLengthMint + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMint + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMint + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMint = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMint = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMint = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/mint/types/query.pb.go b/x/mint/types/query.pb.go new file mode 100644 index 0000000000..bdac935bca --- /dev/null +++ b/x/mint/types/query.pb.go @@ -0,0 +1,870 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/mint/v1beta1/query.proto + +package types + +import ( + context "context" + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + 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 + +// QueryParamsRequest is the request type for the Query/Params RPC method. +type QueryParamsRequest struct { +} + +func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } +func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryParamsRequest) ProtoMessage() {} +func (*QueryParamsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b5a371e09ad2a41a, []int{0} +} +func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsRequest.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 *QueryParamsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsRequest.Merge(m, src) +} +func (m *QueryParamsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo + +// QueryParamsResponse is the response type for the Query/Params RPC method. +type QueryParamsResponse struct { + // params defines the parameters of the module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` +} + +func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } +func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryParamsResponse) ProtoMessage() {} +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b5a371e09ad2a41a, []int{1} +} +func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsResponse.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 *QueryParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsResponse.Merge(m, src) +} +func (m *QueryParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo + +func (m *QueryParamsResponse) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +// QueryEpochProvisionsRequest is the request type for the +// Query/EpochProvisions RPC method. +type QueryEpochProvisionsRequest struct { +} + +func (m *QueryEpochProvisionsRequest) Reset() { *m = QueryEpochProvisionsRequest{} } +func (m *QueryEpochProvisionsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryEpochProvisionsRequest) ProtoMessage() {} +func (*QueryEpochProvisionsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b5a371e09ad2a41a, []int{2} +} +func (m *QueryEpochProvisionsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryEpochProvisionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryEpochProvisionsRequest.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 *QueryEpochProvisionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEpochProvisionsRequest.Merge(m, src) +} +func (m *QueryEpochProvisionsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryEpochProvisionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEpochProvisionsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryEpochProvisionsRequest proto.InternalMessageInfo + +// QueryEpochProvisionsResponse is the response type for the +// Query/EpochProvisions RPC method. +type QueryEpochProvisionsResponse struct { + // epoch_provisions is the current minting per epoch provisions value. + EpochProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=epoch_provisions,json=epochProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"epoch_provisions"` +} + +func (m *QueryEpochProvisionsResponse) Reset() { *m = QueryEpochProvisionsResponse{} } +func (m *QueryEpochProvisionsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryEpochProvisionsResponse) ProtoMessage() {} +func (*QueryEpochProvisionsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b5a371e09ad2a41a, []int{3} +} +func (m *QueryEpochProvisionsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryEpochProvisionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryEpochProvisionsResponse.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 *QueryEpochProvisionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEpochProvisionsResponse.Merge(m, src) +} +func (m *QueryEpochProvisionsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryEpochProvisionsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEpochProvisionsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryEpochProvisionsResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*QueryParamsRequest)(nil), "stride.mint.v1beta1.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "stride.mint.v1beta1.QueryParamsResponse") + proto.RegisterType((*QueryEpochProvisionsRequest)(nil), "stride.mint.v1beta1.QueryEpochProvisionsRequest") + proto.RegisterType((*QueryEpochProvisionsResponse)(nil), "stride.mint.v1beta1.QueryEpochProvisionsResponse") +} + +func init() { proto.RegisterFile("stride/mint/v1beta1/query.proto", fileDescriptor_b5a371e09ad2a41a) } + +var fileDescriptor_b5a371e09ad2a41a = []byte{ + // 393 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x31, 0x4f, 0xe3, 0x30, + 0x18, 0x4d, 0xaa, 0xbb, 0x0e, 0xbe, 0x93, 0x7a, 0x72, 0xab, 0x13, 0x4a, 0x8b, 0x5b, 0x65, 0x28, + 0x5d, 0x6a, 0xd3, 0x32, 0x20, 0xd6, 0x0a, 0xc4, 0xc2, 0x50, 0xca, 0x04, 0x0b, 0x4a, 0x52, 0x2b, + 0x8d, 0x20, 0x71, 0x1a, 0xbb, 0x15, 0x59, 0xf9, 0x05, 0x48, 0xec, 0x2c, 0xfc, 0x99, 0x8e, 0x95, + 0x58, 0x10, 0x43, 0x85, 0x5a, 0x7e, 0x08, 0x8a, 0x63, 0x10, 0x29, 0x41, 0x88, 0x29, 0x91, 0xdf, + 0xfb, 0xde, 0x7b, 0xdf, 0xb3, 0x41, 0x9d, 0x8b, 0xc8, 0x1b, 0x52, 0xe2, 0x7b, 0x81, 0x20, 0xd3, + 0x8e, 0x4d, 0x85, 0xd5, 0x21, 0xe3, 0x09, 0x8d, 0x62, 0x1c, 0x46, 0x4c, 0x30, 0x58, 0x4e, 0x09, + 0x38, 0x21, 0x60, 0x45, 0x30, 0x2a, 0x2e, 0x73, 0x99, 0xc4, 0x49, 0xf2, 0x97, 0x52, 0x8d, 0x9a, + 0xcb, 0x98, 0x7b, 0x49, 0x89, 0x15, 0x7a, 0xc4, 0x0a, 0x02, 0x26, 0x2c, 0xe1, 0xb1, 0x80, 0x2b, + 0x14, 0xe5, 0x39, 0x49, 0x55, 0x89, 0x9b, 0x15, 0x00, 0x8f, 0x13, 0xdf, 0xbe, 0x15, 0x59, 0x3e, + 0x1f, 0xd0, 0xf1, 0x84, 0x72, 0x61, 0xf6, 0x41, 0x39, 0x73, 0xca, 0x43, 0x16, 0x70, 0x0a, 0xf7, + 0x40, 0x31, 0x94, 0x27, 0x1b, 0x7a, 0x43, 0x6f, 0xfd, 0xe9, 0x56, 0x71, 0x4e, 0x4c, 0x9c, 0x0e, + 0xf5, 0x7e, 0xcd, 0x16, 0x75, 0x6d, 0xa0, 0x06, 0xcc, 0x4d, 0x50, 0x95, 0x8a, 0x07, 0x21, 0x73, + 0x46, 0xfd, 0x88, 0x4d, 0x3d, 0x9e, 0xa4, 0x7c, 0x33, 0x8c, 0x41, 0x2d, 0x1f, 0x56, 0xce, 0xa7, + 0xe0, 0x1f, 0x4d, 0xa0, 0xf3, 0xf0, 0x1d, 0x93, 0x19, 0xfe, 0xf6, 0x70, 0x62, 0xf3, 0xb4, 0xa8, + 0x37, 0x5d, 0x4f, 0x8c, 0x26, 0x36, 0x76, 0x98, 0x4f, 0x1c, 0xc6, 0x7d, 0xc6, 0xd5, 0xa7, 0xcd, + 0x87, 0x17, 0x44, 0xc4, 0x21, 0xe5, 0x78, 0x9f, 0x3a, 0x83, 0x12, 0xcd, 0x5a, 0x74, 0xef, 0x0b, + 0xe0, 0xb7, 0xf4, 0x86, 0x31, 0x28, 0xa6, 0xd9, 0xe1, 0x56, 0xee, 0x62, 0x9f, 0x8b, 0x32, 0x5a, + 0xdf, 0x13, 0xd3, 0x0d, 0xcc, 0xda, 0xf5, 0xc3, 0xcb, 0x6d, 0xe1, 0x3f, 0xac, 0x64, 0xaf, 0x22, + 0xad, 0x07, 0xde, 0xe9, 0xa0, 0xb4, 0xb6, 0x3b, 0xdc, 0xfe, 0x5a, 0x3b, 0xbf, 0x45, 0xa3, 0xf3, + 0x83, 0x09, 0x15, 0xab, 0x29, 0x63, 0x35, 0x20, 0xca, 0xc6, 0x5a, 0x2f, 0xbb, 0x77, 0x38, 0x5b, + 0x22, 0x7d, 0xbe, 0x44, 0xfa, 0xf3, 0x12, 0xe9, 0x37, 0x2b, 0xa4, 0xcd, 0x57, 0x48, 0x7b, 0x5c, + 0x21, 0xed, 0xac, 0xfd, 0xa1, 0xf8, 0x13, 0x69, 0xdf, 0x3e, 0xb2, 0x6c, 0x4e, 0xd4, 0xc3, 0x9b, + 0xee, 0x92, 0xab, 0x54, 0x5b, 0xde, 0x81, 0x5d, 0x94, 0xef, 0x6e, 0xe7, 0x35, 0x00, 0x00, 0xff, + 0xff, 0xf0, 0x77, 0xc1, 0xcb, 0x03, 0x03, 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 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // Params returns the total set of minting parameters. + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + // EpochProvisions current minting epoch provisions value. + EpochProvisions(ctx context.Context, in *QueryEpochProvisionsRequest, opts ...grpc.CallOption) (*QueryEpochProvisionsResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/stride.mint.v1beta1.Query/Params", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) EpochProvisions(ctx context.Context, in *QueryEpochProvisionsRequest, opts ...grpc.CallOption) (*QueryEpochProvisionsResponse, error) { + out := new(QueryEpochProvisionsResponse) + err := c.cc.Invoke(ctx, "/stride.mint.v1beta1.Query/EpochProvisions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // Params returns the total set of minting parameters. + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + // EpochProvisions current minting epoch provisions value. + EpochProvisions(context.Context, *QueryEpochProvisionsRequest) (*QueryEpochProvisionsResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (*UnimplementedQueryServer) EpochProvisions(ctx context.Context, req *QueryEpochProvisionsRequest) (*QueryEpochProvisionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochProvisions not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.mint.v1beta1.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_EpochProvisions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryEpochProvisionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EpochProvisions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.mint.v1beta1.Query/EpochProvisions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EpochProvisions(ctx, req.(*QueryEpochProvisionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "stride.mint.v1beta1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "EpochProvisions", + Handler: _Query_EpochProvisions_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "stride/mint/v1beta1/query.proto", +} + +func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryParamsResponse) 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 *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryEpochProvisionsRequest) 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 *QueryEpochProvisionsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryEpochProvisionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryEpochProvisionsResponse) 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 *QueryEpochProvisionsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryEpochProvisionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.EpochProvisions.Size() + i -= size + if _, err := m.EpochProvisions.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryEpochProvisionsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryEpochProvisionsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.EpochProvisions.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryParamsRequest) 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 ErrIntOverflowQuery + } + 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: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsResponse) 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 ErrIntOverflowQuery + } + 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: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryEpochProvisionsRequest) 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 ErrIntOverflowQuery + } + 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: QueryEpochProvisionsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryEpochProvisionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryEpochProvisionsResponse) 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 ErrIntOverflowQuery + } + 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: QueryEpochProvisionsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryEpochProvisionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochProvisions", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.EpochProvisions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/ratelimit/types/genesis.pb.go b/x/ratelimit/types/genesis.pb.go new file mode 100644 index 0000000000..ce45e5be16 --- /dev/null +++ b/x/ratelimit/types/genesis.pb.go @@ -0,0 +1,389 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/ratelimit/genesis.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +// GenesisState defines the ratelimit module's genesis state. +type GenesisState struct { + // params defines all the parameters of the module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"` + // list of rate limits + RateLimits []RateLimit `protobuf:"bytes,2,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits" yaml:"rate_limits"` +} + +func (m *GenesisState) Reset() { *m = GenesisState{} } +func (m *GenesisState) String() string { return proto.CompactTextString(m) } +func (*GenesisState) ProtoMessage() {} +func (*GenesisState) Descriptor() ([]byte, []int) { + return fileDescriptor_9e224b293959881c, []int{0} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func (m *GenesisState) GetRateLimits() []RateLimit { + if m != nil { + return m.RateLimits + } + return nil +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "stride.ratelimit.GenesisState") +} + +func init() { proto.RegisterFile("stride/ratelimit/genesis.proto", fileDescriptor_9e224b293959881c) } + +var fileDescriptor_9e224b293959881c = []byte{ + // 264 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2b, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0x2f, 0x4a, 0x2c, 0x49, 0xcd, 0xc9, 0xcc, 0xcd, 0x2c, 0xd1, 0x4f, 0x4f, 0xcd, + 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0xc8, 0xeb, 0xc1, + 0xe5, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x92, 0xfa, 0x20, 0x16, 0x44, 0x9d, 0x94, 0x2c, + 0x86, 0x39, 0x05, 0x89, 0x45, 0x89, 0xb9, 0x50, 0x63, 0xa4, 0x14, 0x30, 0xa4, 0xe1, 0x2c, 0x88, + 0x0a, 0xa5, 0x8d, 0x8c, 0x5c, 0x3c, 0xee, 0x10, 0xab, 0x83, 0x4b, 0x12, 0x4b, 0x52, 0x85, 0xdc, + 0xb9, 0xd8, 0x20, 0x46, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x49, 0xe8, 0xa1, 0x3b, 0x45, + 0x2f, 0x00, 0x2c, 0xef, 0x24, 0x7a, 0xe2, 0x9e, 0x3c, 0xc3, 0xa7, 0x7b, 0xf2, 0xbc, 0x95, 0x89, + 0xb9, 0x39, 0x56, 0x4a, 0x10, 0x5d, 0x4a, 0x41, 0x50, 0xed, 0x42, 0x11, 0x5c, 0xdc, 0x20, 0x2d, + 0xf1, 0x60, 0x3d, 0xc5, 0x12, 0x4c, 0x0a, 0xcc, 0x1a, 0xdc, 0x46, 0xd2, 0x98, 0xa6, 0x05, 0x25, + 0x96, 0xa4, 0xfa, 0x80, 0x58, 0x4e, 0x52, 0x50, 0x03, 0x85, 0x20, 0x06, 0x22, 0xe9, 0x56, 0x0a, + 0xe2, 0x2a, 0x82, 0x29, 0x2b, 0x76, 0xf2, 0x39, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, + 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, + 0x86, 0x28, 0xa3, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0x60, 0xb0, + 0x45, 0xba, 0x3e, 0x89, 0x49, 0xc5, 0xfa, 0xd0, 0x60, 0x28, 0x33, 0xd7, 0xaf, 0x40, 0x0a, 0x8b, + 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0x70, 0x40, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, + 0xf0, 0x4c, 0x1a, 0xab, 0x93, 0x01, 0x00, 0x00, +} + +func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RateLimits) > 0 { + for iNdEx := len(m.RateLimits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RateLimits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + if len(m.RateLimits) > 0 { + for _, e := range m.RateLimits { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisState) 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 ErrIntOverflowGenesis + } + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RateLimits", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RateLimits = append(m.RateLimits, RateLimit{}) + if err := m.RateLimits[len(m.RateLimits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/ratelimit/types/gov.pb.go b/x/ratelimit/types/gov.pb.go new file mode 100644 index 0000000000..93c753b7ff --- /dev/null +++ b/x/ratelimit/types/gov.pb.go @@ -0,0 +1,1922 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/ratelimit/gov.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +type AddRateLimitProposal struct { + Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` + ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + MaxPercentSend github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=max_percent_send,json=maxPercentSend,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"max_percent_send"` + MaxPercentRecv github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=max_percent_recv,json=maxPercentRecv,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"max_percent_recv"` + DurationHours uint64 `protobuf:"varint,7,opt,name=duration_hours,json=durationHours,proto3" json:"duration_hours,omitempty"` + Deposit string `protobuf:"bytes,8,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"` +} + +func (m *AddRateLimitProposal) Reset() { *m = AddRateLimitProposal{} } +func (*AddRateLimitProposal) ProtoMessage() {} +func (*AddRateLimitProposal) Descriptor() ([]byte, []int) { + return fileDescriptor_3ad7ef7cb59a1c37, []int{0} +} +func (m *AddRateLimitProposal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AddRateLimitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AddRateLimitProposal.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 *AddRateLimitProposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddRateLimitProposal.Merge(m, src) +} +func (m *AddRateLimitProposal) XXX_Size() int { + return m.Size() +} +func (m *AddRateLimitProposal) XXX_DiscardUnknown() { + xxx_messageInfo_AddRateLimitProposal.DiscardUnknown(m) +} + +var xxx_messageInfo_AddRateLimitProposal proto.InternalMessageInfo + +type UpdateRateLimitProposal struct { + Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` + ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + MaxPercentSend github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=max_percent_send,json=maxPercentSend,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"max_percent_send"` + MaxPercentRecv github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=max_percent_recv,json=maxPercentRecv,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"max_percent_recv"` + DurationHours uint64 `protobuf:"varint,7,opt,name=duration_hours,json=durationHours,proto3" json:"duration_hours,omitempty"` + Deposit string `protobuf:"bytes,8,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"` +} + +func (m *UpdateRateLimitProposal) Reset() { *m = UpdateRateLimitProposal{} } +func (*UpdateRateLimitProposal) ProtoMessage() {} +func (*UpdateRateLimitProposal) Descriptor() ([]byte, []int) { + return fileDescriptor_3ad7ef7cb59a1c37, []int{1} +} +func (m *UpdateRateLimitProposal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateRateLimitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateRateLimitProposal.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 *UpdateRateLimitProposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateRateLimitProposal.Merge(m, src) +} +func (m *UpdateRateLimitProposal) XXX_Size() int { + return m.Size() +} +func (m *UpdateRateLimitProposal) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateRateLimitProposal.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateRateLimitProposal proto.InternalMessageInfo + +type RemoveRateLimitProposal struct { + Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` + ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + Deposit string `protobuf:"bytes,5,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"` +} + +func (m *RemoveRateLimitProposal) Reset() { *m = RemoveRateLimitProposal{} } +func (*RemoveRateLimitProposal) ProtoMessage() {} +func (*RemoveRateLimitProposal) Descriptor() ([]byte, []int) { + return fileDescriptor_3ad7ef7cb59a1c37, []int{2} +} +func (m *RemoveRateLimitProposal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RemoveRateLimitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RemoveRateLimitProposal.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 *RemoveRateLimitProposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveRateLimitProposal.Merge(m, src) +} +func (m *RemoveRateLimitProposal) XXX_Size() int { + return m.Size() +} +func (m *RemoveRateLimitProposal) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveRateLimitProposal.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveRateLimitProposal proto.InternalMessageInfo + +type ResetRateLimitProposal struct { + Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` + ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + Deposit string `protobuf:"bytes,5,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"` +} + +func (m *ResetRateLimitProposal) Reset() { *m = ResetRateLimitProposal{} } +func (*ResetRateLimitProposal) ProtoMessage() {} +func (*ResetRateLimitProposal) Descriptor() ([]byte, []int) { + return fileDescriptor_3ad7ef7cb59a1c37, []int{3} +} +func (m *ResetRateLimitProposal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResetRateLimitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResetRateLimitProposal.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 *ResetRateLimitProposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResetRateLimitProposal.Merge(m, src) +} +func (m *ResetRateLimitProposal) XXX_Size() int { + return m.Size() +} +func (m *ResetRateLimitProposal) XXX_DiscardUnknown() { + xxx_messageInfo_ResetRateLimitProposal.DiscardUnknown(m) +} + +var xxx_messageInfo_ResetRateLimitProposal proto.InternalMessageInfo + +func init() { + proto.RegisterType((*AddRateLimitProposal)(nil), "stride.ratelimit.AddRateLimitProposal") + proto.RegisterType((*UpdateRateLimitProposal)(nil), "stride.ratelimit.UpdateRateLimitProposal") + proto.RegisterType((*RemoveRateLimitProposal)(nil), "stride.ratelimit.RemoveRateLimitProposal") + proto.RegisterType((*ResetRateLimitProposal)(nil), "stride.ratelimit.ResetRateLimitProposal") +} + +func init() { proto.RegisterFile("stride/ratelimit/gov.proto", fileDescriptor_3ad7ef7cb59a1c37) } + +var fileDescriptor_3ad7ef7cb59a1c37 = []byte{ + // 437 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x54, 0x41, 0x6b, 0x13, 0x41, + 0x14, 0xde, 0x31, 0x4d, 0x6b, 0x47, 0x0d, 0x65, 0x08, 0x76, 0x28, 0xb8, 0x1b, 0x02, 0x4a, 0x0f, + 0x76, 0x17, 0xf4, 0x20, 0xf4, 0x66, 0x4f, 0x16, 0x72, 0x28, 0x53, 0x04, 0xf1, 0x12, 0x26, 0x3b, + 0x8f, 0x64, 0x70, 0x67, 0x66, 0x99, 0x99, 0x2c, 0xe9, 0x3f, 0xf0, 0xe8, 0x51, 0x04, 0x21, 0x7f, + 0x45, 0x4f, 0x3d, 0xf6, 0x28, 0x1e, 0x82, 0x24, 0x17, 0xcf, 0xfe, 0x02, 0xd9, 0xd9, 0x54, 0x02, + 0x9e, 0xc4, 0x83, 0x0a, 0x9e, 0x76, 0xdf, 0xf7, 0x7d, 0xef, 0x0d, 0x1f, 0xef, 0xf1, 0xe1, 0x03, + 0xe7, 0xad, 0x14, 0x90, 0x59, 0xee, 0xa1, 0x90, 0x4a, 0xfa, 0x6c, 0x6c, 0xaa, 0xb4, 0xb4, 0xc6, + 0x1b, 0xb2, 0xd7, 0x70, 0xe9, 0x0f, 0xee, 0xa0, 0x3b, 0x36, 0x63, 0x13, 0xc8, 0xac, 0xfe, 0x6b, + 0x74, 0xfd, 0x77, 0x2d, 0xdc, 0x7d, 0x2a, 0x04, 0xe3, 0x1e, 0x06, 0xb5, 0xec, 0xcc, 0x9a, 0xd2, + 0x38, 0x5e, 0x90, 0x2e, 0x6e, 0x7b, 0xe9, 0x0b, 0xa0, 0xa8, 0x87, 0x0e, 0x77, 0x59, 0x53, 0x90, + 0x1e, 0xbe, 0x25, 0xc0, 0xe5, 0x56, 0x96, 0x5e, 0x1a, 0x4d, 0x6f, 0x04, 0x6e, 0x13, 0xaa, 0xfb, + 0x04, 0x68, 0xa3, 0x68, 0xab, 0xe9, 0x0b, 0x05, 0xb9, 0x87, 0x71, 0x3e, 0xe1, 0x5a, 0x43, 0x31, + 0x94, 0x82, 0x6e, 0x05, 0x6a, 0x77, 0x8d, 0x9c, 0x0a, 0xf2, 0x02, 0xef, 0x29, 0x3e, 0x1b, 0x96, + 0x60, 0x73, 0xd0, 0x7e, 0xe8, 0x40, 0x0b, 0xda, 0xae, 0x45, 0x27, 0xe9, 0xe5, 0x22, 0x89, 0x3e, + 0x2f, 0x92, 0x07, 0x63, 0xe9, 0x27, 0xd3, 0x51, 0x9a, 0x1b, 0x95, 0xe5, 0xc6, 0x29, 0xe3, 0xd6, + 0x9f, 0x23, 0x27, 0x5e, 0x65, 0xfe, 0xa2, 0x04, 0x97, 0x9e, 0x6a, 0xcf, 0x3a, 0x8a, 0xcf, 0xce, + 0x9a, 0x31, 0xe7, 0xa0, 0x7f, 0x9a, 0x6c, 0x21, 0xaf, 0xe8, 0xf6, 0xef, 0x4e, 0x66, 0x90, 0x57, + 0xe4, 0x3e, 0xee, 0x88, 0xa9, 0xe5, 0xb5, 0xe9, 0xe1, 0xc4, 0x4c, 0xad, 0xa3, 0x3b, 0x3d, 0x74, + 0xb8, 0xc5, 0xee, 0x5c, 0xa3, 0xcf, 0x6a, 0x90, 0x3c, 0xc4, 0x3b, 0x02, 0x4a, 0xe3, 0xa4, 0xa7, + 0x37, 0xc3, 0xbb, 0xe4, 0xdb, 0x22, 0xe9, 0x5c, 0x70, 0x55, 0x1c, 0xf7, 0xd7, 0x44, 0x9f, 0x5d, + 0x4b, 0x8e, 0x6f, 0xbf, 0x9e, 0x27, 0xd1, 0xdb, 0x79, 0x12, 0x7d, 0x9d, 0x27, 0xa8, 0xff, 0xbe, + 0x85, 0xf7, 0x9f, 0x97, 0x82, 0x7b, 0xf8, 0xbf, 0x9f, 0xbf, 0x71, 0x3f, 0x1f, 0x11, 0xde, 0x67, + 0xa0, 0x4c, 0xf5, 0xa7, 0xf7, 0xb3, 0x61, 0xa2, 0xfd, 0xab, 0x26, 0x3e, 0x20, 0x7c, 0x97, 0x81, + 0x03, 0xff, 0xef, 0x7a, 0x38, 0x19, 0x5c, 0x2e, 0x63, 0x74, 0xb5, 0x8c, 0xd1, 0x97, 0x65, 0x8c, + 0xde, 0xac, 0xe2, 0xe8, 0x6a, 0x15, 0x47, 0x9f, 0x56, 0x71, 0xf4, 0xf2, 0xd1, 0xc6, 0xf5, 0x9c, + 0x87, 0x48, 0x3c, 0x1a, 0xf0, 0x91, 0xcb, 0xd6, 0xd1, 0x59, 0x3d, 0xc9, 0x66, 0x1b, 0xf9, 0x19, + 0xae, 0x69, 0xb4, 0x1d, 0xa2, 0xf1, 0xf1, 0xf7, 0x00, 0x00, 0x00, 0xff, 0xff, 0x90, 0x0c, 0x6e, + 0x62, 0x60, 0x05, 0x00, 0x00, +} + +func (this *AddRateLimitProposal) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*AddRateLimitProposal) + if !ok { + that2, ok := that.(AddRateLimitProposal) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Title != that1.Title { + return false + } + if this.Description != that1.Description { + return false + } + if this.Denom != that1.Denom { + return false + } + if this.ChannelId != that1.ChannelId { + return false + } + if !this.MaxPercentSend.Equal(that1.MaxPercentSend) { + return false + } + if !this.MaxPercentRecv.Equal(that1.MaxPercentRecv) { + return false + } + if this.DurationHours != that1.DurationHours { + return false + } + if this.Deposit != that1.Deposit { + return false + } + return true +} +func (this *UpdateRateLimitProposal) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*UpdateRateLimitProposal) + if !ok { + that2, ok := that.(UpdateRateLimitProposal) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Title != that1.Title { + return false + } + if this.Description != that1.Description { + return false + } + if this.Denom != that1.Denom { + return false + } + if this.ChannelId != that1.ChannelId { + return false + } + if !this.MaxPercentSend.Equal(that1.MaxPercentSend) { + return false + } + if !this.MaxPercentRecv.Equal(that1.MaxPercentRecv) { + return false + } + if this.DurationHours != that1.DurationHours { + return false + } + if this.Deposit != that1.Deposit { + return false + } + return true +} +func (this *RemoveRateLimitProposal) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*RemoveRateLimitProposal) + if !ok { + that2, ok := that.(RemoveRateLimitProposal) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Title != that1.Title { + return false + } + if this.Description != that1.Description { + return false + } + if this.Denom != that1.Denom { + return false + } + if this.ChannelId != that1.ChannelId { + return false + } + if this.Deposit != that1.Deposit { + return false + } + return true +} +func (this *ResetRateLimitProposal) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ResetRateLimitProposal) + if !ok { + that2, ok := that.(ResetRateLimitProposal) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Title != that1.Title { + return false + } + if this.Description != that1.Description { + return false + } + if this.Denom != that1.Denom { + return false + } + if this.ChannelId != that1.ChannelId { + return false + } + if this.Deposit != that1.Deposit { + return false + } + return true +} +func (m *AddRateLimitProposal) 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 *AddRateLimitProposal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddRateLimitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Deposit) > 0 { + i -= len(m.Deposit) + copy(dAtA[i:], m.Deposit) + i = encodeVarintGov(dAtA, i, uint64(len(m.Deposit))) + i-- + dAtA[i] = 0x42 + } + if m.DurationHours != 0 { + i = encodeVarintGov(dAtA, i, uint64(m.DurationHours)) + i-- + dAtA[i] = 0x38 + } + { + size := m.MaxPercentRecv.Size() + i -= size + if _, err := m.MaxPercentRecv.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGov(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + { + size := m.MaxPercentSend.Size() + i -= size + if _, err := m.MaxPercentSend.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGov(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if len(m.ChannelId) > 0 { + i -= len(m.ChannelId) + copy(dAtA[i:], m.ChannelId) + i = encodeVarintGov(dAtA, i, uint64(len(m.ChannelId))) + i-- + dAtA[i] = 0x22 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintGov(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x1a + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintGov(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.Title) > 0 { + i -= len(m.Title) + copy(dAtA[i:], m.Title) + i = encodeVarintGov(dAtA, i, uint64(len(m.Title))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UpdateRateLimitProposal) 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 *UpdateRateLimitProposal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateRateLimitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Deposit) > 0 { + i -= len(m.Deposit) + copy(dAtA[i:], m.Deposit) + i = encodeVarintGov(dAtA, i, uint64(len(m.Deposit))) + i-- + dAtA[i] = 0x42 + } + if m.DurationHours != 0 { + i = encodeVarintGov(dAtA, i, uint64(m.DurationHours)) + i-- + dAtA[i] = 0x38 + } + { + size := m.MaxPercentRecv.Size() + i -= size + if _, err := m.MaxPercentRecv.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGov(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + { + size := m.MaxPercentSend.Size() + i -= size + if _, err := m.MaxPercentSend.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGov(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if len(m.ChannelId) > 0 { + i -= len(m.ChannelId) + copy(dAtA[i:], m.ChannelId) + i = encodeVarintGov(dAtA, i, uint64(len(m.ChannelId))) + i-- + dAtA[i] = 0x22 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintGov(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x1a + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintGov(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.Title) > 0 { + i -= len(m.Title) + copy(dAtA[i:], m.Title) + i = encodeVarintGov(dAtA, i, uint64(len(m.Title))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RemoveRateLimitProposal) 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 *RemoveRateLimitProposal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RemoveRateLimitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Deposit) > 0 { + i -= len(m.Deposit) + copy(dAtA[i:], m.Deposit) + i = encodeVarintGov(dAtA, i, uint64(len(m.Deposit))) + i-- + dAtA[i] = 0x2a + } + if len(m.ChannelId) > 0 { + i -= len(m.ChannelId) + copy(dAtA[i:], m.ChannelId) + i = encodeVarintGov(dAtA, i, uint64(len(m.ChannelId))) + i-- + dAtA[i] = 0x22 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintGov(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x1a + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintGov(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.Title) > 0 { + i -= len(m.Title) + copy(dAtA[i:], m.Title) + i = encodeVarintGov(dAtA, i, uint64(len(m.Title))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ResetRateLimitProposal) 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 *ResetRateLimitProposal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResetRateLimitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Deposit) > 0 { + i -= len(m.Deposit) + copy(dAtA[i:], m.Deposit) + i = encodeVarintGov(dAtA, i, uint64(len(m.Deposit))) + i-- + dAtA[i] = 0x2a + } + if len(m.ChannelId) > 0 { + i -= len(m.ChannelId) + copy(dAtA[i:], m.ChannelId) + i = encodeVarintGov(dAtA, i, uint64(len(m.ChannelId))) + i-- + dAtA[i] = 0x22 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintGov(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x1a + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintGov(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.Title) > 0 { + i -= len(m.Title) + copy(dAtA[i:], m.Title) + i = encodeVarintGov(dAtA, i, uint64(len(m.Title))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintGov(dAtA []byte, offset int, v uint64) int { + offset -= sovGov(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *AddRateLimitProposal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Title) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.ChannelId) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = m.MaxPercentSend.Size() + n += 1 + l + sovGov(uint64(l)) + l = m.MaxPercentRecv.Size() + n += 1 + l + sovGov(uint64(l)) + if m.DurationHours != 0 { + n += 1 + sovGov(uint64(m.DurationHours)) + } + l = len(m.Deposit) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + return n +} + +func (m *UpdateRateLimitProposal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Title) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.ChannelId) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = m.MaxPercentSend.Size() + n += 1 + l + sovGov(uint64(l)) + l = m.MaxPercentRecv.Size() + n += 1 + l + sovGov(uint64(l)) + if m.DurationHours != 0 { + n += 1 + sovGov(uint64(m.DurationHours)) + } + l = len(m.Deposit) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + return n +} + +func (m *RemoveRateLimitProposal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Title) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.ChannelId) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.Deposit) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + return n +} + +func (m *ResetRateLimitProposal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Title) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.ChannelId) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.Deposit) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + return n +} + +func sovGov(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGov(x uint64) (n int) { + return sovGov(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *AddRateLimitProposal) 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 ErrIntOverflowGov + } + 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: AddRateLimitProposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddRateLimitProposal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Title = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChannelId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPercentSend", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxPercentSend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPercentRecv", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxPercentRecv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DurationHours", wireType) + } + m.DurationHours = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DurationHours |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Deposit = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGov(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGov + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateRateLimitProposal) 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 ErrIntOverflowGov + } + 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: UpdateRateLimitProposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateRateLimitProposal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Title = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChannelId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPercentSend", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxPercentSend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPercentRecv", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxPercentRecv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DurationHours", wireType) + } + m.DurationHours = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DurationHours |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Deposit = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGov(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGov + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveRateLimitProposal) 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 ErrIntOverflowGov + } + 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: RemoveRateLimitProposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveRateLimitProposal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Title = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChannelId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Deposit = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGov(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGov + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResetRateLimitProposal) 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 ErrIntOverflowGov + } + 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: ResetRateLimitProposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResetRateLimitProposal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Title = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChannelId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Deposit = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGov(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGov + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGov(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, ErrIntOverflowGov + } + 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, ErrIntOverflowGov + } + 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, ErrIntOverflowGov + } + 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, ErrInvalidLengthGov + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGov + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGov + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGov = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGov = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/ratelimit/types/params.pb.go b/x/ratelimit/types/params.pb.go new file mode 100644 index 0000000000..c6d2b75885 --- /dev/null +++ b/x/ratelimit/types/params.pb.go @@ -0,0 +1,263 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/ratelimit/params.proto + +package types + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + 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 + +// Params defines the ratelimit module's parameters. +type Params struct { +} + +func (m *Params) Reset() { *m = Params{} } +func (m *Params) String() string { return proto.CompactTextString(m) } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_7af4964ecd08f136, []int{0} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Params)(nil), "stride.ratelimit.Params") +} + +func init() { proto.RegisterFile("stride/ratelimit/params.proto", fileDescriptor_7af4964ecd08f136) } + +var fileDescriptor_7af4964ecd08f136 = []byte{ + // 137 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2d, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0x2f, 0x4a, 0x2c, 0x49, 0xcd, 0xc9, 0xcc, 0xcd, 0x2c, 0xd1, 0x2f, 0x48, 0x2c, + 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0x48, 0xeb, 0xc1, 0xa5, + 0x95, 0x38, 0xb8, 0xd8, 0x02, 0xc0, 0x2a, 0x9c, 0x7c, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, + 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, + 0x58, 0x8e, 0x21, 0xca, 0x28, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, + 0x18, 0x6c, 0x80, 0xae, 0x4f, 0x62, 0x52, 0xb1, 0x3e, 0xd4, 0xae, 0x32, 0x73, 0xfd, 0x0a, 0x24, + 0x0b, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x16, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, + 0xff, 0x84, 0x53, 0x94, 0x06, 0x91, 0x00, 0x00, 0x00, +} + +func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintParams(dAtA []byte, offset int, v uint64) int { + offset -= sovParams(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovParams(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozParams(x uint64) (n int) { + return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Params) 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 ErrIntOverflowParams + } + 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: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipParams(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthParams + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipParams(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, ErrIntOverflowParams + } + 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, ErrIntOverflowParams + } + 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, ErrIntOverflowParams + } + 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, ErrInvalidLengthParams + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupParams + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthParams + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/ratelimit/types/query.pb.go b/x/ratelimit/types/query.pb.go new file mode 100644 index 0000000000..52af58cf06 --- /dev/null +++ b/x/ratelimit/types/query.pb.go @@ -0,0 +1,1765 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/ratelimit/query.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + 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 + +type QueryAllRateLimitsRequest struct { +} + +func (m *QueryAllRateLimitsRequest) Reset() { *m = QueryAllRateLimitsRequest{} } +func (m *QueryAllRateLimitsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllRateLimitsRequest) ProtoMessage() {} +func (*QueryAllRateLimitsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_97a373ef8fcef03b, []int{0} +} +func (m *QueryAllRateLimitsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllRateLimitsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllRateLimitsRequest.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 *QueryAllRateLimitsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllRateLimitsRequest.Merge(m, src) +} +func (m *QueryAllRateLimitsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllRateLimitsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllRateLimitsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllRateLimitsRequest proto.InternalMessageInfo + +type QueryAllRateLimitsResponse struct { + RateLimits []RateLimit `protobuf:"bytes,1,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits"` +} + +func (m *QueryAllRateLimitsResponse) Reset() { *m = QueryAllRateLimitsResponse{} } +func (m *QueryAllRateLimitsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllRateLimitsResponse) ProtoMessage() {} +func (*QueryAllRateLimitsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_97a373ef8fcef03b, []int{1} +} +func (m *QueryAllRateLimitsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllRateLimitsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllRateLimitsResponse.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 *QueryAllRateLimitsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllRateLimitsResponse.Merge(m, src) +} +func (m *QueryAllRateLimitsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllRateLimitsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllRateLimitsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllRateLimitsResponse proto.InternalMessageInfo + +func (m *QueryAllRateLimitsResponse) GetRateLimits() []RateLimit { + if m != nil { + return m.RateLimits + } + return nil +} + +type QueryRateLimitRequest struct { + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` +} + +func (m *QueryRateLimitRequest) Reset() { *m = QueryRateLimitRequest{} } +func (m *QueryRateLimitRequest) String() string { return proto.CompactTextString(m) } +func (*QueryRateLimitRequest) ProtoMessage() {} +func (*QueryRateLimitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_97a373ef8fcef03b, []int{2} +} +func (m *QueryRateLimitRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRateLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRateLimitRequest.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 *QueryRateLimitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRateLimitRequest.Merge(m, src) +} +func (m *QueryRateLimitRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryRateLimitRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRateLimitRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRateLimitRequest proto.InternalMessageInfo + +func (m *QueryRateLimitRequest) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *QueryRateLimitRequest) GetChannelId() string { + if m != nil { + return m.ChannelId + } + return "" +} + +type QueryRateLimitResponse struct { + RateLimit *RateLimit `protobuf:"bytes,1,opt,name=rate_limit,json=rateLimit,proto3" json:"rate_limit,omitempty"` +} + +func (m *QueryRateLimitResponse) Reset() { *m = QueryRateLimitResponse{} } +func (m *QueryRateLimitResponse) String() string { return proto.CompactTextString(m) } +func (*QueryRateLimitResponse) ProtoMessage() {} +func (*QueryRateLimitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_97a373ef8fcef03b, []int{3} +} +func (m *QueryRateLimitResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRateLimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRateLimitResponse.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 *QueryRateLimitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRateLimitResponse.Merge(m, src) +} +func (m *QueryRateLimitResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryRateLimitResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRateLimitResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRateLimitResponse proto.InternalMessageInfo + +func (m *QueryRateLimitResponse) GetRateLimit() *RateLimit { + if m != nil { + return m.RateLimit + } + return nil +} + +type QueryRateLimitsByChainIdRequest struct { + ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` +} + +func (m *QueryRateLimitsByChainIdRequest) Reset() { *m = QueryRateLimitsByChainIdRequest{} } +func (m *QueryRateLimitsByChainIdRequest) String() string { return proto.CompactTextString(m) } +func (*QueryRateLimitsByChainIdRequest) ProtoMessage() {} +func (*QueryRateLimitsByChainIdRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_97a373ef8fcef03b, []int{4} +} +func (m *QueryRateLimitsByChainIdRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRateLimitsByChainIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRateLimitsByChainIdRequest.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 *QueryRateLimitsByChainIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRateLimitsByChainIdRequest.Merge(m, src) +} +func (m *QueryRateLimitsByChainIdRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryRateLimitsByChainIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRateLimitsByChainIdRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRateLimitsByChainIdRequest proto.InternalMessageInfo + +func (m *QueryRateLimitsByChainIdRequest) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +type QueryRateLimitsByChainIdResponse struct { + RateLimits []RateLimit `protobuf:"bytes,1,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits"` +} + +func (m *QueryRateLimitsByChainIdResponse) Reset() { *m = QueryRateLimitsByChainIdResponse{} } +func (m *QueryRateLimitsByChainIdResponse) String() string { return proto.CompactTextString(m) } +func (*QueryRateLimitsByChainIdResponse) ProtoMessage() {} +func (*QueryRateLimitsByChainIdResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_97a373ef8fcef03b, []int{5} +} +func (m *QueryRateLimitsByChainIdResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRateLimitsByChainIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRateLimitsByChainIdResponse.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 *QueryRateLimitsByChainIdResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRateLimitsByChainIdResponse.Merge(m, src) +} +func (m *QueryRateLimitsByChainIdResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryRateLimitsByChainIdResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRateLimitsByChainIdResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRateLimitsByChainIdResponse proto.InternalMessageInfo + +func (m *QueryRateLimitsByChainIdResponse) GetRateLimits() []RateLimit { + if m != nil { + return m.RateLimits + } + return nil +} + +type QueryRateLimitsByChannelIdRequest struct { + ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` +} + +func (m *QueryRateLimitsByChannelIdRequest) Reset() { *m = QueryRateLimitsByChannelIdRequest{} } +func (m *QueryRateLimitsByChannelIdRequest) String() string { return proto.CompactTextString(m) } +func (*QueryRateLimitsByChannelIdRequest) ProtoMessage() {} +func (*QueryRateLimitsByChannelIdRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_97a373ef8fcef03b, []int{6} +} +func (m *QueryRateLimitsByChannelIdRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRateLimitsByChannelIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRateLimitsByChannelIdRequest.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 *QueryRateLimitsByChannelIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRateLimitsByChannelIdRequest.Merge(m, src) +} +func (m *QueryRateLimitsByChannelIdRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryRateLimitsByChannelIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRateLimitsByChannelIdRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRateLimitsByChannelIdRequest proto.InternalMessageInfo + +func (m *QueryRateLimitsByChannelIdRequest) GetChannelId() string { + if m != nil { + return m.ChannelId + } + return "" +} + +type QueryRateLimitsByChannelIdResponse struct { + RateLimits []RateLimit `protobuf:"bytes,1,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits"` +} + +func (m *QueryRateLimitsByChannelIdResponse) Reset() { *m = QueryRateLimitsByChannelIdResponse{} } +func (m *QueryRateLimitsByChannelIdResponse) String() string { return proto.CompactTextString(m) } +func (*QueryRateLimitsByChannelIdResponse) ProtoMessage() {} +func (*QueryRateLimitsByChannelIdResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_97a373ef8fcef03b, []int{7} +} +func (m *QueryRateLimitsByChannelIdResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryRateLimitsByChannelIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryRateLimitsByChannelIdResponse.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 *QueryRateLimitsByChannelIdResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRateLimitsByChannelIdResponse.Merge(m, src) +} +func (m *QueryRateLimitsByChannelIdResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryRateLimitsByChannelIdResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRateLimitsByChannelIdResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRateLimitsByChannelIdResponse proto.InternalMessageInfo + +func (m *QueryRateLimitsByChannelIdResponse) GetRateLimits() []RateLimit { + if m != nil { + return m.RateLimits + } + return nil +} + +func init() { + proto.RegisterType((*QueryAllRateLimitsRequest)(nil), "stride.ratelimit.QueryAllRateLimitsRequest") + proto.RegisterType((*QueryAllRateLimitsResponse)(nil), "stride.ratelimit.QueryAllRateLimitsResponse") + proto.RegisterType((*QueryRateLimitRequest)(nil), "stride.ratelimit.QueryRateLimitRequest") + proto.RegisterType((*QueryRateLimitResponse)(nil), "stride.ratelimit.QueryRateLimitResponse") + proto.RegisterType((*QueryRateLimitsByChainIdRequest)(nil), "stride.ratelimit.QueryRateLimitsByChainIdRequest") + proto.RegisterType((*QueryRateLimitsByChainIdResponse)(nil), "stride.ratelimit.QueryRateLimitsByChainIdResponse") + proto.RegisterType((*QueryRateLimitsByChannelIdRequest)(nil), "stride.ratelimit.QueryRateLimitsByChannelIdRequest") + proto.RegisterType((*QueryRateLimitsByChannelIdResponse)(nil), "stride.ratelimit.QueryRateLimitsByChannelIdResponse") +} + +func init() { proto.RegisterFile("stride/ratelimit/query.proto", fileDescriptor_97a373ef8fcef03b) } + +var fileDescriptor_97a373ef8fcef03b = []byte{ + // 537 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xcf, 0x6e, 0xd3, 0x40, + 0x10, 0xc6, 0xb3, 0x85, 0x00, 0x99, 0x0a, 0x09, 0x2d, 0x2d, 0x4a, 0xdd, 0xe2, 0x06, 0x5f, 0x88, + 0xf8, 0xe3, 0x85, 0x84, 0xaa, 0x12, 0x50, 0x21, 0x8c, 0x38, 0x54, 0xca, 0x05, 0xc3, 0x89, 0x4b, + 0x70, 0xe2, 0xc5, 0xb1, 0xe4, 0x78, 0x53, 0xef, 0x06, 0x11, 0xa1, 0x5e, 0x78, 0x02, 0x24, 0xae, + 0x5c, 0x79, 0x08, 0x8e, 0xdc, 0x7a, 0x42, 0x95, 0xb8, 0x70, 0x42, 0x28, 0xe1, 0x41, 0x90, 0x77, + 0x1d, 0x97, 0x24, 0x4e, 0xeb, 0x48, 0xb9, 0x6d, 0x76, 0x66, 0xbe, 0xf9, 0xcd, 0xf8, 0xdb, 0xc0, + 0x16, 0x17, 0x91, 0xef, 0x52, 0x12, 0x39, 0x82, 0x06, 0x7e, 0xd7, 0x17, 0xe4, 0xa0, 0x4f, 0xa3, + 0x81, 0xd9, 0x8b, 0x98, 0x60, 0xf8, 0x8a, 0x8a, 0x9a, 0x69, 0x54, 0xab, 0xcc, 0xe4, 0xa7, 0x27, + 0x55, 0xa3, 0x6d, 0x79, 0x8c, 0x79, 0x01, 0x25, 0x4e, 0xcf, 0x27, 0x4e, 0x18, 0x32, 0xe1, 0x08, + 0x9f, 0x85, 0x3c, 0x89, 0xae, 0x79, 0xcc, 0x63, 0xf2, 0x48, 0xe2, 0x93, 0xba, 0x35, 0x36, 0x61, + 0xe3, 0x45, 0xdc, 0xf6, 0x69, 0x10, 0xd8, 0x8e, 0xa0, 0x8d, 0x58, 0x8e, 0xdb, 0xf4, 0xa0, 0x4f, + 0xb9, 0x30, 0xde, 0x80, 0x96, 0x15, 0xe4, 0x3d, 0x16, 0x72, 0x8a, 0x2d, 0x58, 0x8d, 0x09, 0x9a, + 0x12, 0x81, 0x97, 0x51, 0xe5, 0x5c, 0x75, 0xb5, 0xb6, 0x69, 0x4e, 0x83, 0x9b, 0x69, 0xa9, 0x75, + 0xfe, 0xe8, 0xf7, 0x76, 0xc1, 0x86, 0x28, 0xd5, 0x32, 0x1a, 0xb0, 0x2e, 0x3b, 0xa4, 0x39, 0x49, + 0x6b, 0xbc, 0x06, 0x45, 0x97, 0x86, 0xac, 0x5b, 0x46, 0x15, 0x54, 0x2d, 0xd9, 0xea, 0x07, 0xbe, + 0x0e, 0xd0, 0xee, 0x38, 0x61, 0x48, 0x83, 0xa6, 0xef, 0x96, 0x57, 0x64, 0xa8, 0x94, 0xdc, 0xec, + 0xbb, 0xc6, 0x2b, 0xb8, 0x36, 0xad, 0x96, 0xb0, 0x3e, 0x04, 0x38, 0x61, 0x95, 0x9a, 0xa7, 0xa3, + 0xda, 0xa5, 0x14, 0xd2, 0x78, 0x0c, 0xdb, 0x93, 0xaa, 0xdc, 0x1a, 0x3c, 0xeb, 0x38, 0x7e, 0xb8, + 0xef, 0x8e, 0x69, 0x37, 0xe0, 0x52, 0x3b, 0xbe, 0x89, 0xa9, 0x14, 0xf0, 0xc5, 0xb6, 0xca, 0x30, + 0xde, 0x42, 0x65, 0x7e, 0xf5, 0x12, 0x37, 0x69, 0xc1, 0x8d, 0xac, 0x3e, 0x6a, 0x33, 0x63, 0xce, + 0xc9, 0xfd, 0xa1, 0xe9, 0xfd, 0x75, 0xc0, 0x38, 0x4d, 0x63, 0x79, 0xb4, 0xb5, 0x1f, 0x45, 0x28, + 0xca, 0x56, 0xf8, 0x0b, 0x82, 0xcb, 0x13, 0xfe, 0xc2, 0xb7, 0x67, 0xa5, 0xe6, 0x5a, 0x54, 0xbb, + 0x93, 0x2f, 0x59, 0xa1, 0x1b, 0xf7, 0x3e, 0xfe, 0xfc, 0xfb, 0x79, 0xe5, 0x16, 0xae, 0x92, 0x97, + 0xb2, 0xea, 0x6e, 0xc3, 0x69, 0x71, 0x32, 0xff, 0x61, 0x71, 0xfc, 0x15, 0x41, 0x29, 0x15, 0xc2, + 0x37, 0xe7, 0x74, 0x9b, 0xb6, 0xaf, 0x56, 0x3d, 0x3b, 0x31, 0x41, 0x7a, 0x2e, 0x91, 0x9e, 0xe0, + 0xbd, 0x9c, 0x48, 0xe4, 0xc3, 0xc9, 0x17, 0x3c, 0x24, 0xad, 0x41, 0x53, 0xbd, 0x8c, 0x6f, 0x08, + 0xae, 0x66, 0x58, 0x0c, 0xdf, 0x3f, 0x0b, 0x64, 0xc6, 0xcc, 0x5a, 0x6d, 0x91, 0x92, 0x64, 0x8a, + 0x47, 0x72, 0x8a, 0x1d, 0x5c, 0xcf, 0xbb, 0x58, 0x39, 0x86, 0x7c, 0x30, 0x87, 0xf8, 0x3b, 0x82, + 0xf5, 0x4c, 0xcb, 0xe1, 0x7a, 0x3e, 0x94, 0x09, 0x93, 0x6b, 0x0f, 0x16, 0x2b, 0x4a, 0x26, 0xd8, + 0x93, 0x13, 0xec, 0xe2, 0x9d, 0x85, 0x26, 0x18, 0x7f, 0x08, 0xab, 0x71, 0x34, 0xd4, 0xd1, 0xf1, + 0x50, 0x47, 0x7f, 0x86, 0x3a, 0xfa, 0x34, 0xd2, 0x0b, 0xc7, 0x23, 0xbd, 0xf0, 0x6b, 0xa4, 0x17, + 0x5e, 0xd7, 0x3c, 0x5f, 0x74, 0xfa, 0x2d, 0xb3, 0xcd, 0xba, 0x59, 0xd2, 0xef, 0x76, 0xc9, 0xfb, + 0xff, 0xf4, 0xc5, 0xa0, 0x47, 0x79, 0xeb, 0x82, 0xfc, 0x73, 0xae, 0xff, 0x0b, 0x00, 0x00, 0xff, + 0xff, 0xa3, 0x36, 0x4c, 0x20, 0x24, 0x06, 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 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + AllRateLimits(ctx context.Context, in *QueryAllRateLimitsRequest, opts ...grpc.CallOption) (*QueryAllRateLimitsResponse, error) + RateLimit(ctx context.Context, in *QueryRateLimitRequest, opts ...grpc.CallOption) (*QueryRateLimitResponse, error) + RateLimitsByChainId(ctx context.Context, in *QueryRateLimitsByChainIdRequest, opts ...grpc.CallOption) (*QueryRateLimitsByChainIdResponse, error) + RateLimitsByChannelId(ctx context.Context, in *QueryRateLimitsByChannelIdRequest, opts ...grpc.CallOption) (*QueryRateLimitsByChannelIdResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) AllRateLimits(ctx context.Context, in *QueryAllRateLimitsRequest, opts ...grpc.CallOption) (*QueryAllRateLimitsResponse, error) { + out := new(QueryAllRateLimitsResponse) + err := c.cc.Invoke(ctx, "/stride.ratelimit.Query/AllRateLimits", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) RateLimit(ctx context.Context, in *QueryRateLimitRequest, opts ...grpc.CallOption) (*QueryRateLimitResponse, error) { + out := new(QueryRateLimitResponse) + err := c.cc.Invoke(ctx, "/stride.ratelimit.Query/RateLimit", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) RateLimitsByChainId(ctx context.Context, in *QueryRateLimitsByChainIdRequest, opts ...grpc.CallOption) (*QueryRateLimitsByChainIdResponse, error) { + out := new(QueryRateLimitsByChainIdResponse) + err := c.cc.Invoke(ctx, "/stride.ratelimit.Query/RateLimitsByChainId", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) RateLimitsByChannelId(ctx context.Context, in *QueryRateLimitsByChannelIdRequest, opts ...grpc.CallOption) (*QueryRateLimitsByChannelIdResponse, error) { + out := new(QueryRateLimitsByChannelIdResponse) + err := c.cc.Invoke(ctx, "/stride.ratelimit.Query/RateLimitsByChannelId", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + AllRateLimits(context.Context, *QueryAllRateLimitsRequest) (*QueryAllRateLimitsResponse, error) + RateLimit(context.Context, *QueryRateLimitRequest) (*QueryRateLimitResponse, error) + RateLimitsByChainId(context.Context, *QueryRateLimitsByChainIdRequest) (*QueryRateLimitsByChainIdResponse, error) + RateLimitsByChannelId(context.Context, *QueryRateLimitsByChannelIdRequest) (*QueryRateLimitsByChannelIdResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) AllRateLimits(ctx context.Context, req *QueryAllRateLimitsRequest) (*QueryAllRateLimitsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AllRateLimits not implemented") +} +func (*UnimplementedQueryServer) RateLimit(ctx context.Context, req *QueryRateLimitRequest) (*QueryRateLimitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RateLimit not implemented") +} +func (*UnimplementedQueryServer) RateLimitsByChainId(ctx context.Context, req *QueryRateLimitsByChainIdRequest) (*QueryRateLimitsByChainIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RateLimitsByChainId not implemented") +} +func (*UnimplementedQueryServer) RateLimitsByChannelId(ctx context.Context, req *QueryRateLimitsByChannelIdRequest) (*QueryRateLimitsByChannelIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RateLimitsByChannelId not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_AllRateLimits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllRateLimitsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AllRateLimits(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.ratelimit.Query/AllRateLimits", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AllRateLimits(ctx, req.(*QueryAllRateLimitsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_RateLimit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRateLimitRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RateLimit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.ratelimit.Query/RateLimit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RateLimit(ctx, req.(*QueryRateLimitRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_RateLimitsByChainId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRateLimitsByChainIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RateLimitsByChainId(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.ratelimit.Query/RateLimitsByChainId", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RateLimitsByChainId(ctx, req.(*QueryRateLimitsByChainIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_RateLimitsByChannelId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRateLimitsByChannelIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).RateLimitsByChannelId(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.ratelimit.Query/RateLimitsByChannelId", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).RateLimitsByChannelId(ctx, req.(*QueryRateLimitsByChannelIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "stride.ratelimit.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AllRateLimits", + Handler: _Query_AllRateLimits_Handler, + }, + { + MethodName: "RateLimit", + Handler: _Query_RateLimit_Handler, + }, + { + MethodName: "RateLimitsByChainId", + Handler: _Query_RateLimitsByChainId_Handler, + }, + { + MethodName: "RateLimitsByChannelId", + Handler: _Query_RateLimitsByChannelId_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "stride/ratelimit/query.proto", +} + +func (m *QueryAllRateLimitsRequest) 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 *QueryAllRateLimitsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllRateLimitsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryAllRateLimitsResponse) 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 *QueryAllRateLimitsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllRateLimitsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RateLimits) > 0 { + for iNdEx := len(m.RateLimits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RateLimits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryRateLimitRequest) 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 *QueryRateLimitRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRateLimitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ChannelId) > 0 { + i -= len(m.ChannelId) + copy(dAtA[i:], m.ChannelId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChannelId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryRateLimitResponse) 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 *QueryRateLimitResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRateLimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.RateLimit != nil { + { + size, err := m.RateLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryRateLimitsByChainIdRequest) 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 *QueryRateLimitsByChainIdRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRateLimitsByChainIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryRateLimitsByChainIdResponse) 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 *QueryRateLimitsByChainIdResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRateLimitsByChainIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RateLimits) > 0 { + for iNdEx := len(m.RateLimits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RateLimits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryRateLimitsByChannelIdRequest) 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 *QueryRateLimitsByChannelIdRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRateLimitsByChannelIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ChannelId) > 0 { + i -= len(m.ChannelId) + copy(dAtA[i:], m.ChannelId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChannelId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryRateLimitsByChannelIdResponse) 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 *QueryRateLimitsByChannelIdResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryRateLimitsByChannelIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RateLimits) > 0 { + for iNdEx := len(m.RateLimits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RateLimits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryAllRateLimitsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryAllRateLimitsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.RateLimits) > 0 { + for _, e := range m.RateLimits { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryRateLimitRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ChannelId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryRateLimitResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RateLimit != nil { + l = m.RateLimit.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryRateLimitsByChainIdRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryRateLimitsByChainIdResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.RateLimits) > 0 { + for _, e := range m.RateLimits { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryRateLimitsByChannelIdRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChannelId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryRateLimitsByChannelIdResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.RateLimits) > 0 { + for _, e := range m.RateLimits { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryAllRateLimitsRequest) 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 ErrIntOverflowQuery + } + 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: QueryAllRateLimitsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllRateLimitsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllRateLimitsResponse) 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 ErrIntOverflowQuery + } + 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: QueryAllRateLimitsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllRateLimitsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RateLimits", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RateLimits = append(m.RateLimits, RateLimit{}) + if err := m.RateLimits[len(m.RateLimits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryRateLimitRequest) 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 ErrIntOverflowQuery + } + 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: QueryRateLimitRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRateLimitRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChannelId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryRateLimitResponse) 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 ErrIntOverflowQuery + } + 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: QueryRateLimitResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRateLimitResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RateLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RateLimit == nil { + m.RateLimit = &RateLimit{} + } + if err := m.RateLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryRateLimitsByChainIdRequest) 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 ErrIntOverflowQuery + } + 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: QueryRateLimitsByChainIdRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRateLimitsByChainIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryRateLimitsByChainIdResponse) 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 ErrIntOverflowQuery + } + 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: QueryRateLimitsByChainIdResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRateLimitsByChainIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RateLimits", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RateLimits = append(m.RateLimits, RateLimit{}) + if err := m.RateLimits[len(m.RateLimits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryRateLimitsByChannelIdRequest) 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 ErrIntOverflowQuery + } + 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: QueryRateLimitsByChannelIdRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRateLimitsByChannelIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChannelId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryRateLimitsByChannelIdResponse) 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 ErrIntOverflowQuery + } + 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: QueryRateLimitsByChannelIdResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryRateLimitsByChannelIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RateLimits", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RateLimits = append(m.RateLimits, RateLimit{}) + if err := m.RateLimits[len(m.RateLimits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/ratelimit/types/ratelimit.pb.go b/x/ratelimit/types/ratelimit.pb.go new file mode 100644 index 0000000000..539854d58a --- /dev/null +++ b/x/ratelimit/types/ratelimit.pb.go @@ -0,0 +1,1220 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/ratelimit/ratelimit.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +type PacketDirection int32 + +const ( + PACKET_SEND PacketDirection = 0 + PACKET_RECV PacketDirection = 1 +) + +var PacketDirection_name = map[int32]string{ + 0: "PACKET_SEND", + 1: "PACKET_RECV", +} + +var PacketDirection_value = map[string]int32{ + "PACKET_SEND": 0, + "PACKET_RECV": 1, +} + +func (x PacketDirection) String() string { + return proto.EnumName(PacketDirection_name, int32(x)) +} + +func (PacketDirection) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_a3e00ee2c967d747, []int{0} +} + +type Path struct { + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` +} + +func (m *Path) Reset() { *m = Path{} } +func (m *Path) String() string { return proto.CompactTextString(m) } +func (*Path) ProtoMessage() {} +func (*Path) Descriptor() ([]byte, []int) { + return fileDescriptor_a3e00ee2c967d747, []int{0} +} +func (m *Path) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Path) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Path.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 *Path) XXX_Merge(src proto.Message) { + xxx_messageInfo_Path.Merge(m, src) +} +func (m *Path) XXX_Size() int { + return m.Size() +} +func (m *Path) XXX_DiscardUnknown() { + xxx_messageInfo_Path.DiscardUnknown(m) +} + +var xxx_messageInfo_Path proto.InternalMessageInfo + +func (m *Path) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *Path) GetChannelId() string { + if m != nil { + return m.ChannelId + } + return "" +} + +type Quota struct { + MaxPercentSend github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=max_percent_send,json=maxPercentSend,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"max_percent_send"` + MaxPercentRecv github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=max_percent_recv,json=maxPercentRecv,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"max_percent_recv"` + DurationHours uint64 `protobuf:"varint,3,opt,name=duration_hours,json=durationHours,proto3" json:"duration_hours,omitempty"` +} + +func (m *Quota) Reset() { *m = Quota{} } +func (m *Quota) String() string { return proto.CompactTextString(m) } +func (*Quota) ProtoMessage() {} +func (*Quota) Descriptor() ([]byte, []int) { + return fileDescriptor_a3e00ee2c967d747, []int{1} +} +func (m *Quota) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Quota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Quota.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 *Quota) XXX_Merge(src proto.Message) { + xxx_messageInfo_Quota.Merge(m, src) +} +func (m *Quota) XXX_Size() int { + return m.Size() +} +func (m *Quota) XXX_DiscardUnknown() { + xxx_messageInfo_Quota.DiscardUnknown(m) +} + +var xxx_messageInfo_Quota proto.InternalMessageInfo + +func (m *Quota) GetDurationHours() uint64 { + if m != nil { + return m.DurationHours + } + return 0 +} + +type Flow struct { + Inflow github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=inflow,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"inflow"` + Outflow github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=outflow,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"outflow"` + ChannelValue github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=channel_value,json=channelValue,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"channel_value"` +} + +func (m *Flow) Reset() { *m = Flow{} } +func (m *Flow) String() string { return proto.CompactTextString(m) } +func (*Flow) ProtoMessage() {} +func (*Flow) Descriptor() ([]byte, []int) { + return fileDescriptor_a3e00ee2c967d747, []int{2} +} +func (m *Flow) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Flow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Flow.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 *Flow) XXX_Merge(src proto.Message) { + xxx_messageInfo_Flow.Merge(m, src) +} +func (m *Flow) XXX_Size() int { + return m.Size() +} +func (m *Flow) XXX_DiscardUnknown() { + xxx_messageInfo_Flow.DiscardUnknown(m) +} + +var xxx_messageInfo_Flow proto.InternalMessageInfo + +type RateLimit struct { + Path *Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + Quota *Quota `protobuf:"bytes,2,opt,name=quota,proto3" json:"quota,omitempty"` + Flow *Flow `protobuf:"bytes,3,opt,name=flow,proto3" json:"flow,omitempty"` +} + +func (m *RateLimit) Reset() { *m = RateLimit{} } +func (m *RateLimit) String() string { return proto.CompactTextString(m) } +func (*RateLimit) ProtoMessage() {} +func (*RateLimit) Descriptor() ([]byte, []int) { + return fileDescriptor_a3e00ee2c967d747, []int{3} +} +func (m *RateLimit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RateLimit.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 *RateLimit) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateLimit.Merge(m, src) +} +func (m *RateLimit) XXX_Size() int { + return m.Size() +} +func (m *RateLimit) XXX_DiscardUnknown() { + xxx_messageInfo_RateLimit.DiscardUnknown(m) +} + +var xxx_messageInfo_RateLimit proto.InternalMessageInfo + +func (m *RateLimit) GetPath() *Path { + if m != nil { + return m.Path + } + return nil +} + +func (m *RateLimit) GetQuota() *Quota { + if m != nil { + return m.Quota + } + return nil +} + +func (m *RateLimit) GetFlow() *Flow { + if m != nil { + return m.Flow + } + return nil +} + +func init() { + proto.RegisterEnum("stride.ratelimit.PacketDirection", PacketDirection_name, PacketDirection_value) + proto.RegisterType((*Path)(nil), "stride.ratelimit.Path") + proto.RegisterType((*Quota)(nil), "stride.ratelimit.Quota") + proto.RegisterType((*Flow)(nil), "stride.ratelimit.Flow") + proto.RegisterType((*RateLimit)(nil), "stride.ratelimit.RateLimit") +} + +func init() { proto.RegisterFile("stride/ratelimit/ratelimit.proto", fileDescriptor_a3e00ee2c967d747) } + +var fileDescriptor_a3e00ee2c967d747 = []byte{ + // 478 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xc1, 0x6e, 0xd3, 0x30, + 0x18, 0xc7, 0x63, 0x96, 0x0e, 0xf5, 0x2b, 0xdb, 0x2a, 0x6b, 0x82, 0x6a, 0x12, 0x59, 0x55, 0x09, + 0x34, 0x4d, 0x6a, 0x22, 0x95, 0x03, 0x42, 0x9c, 0xd8, 0xd6, 0x69, 0x13, 0x15, 0x2a, 0x2e, 0x9a, + 0x10, 0x97, 0xc8, 0x4d, 0x4c, 0x13, 0x2d, 0xb1, 0x4b, 0xec, 0x74, 0xe5, 0x0d, 0x38, 0x22, 0x5e, + 0x81, 0x97, 0xd9, 0x71, 0x47, 0xc4, 0x61, 0x42, 0xed, 0x99, 0x77, 0x40, 0x76, 0x52, 0xa8, 0x86, + 0x38, 0xd0, 0x9d, 0xe2, 0x7c, 0xfe, 0xfb, 0x97, 0xfc, 0x3f, 0xff, 0x3f, 0x68, 0x4a, 0x95, 0xc5, + 0x21, 0xf3, 0x32, 0xaa, 0x58, 0x12, 0xa7, 0xb1, 0xfa, 0xb3, 0x72, 0xc7, 0x99, 0x50, 0x02, 0xd7, + 0x0b, 0x85, 0xfb, 0xbb, 0xbe, 0xb3, 0x3d, 0x12, 0x23, 0x61, 0x36, 0x3d, 0xbd, 0x2a, 0x74, 0xad, + 0xe7, 0x60, 0xf7, 0xa9, 0x8a, 0xf0, 0x36, 0x54, 0x42, 0xc6, 0x45, 0xda, 0x40, 0x4d, 0xb4, 0x57, + 0x25, 0xc5, 0x0b, 0x7e, 0x08, 0x10, 0x44, 0x94, 0x73, 0x96, 0xf8, 0x71, 0xd8, 0xb8, 0x63, 0xb6, + 0xaa, 0x65, 0xe5, 0x34, 0x6c, 0xcd, 0x10, 0x54, 0x5e, 0xe7, 0x42, 0x51, 0xfc, 0x16, 0xea, 0x29, + 0x9d, 0xfa, 0x63, 0x96, 0x05, 0x8c, 0x2b, 0x5f, 0x32, 0x1e, 0x16, 0xa4, 0x03, 0xf7, 0xf2, 0x7a, + 0xd7, 0xfa, 0x7e, 0xbd, 0xfb, 0x78, 0x14, 0xab, 0x28, 0x1f, 0xba, 0x81, 0x48, 0xbd, 0x40, 0xc8, + 0x54, 0xc8, 0xf2, 0xd1, 0x96, 0xe1, 0xb9, 0xa7, 0x3e, 0x8e, 0x99, 0x74, 0x4f, 0xb9, 0x22, 0x9b, + 0x29, 0x9d, 0xf6, 0x0b, 0xcc, 0x80, 0xf1, 0xf0, 0x26, 0x39, 0x63, 0xc1, 0xa4, 0xf8, 0x91, 0xdb, + 0x90, 0x09, 0x0b, 0x26, 0xf8, 0x11, 0x6c, 0x86, 0x79, 0x46, 0x55, 0x2c, 0xb8, 0x1f, 0x89, 0x3c, + 0x93, 0x8d, 0xb5, 0x26, 0xda, 0xb3, 0xc9, 0xc6, 0xa2, 0x7a, 0xa2, 0x8b, 0xad, 0x9f, 0x08, 0xec, + 0xe3, 0x44, 0x5c, 0xe0, 0x63, 0x58, 0x8f, 0xf9, 0xfb, 0x44, 0x5c, 0xac, 0xe8, 0xac, 0x3c, 0x8d, + 0x4f, 0xe0, 0xae, 0xc8, 0x95, 0x01, 0xad, 0x66, 0x64, 0x71, 0x1c, 0x0f, 0x60, 0x63, 0x71, 0x3d, + 0x13, 0x9a, 0xe4, 0xcc, 0x18, 0xf8, 0x7f, 0xde, 0xbd, 0x12, 0x72, 0xa6, 0x19, 0xad, 0x2f, 0x08, + 0xaa, 0x84, 0x2a, 0xd6, 0xd3, 0xa9, 0xc1, 0xfb, 0x60, 0x8f, 0xa9, 0x8a, 0x8c, 0xe5, 0x5a, 0xe7, + 0xbe, 0x7b, 0x33, 0x56, 0xae, 0x4e, 0x0f, 0x31, 0x1a, 0xdc, 0x86, 0xca, 0x07, 0x9d, 0x06, 0x63, + 0xab, 0xd6, 0x79, 0xf0, 0xb7, 0xd8, 0x84, 0x85, 0x14, 0x2a, 0x8d, 0x36, 0x4d, 0x58, 0xfb, 0x17, + 0x5a, 0x77, 0x9d, 0x18, 0xcd, 0xfe, 0x33, 0xd8, 0xea, 0xd3, 0xe0, 0x9c, 0xa9, 0xa3, 0x38, 0x63, + 0x81, 0xbe, 0x1c, 0xbc, 0x05, 0xb5, 0xfe, 0x8b, 0xc3, 0x97, 0xdd, 0x37, 0xfe, 0xa0, 0xfb, 0xea, + 0xa8, 0x6e, 0x2d, 0x15, 0x48, 0xf7, 0xf0, 0xac, 0x8e, 0x76, 0xec, 0x4f, 0x5f, 0x1d, 0xeb, 0xa0, + 0x77, 0x39, 0x73, 0xd0, 0xd5, 0xcc, 0x41, 0x3f, 0x66, 0x0e, 0xfa, 0x3c, 0x77, 0xac, 0xab, 0xb9, + 0x63, 0x7d, 0x9b, 0x3b, 0xd6, 0xbb, 0xce, 0x52, 0x7f, 0x06, 0xe6, 0xe3, 0xed, 0x1e, 0x1d, 0x4a, + 0xaf, 0x1c, 0xae, 0xc9, 0x53, 0x6f, 0xba, 0x34, 0x61, 0xa6, 0x5f, 0xc3, 0x75, 0x33, 0x36, 0x4f, + 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0x8d, 0x3b, 0x9c, 0x1a, 0x82, 0x03, 0x00, 0x00, +} + +func (m *Path) 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 *Path) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Path) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ChannelId) > 0 { + i -= len(m.ChannelId) + copy(dAtA[i:], m.ChannelId) + i = encodeVarintRatelimit(dAtA, i, uint64(len(m.ChannelId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintRatelimit(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Quota) 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 *Quota) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Quota) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DurationHours != 0 { + i = encodeVarintRatelimit(dAtA, i, uint64(m.DurationHours)) + i-- + dAtA[i] = 0x18 + } + { + size := m.MaxPercentRecv.Size() + i -= size + if _, err := m.MaxPercentRecv.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintRatelimit(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.MaxPercentSend.Size() + i -= size + if _, err := m.MaxPercentSend.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintRatelimit(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Flow) 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 *Flow) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Flow) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.ChannelValue.Size() + i -= size + if _, err := m.ChannelValue.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintRatelimit(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.Outflow.Size() + i -= size + if _, err := m.Outflow.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintRatelimit(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.Inflow.Size() + i -= size + if _, err := m.Inflow.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintRatelimit(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *RateLimit) 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 *RateLimit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RateLimit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Flow != nil { + { + size, err := m.Flow.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRatelimit(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Quota != nil { + { + size, err := m.Quota.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRatelimit(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Path != nil { + { + size, err := m.Path.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRatelimit(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintRatelimit(dAtA []byte, offset int, v uint64) int { + offset -= sovRatelimit(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Path) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovRatelimit(uint64(l)) + } + l = len(m.ChannelId) + if l > 0 { + n += 1 + l + sovRatelimit(uint64(l)) + } + return n +} + +func (m *Quota) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.MaxPercentSend.Size() + n += 1 + l + sovRatelimit(uint64(l)) + l = m.MaxPercentRecv.Size() + n += 1 + l + sovRatelimit(uint64(l)) + if m.DurationHours != 0 { + n += 1 + sovRatelimit(uint64(m.DurationHours)) + } + return n +} + +func (m *Flow) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Inflow.Size() + n += 1 + l + sovRatelimit(uint64(l)) + l = m.Outflow.Size() + n += 1 + l + sovRatelimit(uint64(l)) + l = m.ChannelValue.Size() + n += 1 + l + sovRatelimit(uint64(l)) + return n +} + +func (m *RateLimit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Path != nil { + l = m.Path.Size() + n += 1 + l + sovRatelimit(uint64(l)) + } + if m.Quota != nil { + l = m.Quota.Size() + n += 1 + l + sovRatelimit(uint64(l)) + } + if m.Flow != nil { + l = m.Flow.Size() + n += 1 + l + sovRatelimit(uint64(l)) + } + return n +} + +func sovRatelimit(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRatelimit(x uint64) (n int) { + return sovRatelimit(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Path) 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 ErrIntOverflowRatelimit + } + 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: Path: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Path: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRatelimit + } + 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 ErrInvalidLengthRatelimit + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRatelimit + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRatelimit + } + 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 ErrInvalidLengthRatelimit + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRatelimit + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChannelId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRatelimit(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthRatelimit + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Quota) 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 ErrIntOverflowRatelimit + } + 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: Quota: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Quota: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPercentSend", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRatelimit + } + 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 ErrInvalidLengthRatelimit + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRatelimit + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxPercentSend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPercentRecv", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRatelimit + } + 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 ErrInvalidLengthRatelimit + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRatelimit + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxPercentRecv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DurationHours", wireType) + } + m.DurationHours = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRatelimit + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DurationHours |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRatelimit(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthRatelimit + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Flow) 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 ErrIntOverflowRatelimit + } + 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: Flow: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Flow: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inflow", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRatelimit + } + 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 ErrInvalidLengthRatelimit + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRatelimit + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Inflow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Outflow", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRatelimit + } + 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 ErrInvalidLengthRatelimit + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRatelimit + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Outflow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRatelimit + } + 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 ErrInvalidLengthRatelimit + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRatelimit + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ChannelValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRatelimit(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthRatelimit + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RateLimit) 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 ErrIntOverflowRatelimit + } + 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: RateLimit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RateLimit: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRatelimit + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRatelimit + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRatelimit + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Path == nil { + m.Path = &Path{} + } + if err := m.Path.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Quota", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRatelimit + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRatelimit + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRatelimit + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Quota == nil { + m.Quota = &Quota{} + } + if err := m.Quota.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Flow", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRatelimit + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRatelimit + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRatelimit + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Flow == nil { + m.Flow = &Flow{} + } + if err := m.Flow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRatelimit(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthRatelimit + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRatelimit(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, ErrIntOverflowRatelimit + } + 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, ErrIntOverflowRatelimit + } + 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, ErrIntOverflowRatelimit + } + 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, ErrInvalidLengthRatelimit + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRatelimit + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthRatelimit + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthRatelimit = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRatelimit = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRatelimit = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/records/types/callbacks.pb.go b/x/records/types/callbacks.pb.go new file mode 100644 index 0000000000..b91af7e7f7 --- /dev/null +++ b/x/records/types/callbacks.pb.go @@ -0,0 +1,301 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/records/callbacks.proto + +package types + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + 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 + +// ---------------------- Transfer Callback ---------------------- // +type TransferCallback struct { + DepositRecordId uint64 `protobuf:"varint,1,opt,name=deposit_record_id,json=depositRecordId,proto3" json:"deposit_record_id,omitempty"` +} + +func (m *TransferCallback) Reset() { *m = TransferCallback{} } +func (m *TransferCallback) String() string { return proto.CompactTextString(m) } +func (*TransferCallback) ProtoMessage() {} +func (*TransferCallback) Descriptor() ([]byte, []int) { + return fileDescriptor_6f7cdd5c1d8b3a46, []int{0} +} +func (m *TransferCallback) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TransferCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TransferCallback.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 *TransferCallback) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransferCallback.Merge(m, src) +} +func (m *TransferCallback) XXX_Size() int { + return m.Size() +} +func (m *TransferCallback) XXX_DiscardUnknown() { + xxx_messageInfo_TransferCallback.DiscardUnknown(m) +} + +var xxx_messageInfo_TransferCallback proto.InternalMessageInfo + +func (m *TransferCallback) GetDepositRecordId() uint64 { + if m != nil { + return m.DepositRecordId + } + return 0 +} + +func init() { + proto.RegisterType((*TransferCallback)(nil), "stride.records.TransferCallback") +} + +func init() { proto.RegisterFile("stride/records/callbacks.proto", fileDescriptor_6f7cdd5c1d8b3a46) } + +var fileDescriptor_6f7cdd5c1d8b3a46 = []byte{ + // 178 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2b, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0x2f, 0x4a, 0x4d, 0xce, 0x2f, 0x4a, 0x29, 0xd6, 0x4f, 0x4e, 0xcc, 0xc9, 0x49, + 0x4a, 0x4c, 0xce, 0x2e, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x83, 0xc8, 0xeb, 0x41, + 0xe5, 0x95, 0xec, 0xb8, 0x04, 0x42, 0x8a, 0x12, 0xf3, 0x8a, 0xd3, 0x52, 0x8b, 0x9c, 0xa1, 0x4a, + 0x85, 0xb4, 0xb8, 0x04, 0x53, 0x52, 0x0b, 0xf2, 0x8b, 0x33, 0x4b, 0xe2, 0x21, 0xca, 0xe2, 0x33, + 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0x58, 0x82, 0xf8, 0xa1, 0x12, 0x41, 0x60, 0x71, 0xcf, 0x14, + 0x27, 0xaf, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, + 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x32, 0x48, 0xcf, 0x2c, + 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x0f, 0x06, 0x5b, 0xaa, 0xeb, 0x93, 0x98, 0x54, + 0xac, 0x0f, 0x75, 0x60, 0x99, 0xb9, 0x7e, 0x05, 0xdc, 0x95, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, + 0x6c, 0x60, 0x27, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x31, 0x85, 0xaa, 0x82, 0xc4, 0x00, + 0x00, 0x00, +} + +func (m *TransferCallback) 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 *TransferCallback) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TransferCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DepositRecordId != 0 { + i = encodeVarintCallbacks(dAtA, i, uint64(m.DepositRecordId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintCallbacks(dAtA []byte, offset int, v uint64) int { + offset -= sovCallbacks(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *TransferCallback) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DepositRecordId != 0 { + n += 1 + sovCallbacks(uint64(m.DepositRecordId)) + } + return n +} + +func sovCallbacks(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozCallbacks(x uint64) (n int) { + return sovCallbacks(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *TransferCallback) 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 ErrIntOverflowCallbacks + } + 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: TransferCallback: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TransferCallback: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositRecordId", wireType) + } + m.DepositRecordId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DepositRecordId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipCallbacks(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, ErrIntOverflowCallbacks + } + 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, ErrIntOverflowCallbacks + } + 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, ErrIntOverflowCallbacks + } + 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, ErrInvalidLengthCallbacks + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupCallbacks + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthCallbacks + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthCallbacks = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCallbacks = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCallbacks = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/records/types/genesis.pb.go b/x/records/types/genesis.pb.go new file mode 100644 index 0000000000..82fff3ef91 --- /dev/null +++ b/x/records/types/genesis.pb.go @@ -0,0 +1,2858 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/records/genesis.proto + +package types + +import ( + context "context" + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + grpc "google.golang.org/grpc" + 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 + +type DepositRecord_Status int32 + +const ( + // in transfer queue to be sent to the delegation ICA + DepositRecord_TRANSFER_QUEUE DepositRecord_Status = 0 + // transfer in progress (IBC packet sent, ack not received) + DepositRecord_TRANSFER_IN_PROGRESS DepositRecord_Status = 2 + // in staking queue on delegation ICA + DepositRecord_DELEGATION_QUEUE DepositRecord_Status = 1 + // staking in progress (ICA packet sent, ack not received) + DepositRecord_DELEGATION_IN_PROGRESS DepositRecord_Status = 3 +) + +var DepositRecord_Status_name = map[int32]string{ + 0: "TRANSFER_QUEUE", + 2: "TRANSFER_IN_PROGRESS", + 1: "DELEGATION_QUEUE", + 3: "DELEGATION_IN_PROGRESS", +} + +var DepositRecord_Status_value = map[string]int32{ + "TRANSFER_QUEUE": 0, + "TRANSFER_IN_PROGRESS": 2, + "DELEGATION_QUEUE": 1, + "DELEGATION_IN_PROGRESS": 3, +} + +func (x DepositRecord_Status) String() string { + return proto.EnumName(DepositRecord_Status_name, int32(x)) +} + +func (DepositRecord_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{4, 0} +} + +type DepositRecord_Source int32 + +const ( + DepositRecord_STRIDE DepositRecord_Source = 0 + DepositRecord_WITHDRAWAL_ICA DepositRecord_Source = 1 +) + +var DepositRecord_Source_name = map[int32]string{ + 0: "STRIDE", + 1: "WITHDRAWAL_ICA", +} + +var DepositRecord_Source_value = map[string]int32{ + "STRIDE": 0, + "WITHDRAWAL_ICA": 1, +} + +func (x DepositRecord_Source) String() string { + return proto.EnumName(DepositRecord_Source_name, int32(x)) +} + +func (DepositRecord_Source) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{4, 1} +} + +type HostZoneUnbonding_Status int32 + +const ( + // tokens bonded on delegate account + HostZoneUnbonding_UNBONDING_QUEUE HostZoneUnbonding_Status = 0 + HostZoneUnbonding_UNBONDING_IN_PROGRESS HostZoneUnbonding_Status = 3 + // unbonding completed on delegate account + HostZoneUnbonding_EXIT_TRANSFER_QUEUE HostZoneUnbonding_Status = 1 + HostZoneUnbonding_EXIT_TRANSFER_IN_PROGRESS HostZoneUnbonding_Status = 4 + // transfer success + HostZoneUnbonding_CLAIMABLE HostZoneUnbonding_Status = 2 +) + +var HostZoneUnbonding_Status_name = map[int32]string{ + 0: "UNBONDING_QUEUE", + 3: "UNBONDING_IN_PROGRESS", + 1: "EXIT_TRANSFER_QUEUE", + 4: "EXIT_TRANSFER_IN_PROGRESS", + 2: "CLAIMABLE", +} + +var HostZoneUnbonding_Status_value = map[string]int32{ + "UNBONDING_QUEUE": 0, + "UNBONDING_IN_PROGRESS": 3, + "EXIT_TRANSFER_QUEUE": 1, + "EXIT_TRANSFER_IN_PROGRESS": 4, + "CLAIMABLE": 2, +} + +func (x HostZoneUnbonding_Status) String() string { + return proto.EnumName(HostZoneUnbonding_Status_name, int32(x)) +} + +func (HostZoneUnbonding_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{5, 0} +} + +type UserRedemptionRecord struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` + Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` + Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` + Denom string `protobuf:"bytes,5,opt,name=denom,proto3" json:"denom,omitempty"` + HostZoneId string `protobuf:"bytes,6,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` + EpochNumber uint64 `protobuf:"varint,7,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` + ClaimIsPending bool `protobuf:"varint,8,opt,name=claim_is_pending,json=claimIsPending,proto3" json:"claim_is_pending,omitempty"` +} + +func (m *UserRedemptionRecord) Reset() { *m = UserRedemptionRecord{} } +func (m *UserRedemptionRecord) String() string { return proto.CompactTextString(m) } +func (*UserRedemptionRecord) ProtoMessage() {} +func (*UserRedemptionRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{0} +} +func (m *UserRedemptionRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserRedemptionRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserRedemptionRecord.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 *UserRedemptionRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserRedemptionRecord.Merge(m, src) +} +func (m *UserRedemptionRecord) XXX_Size() int { + return m.Size() +} +func (m *UserRedemptionRecord) XXX_DiscardUnknown() { + xxx_messageInfo_UserRedemptionRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_UserRedemptionRecord proto.InternalMessageInfo + +func (m *UserRedemptionRecord) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *UserRedemptionRecord) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *UserRedemptionRecord) GetReceiver() string { + if m != nil { + return m.Receiver + } + return "" +} + +func (m *UserRedemptionRecord) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *UserRedemptionRecord) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +func (m *UserRedemptionRecord) GetEpochNumber() uint64 { + if m != nil { + return m.EpochNumber + } + return 0 +} + +func (m *UserRedemptionRecord) GetClaimIsPending() bool { + if m != nil { + return m.ClaimIsPending + } + return false +} + +// Params defines the parameters for the module. +type Params struct { +} + +func (m *Params) Reset() { *m = Params{} } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{1} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +type RecordsPacketData struct { + // Types that are valid to be assigned to Packet: + // *RecordsPacketData_NoData + Packet isRecordsPacketData_Packet `protobuf_oneof:"packet"` +} + +func (m *RecordsPacketData) Reset() { *m = RecordsPacketData{} } +func (m *RecordsPacketData) String() string { return proto.CompactTextString(m) } +func (*RecordsPacketData) ProtoMessage() {} +func (*RecordsPacketData) Descriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{2} +} +func (m *RecordsPacketData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RecordsPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RecordsPacketData.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 *RecordsPacketData) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecordsPacketData.Merge(m, src) +} +func (m *RecordsPacketData) XXX_Size() int { + return m.Size() +} +func (m *RecordsPacketData) XXX_DiscardUnknown() { + xxx_messageInfo_RecordsPacketData.DiscardUnknown(m) +} + +var xxx_messageInfo_RecordsPacketData proto.InternalMessageInfo + +type isRecordsPacketData_Packet interface { + isRecordsPacketData_Packet() + MarshalTo([]byte) (int, error) + Size() int +} + +type RecordsPacketData_NoData struct { + NoData *NoData `protobuf:"bytes,1,opt,name=no_data,json=noData,proto3,oneof" json:"no_data,omitempty"` +} + +func (*RecordsPacketData_NoData) isRecordsPacketData_Packet() {} + +func (m *RecordsPacketData) GetPacket() isRecordsPacketData_Packet { + if m != nil { + return m.Packet + } + return nil +} + +func (m *RecordsPacketData) GetNoData() *NoData { + if x, ok := m.GetPacket().(*RecordsPacketData_NoData); ok { + return x.NoData + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*RecordsPacketData) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*RecordsPacketData_NoData)(nil), + } +} + +type NoData struct { +} + +func (m *NoData) Reset() { *m = NoData{} } +func (m *NoData) String() string { return proto.CompactTextString(m) } +func (*NoData) ProtoMessage() {} +func (*NoData) Descriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{3} +} +func (m *NoData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NoData.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 *NoData) XXX_Merge(src proto.Message) { + xxx_messageInfo_NoData.Merge(m, src) +} +func (m *NoData) XXX_Size() int { + return m.Size() +} +func (m *NoData) XXX_DiscardUnknown() { + xxx_messageInfo_NoData.DiscardUnknown(m) +} + +var xxx_messageInfo_NoData proto.InternalMessageInfo + +type DepositRecord struct { + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` + Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` + HostZoneId string `protobuf:"bytes,4,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` + Status DepositRecord_Status `protobuf:"varint,6,opt,name=status,proto3,enum=stride.records.DepositRecord_Status" json:"status,omitempty"` + DepositEpochNumber uint64 `protobuf:"varint,7,opt,name=deposit_epoch_number,json=depositEpochNumber,proto3" json:"deposit_epoch_number,omitempty"` + Source DepositRecord_Source `protobuf:"varint,8,opt,name=source,proto3,enum=stride.records.DepositRecord_Source" json:"source,omitempty"` +} + +func (m *DepositRecord) Reset() { *m = DepositRecord{} } +func (m *DepositRecord) String() string { return proto.CompactTextString(m) } +func (*DepositRecord) ProtoMessage() {} +func (*DepositRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{4} +} +func (m *DepositRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DepositRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DepositRecord.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 *DepositRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_DepositRecord.Merge(m, src) +} +func (m *DepositRecord) XXX_Size() int { + return m.Size() +} +func (m *DepositRecord) XXX_DiscardUnknown() { + xxx_messageInfo_DepositRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_DepositRecord proto.InternalMessageInfo + +func (m *DepositRecord) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *DepositRecord) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *DepositRecord) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +func (m *DepositRecord) GetStatus() DepositRecord_Status { + if m != nil { + return m.Status + } + return DepositRecord_TRANSFER_QUEUE +} + +func (m *DepositRecord) GetDepositEpochNumber() uint64 { + if m != nil { + return m.DepositEpochNumber + } + return 0 +} + +func (m *DepositRecord) GetSource() DepositRecord_Source { + if m != nil { + return m.Source + } + return DepositRecord_STRIDE +} + +type HostZoneUnbonding struct { + StTokenAmount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=st_token_amount,json=stTokenAmount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"st_token_amount"` + NativeTokenAmount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=native_token_amount,json=nativeTokenAmount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"native_token_amount"` + Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` + HostZoneId string `protobuf:"bytes,4,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` + UnbondingTime uint64 `protobuf:"varint,5,opt,name=unbonding_time,json=unbondingTime,proto3" json:"unbonding_time,omitempty"` + Status HostZoneUnbonding_Status `protobuf:"varint,6,opt,name=status,proto3,enum=stride.records.HostZoneUnbonding_Status" json:"status,omitempty"` + UserRedemptionRecords []string `protobuf:"bytes,7,rep,name=user_redemption_records,json=userRedemptionRecords,proto3" json:"user_redemption_records,omitempty"` +} + +func (m *HostZoneUnbonding) Reset() { *m = HostZoneUnbonding{} } +func (m *HostZoneUnbonding) String() string { return proto.CompactTextString(m) } +func (*HostZoneUnbonding) ProtoMessage() {} +func (*HostZoneUnbonding) Descriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{5} +} +func (m *HostZoneUnbonding) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HostZoneUnbonding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_HostZoneUnbonding.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 *HostZoneUnbonding) XXX_Merge(src proto.Message) { + xxx_messageInfo_HostZoneUnbonding.Merge(m, src) +} +func (m *HostZoneUnbonding) XXX_Size() int { + return m.Size() +} +func (m *HostZoneUnbonding) XXX_DiscardUnknown() { + xxx_messageInfo_HostZoneUnbonding.DiscardUnknown(m) +} + +var xxx_messageInfo_HostZoneUnbonding proto.InternalMessageInfo + +func (m *HostZoneUnbonding) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *HostZoneUnbonding) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +func (m *HostZoneUnbonding) GetUnbondingTime() uint64 { + if m != nil { + return m.UnbondingTime + } + return 0 +} + +func (m *HostZoneUnbonding) GetStatus() HostZoneUnbonding_Status { + if m != nil { + return m.Status + } + return HostZoneUnbonding_UNBONDING_QUEUE +} + +func (m *HostZoneUnbonding) GetUserRedemptionRecords() []string { + if m != nil { + return m.UserRedemptionRecords + } + return nil +} + +type EpochUnbondingRecord struct { + EpochNumber uint64 `protobuf:"varint,1,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` + HostZoneUnbondings []*HostZoneUnbonding `protobuf:"bytes,3,rep,name=host_zone_unbondings,json=hostZoneUnbondings,proto3" json:"host_zone_unbondings,omitempty"` +} + +func (m *EpochUnbondingRecord) Reset() { *m = EpochUnbondingRecord{} } +func (m *EpochUnbondingRecord) String() string { return proto.CompactTextString(m) } +func (*EpochUnbondingRecord) ProtoMessage() {} +func (*EpochUnbondingRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{6} +} +func (m *EpochUnbondingRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EpochUnbondingRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EpochUnbondingRecord.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 *EpochUnbondingRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_EpochUnbondingRecord.Merge(m, src) +} +func (m *EpochUnbondingRecord) XXX_Size() int { + return m.Size() +} +func (m *EpochUnbondingRecord) XXX_DiscardUnknown() { + xxx_messageInfo_EpochUnbondingRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_EpochUnbondingRecord proto.InternalMessageInfo + +func (m *EpochUnbondingRecord) GetEpochNumber() uint64 { + if m != nil { + return m.EpochNumber + } + return 0 +} + +func (m *EpochUnbondingRecord) GetHostZoneUnbondings() []*HostZoneUnbonding { + if m != nil { + return m.HostZoneUnbondings + } + return nil +} + +// GenesisState defines the recordπs module's genesis state. +// next id: 9 +type GenesisState struct { + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` + UserRedemptionRecordList []UserRedemptionRecord `protobuf:"bytes,3,rep,name=user_redemption_record_list,json=userRedemptionRecordList,proto3" json:"user_redemption_record_list"` + UserRedemptionRecordCount uint64 `protobuf:"varint,4,opt,name=user_redemption_record_count,json=userRedemptionRecordCount,proto3" json:"user_redemption_record_count,omitempty"` + EpochUnbondingRecordList []EpochUnbondingRecord `protobuf:"bytes,5,rep,name=epoch_unbonding_record_list,json=epochUnbondingRecordList,proto3" json:"epoch_unbonding_record_list"` + DepositRecordList []DepositRecord `protobuf:"bytes,7,rep,name=deposit_record_list,json=depositRecordList,proto3" json:"deposit_record_list"` + DepositRecordCount uint64 `protobuf:"varint,8,opt,name=deposit_record_count,json=depositRecordCount,proto3" json:"deposit_record_count,omitempty"` +} + +func (m *GenesisState) Reset() { *m = GenesisState{} } +func (m *GenesisState) String() string { return proto.CompactTextString(m) } +func (*GenesisState) ProtoMessage() {} +func (*GenesisState) Descriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{7} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func (m *GenesisState) GetPortId() string { + if m != nil { + return m.PortId + } + return "" +} + +func (m *GenesisState) GetUserRedemptionRecordList() []UserRedemptionRecord { + if m != nil { + return m.UserRedemptionRecordList + } + return nil +} + +func (m *GenesisState) GetUserRedemptionRecordCount() uint64 { + if m != nil { + return m.UserRedemptionRecordCount + } + return 0 +} + +func (m *GenesisState) GetEpochUnbondingRecordList() []EpochUnbondingRecord { + if m != nil { + return m.EpochUnbondingRecordList + } + return nil +} + +func (m *GenesisState) GetDepositRecordList() []DepositRecord { + if m != nil { + return m.DepositRecordList + } + return nil +} + +func (m *GenesisState) GetDepositRecordCount() uint64 { + if m != nil { + return m.DepositRecordCount + } + return 0 +} + +func init() { + proto.RegisterEnum("stride.records.DepositRecord_Status", DepositRecord_Status_name, DepositRecord_Status_value) + proto.RegisterEnum("stride.records.DepositRecord_Source", DepositRecord_Source_name, DepositRecord_Source_value) + proto.RegisterEnum("stride.records.HostZoneUnbonding_Status", HostZoneUnbonding_Status_name, HostZoneUnbonding_Status_value) + proto.RegisterType((*UserRedemptionRecord)(nil), "stride.records.UserRedemptionRecord") + proto.RegisterType((*Params)(nil), "stride.records.Params") + proto.RegisterType((*RecordsPacketData)(nil), "stride.records.RecordsPacketData") + proto.RegisterType((*NoData)(nil), "stride.records.NoData") + proto.RegisterType((*DepositRecord)(nil), "stride.records.DepositRecord") + proto.RegisterType((*HostZoneUnbonding)(nil), "stride.records.HostZoneUnbonding") + proto.RegisterType((*EpochUnbondingRecord)(nil), "stride.records.EpochUnbondingRecord") + proto.RegisterType((*GenesisState)(nil), "stride.records.GenesisState") +} + +func init() { proto.RegisterFile("stride/records/genesis.proto", fileDescriptor_98cfd0253c8b6797) } + +var fileDescriptor_98cfd0253c8b6797 = []byte{ + // 978 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x3d, 0x6f, 0xdb, 0x46, + 0x18, 0x16, 0x45, 0x8a, 0x92, 0x5f, 0xdb, 0x8a, 0x7c, 0x56, 0x6c, 0xda, 0x49, 0x64, 0x85, 0x68, + 0x0b, 0x2d, 0x91, 0x52, 0xb7, 0x68, 0x81, 0xa2, 0x40, 0x2b, 0x59, 0x8a, 0x4d, 0x43, 0x91, 0xd5, + 0x93, 0xd4, 0x14, 0x19, 0x4a, 0x50, 0xe2, 0x41, 0x22, 0x1c, 0xf2, 0x04, 0xde, 0xc9, 0x68, 0xbb, + 0xf4, 0x2f, 0x74, 0xe8, 0xd0, 0xb1, 0x4b, 0xd1, 0xbf, 0x92, 0x31, 0x63, 0xd1, 0x21, 0x28, 0xec, + 0xa1, 0x3f, 0xa2, 0x4b, 0xc1, 0x23, 0x4d, 0x53, 0x1f, 0x49, 0x00, 0x23, 0x93, 0xc4, 0xf7, 0xfb, + 0xde, 0xe7, 0xe1, 0x73, 0x84, 0xfb, 0x8c, 0xfb, 0x8e, 0x4d, 0x6a, 0x3e, 0x19, 0x51, 0xdf, 0x66, + 0xb5, 0x31, 0xf1, 0x08, 0x73, 0x58, 0x75, 0xea, 0x53, 0x4e, 0x51, 0x3e, 0xf4, 0x56, 0x23, 0xef, + 0x7e, 0x71, 0x4c, 0xc7, 0x54, 0xb8, 0x6a, 0xc1, 0xbf, 0x30, 0x4a, 0xff, 0x33, 0x0d, 0xc5, 0x01, + 0x23, 0x3e, 0x26, 0x36, 0x71, 0xa7, 0xdc, 0xa1, 0x1e, 0x16, 0xf1, 0x28, 0x0f, 0x69, 0xc7, 0xd6, + 0xa4, 0xb2, 0x54, 0x59, 0xc3, 0x69, 0xc7, 0x46, 0x3b, 0xa0, 0x32, 0xe2, 0xd9, 0xc4, 0xd7, 0xd2, + 0xc2, 0x16, 0x3d, 0xa1, 0x7d, 0xc8, 0xf9, 0x64, 0x44, 0x9c, 0x0b, 0xe2, 0x6b, 0xb2, 0xf0, 0xc4, + 0xcf, 0xe8, 0x09, 0xa8, 0x96, 0x4b, 0x67, 0x1e, 0xd7, 0x94, 0xc0, 0xd3, 0xa8, 0xbe, 0x7c, 0x7d, + 0x90, 0xfa, 0xfb, 0xf5, 0xc1, 0x47, 0x63, 0x87, 0x4f, 0x66, 0xc3, 0xea, 0x88, 0xba, 0xb5, 0x11, + 0x65, 0x2e, 0x65, 0xd1, 0xcf, 0x23, 0x66, 0x9f, 0xd7, 0xf8, 0x8f, 0x53, 0xc2, 0xaa, 0x86, 0xc7, + 0x71, 0x94, 0x8d, 0x8a, 0x90, 0xb1, 0x89, 0x47, 0x5d, 0x2d, 0x23, 0x1a, 0x84, 0x0f, 0xa8, 0x0c, + 0x1b, 0x13, 0xca, 0xb8, 0xf9, 0x13, 0xf5, 0x88, 0xe9, 0xd8, 0x9a, 0x2a, 0x9c, 0x10, 0xd8, 0x9e, + 0x53, 0x8f, 0x18, 0x36, 0x7a, 0x08, 0x1b, 0x64, 0x4a, 0x47, 0x13, 0xd3, 0x9b, 0xb9, 0x43, 0xe2, + 0x6b, 0xd9, 0xb2, 0x54, 0x51, 0xf0, 0xba, 0xb0, 0x75, 0x84, 0x09, 0x55, 0xa0, 0x30, 0x7a, 0x61, + 0x39, 0xae, 0xe9, 0x30, 0x73, 0x4a, 0x3c, 0xdb, 0xf1, 0xc6, 0x5a, 0xae, 0x2c, 0x55, 0x72, 0x38, + 0x2f, 0xec, 0x06, 0xeb, 0x86, 0x56, 0x3d, 0x0f, 0x6a, 0xd7, 0xf2, 0x2d, 0x97, 0x7d, 0xa1, 0xfc, + 0xf6, 0xfb, 0x41, 0x4a, 0xef, 0xc2, 0x56, 0xb8, 0x2a, 0xd6, 0xb5, 0x46, 0xe7, 0x84, 0x37, 0x2d, + 0x6e, 0xa1, 0x8f, 0x21, 0xeb, 0x51, 0xd3, 0xb6, 0xb8, 0x25, 0x56, 0xb7, 0x7e, 0xb8, 0x53, 0x9d, + 0x87, 0xa1, 0xda, 0xa1, 0x41, 0xe0, 0x49, 0x0a, 0xab, 0x9e, 0xf8, 0xd7, 0xc8, 0x81, 0x3a, 0x15, + 0x05, 0xf4, 0x1c, 0xa8, 0xa1, 0x57, 0xff, 0x57, 0x86, 0xcd, 0x26, 0x99, 0x52, 0xe6, 0xf0, 0x25, + 0x38, 0x14, 0x01, 0xc7, 0xcd, 0x6a, 0xd3, 0xef, 0x67, 0xb5, 0xf2, 0xdb, 0x56, 0xab, 0x2c, 0xad, + 0xf6, 0x4b, 0x50, 0x19, 0xb7, 0xf8, 0x8c, 0x89, 0xb5, 0xe7, 0x0f, 0x3f, 0x58, 0x3c, 0xe7, 0xdc, + 0xf8, 0xd5, 0x9e, 0x88, 0xc5, 0x51, 0x0e, 0x7a, 0x0c, 0x45, 0x3b, 0xf4, 0x9b, 0x2b, 0x00, 0x42, + 0x91, 0xaf, 0x95, 0xc0, 0x29, 0xe8, 0x47, 0x67, 0xfe, 0x88, 0x08, 0x74, 0xde, 0xdd, 0x4f, 0xc4, + 0xe2, 0x28, 0x47, 0x9f, 0x80, 0x1a, 0x4e, 0x80, 0x10, 0xe4, 0xfb, 0xb8, 0xde, 0xe9, 0x3d, 0x69, + 0x61, 0xf3, 0x9b, 0x41, 0x6b, 0xd0, 0x2a, 0xa4, 0x90, 0x06, 0xc5, 0xd8, 0x66, 0x74, 0xcc, 0x2e, + 0x3e, 0x3b, 0xc6, 0xad, 0x5e, 0xaf, 0x90, 0x46, 0x45, 0x28, 0x34, 0x5b, 0xed, 0xd6, 0x71, 0xbd, + 0x6f, 0x9c, 0x75, 0xa2, 0x78, 0x09, 0xed, 0xc3, 0x4e, 0xc2, 0x9a, 0xcc, 0x90, 0xf5, 0x0a, 0xa8, + 0x61, 0x6f, 0x04, 0xa0, 0xf6, 0xfa, 0xd8, 0x68, 0x06, 0x1d, 0x10, 0xe4, 0x9f, 0x19, 0xfd, 0x93, + 0x26, 0xae, 0x3f, 0xab, 0xb7, 0x4d, 0xe3, 0xa8, 0x5e, 0x90, 0x4e, 0x95, 0x5c, 0xa6, 0xa0, 0xea, + 0x7f, 0x28, 0xb0, 0x75, 0x12, 0xad, 0x75, 0xe0, 0x0d, 0xa9, 0xe0, 0x1a, 0xfa, 0x16, 0xee, 0x30, + 0x6e, 0x72, 0x7a, 0x4e, 0x3c, 0x33, 0x82, 0x59, 0xba, 0x15, 0xcc, 0x9b, 0x8c, 0xf7, 0x83, 0x2a, + 0xf5, 0x10, 0xed, 0xef, 0x61, 0xdb, 0xb3, 0xb8, 0x73, 0x41, 0xe6, 0x6b, 0xdf, 0x8e, 0x42, 0x5b, + 0x61, 0xa9, 0x64, 0xfd, 0xdb, 0xb2, 0xe9, 0x43, 0xc8, 0xcf, 0xae, 0x0f, 0x6f, 0x72, 0xc7, 0x25, + 0xe2, 0x4d, 0x57, 0xf0, 0x66, 0x6c, 0xed, 0x3b, 0x2e, 0x41, 0x5f, 0x2f, 0x90, 0xae, 0xb2, 0x48, + 0x82, 0xa5, 0x4d, 0x2e, 0x12, 0xef, 0x33, 0xd8, 0x9d, 0x31, 0xe2, 0x9b, 0x7e, 0x2c, 0x77, 0x66, + 0x94, 0xab, 0x65, 0xcb, 0x72, 0x65, 0x0d, 0xdf, 0x9d, 0xad, 0x10, 0x43, 0xa6, 0xff, 0x1c, 0x13, + 0x68, 0x1b, 0xee, 0x0c, 0x3a, 0x8d, 0xb3, 0x4e, 0xd3, 0xe8, 0x1c, 0xc7, 0x0c, 0xda, 0x83, 0xbb, + 0x37, 0xc6, 0x39, 0x42, 0xa0, 0x5d, 0xd8, 0x6e, 0x7d, 0x67, 0xf4, 0xcd, 0x05, 0xd6, 0x49, 0xe8, + 0x01, 0xec, 0xcd, 0x3b, 0x92, 0x79, 0x0a, 0xda, 0x84, 0xb5, 0xa3, 0x76, 0xdd, 0x78, 0x5a, 0x6f, + 0xb4, 0x5b, 0x85, 0xb4, 0xfe, 0xab, 0x04, 0x45, 0xf1, 0x3e, 0xc4, 0x47, 0x8b, 0x84, 0x61, 0x51, + 0xe3, 0xa4, 0x65, 0x8d, 0xeb, 0x41, 0xf1, 0x66, 0xff, 0xf1, 0x46, 0x99, 0x26, 0x97, 0xe5, 0xca, + 0xfa, 0xe1, 0xc3, 0x77, 0x2e, 0x11, 0xa3, 0xc9, 0xa2, 0x89, 0x9d, 0x2a, 0xb9, 0x74, 0x41, 0xd6, + 0xff, 0x93, 0x61, 0xe3, 0x38, 0xbc, 0x76, 0x82, 0xfd, 0x10, 0xf4, 0x69, 0xa0, 0x66, 0x81, 0x4a, + 0xbe, 0x49, 0xff, 0x42, 0x0d, 0x6d, 0x28, 0x01, 0xd9, 0x70, 0x14, 0x8b, 0x76, 0x21, 0x3b, 0xa5, + 0x3e, 0x0f, 0xc8, 0x11, 0xdd, 0x2e, 0xc1, 0xa3, 0x61, 0x23, 0x07, 0xee, 0xad, 0xc6, 0xcb, 0x7c, + 0xe1, 0x30, 0x1e, 0x9d, 0x60, 0x49, 0x0b, 0x56, 0x5d, 0x68, 0x51, 0x47, 0x6d, 0x15, 0xbe, 0x6d, + 0x87, 0x71, 0xf4, 0x15, 0xdc, 0x7f, 0x43, 0xab, 0x51, 0x7c, 0x85, 0x29, 0x78, 0x6f, 0x55, 0xfe, + 0x91, 0x20, 0xbf, 0x03, 0xf7, 0x42, 0x24, 0x6e, 0xa8, 0x9c, 0x9c, 0x35, 0xb3, 0x7a, 0xd6, 0x55, + 0xa0, 0x5e, 0xcf, 0x4a, 0x56, 0xf8, 0xc4, 0xac, 0x3d, 0xd8, 0xbe, 0xd6, 0xcf, 0x64, 0x8b, 0xac, + 0x68, 0xf1, 0xe0, 0xad, 0xd2, 0x18, 0xd5, 0xde, 0xb2, 0x93, 0x46, 0x51, 0x34, 0x21, 0xca, 0x73, + 0x07, 0xcf, 0xcd, 0x89, 0x72, 0xe2, 0xc4, 0x87, 0x19, 0x90, 0x9f, 0xb2, 0x71, 0xe3, 0xf4, 0xe5, + 0x65, 0x49, 0x7a, 0x75, 0x59, 0x92, 0xfe, 0xb9, 0x2c, 0x49, 0xbf, 0x5c, 0x95, 0x52, 0xaf, 0xae, + 0x4a, 0xa9, 0xbf, 0xae, 0x4a, 0xa9, 0xe7, 0x8f, 0x13, 0x52, 0xd2, 0x13, 0x43, 0x3d, 0x6a, 0x5b, + 0x43, 0x56, 0x8b, 0x3e, 0x5c, 0x2e, 0x3e, 0xaf, 0xfd, 0x10, 0x7f, 0xbd, 0x08, 0x61, 0x19, 0xaa, + 0xe2, 0xb3, 0xe4, 0x93, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0x55, 0x83, 0x88, 0x32, 0xdc, 0x08, + 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 { +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "stride.records.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{}, + Metadata: "stride/records/genesis.proto", +} + +func (m *UserRedemptionRecord) 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 *UserRedemptionRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserRedemptionRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ClaimIsPending { + i-- + if m.ClaimIsPending { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.EpochNumber != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.EpochNumber)) + i-- + dAtA[i] = 0x38 + } + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0x32 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x2a + } + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.Receiver) > 0 { + i -= len(m.Receiver) + copy(dAtA[i:], m.Receiver) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Receiver))) + i-- + dAtA[i] = 0x1a + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RecordsPacketData) 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 *RecordsPacketData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RecordsPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Packet != nil { + { + size := m.Packet.Size() + i -= size + if _, err := m.Packet.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *RecordsPacketData_NoData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RecordsPacketData_NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NoData != nil { + { + size, err := m.NoData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *NoData) 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 *NoData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *DepositRecord) 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 *DepositRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DepositRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Source != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.Source)) + i-- + dAtA[i] = 0x40 + } + if m.DepositEpochNumber != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.DepositEpochNumber)) + i-- + dAtA[i] = 0x38 + } + if m.Status != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x30 + } + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0x22 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x1a + } + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.Id != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *HostZoneUnbonding) 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 *HostZoneUnbonding) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HostZoneUnbonding) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.UserRedemptionRecords) > 0 { + for iNdEx := len(m.UserRedemptionRecords) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.UserRedemptionRecords[iNdEx]) + copy(dAtA[i:], m.UserRedemptionRecords[iNdEx]) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.UserRedemptionRecords[iNdEx]))) + i-- + dAtA[i] = 0x3a + } + } + if m.Status != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x30 + } + if m.UnbondingTime != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.UnbondingTime)) + i-- + dAtA[i] = 0x28 + } + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0x22 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x1a + } + { + size := m.NativeTokenAmount.Size() + i -= size + if _, err := m.NativeTokenAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.StTokenAmount.Size() + i -= size + if _, err := m.StTokenAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *EpochUnbondingRecord) 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 *EpochUnbondingRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EpochUnbondingRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.HostZoneUnbondings) > 0 { + for iNdEx := len(m.HostZoneUnbondings) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.HostZoneUnbondings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.EpochNumber != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.EpochNumber)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DepositRecordCount != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.DepositRecordCount)) + i-- + dAtA[i] = 0x40 + } + if len(m.DepositRecordList) > 0 { + for iNdEx := len(m.DepositRecordList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DepositRecordList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.EpochUnbondingRecordList) > 0 { + for iNdEx := len(m.EpochUnbondingRecordList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EpochUnbondingRecordList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.UserRedemptionRecordCount != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.UserRedemptionRecordCount)) + i-- + dAtA[i] = 0x20 + } + if len(m.UserRedemptionRecordList) > 0 { + for iNdEx := len(m.UserRedemptionRecordList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UserRedemptionRecordList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.PortId) > 0 { + i -= len(m.PortId) + copy(dAtA[i:], m.PortId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.PortId))) + i-- + dAtA[i] = 0x12 + } + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *UserRedemptionRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.Receiver) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.EpochNumber != 0 { + n += 1 + sovGenesis(uint64(m.EpochNumber)) + } + if m.ClaimIsPending { + n += 2 + } + return n +} + +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RecordsPacketData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packet != nil { + n += m.Packet.Size() + } + return n +} + +func (m *RecordsPacketData_NoData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoData != nil { + l = m.NoData.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} +func (m *NoData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *DepositRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovGenesis(uint64(m.Id)) + } + l = m.Amount.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.Status != 0 { + n += 1 + sovGenesis(uint64(m.Status)) + } + if m.DepositEpochNumber != 0 { + n += 1 + sovGenesis(uint64(m.DepositEpochNumber)) + } + if m.Source != 0 { + n += 1 + sovGenesis(uint64(m.Source)) + } + return n +} + +func (m *HostZoneUnbonding) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.StTokenAmount.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = m.NativeTokenAmount.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.UnbondingTime != 0 { + n += 1 + sovGenesis(uint64(m.UnbondingTime)) + } + if m.Status != 0 { + n += 1 + sovGenesis(uint64(m.Status)) + } + if len(m.UserRedemptionRecords) > 0 { + for _, s := range m.UserRedemptionRecords { + l = len(s) + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *EpochUnbondingRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EpochNumber != 0 { + n += 1 + sovGenesis(uint64(m.EpochNumber)) + } + if len(m.HostZoneUnbondings) > 0 { + for _, e := range m.HostZoneUnbondings { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = len(m.PortId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.UserRedemptionRecordList) > 0 { + for _, e := range m.UserRedemptionRecordList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if m.UserRedemptionRecordCount != 0 { + n += 1 + sovGenesis(uint64(m.UserRedemptionRecordCount)) + } + if len(m.EpochUnbondingRecordList) > 0 { + for _, e := range m.EpochUnbondingRecordList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.DepositRecordList) > 0 { + for _, e := range m.DepositRecordList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if m.DepositRecordCount != 0 { + n += 1 + sovGenesis(uint64(m.DepositRecordCount)) + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *UserRedemptionRecord) 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 ErrIntOverflowGenesis + } + 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: UserRedemptionRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserRedemptionRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Receiver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) + } + m.EpochNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimIsPending", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ClaimIsPending = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Params) 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 ErrIntOverflowGenesis + } + 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: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RecordsPacketData) 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 ErrIntOverflowGenesis + } + 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: RecordsPacketData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RecordsPacketData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NoData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NoData{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &RecordsPacketData_NoData{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NoData) 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 ErrIntOverflowGenesis + } + 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: NoData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NoData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DepositRecord) 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 ErrIntOverflowGenesis + } + 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: DepositRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DepositRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= DepositRecord_Status(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositEpochNumber", wireType) + } + m.DepositEpochNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DepositEpochNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + m.Source = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Source |= DepositRecord_Source(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HostZoneUnbonding) 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 ErrIntOverflowGenesis + } + 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: HostZoneUnbonding: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HostZoneUnbonding: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StTokenAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.StTokenAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NativeTokenAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NativeTokenAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnbondingTime", wireType) + } + m.UnbondingTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UnbondingTime |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= HostZoneUnbonding_Status(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecords", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserRedemptionRecords = append(m.UserRedemptionRecords, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EpochUnbondingRecord) 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 ErrIntOverflowGenesis + } + 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: EpochUnbondingRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EpochUnbondingRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) + } + m.EpochNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneUnbondings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneUnbondings = append(m.HostZoneUnbondings, &HostZoneUnbonding{}) + if err := m.HostZoneUnbondings[len(m.HostZoneUnbondings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GenesisState) 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 ErrIntOverflowGenesis + } + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PortId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecordList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserRedemptionRecordList = append(m.UserRedemptionRecordList, UserRedemptionRecord{}) + if err := m.UserRedemptionRecordList[len(m.UserRedemptionRecordList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecordCount", wireType) + } + m.UserRedemptionRecordCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UserRedemptionRecordCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochUnbondingRecordList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EpochUnbondingRecordList = append(m.EpochUnbondingRecordList, EpochUnbondingRecord{}) + if err := m.EpochUnbondingRecordList[len(m.EpochUnbondingRecordList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositRecordList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DepositRecordList = append(m.DepositRecordList, DepositRecord{}) + if err := m.DepositRecordList[len(m.DepositRecordList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositRecordCount", wireType) + } + m.DepositRecordCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DepositRecordCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/records/types/query.pb.go b/x/records/types/query.pb.go new file mode 100644 index 0000000000..f6373e54e7 --- /dev/null +++ b/x/records/types/query.pb.go @@ -0,0 +1,4091 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/records/query.proto + +package types + +import ( + context "context" + fmt "fmt" + query "github.com/cosmos/cosmos-sdk/types/query" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + 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 + +// QueryParamsRequest is request type for the Query/Params RPC method. +type QueryParamsRequest struct { +} + +func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } +func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryParamsRequest) ProtoMessage() {} +func (*QueryParamsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{0} +} +func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsRequest.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 *QueryParamsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsRequest.Merge(m, src) +} +func (m *QueryParamsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo + +// QueryParamsResponse is response type for the Query/Params RPC method. +type QueryParamsResponse struct { + // params holds all the parameters of this module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` +} + +func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } +func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryParamsResponse) ProtoMessage() {} +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{1} +} +func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsResponse.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 *QueryParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsResponse.Merge(m, src) +} +func (m *QueryParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo + +func (m *QueryParamsResponse) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +type QueryGetDepositRecordRequest struct { + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *QueryGetDepositRecordRequest) Reset() { *m = QueryGetDepositRecordRequest{} } +func (m *QueryGetDepositRecordRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetDepositRecordRequest) ProtoMessage() {} +func (*QueryGetDepositRecordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{2} +} +func (m *QueryGetDepositRecordRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetDepositRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetDepositRecordRequest.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 *QueryGetDepositRecordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetDepositRecordRequest.Merge(m, src) +} +func (m *QueryGetDepositRecordRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetDepositRecordRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetDepositRecordRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetDepositRecordRequest proto.InternalMessageInfo + +func (m *QueryGetDepositRecordRequest) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +type QueryGetDepositRecordResponse struct { + DepositRecord DepositRecord `protobuf:"bytes,1,opt,name=deposit_record,json=depositRecord,proto3" json:"deposit_record"` +} + +func (m *QueryGetDepositRecordResponse) Reset() { *m = QueryGetDepositRecordResponse{} } +func (m *QueryGetDepositRecordResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetDepositRecordResponse) ProtoMessage() {} +func (*QueryGetDepositRecordResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{3} +} +func (m *QueryGetDepositRecordResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetDepositRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetDepositRecordResponse.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 *QueryGetDepositRecordResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetDepositRecordResponse.Merge(m, src) +} +func (m *QueryGetDepositRecordResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetDepositRecordResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetDepositRecordResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetDepositRecordResponse proto.InternalMessageInfo + +func (m *QueryGetDepositRecordResponse) GetDepositRecord() DepositRecord { + if m != nil { + return m.DepositRecord + } + return DepositRecord{} +} + +type QueryAllDepositRecordRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllDepositRecordRequest) Reset() { *m = QueryAllDepositRecordRequest{} } +func (m *QueryAllDepositRecordRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllDepositRecordRequest) ProtoMessage() {} +func (*QueryAllDepositRecordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{4} +} +func (m *QueryAllDepositRecordRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllDepositRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllDepositRecordRequest.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 *QueryAllDepositRecordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllDepositRecordRequest.Merge(m, src) +} +func (m *QueryAllDepositRecordRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllDepositRecordRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllDepositRecordRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllDepositRecordRequest proto.InternalMessageInfo + +func (m *QueryAllDepositRecordRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllDepositRecordResponse struct { + DepositRecord []DepositRecord `protobuf:"bytes,1,rep,name=deposit_record,json=depositRecord,proto3" json:"deposit_record"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllDepositRecordResponse) Reset() { *m = QueryAllDepositRecordResponse{} } +func (m *QueryAllDepositRecordResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllDepositRecordResponse) ProtoMessage() {} +func (*QueryAllDepositRecordResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{5} +} +func (m *QueryAllDepositRecordResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllDepositRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllDepositRecordResponse.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 *QueryAllDepositRecordResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllDepositRecordResponse.Merge(m, src) +} +func (m *QueryAllDepositRecordResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllDepositRecordResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllDepositRecordResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllDepositRecordResponse proto.InternalMessageInfo + +func (m *QueryAllDepositRecordResponse) GetDepositRecord() []DepositRecord { + if m != nil { + return m.DepositRecord + } + return nil +} + +func (m *QueryAllDepositRecordResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryDepositRecordByHostRequest struct { + HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` +} + +func (m *QueryDepositRecordByHostRequest) Reset() { *m = QueryDepositRecordByHostRequest{} } +func (m *QueryDepositRecordByHostRequest) String() string { return proto.CompactTextString(m) } +func (*QueryDepositRecordByHostRequest) ProtoMessage() {} +func (*QueryDepositRecordByHostRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{6} +} +func (m *QueryDepositRecordByHostRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDepositRecordByHostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDepositRecordByHostRequest.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 *QueryDepositRecordByHostRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDepositRecordByHostRequest.Merge(m, src) +} +func (m *QueryDepositRecordByHostRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryDepositRecordByHostRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDepositRecordByHostRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDepositRecordByHostRequest proto.InternalMessageInfo + +func (m *QueryDepositRecordByHostRequest) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +type QueryDepositRecordByHostResponse struct { + DepositRecord []DepositRecord `protobuf:"bytes,1,rep,name=deposit_record,json=depositRecord,proto3" json:"deposit_record"` +} + +func (m *QueryDepositRecordByHostResponse) Reset() { *m = QueryDepositRecordByHostResponse{} } +func (m *QueryDepositRecordByHostResponse) String() string { return proto.CompactTextString(m) } +func (*QueryDepositRecordByHostResponse) ProtoMessage() {} +func (*QueryDepositRecordByHostResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{7} +} +func (m *QueryDepositRecordByHostResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDepositRecordByHostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDepositRecordByHostResponse.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 *QueryDepositRecordByHostResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDepositRecordByHostResponse.Merge(m, src) +} +func (m *QueryDepositRecordByHostResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryDepositRecordByHostResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDepositRecordByHostResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDepositRecordByHostResponse proto.InternalMessageInfo + +func (m *QueryDepositRecordByHostResponse) GetDepositRecord() []DepositRecord { + if m != nil { + return m.DepositRecord + } + return nil +} + +type QueryGetUserRedemptionRecordRequest struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *QueryGetUserRedemptionRecordRequest) Reset() { *m = QueryGetUserRedemptionRecordRequest{} } +func (m *QueryGetUserRedemptionRecordRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetUserRedemptionRecordRequest) ProtoMessage() {} +func (*QueryGetUserRedemptionRecordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{8} +} +func (m *QueryGetUserRedemptionRecordRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetUserRedemptionRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetUserRedemptionRecordRequest.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 *QueryGetUserRedemptionRecordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetUserRedemptionRecordRequest.Merge(m, src) +} +func (m *QueryGetUserRedemptionRecordRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetUserRedemptionRecordRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetUserRedemptionRecordRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetUserRedemptionRecordRequest proto.InternalMessageInfo + +func (m *QueryGetUserRedemptionRecordRequest) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type QueryGetUserRedemptionRecordResponse struct { + UserRedemptionRecord UserRedemptionRecord `protobuf:"bytes,1,opt,name=user_redemption_record,json=userRedemptionRecord,proto3" json:"user_redemption_record"` +} + +func (m *QueryGetUserRedemptionRecordResponse) Reset() { *m = QueryGetUserRedemptionRecordResponse{} } +func (m *QueryGetUserRedemptionRecordResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetUserRedemptionRecordResponse) ProtoMessage() {} +func (*QueryGetUserRedemptionRecordResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{9} +} +func (m *QueryGetUserRedemptionRecordResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetUserRedemptionRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetUserRedemptionRecordResponse.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 *QueryGetUserRedemptionRecordResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetUserRedemptionRecordResponse.Merge(m, src) +} +func (m *QueryGetUserRedemptionRecordResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetUserRedemptionRecordResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetUserRedemptionRecordResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetUserRedemptionRecordResponse proto.InternalMessageInfo + +func (m *QueryGetUserRedemptionRecordResponse) GetUserRedemptionRecord() UserRedemptionRecord { + if m != nil { + return m.UserRedemptionRecord + } + return UserRedemptionRecord{} +} + +type QueryAllUserRedemptionRecordRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllUserRedemptionRecordRequest) Reset() { *m = QueryAllUserRedemptionRecordRequest{} } +func (m *QueryAllUserRedemptionRecordRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllUserRedemptionRecordRequest) ProtoMessage() {} +func (*QueryAllUserRedemptionRecordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{10} +} +func (m *QueryAllUserRedemptionRecordRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllUserRedemptionRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllUserRedemptionRecordRequest.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 *QueryAllUserRedemptionRecordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllUserRedemptionRecordRequest.Merge(m, src) +} +func (m *QueryAllUserRedemptionRecordRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllUserRedemptionRecordRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllUserRedemptionRecordRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllUserRedemptionRecordRequest proto.InternalMessageInfo + +func (m *QueryAllUserRedemptionRecordRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllUserRedemptionRecordResponse struct { + UserRedemptionRecord []UserRedemptionRecord `protobuf:"bytes,1,rep,name=user_redemption_record,json=userRedemptionRecord,proto3" json:"user_redemption_record"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllUserRedemptionRecordResponse) Reset() { *m = QueryAllUserRedemptionRecordResponse{} } +func (m *QueryAllUserRedemptionRecordResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllUserRedemptionRecordResponse) ProtoMessage() {} +func (*QueryAllUserRedemptionRecordResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{11} +} +func (m *QueryAllUserRedemptionRecordResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllUserRedemptionRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllUserRedemptionRecordResponse.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 *QueryAllUserRedemptionRecordResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllUserRedemptionRecordResponse.Merge(m, src) +} +func (m *QueryAllUserRedemptionRecordResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllUserRedemptionRecordResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllUserRedemptionRecordResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllUserRedemptionRecordResponse proto.InternalMessageInfo + +func (m *QueryAllUserRedemptionRecordResponse) GetUserRedemptionRecord() []UserRedemptionRecord { + if m != nil { + return m.UserRedemptionRecord + } + return nil +} + +func (m *QueryAllUserRedemptionRecordResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +// Query UserRedemptionRecords by chainId / userId pair +type QueryAllUserRedemptionRecordForUserRequest struct { + ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + Day uint64 `protobuf:"varint,2,opt,name=day,proto3" json:"day,omitempty"` + Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` + Limit uint64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` + Pagination *query.PageRequest `protobuf:"bytes,5,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllUserRedemptionRecordForUserRequest) Reset() { + *m = QueryAllUserRedemptionRecordForUserRequest{} +} +func (m *QueryAllUserRedemptionRecordForUserRequest) String() string { + return proto.CompactTextString(m) +} +func (*QueryAllUserRedemptionRecordForUserRequest) ProtoMessage() {} +func (*QueryAllUserRedemptionRecordForUserRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{12} +} +func (m *QueryAllUserRedemptionRecordForUserRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllUserRedemptionRecordForUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllUserRedemptionRecordForUserRequest.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 *QueryAllUserRedemptionRecordForUserRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllUserRedemptionRecordForUserRequest.Merge(m, src) +} +func (m *QueryAllUserRedemptionRecordForUserRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllUserRedemptionRecordForUserRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllUserRedemptionRecordForUserRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllUserRedemptionRecordForUserRequest proto.InternalMessageInfo + +func (m *QueryAllUserRedemptionRecordForUserRequest) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *QueryAllUserRedemptionRecordForUserRequest) GetDay() uint64 { + if m != nil { + return m.Day + } + return 0 +} + +func (m *QueryAllUserRedemptionRecordForUserRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *QueryAllUserRedemptionRecordForUserRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *QueryAllUserRedemptionRecordForUserRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllUserRedemptionRecordForUserResponse struct { + UserRedemptionRecord []UserRedemptionRecord `protobuf:"bytes,1,rep,name=user_redemption_record,json=userRedemptionRecord,proto3" json:"user_redemption_record"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllUserRedemptionRecordForUserResponse) Reset() { + *m = QueryAllUserRedemptionRecordForUserResponse{} +} +func (m *QueryAllUserRedemptionRecordForUserResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryAllUserRedemptionRecordForUserResponse) ProtoMessage() {} +func (*QueryAllUserRedemptionRecordForUserResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{13} +} +func (m *QueryAllUserRedemptionRecordForUserResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllUserRedemptionRecordForUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllUserRedemptionRecordForUserResponse.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 *QueryAllUserRedemptionRecordForUserResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllUserRedemptionRecordForUserResponse.Merge(m, src) +} +func (m *QueryAllUserRedemptionRecordForUserResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllUserRedemptionRecordForUserResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllUserRedemptionRecordForUserResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllUserRedemptionRecordForUserResponse proto.InternalMessageInfo + +func (m *QueryAllUserRedemptionRecordForUserResponse) GetUserRedemptionRecord() []UserRedemptionRecord { + if m != nil { + return m.UserRedemptionRecord + } + return nil +} + +func (m *QueryAllUserRedemptionRecordForUserResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryGetEpochUnbondingRecordRequest struct { + EpochNumber uint64 `protobuf:"varint,1,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` +} + +func (m *QueryGetEpochUnbondingRecordRequest) Reset() { *m = QueryGetEpochUnbondingRecordRequest{} } +func (m *QueryGetEpochUnbondingRecordRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetEpochUnbondingRecordRequest) ProtoMessage() {} +func (*QueryGetEpochUnbondingRecordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{14} +} +func (m *QueryGetEpochUnbondingRecordRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetEpochUnbondingRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetEpochUnbondingRecordRequest.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 *QueryGetEpochUnbondingRecordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetEpochUnbondingRecordRequest.Merge(m, src) +} +func (m *QueryGetEpochUnbondingRecordRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetEpochUnbondingRecordRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetEpochUnbondingRecordRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetEpochUnbondingRecordRequest proto.InternalMessageInfo + +func (m *QueryGetEpochUnbondingRecordRequest) GetEpochNumber() uint64 { + if m != nil { + return m.EpochNumber + } + return 0 +} + +type QueryGetEpochUnbondingRecordResponse struct { + EpochUnbondingRecord EpochUnbondingRecord `protobuf:"bytes,1,opt,name=epoch_unbonding_record,json=epochUnbondingRecord,proto3" json:"epoch_unbonding_record"` +} + +func (m *QueryGetEpochUnbondingRecordResponse) Reset() { *m = QueryGetEpochUnbondingRecordResponse{} } +func (m *QueryGetEpochUnbondingRecordResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetEpochUnbondingRecordResponse) ProtoMessage() {} +func (*QueryGetEpochUnbondingRecordResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{15} +} +func (m *QueryGetEpochUnbondingRecordResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetEpochUnbondingRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetEpochUnbondingRecordResponse.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 *QueryGetEpochUnbondingRecordResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetEpochUnbondingRecordResponse.Merge(m, src) +} +func (m *QueryGetEpochUnbondingRecordResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetEpochUnbondingRecordResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetEpochUnbondingRecordResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetEpochUnbondingRecordResponse proto.InternalMessageInfo + +func (m *QueryGetEpochUnbondingRecordResponse) GetEpochUnbondingRecord() EpochUnbondingRecord { + if m != nil { + return m.EpochUnbondingRecord + } + return EpochUnbondingRecord{} +} + +type QueryAllEpochUnbondingRecordRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllEpochUnbondingRecordRequest) Reset() { *m = QueryAllEpochUnbondingRecordRequest{} } +func (m *QueryAllEpochUnbondingRecordRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllEpochUnbondingRecordRequest) ProtoMessage() {} +func (*QueryAllEpochUnbondingRecordRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{16} +} +func (m *QueryAllEpochUnbondingRecordRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllEpochUnbondingRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllEpochUnbondingRecordRequest.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 *QueryAllEpochUnbondingRecordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllEpochUnbondingRecordRequest.Merge(m, src) +} +func (m *QueryAllEpochUnbondingRecordRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllEpochUnbondingRecordRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllEpochUnbondingRecordRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllEpochUnbondingRecordRequest proto.InternalMessageInfo + +func (m *QueryAllEpochUnbondingRecordRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllEpochUnbondingRecordResponse struct { + EpochUnbondingRecord []EpochUnbondingRecord `protobuf:"bytes,1,rep,name=epoch_unbonding_record,json=epochUnbondingRecord,proto3" json:"epoch_unbonding_record"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllEpochUnbondingRecordResponse) Reset() { *m = QueryAllEpochUnbondingRecordResponse{} } +func (m *QueryAllEpochUnbondingRecordResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllEpochUnbondingRecordResponse) ProtoMessage() {} +func (*QueryAllEpochUnbondingRecordResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_25e7cc311be81f7b, []int{17} +} +func (m *QueryAllEpochUnbondingRecordResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllEpochUnbondingRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllEpochUnbondingRecordResponse.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 *QueryAllEpochUnbondingRecordResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllEpochUnbondingRecordResponse.Merge(m, src) +} +func (m *QueryAllEpochUnbondingRecordResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllEpochUnbondingRecordResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllEpochUnbondingRecordResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllEpochUnbondingRecordResponse proto.InternalMessageInfo + +func (m *QueryAllEpochUnbondingRecordResponse) GetEpochUnbondingRecord() []EpochUnbondingRecord { + if m != nil { + return m.EpochUnbondingRecord + } + return nil +} + +func (m *QueryAllEpochUnbondingRecordResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +func init() { + proto.RegisterType((*QueryParamsRequest)(nil), "stride.records.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "stride.records.QueryParamsResponse") + proto.RegisterType((*QueryGetDepositRecordRequest)(nil), "stride.records.QueryGetDepositRecordRequest") + proto.RegisterType((*QueryGetDepositRecordResponse)(nil), "stride.records.QueryGetDepositRecordResponse") + proto.RegisterType((*QueryAllDepositRecordRequest)(nil), "stride.records.QueryAllDepositRecordRequest") + proto.RegisterType((*QueryAllDepositRecordResponse)(nil), "stride.records.QueryAllDepositRecordResponse") + proto.RegisterType((*QueryDepositRecordByHostRequest)(nil), "stride.records.QueryDepositRecordByHostRequest") + proto.RegisterType((*QueryDepositRecordByHostResponse)(nil), "stride.records.QueryDepositRecordByHostResponse") + proto.RegisterType((*QueryGetUserRedemptionRecordRequest)(nil), "stride.records.QueryGetUserRedemptionRecordRequest") + proto.RegisterType((*QueryGetUserRedemptionRecordResponse)(nil), "stride.records.QueryGetUserRedemptionRecordResponse") + proto.RegisterType((*QueryAllUserRedemptionRecordRequest)(nil), "stride.records.QueryAllUserRedemptionRecordRequest") + proto.RegisterType((*QueryAllUserRedemptionRecordResponse)(nil), "stride.records.QueryAllUserRedemptionRecordResponse") + proto.RegisterType((*QueryAllUserRedemptionRecordForUserRequest)(nil), "stride.records.QueryAllUserRedemptionRecordForUserRequest") + proto.RegisterType((*QueryAllUserRedemptionRecordForUserResponse)(nil), "stride.records.QueryAllUserRedemptionRecordForUserResponse") + proto.RegisterType((*QueryGetEpochUnbondingRecordRequest)(nil), "stride.records.QueryGetEpochUnbondingRecordRequest") + proto.RegisterType((*QueryGetEpochUnbondingRecordResponse)(nil), "stride.records.QueryGetEpochUnbondingRecordResponse") + proto.RegisterType((*QueryAllEpochUnbondingRecordRequest)(nil), "stride.records.QueryAllEpochUnbondingRecordRequest") + proto.RegisterType((*QueryAllEpochUnbondingRecordResponse)(nil), "stride.records.QueryAllEpochUnbondingRecordResponse") +} + +func init() { proto.RegisterFile("stride/records/query.proto", fileDescriptor_25e7cc311be81f7b) } + +var fileDescriptor_25e7cc311be81f7b = []byte{ + // 1002 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0x4f, 0x6f, 0xdc, 0x44, + 0x14, 0xcf, 0x64, 0x93, 0x94, 0xbe, 0x36, 0x51, 0x35, 0x5d, 0x95, 0xb0, 0xb4, 0xdb, 0xd4, 0xa9, + 0xf8, 0x13, 0x52, 0x4f, 0x93, 0x06, 0x45, 0x94, 0x03, 0x4a, 0x0b, 0x69, 0x52, 0x50, 0x55, 0x8c, + 0x7a, 0xe9, 0x01, 0xd7, 0x5e, 0x4f, 0x1c, 0x0b, 0xaf, 0xc7, 0xf5, 0x78, 0x2b, 0x96, 0x65, 0x2f, + 0x9c, 0x38, 0x22, 0xf1, 0x11, 0x10, 0xdf, 0x80, 0x0b, 0x37, 0xc4, 0x29, 0x07, 0x0e, 0xad, 0xb8, + 0xf4, 0x84, 0x50, 0xc2, 0xe7, 0x40, 0xc8, 0x33, 0xb3, 0xc9, 0x7a, 0x33, 0x76, 0x76, 0xa3, 0xe5, + 0xd0, 0x9b, 0x3d, 0xef, 0xdf, 0xef, 0xf7, 0xe6, 0xbd, 0x79, 0x33, 0x50, 0xe3, 0x69, 0x12, 0x78, + 0x94, 0x24, 0xb4, 0xc1, 0x12, 0x8f, 0x93, 0xa7, 0x2d, 0x9a, 0xb4, 0xcd, 0x38, 0x61, 0x29, 0xc3, + 0x73, 0x52, 0x66, 0x2a, 0x59, 0xad, 0xea, 0x33, 0x9f, 0x09, 0x11, 0xc9, 0xbe, 0xa4, 0x56, 0xed, + 0xb2, 0xcf, 0x98, 0x1f, 0x52, 0xe2, 0xc4, 0x01, 0x71, 0xa2, 0x88, 0xa5, 0x4e, 0x1a, 0xb0, 0x88, + 0x2b, 0xe9, 0x52, 0x83, 0xf1, 0x26, 0xe3, 0xc4, 0x75, 0x38, 0x95, 0xce, 0xc9, 0xb3, 0x15, 0x97, + 0xa6, 0xce, 0x0a, 0x89, 0x1d, 0x3f, 0x88, 0x84, 0x72, 0xcf, 0xd3, 0x00, 0x16, 0x9f, 0x46, 0x94, + 0x07, 0xca, 0x93, 0x51, 0x05, 0xfc, 0x79, 0x66, 0xff, 0xd0, 0x49, 0x9c, 0x26, 0xb7, 0xe8, 0xd3, + 0x16, 0xe5, 0xa9, 0xf1, 0x29, 0x5c, 0xcc, 0xad, 0xf2, 0x98, 0x45, 0x9c, 0xe2, 0x35, 0x98, 0x89, + 0xc5, 0xca, 0x3c, 0x5a, 0x40, 0xef, 0x9c, 0x5b, 0xbd, 0x64, 0xe6, 0xb9, 0x98, 0x52, 0xff, 0xce, + 0xd4, 0xde, 0x5f, 0x57, 0x27, 0x2c, 0xa5, 0x6b, 0x98, 0x70, 0x59, 0x38, 0xbb, 0x47, 0xd3, 0x8f, + 0x69, 0xcc, 0x78, 0x90, 0x5a, 0x42, 0x5d, 0x05, 0xc3, 0x73, 0x30, 0x19, 0x78, 0xc2, 0xe3, 0x94, + 0x35, 0x19, 0x78, 0xc6, 0x57, 0x70, 0xa5, 0x40, 0x5f, 0xc1, 0xb8, 0x0f, 0x73, 0x9e, 0x14, 0xd8, + 0x32, 0xb0, 0x82, 0x73, 0x65, 0x10, 0x4e, 0xce, 0x5c, 0xa1, 0x9a, 0xf5, 0xfa, 0x17, 0x8d, 0x1d, + 0x05, 0x6e, 0x23, 0x0c, 0xb5, 0xe0, 0x36, 0x01, 0x8e, 0x32, 0xaa, 0xe2, 0xbc, 0x65, 0xca, 0xf4, + 0x9b, 0x59, 0xfa, 0x4d, 0xb9, 0xb7, 0x2a, 0xfd, 0xe6, 0x43, 0xc7, 0xa7, 0xca, 0xd6, 0xea, 0xb3, + 0x34, 0x7e, 0x41, 0x8a, 0xd5, 0xf1, 0x40, 0x25, 0xac, 0x2a, 0xa7, 0x63, 0x85, 0xef, 0xe5, 0x50, + 0x4f, 0x0a, 0xd4, 0x6f, 0x9f, 0x88, 0x5a, 0x02, 0xc9, 0xc1, 0xbe, 0x0b, 0x57, 0x05, 0xea, 0x7c, + 0xcc, 0xf6, 0x16, 0xe3, 0x69, 0x2f, 0x43, 0x0b, 0x70, 0x7e, 0x97, 0xf1, 0xd4, 0xfe, 0x86, 0x45, + 0xd4, 0x56, 0x1b, 0x79, 0xd6, 0x82, 0x6c, 0xed, 0x31, 0x8b, 0xe8, 0xb6, 0x67, 0x44, 0xb0, 0x50, + 0xec, 0x64, 0xfc, 0xec, 0x8d, 0xf7, 0x61, 0xb1, 0x57, 0x40, 0x8f, 0x38, 0x4d, 0x2c, 0xea, 0xd1, + 0x66, 0x9c, 0xd1, 0x29, 0xaa, 0xbb, 0xb3, 0xa2, 0xee, 0xbe, 0x47, 0x70, 0xbd, 0xdc, 0x4e, 0x61, + 0x7d, 0x02, 0x97, 0x5a, 0x9c, 0x26, 0x76, 0x72, 0xa8, 0x90, 0xaf, 0xc3, 0xeb, 0x83, 0x98, 0x75, + 0xde, 0x14, 0xf4, 0x6a, 0x4b, 0x23, 0x33, 0x9a, 0x8a, 0xc1, 0x46, 0x18, 0x96, 0x31, 0x18, 0x57, + 0x71, 0xbe, 0xe8, 0x31, 0x2f, 0x8c, 0x37, 0x04, 0xf3, 0xca, 0x38, 0x98, 0x8f, 0xaf, 0x72, 0x5f, + 0x20, 0x58, 0x2a, 0xe3, 0xb4, 0xc9, 0x12, 0xb9, 0x2c, 0x53, 0xf9, 0x06, 0xbc, 0xd6, 0xd8, 0x75, + 0x82, 0xe8, 0xa8, 0x82, 0xcf, 0x88, 0xff, 0x6d, 0x0f, 0x5f, 0x80, 0x8a, 0xe7, 0xb4, 0x05, 0x96, + 0x29, 0x2b, 0xfb, 0xc4, 0xf3, 0x70, 0xc6, 0xf1, 0xbc, 0x84, 0x72, 0x3e, 0x5f, 0x91, 0xba, 0xea, + 0x17, 0x57, 0x61, 0x3a, 0x0c, 0x9a, 0x41, 0x3a, 0x3f, 0x25, 0xb4, 0xe5, 0xcf, 0xc0, 0x3e, 0x4d, + 0x9f, 0x7a, 0x9f, 0x5e, 0x22, 0x78, 0x6f, 0x28, 0x4e, 0xaf, 0xde, 0x76, 0x6d, 0x1d, 0xf5, 0xec, + 0x27, 0x31, 0x6b, 0xec, 0x3e, 0x8a, 0x5c, 0x16, 0x79, 0x41, 0xe4, 0xe7, 0x2b, 0xfe, 0x1a, 0x9c, + 0xa7, 0x99, 0xd8, 0x8e, 0x5a, 0x4d, 0x97, 0x26, 0x6a, 0x6a, 0x9c, 0x13, 0x6b, 0x0f, 0xc4, 0x52, + 0xae, 0x8d, 0xf5, 0xae, 0x8e, 0xb2, 0x23, 0x7d, 0xb5, 0x7a, 0x0a, 0x27, 0xb4, 0xb1, 0xce, 0x5b, + 0x2f, 0x3b, 0x54, 0x23, 0xeb, 0x6f, 0xe3, 0x32, 0x52, 0xff, 0x47, 0x1b, 0x9f, 0x9a, 0x79, 0x65, + 0x1c, 0xcc, 0xc7, 0x56, 0x17, 0xab, 0xbf, 0xce, 0xc2, 0xb4, 0xe0, 0x84, 0xbf, 0x85, 0x19, 0x79, + 0xbd, 0xc0, 0xc6, 0x20, 0xbc, 0xe3, 0x37, 0x98, 0xda, 0x62, 0xa9, 0x8e, 0x0c, 0x64, 0xbc, 0xfb, + 0xdd, 0x9f, 0xff, 0xfc, 0x38, 0xb9, 0x88, 0xaf, 0x91, 0x2f, 0x84, 0xf2, 0x67, 0x8e, 0xcb, 0xc9, + 0xc0, 0x75, 0x49, 0x5e, 0x62, 0xf0, 0xef, 0x08, 0xaa, 0xba, 0xee, 0xc0, 0xb7, 0xb4, 0x81, 0xca, + 0x47, 0x4f, 0x6d, 0x6d, 0x34, 0x23, 0x05, 0xf7, 0x23, 0x01, 0xf7, 0x03, 0xbc, 0xae, 0xe0, 0xde, + 0xd0, 0xe1, 0xd5, 0x37, 0x3c, 0xe9, 0x04, 0x5e, 0x17, 0xff, 0x86, 0xe0, 0x75, 0x5d, 0x84, 0x8d, + 0x30, 0x2c, 0xe0, 0x51, 0x3e, 0x80, 0x0a, 0x78, 0x9c, 0x30, 0x45, 0x8c, 0xdb, 0x82, 0xc7, 0x1a, + 0x5e, 0x1d, 0x9d, 0x07, 0xfe, 0x17, 0xc1, 0x9b, 0x25, 0x47, 0x1f, 0xbe, 0x3d, 0x0a, 0xa2, 0xfc, + 0x0c, 0xa8, 0x7d, 0x78, 0x2a, 0x5b, 0x45, 0x6a, 0x47, 0x90, 0x7a, 0x82, 0xbf, 0x1c, 0x9d, 0x94, + 0xbd, 0xc3, 0x12, 0x3b, 0x13, 0x91, 0x4e, 0x6f, 0x06, 0x75, 0x49, 0xc7, 0x73, 0xda, 0x5d, 0xd2, + 0x51, 0x83, 0xa5, 0x4b, 0x3a, 0x62, 0x94, 0x74, 0xf1, 0x1f, 0x08, 0xaa, 0xba, 0x76, 0x2c, 0x2e, + 0xc4, 0x92, 0xa3, 0xa7, 0xb8, 0x10, 0xcb, 0xce, 0x0f, 0x63, 0x5b, 0x70, 0xbd, 0x8b, 0x37, 0xca, + 0xb8, 0xea, 0x4f, 0x18, 0xd2, 0xe9, 0x3f, 0xbf, 0x65, 0x49, 0xea, 0x62, 0x95, 0x96, 0xe4, 0xe8, + 0x8c, 0x4e, 0x38, 0x11, 0x87, 0x2b, 0x49, 0x3d, 0x23, 0xfc, 0x33, 0x82, 0xd9, 0xdc, 0xad, 0x14, + 0x2f, 0x17, 0x65, 0x55, 0xf7, 0xc4, 0xa8, 0xdd, 0x18, 0x52, 0x5b, 0x41, 0x5d, 0x17, 0x50, 0x57, + 0x30, 0x29, 0x83, 0x9a, 0xbf, 0x4b, 0xcb, 0xee, 0xff, 0x09, 0xc1, 0x85, 0x9c, 0xcb, 0x2c, 0xc7, + 0xcb, 0x45, 0xe9, 0x1a, 0x01, 0x6a, 0xd1, 0x93, 0xc6, 0x58, 0x15, 0x50, 0x97, 0xf1, 0xd2, 0xf0, + 0x50, 0xf1, 0x1e, 0x82, 0x8b, 0x9a, 0x87, 0x02, 0x26, 0xda, 0xd0, 0xc5, 0xef, 0x92, 0xda, 0xcd, + 0xe1, 0x0d, 0x14, 0xdc, 0x07, 0x02, 0xee, 0x16, 0xde, 0x1c, 0x1e, 0xae, 0xed, 0xb6, 0xed, 0xc3, + 0xd7, 0x0f, 0xe9, 0xf4, 0x3f, 0x84, 0xba, 0x77, 0xee, 0xef, 0xed, 0xd7, 0xd1, 0xf3, 0xfd, 0x3a, + 0xfa, 0x7b, 0xbf, 0x8e, 0x7e, 0x38, 0xa8, 0x4f, 0x3c, 0x3f, 0xa8, 0x4f, 0xbc, 0x3c, 0xa8, 0x4f, + 0x3c, 0xbe, 0xe9, 0x07, 0xe9, 0x6e, 0xcb, 0x35, 0x1b, 0xac, 0xa9, 0x8b, 0xf5, 0x6c, 0x9d, 0x7c, + 0x7d, 0x18, 0x30, 0x6d, 0xc7, 0x94, 0xbb, 0x33, 0xe2, 0xb9, 0x7e, 0xeb, 0xbf, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x84, 0xa9, 0x27, 0xc5, 0x5a, 0x10, 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 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // Parameters queries the parameters of the module. + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + // Queries a UserRedemptionRecord by id. + UserRedemptionRecord(ctx context.Context, in *QueryGetUserRedemptionRecordRequest, opts ...grpc.CallOption) (*QueryGetUserRedemptionRecordResponse, error) + // Queries a list of UserRedemptionRecord items. + UserRedemptionRecordAll(ctx context.Context, in *QueryAllUserRedemptionRecordRequest, opts ...grpc.CallOption) (*QueryAllUserRedemptionRecordResponse, error) + // Queries a list of UserRedemptionRecord items by chainId / userId pair. + UserRedemptionRecordForUser(ctx context.Context, in *QueryAllUserRedemptionRecordForUserRequest, opts ...grpc.CallOption) (*QueryAllUserRedemptionRecordForUserResponse, error) + // Queries a EpochUnbondingRecord by id. + EpochUnbondingRecord(ctx context.Context, in *QueryGetEpochUnbondingRecordRequest, opts ...grpc.CallOption) (*QueryGetEpochUnbondingRecordResponse, error) + // Queries a list of EpochUnbondingRecord items. + EpochUnbondingRecordAll(ctx context.Context, in *QueryAllEpochUnbondingRecordRequest, opts ...grpc.CallOption) (*QueryAllEpochUnbondingRecordResponse, error) + // Queries a DepositRecord by id. + DepositRecord(ctx context.Context, in *QueryGetDepositRecordRequest, opts ...grpc.CallOption) (*QueryGetDepositRecordResponse, error) + // Queries a list of DepositRecord items. + DepositRecordAll(ctx context.Context, in *QueryAllDepositRecordRequest, opts ...grpc.CallOption) (*QueryAllDepositRecordResponse, error) + // Queries a list of DepositRecord items for a given host zone + DepositRecordByHost(ctx context.Context, in *QueryDepositRecordByHostRequest, opts ...grpc.CallOption) (*QueryDepositRecordByHostResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/stride.records.Query/Params", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) UserRedemptionRecord(ctx context.Context, in *QueryGetUserRedemptionRecordRequest, opts ...grpc.CallOption) (*QueryGetUserRedemptionRecordResponse, error) { + out := new(QueryGetUserRedemptionRecordResponse) + err := c.cc.Invoke(ctx, "/stride.records.Query/UserRedemptionRecord", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) UserRedemptionRecordAll(ctx context.Context, in *QueryAllUserRedemptionRecordRequest, opts ...grpc.CallOption) (*QueryAllUserRedemptionRecordResponse, error) { + out := new(QueryAllUserRedemptionRecordResponse) + err := c.cc.Invoke(ctx, "/stride.records.Query/UserRedemptionRecordAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) UserRedemptionRecordForUser(ctx context.Context, in *QueryAllUserRedemptionRecordForUserRequest, opts ...grpc.CallOption) (*QueryAllUserRedemptionRecordForUserResponse, error) { + out := new(QueryAllUserRedemptionRecordForUserResponse) + err := c.cc.Invoke(ctx, "/stride.records.Query/UserRedemptionRecordForUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) EpochUnbondingRecord(ctx context.Context, in *QueryGetEpochUnbondingRecordRequest, opts ...grpc.CallOption) (*QueryGetEpochUnbondingRecordResponse, error) { + out := new(QueryGetEpochUnbondingRecordResponse) + err := c.cc.Invoke(ctx, "/stride.records.Query/EpochUnbondingRecord", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) EpochUnbondingRecordAll(ctx context.Context, in *QueryAllEpochUnbondingRecordRequest, opts ...grpc.CallOption) (*QueryAllEpochUnbondingRecordResponse, error) { + out := new(QueryAllEpochUnbondingRecordResponse) + err := c.cc.Invoke(ctx, "/stride.records.Query/EpochUnbondingRecordAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) DepositRecord(ctx context.Context, in *QueryGetDepositRecordRequest, opts ...grpc.CallOption) (*QueryGetDepositRecordResponse, error) { + out := new(QueryGetDepositRecordResponse) + err := c.cc.Invoke(ctx, "/stride.records.Query/DepositRecord", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) DepositRecordAll(ctx context.Context, in *QueryAllDepositRecordRequest, opts ...grpc.CallOption) (*QueryAllDepositRecordResponse, error) { + out := new(QueryAllDepositRecordResponse) + err := c.cc.Invoke(ctx, "/stride.records.Query/DepositRecordAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) DepositRecordByHost(ctx context.Context, in *QueryDepositRecordByHostRequest, opts ...grpc.CallOption) (*QueryDepositRecordByHostResponse, error) { + out := new(QueryDepositRecordByHostResponse) + err := c.cc.Invoke(ctx, "/stride.records.Query/DepositRecordByHost", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // Parameters queries the parameters of the module. + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + // Queries a UserRedemptionRecord by id. + UserRedemptionRecord(context.Context, *QueryGetUserRedemptionRecordRequest) (*QueryGetUserRedemptionRecordResponse, error) + // Queries a list of UserRedemptionRecord items. + UserRedemptionRecordAll(context.Context, *QueryAllUserRedemptionRecordRequest) (*QueryAllUserRedemptionRecordResponse, error) + // Queries a list of UserRedemptionRecord items by chainId / userId pair. + UserRedemptionRecordForUser(context.Context, *QueryAllUserRedemptionRecordForUserRequest) (*QueryAllUserRedemptionRecordForUserResponse, error) + // Queries a EpochUnbondingRecord by id. + EpochUnbondingRecord(context.Context, *QueryGetEpochUnbondingRecordRequest) (*QueryGetEpochUnbondingRecordResponse, error) + // Queries a list of EpochUnbondingRecord items. + EpochUnbondingRecordAll(context.Context, *QueryAllEpochUnbondingRecordRequest) (*QueryAllEpochUnbondingRecordResponse, error) + // Queries a DepositRecord by id. + DepositRecord(context.Context, *QueryGetDepositRecordRequest) (*QueryGetDepositRecordResponse, error) + // Queries a list of DepositRecord items. + DepositRecordAll(context.Context, *QueryAllDepositRecordRequest) (*QueryAllDepositRecordResponse, error) + // Queries a list of DepositRecord items for a given host zone + DepositRecordByHost(context.Context, *QueryDepositRecordByHostRequest) (*QueryDepositRecordByHostResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (*UnimplementedQueryServer) UserRedemptionRecord(ctx context.Context, req *QueryGetUserRedemptionRecordRequest) (*QueryGetUserRedemptionRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserRedemptionRecord not implemented") +} +func (*UnimplementedQueryServer) UserRedemptionRecordAll(ctx context.Context, req *QueryAllUserRedemptionRecordRequest) (*QueryAllUserRedemptionRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserRedemptionRecordAll not implemented") +} +func (*UnimplementedQueryServer) UserRedemptionRecordForUser(ctx context.Context, req *QueryAllUserRedemptionRecordForUserRequest) (*QueryAllUserRedemptionRecordForUserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserRedemptionRecordForUser not implemented") +} +func (*UnimplementedQueryServer) EpochUnbondingRecord(ctx context.Context, req *QueryGetEpochUnbondingRecordRequest) (*QueryGetEpochUnbondingRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochUnbondingRecord not implemented") +} +func (*UnimplementedQueryServer) EpochUnbondingRecordAll(ctx context.Context, req *QueryAllEpochUnbondingRecordRequest) (*QueryAllEpochUnbondingRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochUnbondingRecordAll not implemented") +} +func (*UnimplementedQueryServer) DepositRecord(ctx context.Context, req *QueryGetDepositRecordRequest) (*QueryGetDepositRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DepositRecord not implemented") +} +func (*UnimplementedQueryServer) DepositRecordAll(ctx context.Context, req *QueryAllDepositRecordRequest) (*QueryAllDepositRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DepositRecordAll not implemented") +} +func (*UnimplementedQueryServer) DepositRecordByHost(ctx context.Context, req *QueryDepositRecordByHostRequest) (*QueryDepositRecordByHostResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DepositRecordByHost not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.records.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_UserRedemptionRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetUserRedemptionRecordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).UserRedemptionRecord(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.records.Query/UserRedemptionRecord", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).UserRedemptionRecord(ctx, req.(*QueryGetUserRedemptionRecordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_UserRedemptionRecordAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllUserRedemptionRecordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).UserRedemptionRecordAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.records.Query/UserRedemptionRecordAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).UserRedemptionRecordAll(ctx, req.(*QueryAllUserRedemptionRecordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_UserRedemptionRecordForUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllUserRedemptionRecordForUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).UserRedemptionRecordForUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.records.Query/UserRedemptionRecordForUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).UserRedemptionRecordForUser(ctx, req.(*QueryAllUserRedemptionRecordForUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_EpochUnbondingRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetEpochUnbondingRecordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EpochUnbondingRecord(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.records.Query/EpochUnbondingRecord", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EpochUnbondingRecord(ctx, req.(*QueryGetEpochUnbondingRecordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_EpochUnbondingRecordAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllEpochUnbondingRecordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EpochUnbondingRecordAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.records.Query/EpochUnbondingRecordAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EpochUnbondingRecordAll(ctx, req.(*QueryAllEpochUnbondingRecordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_DepositRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetDepositRecordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).DepositRecord(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.records.Query/DepositRecord", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).DepositRecord(ctx, req.(*QueryGetDepositRecordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_DepositRecordAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllDepositRecordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).DepositRecordAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.records.Query/DepositRecordAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).DepositRecordAll(ctx, req.(*QueryAllDepositRecordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_DepositRecordByHost_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDepositRecordByHostRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).DepositRecordByHost(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.records.Query/DepositRecordByHost", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).DepositRecordByHost(ctx, req.(*QueryDepositRecordByHostRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "stride.records.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "UserRedemptionRecord", + Handler: _Query_UserRedemptionRecord_Handler, + }, + { + MethodName: "UserRedemptionRecordAll", + Handler: _Query_UserRedemptionRecordAll_Handler, + }, + { + MethodName: "UserRedemptionRecordForUser", + Handler: _Query_UserRedemptionRecordForUser_Handler, + }, + { + MethodName: "EpochUnbondingRecord", + Handler: _Query_EpochUnbondingRecord_Handler, + }, + { + MethodName: "EpochUnbondingRecordAll", + Handler: _Query_EpochUnbondingRecordAll_Handler, + }, + { + MethodName: "DepositRecord", + Handler: _Query_DepositRecord_Handler, + }, + { + MethodName: "DepositRecordAll", + Handler: _Query_DepositRecordAll_Handler, + }, + { + MethodName: "DepositRecordByHost", + Handler: _Query_DepositRecordByHost_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "stride/records/query.proto", +} + +func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryParamsResponse) 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 *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryGetDepositRecordRequest) 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 *QueryGetDepositRecordRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetDepositRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Id != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryGetDepositRecordResponse) 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 *QueryGetDepositRecordResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetDepositRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.DepositRecord.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryAllDepositRecordRequest) 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 *QueryAllDepositRecordRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllDepositRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllDepositRecordResponse) 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 *QueryAllDepositRecordResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllDepositRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.DepositRecord) > 0 { + for iNdEx := len(m.DepositRecord) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DepositRecord[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryDepositRecordByHostRequest) 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 *QueryDepositRecordByHostRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDepositRecordByHostRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryDepositRecordByHostResponse) 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 *QueryDepositRecordByHostResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryDepositRecordByHostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DepositRecord) > 0 { + for iNdEx := len(m.DepositRecord) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DepositRecord[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryGetUserRedemptionRecordRequest) 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 *QueryGetUserRedemptionRecordRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetUserRedemptionRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryGetUserRedemptionRecordResponse) 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 *QueryGetUserRedemptionRecordResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetUserRedemptionRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.UserRedemptionRecord.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryAllUserRedemptionRecordRequest) 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 *QueryAllUserRedemptionRecordRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllUserRedemptionRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllUserRedemptionRecordResponse) 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 *QueryAllUserRedemptionRecordResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllUserRedemptionRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.UserRedemptionRecord) > 0 { + for iNdEx := len(m.UserRedemptionRecord) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UserRedemptionRecord[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryAllUserRedemptionRecordForUserRequest) 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 *QueryAllUserRedemptionRecordForUserRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllUserRedemptionRecordForUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.Limit != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x20 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x1a + } + if m.Day != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Day)) + i-- + dAtA[i] = 0x10 + } + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllUserRedemptionRecordForUserResponse) 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 *QueryAllUserRedemptionRecordForUserResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllUserRedemptionRecordForUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.UserRedemptionRecord) > 0 { + for iNdEx := len(m.UserRedemptionRecord) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UserRedemptionRecord[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryGetEpochUnbondingRecordRequest) 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 *QueryGetEpochUnbondingRecordRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetEpochUnbondingRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EpochNumber != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.EpochNumber)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryGetEpochUnbondingRecordResponse) 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 *QueryGetEpochUnbondingRecordResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetEpochUnbondingRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.EpochUnbondingRecord.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryAllEpochUnbondingRecordRequest) 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 *QueryAllEpochUnbondingRecordRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllEpochUnbondingRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllEpochUnbondingRecordResponse) 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 *QueryAllEpochUnbondingRecordResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllEpochUnbondingRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.EpochUnbondingRecord) > 0 { + for iNdEx := len(m.EpochUnbondingRecord) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EpochUnbondingRecord[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryGetDepositRecordRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovQuery(uint64(m.Id)) + } + return n +} + +func (m *QueryGetDepositRecordResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.DepositRecord.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAllDepositRecordRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllDepositRecordResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.DepositRecord) > 0 { + for _, e := range m.DepositRecord { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryDepositRecordByHostRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryDepositRecordByHostResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.DepositRecord) > 0 { + for _, e := range m.DepositRecord { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryGetUserRedemptionRecordRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetUserRedemptionRecordResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.UserRedemptionRecord.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAllUserRedemptionRecordRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllUserRedemptionRecordResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.UserRedemptionRecord) > 0 { + for _, e := range m.UserRedemptionRecord { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllUserRedemptionRecordForUserRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Day != 0 { + n += 1 + sovQuery(uint64(m.Day)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.Limit != 0 { + n += 1 + sovQuery(uint64(m.Limit)) + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllUserRedemptionRecordForUserResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.UserRedemptionRecord) > 0 { + for _, e := range m.UserRedemptionRecord { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetEpochUnbondingRecordRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EpochNumber != 0 { + n += 1 + sovQuery(uint64(m.EpochNumber)) + } + return n +} + +func (m *QueryGetEpochUnbondingRecordResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.EpochUnbondingRecord.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAllEpochUnbondingRecordRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllEpochUnbondingRecordResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.EpochUnbondingRecord) > 0 { + for _, e := range m.EpochUnbondingRecord { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryParamsRequest) 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 ErrIntOverflowQuery + } + 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: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsResponse) 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 ErrIntOverflowQuery + } + 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: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetDepositRecordRequest) 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 ErrIntOverflowQuery + } + 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: QueryGetDepositRecordRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetDepositRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetDepositRecordResponse) 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 ErrIntOverflowQuery + } + 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: QueryGetDepositRecordResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetDepositRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositRecord", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.DepositRecord.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllDepositRecordRequest) 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 ErrIntOverflowQuery + } + 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: QueryAllDepositRecordRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllDepositRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllDepositRecordResponse) 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 ErrIntOverflowQuery + } + 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: QueryAllDepositRecordResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllDepositRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositRecord", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DepositRecord = append(m.DepositRecord, DepositRecord{}) + if err := m.DepositRecord[len(m.DepositRecord)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryDepositRecordByHostRequest) 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 ErrIntOverflowQuery + } + 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: QueryDepositRecordByHostRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDepositRecordByHostRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryDepositRecordByHostResponse) 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 ErrIntOverflowQuery + } + 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: QueryDepositRecordByHostResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryDepositRecordByHostResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositRecord", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DepositRecord = append(m.DepositRecord, DepositRecord{}) + if err := m.DepositRecord[len(m.DepositRecord)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetUserRedemptionRecordRequest) 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 ErrIntOverflowQuery + } + 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: QueryGetUserRedemptionRecordRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetUserRedemptionRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetUserRedemptionRecordResponse) 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 ErrIntOverflowQuery + } + 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: QueryGetUserRedemptionRecordResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetUserRedemptionRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecord", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.UserRedemptionRecord.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllUserRedemptionRecordRequest) 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 ErrIntOverflowQuery + } + 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: QueryAllUserRedemptionRecordRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllUserRedemptionRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllUserRedemptionRecordResponse) 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 ErrIntOverflowQuery + } + 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: QueryAllUserRedemptionRecordResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllUserRedemptionRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecord", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserRedemptionRecord = append(m.UserRedemptionRecord, UserRedemptionRecord{}) + if err := m.UserRedemptionRecord[len(m.UserRedemptionRecord)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllUserRedemptionRecordForUserRequest) 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 ErrIntOverflowQuery + } + 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: QueryAllUserRedemptionRecordForUserRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllUserRedemptionRecordForUserRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Day", wireType) + } + m.Day = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Day |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllUserRedemptionRecordForUserResponse) 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 ErrIntOverflowQuery + } + 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: QueryAllUserRedemptionRecordForUserResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllUserRedemptionRecordForUserResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecord", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserRedemptionRecord = append(m.UserRedemptionRecord, UserRedemptionRecord{}) + if err := m.UserRedemptionRecord[len(m.UserRedemptionRecord)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetEpochUnbondingRecordRequest) 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 ErrIntOverflowQuery + } + 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: QueryGetEpochUnbondingRecordRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetEpochUnbondingRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) + } + m.EpochNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetEpochUnbondingRecordResponse) 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 ErrIntOverflowQuery + } + 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: QueryGetEpochUnbondingRecordResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetEpochUnbondingRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochUnbondingRecord", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.EpochUnbondingRecord.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllEpochUnbondingRecordRequest) 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 ErrIntOverflowQuery + } + 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: QueryAllEpochUnbondingRecordRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllEpochUnbondingRecordRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllEpochUnbondingRecordResponse) 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 ErrIntOverflowQuery + } + 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: QueryAllEpochUnbondingRecordResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllEpochUnbondingRecordResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochUnbondingRecord", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EpochUnbondingRecord = append(m.EpochUnbondingRecord, EpochUnbondingRecord{}) + if err := m.EpochUnbondingRecord[len(m.EpochUnbondingRecord)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/stakeibc/types/address_unbonding.pb.go b/x/stakeibc/types/address_unbonding.pb.go new file mode 100644 index 0000000000..63af03d72d --- /dev/null +++ b/x/stakeibc/types/address_unbonding.pb.go @@ -0,0 +1,570 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/stakeibc/address_unbonding.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +type AddressUnbonding struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` + UnbondingEstimatedTime string `protobuf:"bytes,3,opt,name=unbonding_estimated_time,json=unbondingEstimatedTime,proto3" json:"unbonding_estimated_time,omitempty"` + Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` + Denom string `protobuf:"bytes,5,opt,name=denom,proto3" json:"denom,omitempty"` + ClaimIsPending bool `protobuf:"varint,8,opt,name=claim_is_pending,json=claimIsPending,proto3" json:"claim_is_pending,omitempty"` +} + +func (m *AddressUnbonding) Reset() { *m = AddressUnbonding{} } +func (m *AddressUnbonding) String() string { return proto.CompactTextString(m) } +func (*AddressUnbonding) ProtoMessage() {} +func (*AddressUnbonding) Descriptor() ([]byte, []int) { + return fileDescriptor_6491082275bcb473, []int{0} +} +func (m *AddressUnbonding) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AddressUnbonding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AddressUnbonding.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 *AddressUnbonding) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddressUnbonding.Merge(m, src) +} +func (m *AddressUnbonding) XXX_Size() int { + return m.Size() +} +func (m *AddressUnbonding) XXX_DiscardUnknown() { + xxx_messageInfo_AddressUnbonding.DiscardUnknown(m) +} + +var xxx_messageInfo_AddressUnbonding proto.InternalMessageInfo + +func (m *AddressUnbonding) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *AddressUnbonding) GetReceiver() string { + if m != nil { + return m.Receiver + } + return "" +} + +func (m *AddressUnbonding) GetUnbondingEstimatedTime() string { + if m != nil { + return m.UnbondingEstimatedTime + } + return "" +} + +func (m *AddressUnbonding) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *AddressUnbonding) GetClaimIsPending() bool { + if m != nil { + return m.ClaimIsPending + } + return false +} + +func init() { + proto.RegisterType((*AddressUnbonding)(nil), "stride.stakeibc.AddressUnbonding") +} + +func init() { + proto.RegisterFile("stride/stakeibc/address_unbonding.proto", fileDescriptor_6491082275bcb473) +} + +var fileDescriptor_6491082275bcb473 = []byte{ + // 321 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x51, 0x3d, 0x4f, 0x02, 0x41, + 0x10, 0xbd, 0x43, 0x41, 0xdc, 0x42, 0xc9, 0x86, 0x98, 0x0d, 0xc5, 0x41, 0x2c, 0x94, 0x86, 0xdb, + 0x18, 0x0b, 0x6d, 0x25, 0xd1, 0x84, 0x68, 0x61, 0x50, 0x1b, 0x9b, 0xcb, 0xdd, 0xed, 0xe4, 0xdc, + 0xe0, 0xde, 0x92, 0x9b, 0x85, 0xe8, 0x5f, 0xb0, 0xf2, 0x67, 0x51, 0x52, 0x1a, 0x0b, 0x62, 0xe0, + 0x8f, 0x18, 0xf6, 0x3e, 0xb4, 0xda, 0x7d, 0xf3, 0xde, 0xbc, 0x79, 0x99, 0x21, 0xa7, 0x68, 0x32, + 0x29, 0x80, 0xa3, 0x09, 0x27, 0x20, 0xa3, 0x98, 0x87, 0x42, 0x64, 0x80, 0x18, 0xcc, 0xd2, 0x48, + 0xa7, 0x42, 0xa6, 0x89, 0x3f, 0xcd, 0xb4, 0xd1, 0xf4, 0x30, 0x17, 0xfa, 0xa5, 0xb0, 0xd3, 0x4e, + 0x74, 0xa2, 0x2d, 0xc7, 0xb7, 0xbf, 0x5c, 0x76, 0xfc, 0x51, 0x23, 0xad, 0xab, 0xdc, 0xe2, 0xa9, + 0x74, 0xa0, 0x8c, 0xec, 0x15, 0xb6, 0xcc, 0xed, 0xb9, 0xfd, 0xfd, 0x71, 0x09, 0x69, 0x87, 0x34, + 0x33, 0x88, 0x41, 0xce, 0x21, 0x63, 0x35, 0x4b, 0x55, 0x98, 0x5e, 0x12, 0x56, 0x85, 0x08, 0x00, + 0x8d, 0x54, 0xa1, 0x01, 0x11, 0x18, 0xa9, 0x80, 0xed, 0x58, 0xed, 0x51, 0xc5, 0x5f, 0x97, 0xf4, + 0xa3, 0x54, 0x40, 0x6f, 0x48, 0x23, 0x54, 0x7a, 0x96, 0x1a, 0xb6, 0xbb, 0xd5, 0x0d, 0xfd, 0xc5, + 0xaa, 0xeb, 0x7c, 0xaf, 0xba, 0x27, 0x89, 0x34, 0x2f, 0xb3, 0xc8, 0x8f, 0xb5, 0xe2, 0xb1, 0x46, + 0xa5, 0xb1, 0x78, 0x06, 0x28, 0x26, 0xdc, 0xbc, 0x4f, 0x01, 0xfd, 0x51, 0x6a, 0xc6, 0x45, 0x37, + 0x6d, 0x93, 0xba, 0x80, 0x54, 0x2b, 0x56, 0xb7, 0xe3, 0x72, 0x40, 0xfb, 0xa4, 0x15, 0xbf, 0x86, + 0x52, 0x05, 0x12, 0x83, 0x29, 0xd8, 0xf1, 0xac, 0xd9, 0x73, 0xfb, 0xcd, 0xf1, 0x81, 0xad, 0x8f, + 0xf0, 0x3e, 0xaf, 0x0e, 0x6f, 0x17, 0x6b, 0xcf, 0x5d, 0xae, 0x3d, 0xf7, 0x67, 0xed, 0xb9, 0x9f, + 0x1b, 0xcf, 0x59, 0x6e, 0x3c, 0xe7, 0x6b, 0xe3, 0x39, 0xcf, 0x67, 0xff, 0x92, 0x3c, 0xd8, 0xc5, + 0x0e, 0xee, 0xc2, 0x08, 0x79, 0x71, 0x8d, 0xf9, 0x05, 0x7f, 0xfb, 0x3b, 0x89, 0x0d, 0x16, 0x35, + 0xec, 0x82, 0xcf, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xff, 0xb2, 0x3b, 0x2a, 0xb2, 0x01, 0x00, + 0x00, +} + +func (m *AddressUnbonding) 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 *AddressUnbonding) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddressUnbonding) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ClaimIsPending { + i-- + if m.ClaimIsPending { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintAddressUnbonding(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x2a + } + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintAddressUnbonding(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.UnbondingEstimatedTime) > 0 { + i -= len(m.UnbondingEstimatedTime) + copy(dAtA[i:], m.UnbondingEstimatedTime) + i = encodeVarintAddressUnbonding(dAtA, i, uint64(len(m.UnbondingEstimatedTime))) + i-- + dAtA[i] = 0x1a + } + if len(m.Receiver) > 0 { + i -= len(m.Receiver) + copy(dAtA[i:], m.Receiver) + i = encodeVarintAddressUnbonding(dAtA, i, uint64(len(m.Receiver))) + i-- + dAtA[i] = 0x12 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintAddressUnbonding(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAddressUnbonding(dAtA []byte, offset int, v uint64) int { + offset -= sovAddressUnbonding(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *AddressUnbonding) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovAddressUnbonding(uint64(l)) + } + l = len(m.Receiver) + if l > 0 { + n += 1 + l + sovAddressUnbonding(uint64(l)) + } + l = len(m.UnbondingEstimatedTime) + if l > 0 { + n += 1 + l + sovAddressUnbonding(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovAddressUnbonding(uint64(l)) + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovAddressUnbonding(uint64(l)) + } + if m.ClaimIsPending { + n += 2 + } + return n +} + +func sovAddressUnbonding(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAddressUnbonding(x uint64) (n int) { + return sovAddressUnbonding(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *AddressUnbonding) 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 ErrIntOverflowAddressUnbonding + } + 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: AddressUnbonding: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddressUnbonding: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressUnbonding + } + 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 ErrInvalidLengthAddressUnbonding + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAddressUnbonding + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressUnbonding + } + 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 ErrInvalidLengthAddressUnbonding + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAddressUnbonding + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Receiver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnbondingEstimatedTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressUnbonding + } + 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 ErrInvalidLengthAddressUnbonding + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAddressUnbonding + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UnbondingEstimatedTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressUnbonding + } + 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 ErrInvalidLengthAddressUnbonding + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAddressUnbonding + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressUnbonding + } + 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 ErrInvalidLengthAddressUnbonding + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAddressUnbonding + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimIsPending", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressUnbonding + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ClaimIsPending = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipAddressUnbonding(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAddressUnbonding + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAddressUnbonding(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, ErrIntOverflowAddressUnbonding + } + 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, ErrIntOverflowAddressUnbonding + } + 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, ErrIntOverflowAddressUnbonding + } + 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, ErrInvalidLengthAddressUnbonding + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAddressUnbonding + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAddressUnbonding + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAddressUnbonding = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAddressUnbonding = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAddressUnbonding = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/stakeibc/types/callbacks.pb.go b/x/stakeibc/types/callbacks.pb.go new file mode 100644 index 0000000000..8fdf50af0d --- /dev/null +++ b/x/stakeibc/types/callbacks.pb.go @@ -0,0 +1,2264 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/stakeibc/callbacks.proto + +package types + +import ( + fmt "fmt" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +// ---------------------- Delegation Callbacks ---------------------- // +type SplitDelegation struct { + Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` + Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` +} + +func (m *SplitDelegation) Reset() { *m = SplitDelegation{} } +func (m *SplitDelegation) String() string { return proto.CompactTextString(m) } +func (*SplitDelegation) ProtoMessage() {} +func (*SplitDelegation) Descriptor() ([]byte, []int) { + return fileDescriptor_f41c99b09b96a5ac, []int{0} +} +func (m *SplitDelegation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SplitDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SplitDelegation.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 *SplitDelegation) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitDelegation.Merge(m, src) +} +func (m *SplitDelegation) XXX_Size() int { + return m.Size() +} +func (m *SplitDelegation) XXX_DiscardUnknown() { + xxx_messageInfo_SplitDelegation.DiscardUnknown(m) +} + +var xxx_messageInfo_SplitDelegation proto.InternalMessageInfo + +func (m *SplitDelegation) GetValidator() string { + if m != nil { + return m.Validator + } + return "" +} + +type DelegateCallback struct { + HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` + DepositRecordId uint64 `protobuf:"varint,2,opt,name=deposit_record_id,json=depositRecordId,proto3" json:"deposit_record_id,omitempty"` + SplitDelegations []*SplitDelegation `protobuf:"bytes,3,rep,name=split_delegations,json=splitDelegations,proto3" json:"split_delegations,omitempty"` +} + +func (m *DelegateCallback) Reset() { *m = DelegateCallback{} } +func (m *DelegateCallback) String() string { return proto.CompactTextString(m) } +func (*DelegateCallback) ProtoMessage() {} +func (*DelegateCallback) Descriptor() ([]byte, []int) { + return fileDescriptor_f41c99b09b96a5ac, []int{1} +} +func (m *DelegateCallback) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DelegateCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DelegateCallback.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 *DelegateCallback) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelegateCallback.Merge(m, src) +} +func (m *DelegateCallback) XXX_Size() int { + return m.Size() +} +func (m *DelegateCallback) XXX_DiscardUnknown() { + xxx_messageInfo_DelegateCallback.DiscardUnknown(m) +} + +var xxx_messageInfo_DelegateCallback proto.InternalMessageInfo + +func (m *DelegateCallback) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +func (m *DelegateCallback) GetDepositRecordId() uint64 { + if m != nil { + return m.DepositRecordId + } + return 0 +} + +func (m *DelegateCallback) GetSplitDelegations() []*SplitDelegation { + if m != nil { + return m.SplitDelegations + } + return nil +} + +type ClaimCallback struct { + UserRedemptionRecordId string `protobuf:"bytes,1,opt,name=user_redemption_record_id,json=userRedemptionRecordId,proto3" json:"user_redemption_record_id,omitempty"` + ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + EpochNumber uint64 `protobuf:"varint,3,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` +} + +func (m *ClaimCallback) Reset() { *m = ClaimCallback{} } +func (m *ClaimCallback) String() string { return proto.CompactTextString(m) } +func (*ClaimCallback) ProtoMessage() {} +func (*ClaimCallback) Descriptor() ([]byte, []int) { + return fileDescriptor_f41c99b09b96a5ac, []int{2} +} +func (m *ClaimCallback) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClaimCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ClaimCallback.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 *ClaimCallback) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClaimCallback.Merge(m, src) +} +func (m *ClaimCallback) XXX_Size() int { + return m.Size() +} +func (m *ClaimCallback) XXX_DiscardUnknown() { + xxx_messageInfo_ClaimCallback.DiscardUnknown(m) +} + +var xxx_messageInfo_ClaimCallback proto.InternalMessageInfo + +func (m *ClaimCallback) GetUserRedemptionRecordId() string { + if m != nil { + return m.UserRedemptionRecordId + } + return "" +} + +func (m *ClaimCallback) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *ClaimCallback) GetEpochNumber() uint64 { + if m != nil { + return m.EpochNumber + } + return 0 +} + +// ---------------------- Reinvest Callback ---------------------- // +type ReinvestCallback struct { + ReinvestAmount types.Coin `protobuf:"bytes,1,opt,name=reinvest_amount,json=reinvestAmount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"reinvest_amount"` + HostZoneId string `protobuf:"bytes,3,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` +} + +func (m *ReinvestCallback) Reset() { *m = ReinvestCallback{} } +func (m *ReinvestCallback) String() string { return proto.CompactTextString(m) } +func (*ReinvestCallback) ProtoMessage() {} +func (*ReinvestCallback) Descriptor() ([]byte, []int) { + return fileDescriptor_f41c99b09b96a5ac, []int{3} +} +func (m *ReinvestCallback) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReinvestCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReinvestCallback.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 *ReinvestCallback) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReinvestCallback.Merge(m, src) +} +func (m *ReinvestCallback) XXX_Size() int { + return m.Size() +} +func (m *ReinvestCallback) XXX_DiscardUnknown() { + xxx_messageInfo_ReinvestCallback.DiscardUnknown(m) +} + +var xxx_messageInfo_ReinvestCallback proto.InternalMessageInfo + +func (m *ReinvestCallback) GetReinvestAmount() types.Coin { + if m != nil { + return m.ReinvestAmount + } + return types.Coin{} +} + +func (m *ReinvestCallback) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +// ---------------------- Undelegation Callbacks ---------------------- // +type UndelegateCallback struct { + HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` + SplitDelegations []*SplitDelegation `protobuf:"bytes,2,rep,name=split_delegations,json=splitDelegations,proto3" json:"split_delegations,omitempty"` + EpochUnbondingRecordIds []uint64 `protobuf:"varint,3,rep,packed,name=epoch_unbonding_record_ids,json=epochUnbondingRecordIds,proto3" json:"epoch_unbonding_record_ids,omitempty"` +} + +func (m *UndelegateCallback) Reset() { *m = UndelegateCallback{} } +func (m *UndelegateCallback) String() string { return proto.CompactTextString(m) } +func (*UndelegateCallback) ProtoMessage() {} +func (*UndelegateCallback) Descriptor() ([]byte, []int) { + return fileDescriptor_f41c99b09b96a5ac, []int{4} +} +func (m *UndelegateCallback) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UndelegateCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UndelegateCallback.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 *UndelegateCallback) XXX_Merge(src proto.Message) { + xxx_messageInfo_UndelegateCallback.Merge(m, src) +} +func (m *UndelegateCallback) XXX_Size() int { + return m.Size() +} +func (m *UndelegateCallback) XXX_DiscardUnknown() { + xxx_messageInfo_UndelegateCallback.DiscardUnknown(m) +} + +var xxx_messageInfo_UndelegateCallback proto.InternalMessageInfo + +func (m *UndelegateCallback) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +func (m *UndelegateCallback) GetSplitDelegations() []*SplitDelegation { + if m != nil { + return m.SplitDelegations + } + return nil +} + +func (m *UndelegateCallback) GetEpochUnbondingRecordIds() []uint64 { + if m != nil { + return m.EpochUnbondingRecordIds + } + return nil +} + +// ---------------------- Redemption Callbacks ---------------------- // +type RedemptionCallback struct { + HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` + EpochUnbondingRecordIds []uint64 `protobuf:"varint,2,rep,packed,name=epoch_unbonding_record_ids,json=epochUnbondingRecordIds,proto3" json:"epoch_unbonding_record_ids,omitempty"` +} + +func (m *RedemptionCallback) Reset() { *m = RedemptionCallback{} } +func (m *RedemptionCallback) String() string { return proto.CompactTextString(m) } +func (*RedemptionCallback) ProtoMessage() {} +func (*RedemptionCallback) Descriptor() ([]byte, []int) { + return fileDescriptor_f41c99b09b96a5ac, []int{5} +} +func (m *RedemptionCallback) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RedemptionCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RedemptionCallback.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 *RedemptionCallback) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedemptionCallback.Merge(m, src) +} +func (m *RedemptionCallback) XXX_Size() int { + return m.Size() +} +func (m *RedemptionCallback) XXX_DiscardUnknown() { + xxx_messageInfo_RedemptionCallback.DiscardUnknown(m) +} + +var xxx_messageInfo_RedemptionCallback proto.InternalMessageInfo + +func (m *RedemptionCallback) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +func (m *RedemptionCallback) GetEpochUnbondingRecordIds() []uint64 { + if m != nil { + return m.EpochUnbondingRecordIds + } + return nil +} + +type Rebalancing struct { + SrcValidator string `protobuf:"bytes,1,opt,name=src_validator,json=srcValidator,proto3" json:"src_validator,omitempty"` + DstValidator string `protobuf:"bytes,2,opt,name=dst_validator,json=dstValidator,proto3" json:"dst_validator,omitempty"` + Amt github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amt,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amt"` +} + +func (m *Rebalancing) Reset() { *m = Rebalancing{} } +func (m *Rebalancing) String() string { return proto.CompactTextString(m) } +func (*Rebalancing) ProtoMessage() {} +func (*Rebalancing) Descriptor() ([]byte, []int) { + return fileDescriptor_f41c99b09b96a5ac, []int{6} +} +func (m *Rebalancing) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rebalancing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rebalancing.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 *Rebalancing) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rebalancing.Merge(m, src) +} +func (m *Rebalancing) XXX_Size() int { + return m.Size() +} +func (m *Rebalancing) XXX_DiscardUnknown() { + xxx_messageInfo_Rebalancing.DiscardUnknown(m) +} + +var xxx_messageInfo_Rebalancing proto.InternalMessageInfo + +func (m *Rebalancing) GetSrcValidator() string { + if m != nil { + return m.SrcValidator + } + return "" +} + +func (m *Rebalancing) GetDstValidator() string { + if m != nil { + return m.DstValidator + } + return "" +} + +type RebalanceCallback struct { + HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` + Rebalancings []*Rebalancing `protobuf:"bytes,2,rep,name=rebalancings,proto3" json:"rebalancings,omitempty"` +} + +func (m *RebalanceCallback) Reset() { *m = RebalanceCallback{} } +func (m *RebalanceCallback) String() string { return proto.CompactTextString(m) } +func (*RebalanceCallback) ProtoMessage() {} +func (*RebalanceCallback) Descriptor() ([]byte, []int) { + return fileDescriptor_f41c99b09b96a5ac, []int{7} +} +func (m *RebalanceCallback) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RebalanceCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RebalanceCallback.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 *RebalanceCallback) XXX_Merge(src proto.Message) { + xxx_messageInfo_RebalanceCallback.Merge(m, src) +} +func (m *RebalanceCallback) XXX_Size() int { + return m.Size() +} +func (m *RebalanceCallback) XXX_DiscardUnknown() { + xxx_messageInfo_RebalanceCallback.DiscardUnknown(m) +} + +var xxx_messageInfo_RebalanceCallback proto.InternalMessageInfo + +func (m *RebalanceCallback) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +func (m *RebalanceCallback) GetRebalancings() []*Rebalancing { + if m != nil { + return m.Rebalancings + } + return nil +} + +func init() { + proto.RegisterType((*SplitDelegation)(nil), "stride.stakeibc.SplitDelegation") + proto.RegisterType((*DelegateCallback)(nil), "stride.stakeibc.DelegateCallback") + proto.RegisterType((*ClaimCallback)(nil), "stride.stakeibc.ClaimCallback") + proto.RegisterType((*ReinvestCallback)(nil), "stride.stakeibc.ReinvestCallback") + proto.RegisterType((*UndelegateCallback)(nil), "stride.stakeibc.UndelegateCallback") + proto.RegisterType((*RedemptionCallback)(nil), "stride.stakeibc.RedemptionCallback") + proto.RegisterType((*Rebalancing)(nil), "stride.stakeibc.Rebalancing") + proto.RegisterType((*RebalanceCallback)(nil), "stride.stakeibc.RebalanceCallback") +} + +func init() { proto.RegisterFile("stride/stakeibc/callbacks.proto", fileDescriptor_f41c99b09b96a5ac) } + +var fileDescriptor_f41c99b09b96a5ac = []byte{ + // 630 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x4f, 0x4f, 0x13, 0x41, + 0x18, 0xc6, 0xbb, 0x94, 0xa0, 0xbc, 0x2d, 0x16, 0x36, 0x46, 0x0b, 0x21, 0xdb, 0xba, 0x24, 0x4a, + 0x4c, 0xd8, 0x0d, 0x78, 0x30, 0xc6, 0x0b, 0x82, 0x31, 0x69, 0xfc, 0x73, 0x58, 0x82, 0x07, 0x2e, + 0x9b, 0xd9, 0x9d, 0x49, 0x3b, 0x61, 0x77, 0xa6, 0xd9, 0x77, 0x5a, 0xd4, 0x4f, 0xe0, 0xd1, 0xab, + 0x1f, 0x41, 0x2f, 0x7e, 0x07, 0x4f, 0x1c, 0x39, 0x1a, 0x0f, 0x68, 0xe8, 0x17, 0x31, 0xb3, 0x7f, + 0xba, 0xa5, 0x18, 0x62, 0x3d, 0xb5, 0x7d, 0xdf, 0x67, 0xfa, 0x3e, 0xcf, 0xfc, 0x66, 0x06, 0x5a, + 0xa8, 0x12, 0x4e, 0x99, 0x8b, 0x8a, 0x1c, 0x33, 0x1e, 0x84, 0x6e, 0x48, 0xa2, 0x28, 0x20, 0xe1, + 0x31, 0x3a, 0xfd, 0x44, 0x2a, 0x69, 0x36, 0x32, 0x81, 0x53, 0x08, 0xd6, 0x6e, 0x77, 0x65, 0x57, + 0xa6, 0x3d, 0x57, 0x7f, 0xcb, 0x64, 0x6b, 0x56, 0x28, 0x31, 0x96, 0xe8, 0x06, 0x04, 0x99, 0x3b, + 0xdc, 0x0e, 0x98, 0x22, 0xdb, 0x6e, 0x28, 0xb9, 0xc8, 0xfa, 0xf6, 0x09, 0x34, 0x0e, 0xfa, 0x11, + 0x57, 0xcf, 0x59, 0xc4, 0xba, 0x44, 0x71, 0x29, 0xcc, 0x75, 0x58, 0x1c, 0x92, 0x88, 0x53, 0xa2, + 0x64, 0xd2, 0x34, 0xda, 0xc6, 0xe6, 0xa2, 0x57, 0x16, 0xcc, 0x17, 0xb0, 0x40, 0x62, 0x39, 0x10, + 0xaa, 0x39, 0xa7, 0x5b, 0x7b, 0xce, 0xe9, 0x79, 0xab, 0xf2, 0xf3, 0xbc, 0x75, 0xbf, 0xcb, 0x55, + 0x6f, 0x10, 0x38, 0xa1, 0x8c, 0xdd, 0x7c, 0x66, 0xf6, 0xb1, 0x85, 0xf4, 0xd8, 0x55, 0xef, 0xfb, + 0x0c, 0x9d, 0x8e, 0x50, 0x5e, 0xbe, 0xda, 0xfe, 0x66, 0xc0, 0x72, 0x3e, 0x94, 0xed, 0xe7, 0xd9, + 0xcc, 0x36, 0xd4, 0x7b, 0x12, 0x95, 0xff, 0x41, 0x0a, 0xe6, 0x73, 0x9a, 0x4f, 0x07, 0x5d, 0x3b, + 0x92, 0x82, 0x75, 0xa8, 0xf9, 0x10, 0x56, 0x28, 0xeb, 0x4b, 0xe4, 0xca, 0x4f, 0x58, 0x28, 0x13, + 0xaa, 0x65, 0xda, 0xc9, 0xbc, 0xd7, 0xc8, 0x1b, 0x5e, 0x5a, 0xef, 0x50, 0xf3, 0x35, 0xac, 0xa0, + 0xce, 0xe6, 0xd3, 0x71, 0x38, 0x6c, 0x56, 0xdb, 0xd5, 0xcd, 0xda, 0x4e, 0xdb, 0x99, 0xda, 0x3e, + 0x67, 0x6a, 0x17, 0xbc, 0x65, 0xbc, 0x5c, 0x40, 0xfb, 0xa3, 0x01, 0x4b, 0xfb, 0x11, 0xe1, 0xf1, + 0xd8, 0xee, 0x13, 0x58, 0x1d, 0x20, 0x4b, 0xfc, 0x84, 0x51, 0x16, 0xf7, 0xb5, 0x6a, 0xc2, 0x54, + 0xe6, 0xfd, 0x8e, 0x16, 0x78, 0xe3, 0xfe, 0xd8, 0xdb, 0x2a, 0xdc, 0x0c, 0x7b, 0x84, 0x8b, 0xc2, + 0xfe, 0xa2, 0x77, 0x23, 0xfd, 0xdd, 0xa1, 0xe6, 0x3d, 0xa8, 0xb3, 0xbe, 0x0c, 0x7b, 0xbe, 0x18, + 0xc4, 0x01, 0x4b, 0x9a, 0xd5, 0x34, 0x5d, 0x2d, 0xad, 0xbd, 0x49, 0x4b, 0xf6, 0x17, 0x03, 0x96, + 0x3d, 0xc6, 0xc5, 0x90, 0xa1, 0x1a, 0xbb, 0x41, 0x68, 0x24, 0x79, 0xcd, 0xcf, 0x11, 0x69, 0x0f, + 0xb5, 0x9d, 0x55, 0x27, 0x23, 0xe1, 0xe8, 0x43, 0xe0, 0xe4, 0x87, 0xc0, 0xd9, 0x97, 0x5c, 0xec, + 0xb9, 0x9a, 0xde, 0xd7, 0x5f, 0xad, 0x07, 0xff, 0x40, 0x4f, 0x2f, 0xf0, 0x6e, 0x15, 0x23, 0x9e, + 0xa5, 0x13, 0xae, 0x10, 0xab, 0x4e, 0x13, 0xb3, 0xbf, 0x1b, 0x60, 0x1e, 0x0a, 0x3a, 0x3b, 0xea, + 0xbf, 0xe2, 0x9b, 0xfb, 0x5f, 0x7c, 0xe6, 0x53, 0x58, 0xcb, 0xb6, 0x75, 0x20, 0x02, 0x29, 0x28, + 0x17, 0xdd, 0x12, 0x56, 0x76, 0x2c, 0xe6, 0xbd, 0xbb, 0xa9, 0xe2, 0xb0, 0x10, 0x14, 0xb4, 0xd0, + 0x46, 0x30, 0x4b, 0x88, 0x33, 0x64, 0xb8, 0x7e, 0xe8, 0xdc, 0xf5, 0x43, 0x3f, 0x1b, 0x50, 0xf3, + 0x58, 0x40, 0x22, 0x22, 0x42, 0x2e, 0xba, 0xe6, 0x06, 0x2c, 0x61, 0x12, 0xfa, 0xd3, 0x97, 0xb3, + 0x8e, 0x49, 0xf8, 0x76, 0x7c, 0x3f, 0x37, 0x60, 0x89, 0xa2, 0x9a, 0x10, 0x65, 0xa7, 0xab, 0x4e, + 0x51, 0x95, 0xa2, 0x5d, 0xa8, 0x92, 0x58, 0x65, 0xb0, 0x66, 0xbe, 0xc1, 0x7a, 0xa9, 0x7d, 0x02, + 0x2b, 0x85, 0xb5, 0x59, 0x98, 0xee, 0x42, 0x3d, 0x29, 0x13, 0x15, 0x38, 0xd7, 0xaf, 0xe0, 0x9c, + 0x88, 0xed, 0x5d, 0x5a, 0xb1, 0xf7, 0xf2, 0xf4, 0xc2, 0x32, 0xce, 0x2e, 0x2c, 0xe3, 0xf7, 0x85, + 0x65, 0x7c, 0x1a, 0x59, 0x95, 0xb3, 0x91, 0x55, 0xf9, 0x31, 0xb2, 0x2a, 0x47, 0xdb, 0x13, 0xfe, + 0x0f, 0xd2, 0xff, 0xdb, 0x7a, 0x45, 0x02, 0x74, 0xf3, 0x97, 0x74, 0xf8, 0xd8, 0x7d, 0x57, 0x3e, + 0xa7, 0x69, 0x9c, 0x60, 0x21, 0x7d, 0x04, 0x1f, 0xfd, 0x09, 0x00, 0x00, 0xff, 0xff, 0x4b, 0x95, + 0xd1, 0x91, 0x6e, 0x05, 0x00, 0x00, +} + +func (m *SplitDelegation) 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 *SplitDelegation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SplitDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCallbacks(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Validator) > 0 { + i -= len(m.Validator) + copy(dAtA[i:], m.Validator) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.Validator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DelegateCallback) 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 *DelegateCallback) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegateCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SplitDelegations) > 0 { + for iNdEx := len(m.SplitDelegations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SplitDelegations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCallbacks(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.DepositRecordId != 0 { + i = encodeVarintCallbacks(dAtA, i, uint64(m.DepositRecordId)) + i-- + dAtA[i] = 0x10 + } + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ClaimCallback) 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 *ClaimCallback) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClaimCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EpochNumber != 0 { + i = encodeVarintCallbacks(dAtA, i, uint64(m.EpochNumber)) + i-- + dAtA[i] = 0x18 + } + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0x12 + } + if len(m.UserRedemptionRecordId) > 0 { + i -= len(m.UserRedemptionRecordId) + copy(dAtA[i:], m.UserRedemptionRecordId) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.UserRedemptionRecordId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ReinvestCallback) 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 *ReinvestCallback) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReinvestCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0x1a + } + { + size, err := m.ReinvestAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCallbacks(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *UndelegateCallback) 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 *UndelegateCallback) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UndelegateCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EpochUnbondingRecordIds) > 0 { + dAtA3 := make([]byte, len(m.EpochUnbondingRecordIds)*10) + var j2 int + for _, num := range m.EpochUnbondingRecordIds { + for num >= 1<<7 { + dAtA3[j2] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j2++ + } + dAtA3[j2] = uint8(num) + j2++ + } + i -= j2 + copy(dAtA[i:], dAtA3[:j2]) + i = encodeVarintCallbacks(dAtA, i, uint64(j2)) + i-- + dAtA[i] = 0x1a + } + if len(m.SplitDelegations) > 0 { + for iNdEx := len(m.SplitDelegations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SplitDelegations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCallbacks(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RedemptionCallback) 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 *RedemptionCallback) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RedemptionCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EpochUnbondingRecordIds) > 0 { + dAtA5 := make([]byte, len(m.EpochUnbondingRecordIds)*10) + var j4 int + for _, num := range m.EpochUnbondingRecordIds { + for num >= 1<<7 { + dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j4++ + } + dAtA5[j4] = uint8(num) + j4++ + } + i -= j4 + copy(dAtA[i:], dAtA5[:j4]) + i = encodeVarintCallbacks(dAtA, i, uint64(j4)) + i-- + dAtA[i] = 0x12 + } + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rebalancing) 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 *Rebalancing) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rebalancing) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Amt.Size() + i -= size + if _, err := m.Amt.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCallbacks(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.DstValidator) > 0 { + i -= len(m.DstValidator) + copy(dAtA[i:], m.DstValidator) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.DstValidator))) + i-- + dAtA[i] = 0x12 + } + if len(m.SrcValidator) > 0 { + i -= len(m.SrcValidator) + copy(dAtA[i:], m.SrcValidator) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.SrcValidator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RebalanceCallback) 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 *RebalanceCallback) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RebalanceCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Rebalancings) > 0 { + for iNdEx := len(m.Rebalancings) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Rebalancings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCallbacks(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintCallbacks(dAtA []byte, offset int, v uint64) int { + offset -= sovCallbacks(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SplitDelegation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Validator) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovCallbacks(uint64(l)) + return n +} + +func (m *DelegateCallback) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + if m.DepositRecordId != 0 { + n += 1 + sovCallbacks(uint64(m.DepositRecordId)) + } + if len(m.SplitDelegations) > 0 { + for _, e := range m.SplitDelegations { + l = e.Size() + n += 1 + l + sovCallbacks(uint64(l)) + } + } + return n +} + +func (m *ClaimCallback) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.UserRedemptionRecordId) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + if m.EpochNumber != 0 { + n += 1 + sovCallbacks(uint64(m.EpochNumber)) + } + return n +} + +func (m *ReinvestCallback) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ReinvestAmount.Size() + n += 1 + l + sovCallbacks(uint64(l)) + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + return n +} + +func (m *UndelegateCallback) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + if len(m.SplitDelegations) > 0 { + for _, e := range m.SplitDelegations { + l = e.Size() + n += 1 + l + sovCallbacks(uint64(l)) + } + } + if len(m.EpochUnbondingRecordIds) > 0 { + l = 0 + for _, e := range m.EpochUnbondingRecordIds { + l += sovCallbacks(uint64(e)) + } + n += 1 + sovCallbacks(uint64(l)) + l + } + return n +} + +func (m *RedemptionCallback) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + if len(m.EpochUnbondingRecordIds) > 0 { + l = 0 + for _, e := range m.EpochUnbondingRecordIds { + l += sovCallbacks(uint64(e)) + } + n += 1 + sovCallbacks(uint64(l)) + l + } + return n +} + +func (m *Rebalancing) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SrcValidator) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + l = len(m.DstValidator) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + l = m.Amt.Size() + n += 1 + l + sovCallbacks(uint64(l)) + return n +} + +func (m *RebalanceCallback) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + if len(m.Rebalancings) > 0 { + for _, e := range m.Rebalancings { + l = e.Size() + n += 1 + l + sovCallbacks(uint64(l)) + } + } + return n +} + +func sovCallbacks(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozCallbacks(x uint64) (n int) { + return sovCallbacks(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SplitDelegation) 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 ErrIntOverflowCallbacks + } + 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: SplitDelegation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SplitDelegation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Validator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DelegateCallback) 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 ErrIntOverflowCallbacks + } + 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: DelegateCallback: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DelegateCallback: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositRecordId", wireType) + } + m.DepositRecordId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DepositRecordId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SplitDelegations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCallbacks + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SplitDelegations = append(m.SplitDelegations, &SplitDelegation{}) + if err := m.SplitDelegations[len(m.SplitDelegations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClaimCallback) 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 ErrIntOverflowCallbacks + } + 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: ClaimCallback: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClaimCallback: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecordId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserRedemptionRecordId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) + } + m.EpochNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReinvestCallback) 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 ErrIntOverflowCallbacks + } + 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: ReinvestCallback: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReinvestCallback: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReinvestAmount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCallbacks + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ReinvestAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UndelegateCallback) 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 ErrIntOverflowCallbacks + } + 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: UndelegateCallback: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UndelegateCallback: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SplitDelegations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCallbacks + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SplitDelegations = append(m.SplitDelegations, &SplitDelegation{}) + if err := m.SplitDelegations[len(m.SplitDelegations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EpochUnbondingRecordIds = append(m.EpochUnbondingRecordIds, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthCallbacks + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.EpochUnbondingRecordIds) == 0 { + m.EpochUnbondingRecordIds = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EpochUnbondingRecordIds = append(m.EpochUnbondingRecordIds, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field EpochUnbondingRecordIds", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RedemptionCallback) 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 ErrIntOverflowCallbacks + } + 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: RedemptionCallback: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RedemptionCallback: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EpochUnbondingRecordIds = append(m.EpochUnbondingRecordIds, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthCallbacks + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.EpochUnbondingRecordIds) == 0 { + m.EpochUnbondingRecordIds = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EpochUnbondingRecordIds = append(m.EpochUnbondingRecordIds, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field EpochUnbondingRecordIds", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rebalancing) 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 ErrIntOverflowCallbacks + } + 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: Rebalancing: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Rebalancing: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SrcValidator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SrcValidator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DstValidator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DstValidator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amt", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RebalanceCallback) 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 ErrIntOverflowCallbacks + } + 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: RebalanceCallback: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RebalanceCallback: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rebalancings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCallbacks + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Rebalancings = append(m.Rebalancings, &Rebalancing{}) + if err := m.Rebalancings[len(m.Rebalancings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipCallbacks(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, ErrIntOverflowCallbacks + } + 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, ErrIntOverflowCallbacks + } + 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, ErrIntOverflowCallbacks + } + 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, ErrInvalidLengthCallbacks + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupCallbacks + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthCallbacks + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthCallbacks = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCallbacks = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCallbacks = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/stakeibc/types/epoch_tracker.pb.go b/x/stakeibc/types/epoch_tracker.pb.go new file mode 100644 index 0000000000..1df08876e6 --- /dev/null +++ b/x/stakeibc/types/epoch_tracker.pb.go @@ -0,0 +1,427 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/stakeibc/epoch_tracker.proto + +package types + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + 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 + +type EpochTracker struct { + EpochIdentifier string `protobuf:"bytes,1,opt,name=epoch_identifier,json=epochIdentifier,proto3" json:"epoch_identifier,omitempty"` + EpochNumber uint64 `protobuf:"varint,2,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` + NextEpochStartTime uint64 `protobuf:"varint,3,opt,name=next_epoch_start_time,json=nextEpochStartTime,proto3" json:"next_epoch_start_time,omitempty"` + Duration uint64 `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"` +} + +func (m *EpochTracker) Reset() { *m = EpochTracker{} } +func (m *EpochTracker) String() string { return proto.CompactTextString(m) } +func (*EpochTracker) ProtoMessage() {} +func (*EpochTracker) Descriptor() ([]byte, []int) { + return fileDescriptor_e7c48143f24adf66, []int{0} +} +func (m *EpochTracker) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EpochTracker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EpochTracker.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 *EpochTracker) XXX_Merge(src proto.Message) { + xxx_messageInfo_EpochTracker.Merge(m, src) +} +func (m *EpochTracker) XXX_Size() int { + return m.Size() +} +func (m *EpochTracker) XXX_DiscardUnknown() { + xxx_messageInfo_EpochTracker.DiscardUnknown(m) +} + +var xxx_messageInfo_EpochTracker proto.InternalMessageInfo + +func (m *EpochTracker) GetEpochIdentifier() string { + if m != nil { + return m.EpochIdentifier + } + return "" +} + +func (m *EpochTracker) GetEpochNumber() uint64 { + if m != nil { + return m.EpochNumber + } + return 0 +} + +func (m *EpochTracker) GetNextEpochStartTime() uint64 { + if m != nil { + return m.NextEpochStartTime + } + return 0 +} + +func (m *EpochTracker) GetDuration() uint64 { + if m != nil { + return m.Duration + } + return 0 +} + +func init() { + proto.RegisterType((*EpochTracker)(nil), "stride.stakeibc.EpochTracker") +} + +func init() { + proto.RegisterFile("stride/stakeibc/epoch_tracker.proto", fileDescriptor_e7c48143f24adf66) +} + +var fileDescriptor_e7c48143f24adf66 = []byte{ + // 256 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2e, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0x2f, 0x2e, 0x49, 0xcc, 0x4e, 0xcd, 0x4c, 0x4a, 0xd6, 0x4f, 0x2d, 0xc8, 0x4f, + 0xce, 0x88, 0x2f, 0x29, 0x4a, 0x4c, 0xce, 0x4e, 0x2d, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0xe2, 0x87, 0x28, 0xd2, 0x83, 0x29, 0x52, 0x5a, 0xcd, 0xc8, 0xc5, 0xe3, 0x0a, 0x52, 0x18, 0x02, + 0x51, 0x27, 0xa4, 0xc9, 0x25, 0x00, 0xd1, 0x98, 0x99, 0x92, 0x9a, 0x57, 0x92, 0x99, 0x96, 0x99, + 0x5a, 0x24, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0xc4, 0x0f, 0x16, 0xf7, 0x84, 0x0b, 0x0b, 0x29, + 0x72, 0xf1, 0x40, 0x94, 0xe6, 0x95, 0xe6, 0x26, 0xa5, 0x16, 0x49, 0x30, 0x29, 0x30, 0x6a, 0xb0, + 0x04, 0x71, 0x83, 0xc5, 0xfc, 0xc0, 0x42, 0x42, 0x86, 0x5c, 0xa2, 0x79, 0xa9, 0x15, 0x25, 0xf1, + 0x10, 0x75, 0xc5, 0x25, 0x89, 0x45, 0x25, 0xf1, 0x25, 0x99, 0xb9, 0xa9, 0x12, 0xcc, 0x60, 0xb5, + 0x42, 0x20, 0x49, 0xb0, 0xf5, 0xc1, 0x20, 0xa9, 0x90, 0xcc, 0xdc, 0x54, 0x21, 0x29, 0x2e, 0x8e, + 0x94, 0xd2, 0xa2, 0xc4, 0x92, 0xcc, 0xfc, 0x3c, 0x09, 0x16, 0xb0, 0x2a, 0x38, 0xdf, 0xc9, 0xfb, + 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, + 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x0c, 0xd3, 0x33, 0x4b, 0x32, 0x4a, + 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x83, 0xc1, 0x7e, 0xd4, 0xf5, 0x49, 0x4c, 0x2a, 0xd6, 0x87, + 0x06, 0x4a, 0x99, 0xb9, 0x7e, 0x05, 0x22, 0x64, 0x4a, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, + 0x41, 0x62, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xb5, 0x8f, 0xfd, 0xc1, 0x39, 0x01, 0x00, 0x00, +} + +func (m *EpochTracker) 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 *EpochTracker) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EpochTracker) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Duration != 0 { + i = encodeVarintEpochTracker(dAtA, i, uint64(m.Duration)) + i-- + dAtA[i] = 0x20 + } + if m.NextEpochStartTime != 0 { + i = encodeVarintEpochTracker(dAtA, i, uint64(m.NextEpochStartTime)) + i-- + dAtA[i] = 0x18 + } + if m.EpochNumber != 0 { + i = encodeVarintEpochTracker(dAtA, i, uint64(m.EpochNumber)) + i-- + dAtA[i] = 0x10 + } + if len(m.EpochIdentifier) > 0 { + i -= len(m.EpochIdentifier) + copy(dAtA[i:], m.EpochIdentifier) + i = encodeVarintEpochTracker(dAtA, i, uint64(len(m.EpochIdentifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintEpochTracker(dAtA []byte, offset int, v uint64) int { + offset -= sovEpochTracker(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *EpochTracker) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.EpochIdentifier) + if l > 0 { + n += 1 + l + sovEpochTracker(uint64(l)) + } + if m.EpochNumber != 0 { + n += 1 + sovEpochTracker(uint64(m.EpochNumber)) + } + if m.NextEpochStartTime != 0 { + n += 1 + sovEpochTracker(uint64(m.NextEpochStartTime)) + } + if m.Duration != 0 { + n += 1 + sovEpochTracker(uint64(m.Duration)) + } + return n +} + +func sovEpochTracker(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozEpochTracker(x uint64) (n int) { + return sovEpochTracker(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *EpochTracker) 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 ErrIntOverflowEpochTracker + } + 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: EpochTracker: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EpochTracker: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochIdentifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEpochTracker + } + 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 ErrInvalidLengthEpochTracker + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEpochTracker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EpochIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) + } + m.EpochNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEpochTracker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NextEpochStartTime", wireType) + } + m.NextEpochStartTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEpochTracker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NextEpochStartTime |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) + } + m.Duration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEpochTracker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Duration |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEpochTracker(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEpochTracker + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipEpochTracker(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, ErrIntOverflowEpochTracker + } + 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, ErrIntOverflowEpochTracker + } + 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, ErrIntOverflowEpochTracker + } + 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, ErrInvalidLengthEpochTracker + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupEpochTracker + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthEpochTracker + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthEpochTracker = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEpochTracker = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupEpochTracker = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/stakeibc/types/genesis.pb.go b/x/stakeibc/types/genesis.pb.go new file mode 100644 index 0000000000..afe0699291 --- /dev/null +++ b/x/stakeibc/types/genesis.pb.go @@ -0,0 +1,506 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/stakeibc/genesis.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +// GenesisState defines the stakeibc module's genesis state. +type GenesisState struct { + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` + // list of zones that are registered by the protocol + HostZoneList []HostZone `protobuf:"bytes,5,rep,name=host_zone_list,json=hostZoneList,proto3" json:"host_zone_list"` + EpochTrackerList []EpochTracker `protobuf:"bytes,10,rep,name=epoch_tracker_list,json=epochTrackerList,proto3" json:"epoch_tracker_list"` +} + +func (m *GenesisState) Reset() { *m = GenesisState{} } +func (m *GenesisState) String() string { return proto.CompactTextString(m) } +func (*GenesisState) ProtoMessage() {} +func (*GenesisState) Descriptor() ([]byte, []int) { + return fileDescriptor_dea81129ed6fb77a, []int{0} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func (m *GenesisState) GetPortId() string { + if m != nil { + return m.PortId + } + return "" +} + +func (m *GenesisState) GetHostZoneList() []HostZone { + if m != nil { + return m.HostZoneList + } + return nil +} + +func (m *GenesisState) GetEpochTrackerList() []EpochTracker { + if m != nil { + return m.EpochTrackerList + } + return nil +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "stride.stakeibc.GenesisState") +} + +func init() { proto.RegisterFile("stride/stakeibc/genesis.proto", fileDescriptor_dea81129ed6fb77a) } + +var fileDescriptor_dea81129ed6fb77a = []byte{ + // 345 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xcd, 0x4e, 0xc2, 0x40, + 0x14, 0x85, 0x5b, 0x18, 0x4a, 0x19, 0x88, 0x36, 0x8d, 0x09, 0x48, 0xa4, 0x10, 0xdd, 0xb0, 0xb1, + 0x8d, 0x18, 0xe3, 0x9e, 0x84, 0xa8, 0x95, 0x85, 0x82, 0x2b, 0x36, 0x4d, 0x5b, 0x26, 0x6d, 0x83, + 0x30, 0x4d, 0xe7, 0x6a, 0xd4, 0xa7, 0x70, 0xe5, 0x33, 0xb1, 0x64, 0xe9, 0xca, 0x18, 0x78, 0x11, + 0xd3, 0xce, 0xf8, 0x57, 0x76, 0x73, 0xe7, 0x7c, 0xf9, 0xee, 0xc9, 0xc5, 0x2d, 0x06, 0x49, 0x34, + 0x25, 0x16, 0x03, 0x77, 0x46, 0x22, 0xcf, 0xb7, 0x02, 0xb2, 0x20, 0x2c, 0x62, 0x66, 0x9c, 0x50, + 0xa0, 0xfa, 0x2e, 0x8f, 0xcd, 0xef, 0xb8, 0xb9, 0x17, 0xd0, 0x80, 0x66, 0x99, 0x95, 0xbe, 0x38, + 0xd6, 0x3c, 0xc8, 0x5b, 0x62, 0x37, 0x71, 0xe7, 0x42, 0xd2, 0x6c, 0xe7, 0xd3, 0x90, 0x32, 0x70, + 0x5e, 0xe8, 0x82, 0x08, 0xe0, 0x28, 0x0f, 0x90, 0x98, 0xfa, 0xa1, 0x03, 0x89, 0xeb, 0xcf, 0x48, + 0xc2, 0xa1, 0xc3, 0xb7, 0x02, 0xae, 0x5d, 0xf0, 0x72, 0x63, 0x70, 0x81, 0xe8, 0x67, 0x58, 0xe1, + 0x6b, 0x1a, 0x72, 0x47, 0xee, 0x56, 0x7b, 0x75, 0x33, 0x57, 0xd6, 0xbc, 0xc9, 0xe2, 0x3e, 0x5a, + 0x7e, 0xb4, 0xa5, 0x91, 0x80, 0xf5, 0x3a, 0x2e, 0xc7, 0x34, 0x01, 0x27, 0x9a, 0x36, 0x0a, 0x1d, + 0xb9, 0x5b, 0x19, 0x29, 0xe9, 0x78, 0x35, 0xd5, 0x07, 0x78, 0xe7, 0xa7, 0x98, 0x73, 0x1f, 0x31, + 0x68, 0x94, 0x3a, 0xc5, 0x6e, 0xb5, 0xb7, 0xbf, 0xe5, 0xbd, 0xa4, 0x0c, 0x26, 0x74, 0x41, 0x84, + 0xb9, 0x16, 0x8a, 0x79, 0x18, 0x31, 0xd0, 0x6f, 0xb1, 0xfe, 0xaf, 0x3e, 0x57, 0xe1, 0x4c, 0xd5, + 0xda, 0x52, 0x0d, 0x52, 0xf4, 0x8e, 0x93, 0x42, 0xa7, 0x91, 0x3f, 0x7f, 0xa9, 0xd2, 0x46, 0x6a, + 0x51, 0x43, 0x36, 0x52, 0x91, 0x56, 0xb2, 0x91, 0xaa, 0x68, 0x65, 0x1b, 0xa9, 0x15, 0x0d, 0xdb, + 0x48, 0xad, 0x6a, 0xb5, 0xfe, 0xf5, 0x72, 0x6d, 0xc8, 0xab, 0xb5, 0x21, 0x7f, 0xae, 0x0d, 0xf9, + 0x75, 0x63, 0x48, 0xab, 0x8d, 0x21, 0xbd, 0x6f, 0x0c, 0x69, 0x72, 0x12, 0x44, 0x10, 0x3e, 0x78, + 0xa6, 0x4f, 0xe7, 0xd6, 0x38, 0x5b, 0x7c, 0x3c, 0x74, 0x3d, 0x66, 0x89, 0x73, 0x3f, 0x9e, 0x5b, + 0x4f, 0xbf, 0x37, 0x87, 0xe7, 0x98, 0x30, 0x4f, 0xc9, 0x8e, 0x7d, 0xfa, 0x15, 0x00, 0x00, 0xff, + 0xff, 0xc4, 0x61, 0x65, 0x89, 0x18, 0x02, 0x00, 0x00, +} + +func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EpochTrackerList) > 0 { + for iNdEx := len(m.EpochTrackerList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EpochTrackerList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } + if len(m.HostZoneList) > 0 { + for iNdEx := len(m.HostZoneList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.HostZoneList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.PortId) > 0 { + i -= len(m.PortId) + copy(dAtA[i:], m.PortId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.PortId))) + i-- + dAtA[i] = 0x12 + } + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = len(m.PortId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.HostZoneList) > 0 { + for _, e := range m.HostZoneList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.EpochTrackerList) > 0 { + for _, e := range m.EpochTrackerList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisState) 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 ErrIntOverflowGenesis + } + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PortId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneList = append(m.HostZoneList, HostZone{}) + if err := m.HostZoneList[len(m.HostZoneList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochTrackerList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EpochTrackerList = append(m.EpochTrackerList, EpochTracker{}) + if err := m.EpochTrackerList[len(m.EpochTrackerList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/stakeibc/types/gov.pb.go b/x/stakeibc/types/gov.pb.go new file mode 100644 index 0000000000..dff219362e --- /dev/null +++ b/x/stakeibc/types/gov.pb.go @@ -0,0 +1,579 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/stakeibc/gov.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +type AddValidatorProposal struct { + Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + HostZone string `protobuf:"bytes,3,opt,name=host_zone,json=hostZone,proto3" json:"host_zone,omitempty"` + ValidatorName string `protobuf:"bytes,4,opt,name=validator_name,json=validatorName,proto3" json:"validator_name,omitempty"` + ValidatorAddress string `protobuf:"bytes,5,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` + Deposit string `protobuf:"bytes,6,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"` +} + +func (m *AddValidatorProposal) Reset() { *m = AddValidatorProposal{} } +func (*AddValidatorProposal) ProtoMessage() {} +func (*AddValidatorProposal) Descriptor() ([]byte, []int) { + return fileDescriptor_8204317b384c5680, []int{0} +} +func (m *AddValidatorProposal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AddValidatorProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AddValidatorProposal.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 *AddValidatorProposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddValidatorProposal.Merge(m, src) +} +func (m *AddValidatorProposal) XXX_Size() int { + return m.Size() +} +func (m *AddValidatorProposal) XXX_DiscardUnknown() { + xxx_messageInfo_AddValidatorProposal.DiscardUnknown(m) +} + +var xxx_messageInfo_AddValidatorProposal proto.InternalMessageInfo + +func init() { + proto.RegisterType((*AddValidatorProposal)(nil), "stride.stakeibc.AddValidatorProposal") +} + +func init() { proto.RegisterFile("stride/stakeibc/gov.proto", fileDescriptor_8204317b384c5680) } + +var fileDescriptor_8204317b384c5680 = []byte{ + // 351 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2c, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0x2f, 0x2e, 0x49, 0xcc, 0x4e, 0xcd, 0x4c, 0x4a, 0xd6, 0x4f, 0xcf, 0x2f, 0xd3, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x87, 0x48, 0xe9, 0xc1, 0xa4, 0xa4, 0x24, 0x93, 0xf3, + 0x8b, 0x73, 0xf3, 0x8b, 0xe3, 0xc1, 0xd2, 0xfa, 0x10, 0x0e, 0x44, 0xad, 0x94, 0x48, 0x7a, 0x7e, + 0x7a, 0x3e, 0x44, 0x1c, 0xc4, 0x82, 0x88, 0x2a, 0x4d, 0x65, 0xe2, 0x12, 0x71, 0x4c, 0x49, 0x09, + 0x4b, 0xcc, 0xc9, 0x4c, 0x49, 0x2c, 0xc9, 0x2f, 0x0a, 0x28, 0xca, 0x2f, 0xc8, 0x2f, 0x4e, 0xcc, + 0x11, 0x12, 0xe1, 0x62, 0x2d, 0xc9, 0x2c, 0xc9, 0x49, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, + 0x82, 0x70, 0x84, 0x14, 0xb8, 0xb8, 0x53, 0x52, 0x8b, 0x93, 0x8b, 0x32, 0x0b, 0x4a, 0x32, 0xf3, + 0xf3, 0x24, 0x98, 0xc0, 0x72, 0xc8, 0x42, 0x42, 0xd2, 0x5c, 0x9c, 0x19, 0xf9, 0xc5, 0x25, 0xf1, + 0x55, 0xf9, 0x79, 0xa9, 0x12, 0xcc, 0x60, 0x79, 0x0e, 0x90, 0x40, 0x54, 0x7e, 0x5e, 0xaa, 0x90, + 0x2a, 0x17, 0x5f, 0x19, 0xcc, 0xa6, 0xf8, 0xbc, 0xc4, 0xdc, 0x54, 0x09, 0x16, 0xb0, 0x0a, 0x5e, + 0xb8, 0xa8, 0x5f, 0x62, 0x6e, 0xaa, 0x90, 0x2b, 0x97, 0x20, 0x42, 0x59, 0x62, 0x4a, 0x4a, 0x51, + 0x6a, 0x71, 0xb1, 0x04, 0x2b, 0x48, 0xa5, 0x93, 0xc4, 0xa5, 0x2d, 0xba, 0x22, 0x50, 0x7f, 0x39, + 0x42, 0x64, 0x82, 0x4b, 0x8a, 0x32, 0xf3, 0xd2, 0x83, 0x04, 0xe0, 0x5a, 0xa0, 0xe2, 0x42, 0x3a, + 0x5c, 0xec, 0x29, 0xa9, 0x05, 0xf9, 0xc5, 0x99, 0x25, 0x12, 0x6c, 0x60, 0xcd, 0x42, 0x9f, 0xee, + 0xc9, 0xf3, 0x55, 0x26, 0xe6, 0xe6, 0x58, 0x29, 0x41, 0x25, 0x94, 0x82, 0x60, 0x4a, 0xac, 0x78, + 0x3a, 0x16, 0xc8, 0x33, 0xcc, 0x58, 0x20, 0xcf, 0xf0, 0x62, 0x81, 0x3c, 0xa3, 0x93, 0xf7, 0x89, + 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, + 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x19, 0xa6, 0x67, 0x96, 0x64, 0x94, 0x26, + 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x07, 0x83, 0x83, 0x5f, 0xd7, 0x27, 0x31, 0xa9, 0x58, 0x1f, 0x1a, + 0x4b, 0x65, 0xe6, 0xfa, 0x15, 0x88, 0xa8, 0x2a, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x87, + 0xb5, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x03, 0x1d, 0x77, 0x0f, 0xca, 0x01, 0x00, 0x00, +} + +func (this *AddValidatorProposal) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*AddValidatorProposal) + if !ok { + that2, ok := that.(AddValidatorProposal) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Title != that1.Title { + return false + } + if this.Description != that1.Description { + return false + } + if this.HostZone != that1.HostZone { + return false + } + if this.ValidatorName != that1.ValidatorName { + return false + } + if this.ValidatorAddress != that1.ValidatorAddress { + return false + } + if this.Deposit != that1.Deposit { + return false + } + return true +} +func (m *AddValidatorProposal) 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 *AddValidatorProposal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddValidatorProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Deposit) > 0 { + i -= len(m.Deposit) + copy(dAtA[i:], m.Deposit) + i = encodeVarintGov(dAtA, i, uint64(len(m.Deposit))) + i-- + dAtA[i] = 0x32 + } + if len(m.ValidatorAddress) > 0 { + i -= len(m.ValidatorAddress) + copy(dAtA[i:], m.ValidatorAddress) + i = encodeVarintGov(dAtA, i, uint64(len(m.ValidatorAddress))) + i-- + dAtA[i] = 0x2a + } + if len(m.ValidatorName) > 0 { + i -= len(m.ValidatorName) + copy(dAtA[i:], m.ValidatorName) + i = encodeVarintGov(dAtA, i, uint64(len(m.ValidatorName))) + i-- + dAtA[i] = 0x22 + } + if len(m.HostZone) > 0 { + i -= len(m.HostZone) + copy(dAtA[i:], m.HostZone) + i = encodeVarintGov(dAtA, i, uint64(len(m.HostZone))) + i-- + dAtA[i] = 0x1a + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintGov(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.Title) > 0 { + i -= len(m.Title) + copy(dAtA[i:], m.Title) + i = encodeVarintGov(dAtA, i, uint64(len(m.Title))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintGov(dAtA []byte, offset int, v uint64) int { + offset -= sovGov(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *AddValidatorProposal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Title) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.HostZone) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.ValidatorName) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.ValidatorAddress) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + l = len(m.Deposit) + if l > 0 { + n += 1 + l + sovGov(uint64(l)) + } + return n +} + +func sovGov(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGov(x uint64) (n int) { + return sovGov(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *AddValidatorProposal) 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 ErrIntOverflowGov + } + 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: AddValidatorProposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddValidatorProposal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Title = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZone", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZone = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValidatorName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValidatorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGov + } + 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 ErrInvalidLengthGov + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGov + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Deposit = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGov(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGov + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGov(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, ErrIntOverflowGov + } + 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, ErrIntOverflowGov + } + 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, ErrIntOverflowGov + } + 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, ErrInvalidLengthGov + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGov + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGov + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGov = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGov = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/stakeibc/types/host_zone.pb.go b/x/stakeibc/types/host_zone.pb.go new file mode 100644 index 0000000000..5be208013a --- /dev/null +++ b/x/stakeibc/types/host_zone.pb.go @@ -0,0 +1,1349 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/stakeibc/host_zone.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +// next id: 22 +type HostZone struct { + ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` + Bech32Prefix string `protobuf:"bytes,17,opt,name=bech32prefix,proto3" json:"bech32prefix,omitempty"` + TransferChannelId string `protobuf:"bytes,12,opt,name=transfer_channel_id,json=transferChannelId,proto3" json:"transfer_channel_id,omitempty"` + Validators []*Validator `protobuf:"bytes,3,rep,name=validators,proto3" json:"validators,omitempty"` + BlacklistedValidators []*Validator `protobuf:"bytes,4,rep,name=blacklisted_validators,json=blacklistedValidators,proto3" json:"blacklisted_validators,omitempty"` + WithdrawalAccount *ICAAccount `protobuf:"bytes,5,opt,name=withdrawal_account,json=withdrawalAccount,proto3" json:"withdrawal_account,omitempty"` + FeeAccount *ICAAccount `protobuf:"bytes,6,opt,name=fee_account,json=feeAccount,proto3" json:"fee_account,omitempty"` + DelegationAccount *ICAAccount `protobuf:"bytes,7,opt,name=delegation_account,json=delegationAccount,proto3" json:"delegation_account,omitempty"` + RedemptionAccount *ICAAccount `protobuf:"bytes,16,opt,name=redemption_account,json=redemptionAccount,proto3" json:"redemption_account,omitempty"` + // ibc denom on stride + IbcDenom string `protobuf:"bytes,8,opt,name=ibc_denom,json=ibcDenom,proto3" json:"ibc_denom,omitempty"` + // native denom on host zone + HostDenom string `protobuf:"bytes,9,opt,name=host_denom,json=hostDenom,proto3" json:"host_denom,omitempty"` + // TODO(TEST-68): Should we make this an array and store the last n redemption + // rates then calculate a TWARR? + LastRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,10,opt,name=last_redemption_rate,json=lastRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"last_redemption_rate"` + RedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,11,opt,name=redemption_rate,json=redemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"redemption_rate"` + // stores how many days we should wait before issuing unbondings + UnbondingFrequency uint64 `protobuf:"varint,14,opt,name=unbonding_frequency,json=unbondingFrequency,proto3" json:"unbonding_frequency,omitempty"` + // TODO(TEST-101) int to dec + StakedBal github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,13,opt,name=staked_bal,json=stakedBal,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"staked_bal"` + Address string `protobuf:"bytes,18,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` + Halted bool `protobuf:"varint,19,opt,name=halted,proto3" json:"halted,omitempty"` + MinRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,20,opt,name=min_redemption_rate,json=minRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"min_redemption_rate"` + MaxRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,21,opt,name=max_redemption_rate,json=maxRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_redemption_rate"` +} + +func (m *HostZone) Reset() { *m = HostZone{} } +func (m *HostZone) String() string { return proto.CompactTextString(m) } +func (*HostZone) ProtoMessage() {} +func (*HostZone) Descriptor() ([]byte, []int) { + return fileDescriptor_f81bf5b42c61245a, []int{0} +} +func (m *HostZone) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HostZone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_HostZone.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 *HostZone) XXX_Merge(src proto.Message) { + xxx_messageInfo_HostZone.Merge(m, src) +} +func (m *HostZone) XXX_Size() int { + return m.Size() +} +func (m *HostZone) XXX_DiscardUnknown() { + xxx_messageInfo_HostZone.DiscardUnknown(m) +} + +var xxx_messageInfo_HostZone proto.InternalMessageInfo + +func (m *HostZone) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *HostZone) GetConnectionId() string { + if m != nil { + return m.ConnectionId + } + return "" +} + +func (m *HostZone) GetBech32Prefix() string { + if m != nil { + return m.Bech32Prefix + } + return "" +} + +func (m *HostZone) GetTransferChannelId() string { + if m != nil { + return m.TransferChannelId + } + return "" +} + +func (m *HostZone) GetValidators() []*Validator { + if m != nil { + return m.Validators + } + return nil +} + +func (m *HostZone) GetBlacklistedValidators() []*Validator { + if m != nil { + return m.BlacklistedValidators + } + return nil +} + +func (m *HostZone) GetWithdrawalAccount() *ICAAccount { + if m != nil { + return m.WithdrawalAccount + } + return nil +} + +func (m *HostZone) GetFeeAccount() *ICAAccount { + if m != nil { + return m.FeeAccount + } + return nil +} + +func (m *HostZone) GetDelegationAccount() *ICAAccount { + if m != nil { + return m.DelegationAccount + } + return nil +} + +func (m *HostZone) GetRedemptionAccount() *ICAAccount { + if m != nil { + return m.RedemptionAccount + } + return nil +} + +func (m *HostZone) GetIbcDenom() string { + if m != nil { + return m.IbcDenom + } + return "" +} + +func (m *HostZone) GetHostDenom() string { + if m != nil { + return m.HostDenom + } + return "" +} + +func (m *HostZone) GetUnbondingFrequency() uint64 { + if m != nil { + return m.UnbondingFrequency + } + return 0 +} + +func (m *HostZone) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *HostZone) GetHalted() bool { + if m != nil { + return m.Halted + } + return false +} + +func init() { + proto.RegisterType((*HostZone)(nil), "stride.stakeibc.HostZone") +} + +func init() { proto.RegisterFile("stride/stakeibc/host_zone.proto", fileDescriptor_f81bf5b42c61245a) } + +var fileDescriptor_f81bf5b42c61245a = []byte{ + // 671 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0x4f, 0x4f, 0xdb, 0x30, + 0x18, 0xc6, 0x9b, 0xc1, 0xa0, 0x75, 0xf9, 0x57, 0x17, 0x50, 0x00, 0xad, 0xed, 0x3a, 0x69, 0xea, + 0x61, 0xa4, 0x1a, 0x1c, 0x26, 0x21, 0x2e, 0xfc, 0xd1, 0xb4, 0xb2, 0xed, 0xb0, 0x4c, 0xe2, 0xc0, + 0x25, 0x72, 0xec, 0xb7, 0xad, 0x45, 0x6a, 0x77, 0xb1, 0x0b, 0x65, 0x1f, 0x61, 0xa7, 0x7d, 0x98, + 0x7d, 0x08, 0x8e, 0x68, 0xa7, 0x69, 0x07, 0x34, 0xc1, 0x37, 0xd8, 0x27, 0x98, 0xea, 0x24, 0x6d, + 0x68, 0x0f, 0x30, 0x89, 0x53, 0xe2, 0xf7, 0x79, 0xde, 0xdf, 0x63, 0xbd, 0x4e, 0x8c, 0xca, 0x4a, + 0x87, 0x9c, 0x41, 0x5d, 0x69, 0x72, 0x0a, 0xdc, 0xa7, 0xf5, 0xb6, 0x54, 0xda, 0xfb, 0x2a, 0x05, + 0x38, 0xdd, 0x50, 0x6a, 0x89, 0x17, 0x23, 0x83, 0x93, 0x18, 0xd6, 0x27, 0x3a, 0xce, 0x48, 0xc0, + 0x19, 0xd1, 0x32, 0x8c, 0x3a, 0xd6, 0x9f, 0x8f, 0x1b, 0x38, 0x25, 0x1e, 0xa1, 0x54, 0xf6, 0x84, + 0x8e, 0x2d, 0xcb, 0x2d, 0xd9, 0x92, 0xe6, 0xb5, 0x3e, 0x78, 0x8b, 0xab, 0x6b, 0x54, 0xaa, 0x8e, + 0x54, 0x5e, 0x24, 0x44, 0x8b, 0x48, 0xaa, 0x7e, 0x43, 0x28, 0xfb, 0x4e, 0x2a, 0x7d, 0x22, 0x05, + 0xe0, 0x35, 0x94, 0xa5, 0x6d, 0xc2, 0x85, 0xc7, 0x99, 0x6d, 0x55, 0xac, 0x5a, 0xce, 0x9d, 0x35, + 0xeb, 0x06, 0xc3, 0x2f, 0xd0, 0x3c, 0x95, 0x42, 0x00, 0xd5, 0x5c, 0x1a, 0xfd, 0x89, 0xd1, 0xe7, + 0x46, 0xc5, 0x06, 0xc3, 0x55, 0x34, 0xe7, 0x03, 0x6d, 0x6f, 0x6f, 0x75, 0x43, 0x68, 0xf2, 0xbe, + 0x5d, 0x88, 0x3c, 0xe9, 0x1a, 0x76, 0x50, 0x51, 0x87, 0x44, 0xa8, 0x26, 0x84, 0x1e, 0x6d, 0x13, + 0x21, 0x20, 0x18, 0xe0, 0xe6, 0x8c, 0xb5, 0x90, 0x48, 0x07, 0x91, 0xd2, 0x60, 0x78, 0x07, 0xa1, + 0xe1, 0x1c, 0x94, 0x3d, 0x55, 0x99, 0xaa, 0xe5, 0xb7, 0xd6, 0x9d, 0xb1, 0xd9, 0x39, 0xc7, 0x89, + 0xc5, 0x4d, 0xb9, 0xf1, 0x27, 0xb4, 0xea, 0x07, 0x84, 0x9e, 0x06, 0x5c, 0x69, 0x60, 0x5e, 0x8a, + 0x33, 0x7d, 0x2f, 0x67, 0x25, 0xd5, 0x79, 0x3c, 0x42, 0x1e, 0x21, 0x7c, 0xce, 0x75, 0x9b, 0x85, + 0xe4, 0x9c, 0x04, 0xc9, 0xf0, 0xed, 0xa7, 0x15, 0xab, 0x96, 0xdf, 0xda, 0x98, 0xc0, 0x35, 0x0e, + 0xf6, 0xf6, 0x22, 0x8b, 0x5b, 0x18, 0xb5, 0xc5, 0x25, 0xbc, 0x8b, 0xf2, 0x4d, 0x80, 0x21, 0x64, + 0xe6, 0x7e, 0x08, 0x6a, 0x02, 0x24, 0xdd, 0x47, 0x08, 0x33, 0x08, 0xa0, 0x45, 0xcc, 0x89, 0x24, + 0x90, 0xd9, 0x07, 0xec, 0x64, 0xd4, 0x96, 0x62, 0x85, 0xc0, 0xa0, 0xd3, 0xbd, 0xc3, 0x5a, 0x7a, + 0x00, 0x6b, 0xd4, 0x96, 0xb0, 0x36, 0x50, 0x8e, 0xfb, 0xd4, 0x63, 0x20, 0x64, 0xc7, 0xce, 0x9a, + 0x63, 0xcd, 0x72, 0x9f, 0x1e, 0x0e, 0xd6, 0xf8, 0x19, 0x42, 0xe6, 0x3f, 0x88, 0xd4, 0x9c, 0x51, + 0x73, 0x83, 0x4a, 0x24, 0x0b, 0xb4, 0x1c, 0x10, 0xa5, 0xbd, 0xd4, 0x66, 0x42, 0xa2, 0xc1, 0x46, + 0x03, 0xe3, 0xfe, 0xee, 0xe5, 0x75, 0x39, 0xf3, 0xfb, 0xba, 0xfc, 0xb2, 0xc5, 0x75, 0xbb, 0xe7, + 0x3b, 0x54, 0x76, 0xe2, 0x8f, 0x39, 0x7e, 0x6c, 0x2a, 0x76, 0x5a, 0xd7, 0x17, 0x5d, 0x50, 0xce, + 0x21, 0xd0, 0x9f, 0x3f, 0x36, 0x51, 0xfc, 0xad, 0x1f, 0x02, 0x75, 0xf1, 0x80, 0xec, 0x0e, 0xc1, + 0x2e, 0xd1, 0x80, 0x01, 0x2d, 0x8e, 0x47, 0xe5, 0x1f, 0x21, 0x6a, 0x21, 0xbc, 0x1b, 0x53, 0x47, + 0xc5, 0x9e, 0xf0, 0xa5, 0x60, 0x5c, 0xb4, 0xbc, 0x66, 0x08, 0x5f, 0x7a, 0x20, 0xe8, 0x85, 0xbd, + 0x50, 0xb1, 0x6a, 0xd3, 0x2e, 0x1e, 0x4a, 0x6f, 0x13, 0x05, 0x7f, 0x44, 0xc8, 0x4c, 0x9b, 0x79, + 0x3e, 0x09, 0xec, 0x79, 0xb3, 0x25, 0xe7, 0x3f, 0xb6, 0xd4, 0x10, 0xda, 0xcd, 0x45, 0x84, 0x7d, + 0x12, 0xe0, 0x57, 0x68, 0x96, 0x30, 0x16, 0x82, 0x52, 0x36, 0x36, 0x2c, 0xfc, 0xf7, 0xba, 0xbc, + 0x70, 0x41, 0x3a, 0xc1, 0x4e, 0x35, 0x16, 0xaa, 0x6e, 0x62, 0xc1, 0xab, 0x68, 0xa6, 0x4d, 0x02, + 0x0d, 0xcc, 0x2e, 0x56, 0xac, 0x5a, 0xd6, 0x8d, 0x57, 0x38, 0x40, 0xc5, 0x0e, 0x17, 0x13, 0x67, + 0xb3, 0xfc, 0x08, 0x03, 0x2b, 0x74, 0xb8, 0x18, 0x3b, 0x9a, 0x41, 0x1a, 0xe9, 0x4f, 0xa4, 0xad, + 0x3c, 0x4a, 0x1a, 0xe9, 0xdf, 0x4d, 0x3b, 0x9a, 0xce, 0x2e, 0x2e, 0x2d, 0xed, 0xbf, 0xbf, 0xbc, + 0x29, 0x59, 0x57, 0x37, 0x25, 0xeb, 0xcf, 0x4d, 0xc9, 0xfa, 0x7e, 0x5b, 0xca, 0x5c, 0xdd, 0x96, + 0x32, 0xbf, 0x6e, 0x4b, 0x99, 0x93, 0xd7, 0xa9, 0xa0, 0xcf, 0xe6, 0x77, 0xd8, 0xfc, 0x40, 0x7c, + 0x55, 0x8f, 0x6f, 0xe4, 0xb3, 0x37, 0xf5, 0xfe, 0xe8, 0x5a, 0x36, 0xb9, 0xfe, 0x8c, 0xb9, 0x60, + 0xb7, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x71, 0x65, 0xc4, 0x5c, 0x09, 0x06, 0x00, 0x00, +} + +func (m *HostZone) 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 *HostZone) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HostZone) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.MaxRedemptionRate.Size() + i -= size + if _, err := m.MaxRedemptionRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa + { + size := m.MinRedemptionRate.Size() + i -= size + if _, err := m.MinRedemptionRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + if m.Halted { + i-- + if m.Halted { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x98 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintHostZone(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } + if len(m.Bech32Prefix) > 0 { + i -= len(m.Bech32Prefix) + copy(dAtA[i:], m.Bech32Prefix) + i = encodeVarintHostZone(dAtA, i, uint64(len(m.Bech32Prefix))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + if m.RedemptionAccount != nil { + { + size, err := m.RedemptionAccount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + if m.UnbondingFrequency != 0 { + i = encodeVarintHostZone(dAtA, i, uint64(m.UnbondingFrequency)) + i-- + dAtA[i] = 0x70 + } + { + size := m.StakedBal.Size() + i -= size + if _, err := m.StakedBal.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + if len(m.TransferChannelId) > 0 { + i -= len(m.TransferChannelId) + copy(dAtA[i:], m.TransferChannelId) + i = encodeVarintHostZone(dAtA, i, uint64(len(m.TransferChannelId))) + i-- + dAtA[i] = 0x62 + } + { + size := m.RedemptionRate.Size() + i -= size + if _, err := m.RedemptionRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + { + size := m.LastRedemptionRate.Size() + i -= size + if _, err := m.LastRedemptionRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + if len(m.HostDenom) > 0 { + i -= len(m.HostDenom) + copy(dAtA[i:], m.HostDenom) + i = encodeVarintHostZone(dAtA, i, uint64(len(m.HostDenom))) + i-- + dAtA[i] = 0x4a + } + if len(m.IbcDenom) > 0 { + i -= len(m.IbcDenom) + copy(dAtA[i:], m.IbcDenom) + i = encodeVarintHostZone(dAtA, i, uint64(len(m.IbcDenom))) + i-- + dAtA[i] = 0x42 + } + if m.DelegationAccount != nil { + { + size, err := m.DelegationAccount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.FeeAccount != nil { + { + size, err := m.FeeAccount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.WithdrawalAccount != nil { + { + size, err := m.WithdrawalAccount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.BlacklistedValidators) > 0 { + for iNdEx := len(m.BlacklistedValidators) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.BlacklistedValidators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Validators) > 0 { + for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.ConnectionId) > 0 { + i -= len(m.ConnectionId) + copy(dAtA[i:], m.ConnectionId) + i = encodeVarintHostZone(dAtA, i, uint64(len(m.ConnectionId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintHostZone(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintHostZone(dAtA []byte, offset int, v uint64) int { + offset -= sovHostZone(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *HostZone) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovHostZone(uint64(l)) + } + l = len(m.ConnectionId) + if l > 0 { + n += 1 + l + sovHostZone(uint64(l)) + } + if len(m.Validators) > 0 { + for _, e := range m.Validators { + l = e.Size() + n += 1 + l + sovHostZone(uint64(l)) + } + } + if len(m.BlacklistedValidators) > 0 { + for _, e := range m.BlacklistedValidators { + l = e.Size() + n += 1 + l + sovHostZone(uint64(l)) + } + } + if m.WithdrawalAccount != nil { + l = m.WithdrawalAccount.Size() + n += 1 + l + sovHostZone(uint64(l)) + } + if m.FeeAccount != nil { + l = m.FeeAccount.Size() + n += 1 + l + sovHostZone(uint64(l)) + } + if m.DelegationAccount != nil { + l = m.DelegationAccount.Size() + n += 1 + l + sovHostZone(uint64(l)) + } + l = len(m.IbcDenom) + if l > 0 { + n += 1 + l + sovHostZone(uint64(l)) + } + l = len(m.HostDenom) + if l > 0 { + n += 1 + l + sovHostZone(uint64(l)) + } + l = m.LastRedemptionRate.Size() + n += 1 + l + sovHostZone(uint64(l)) + l = m.RedemptionRate.Size() + n += 1 + l + sovHostZone(uint64(l)) + l = len(m.TransferChannelId) + if l > 0 { + n += 1 + l + sovHostZone(uint64(l)) + } + l = m.StakedBal.Size() + n += 1 + l + sovHostZone(uint64(l)) + if m.UnbondingFrequency != 0 { + n += 1 + sovHostZone(uint64(m.UnbondingFrequency)) + } + if m.RedemptionAccount != nil { + l = m.RedemptionAccount.Size() + n += 2 + l + sovHostZone(uint64(l)) + } + l = len(m.Bech32Prefix) + if l > 0 { + n += 2 + l + sovHostZone(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 2 + l + sovHostZone(uint64(l)) + } + if m.Halted { + n += 3 + } + l = m.MinRedemptionRate.Size() + n += 2 + l + sovHostZone(uint64(l)) + l = m.MaxRedemptionRate.Size() + n += 2 + l + sovHostZone(uint64(l)) + return n +} + +func sovHostZone(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozHostZone(x uint64) (n int) { + return sovHostZone(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *HostZone) 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 ErrIntOverflowHostZone + } + 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: HostZone: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HostZone: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ConnectionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthHostZone + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Validators = append(m.Validators, &Validator{}) + if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlacklistedValidators", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthHostZone + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BlacklistedValidators = append(m.BlacklistedValidators, &Validator{}) + if err := m.BlacklistedValidators[len(m.BlacklistedValidators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WithdrawalAccount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthHostZone + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.WithdrawalAccount == nil { + m.WithdrawalAccount = &ICAAccount{} + } + if err := m.WithdrawalAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeAccount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthHostZone + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FeeAccount == nil { + m.FeeAccount = &ICAAccount{} + } + if err := m.FeeAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegationAccount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthHostZone + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DelegationAccount == nil { + m.DelegationAccount = &ICAAccount{} + } + if err := m.DelegationAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IbcDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IbcDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastRedemptionRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.LastRedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RedemptionRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.RedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransferChannelId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TransferChannelId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StakedBal", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.StakedBal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnbondingFrequency", wireType) + } + m.UnbondingFrequency = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UnbondingFrequency |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RedemptionAccount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthHostZone + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RedemptionAccount == nil { + m.RedemptionAccount = &ICAAccount{} + } + if err := m.RedemptionAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bech32Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Bech32Prefix = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 19: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Halted", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Halted = bool(v != 0) + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinRedemptionRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MinRedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 21: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxRedemptionRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxRedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipHostZone(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthHostZone + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipHostZone(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, ErrIntOverflowHostZone + } + 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, ErrIntOverflowHostZone + } + 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, ErrIntOverflowHostZone + } + 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, ErrInvalidLengthHostZone + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupHostZone + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthHostZone + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthHostZone = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowHostZone = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupHostZone = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/stakeibc/types/ica_account.pb.go b/x/stakeibc/types/ica_account.pb.go new file mode 100644 index 0000000000..e0113bc147 --- /dev/null +++ b/x/stakeibc/types/ica_account.pb.go @@ -0,0 +1,391 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/stakeibc/ica_account.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + proto "github.com/gogo/protobuf/proto" + 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 + +type ICAAccountType int32 + +const ( + ICAAccountType_DELEGATION ICAAccountType = 0 + ICAAccountType_FEE ICAAccountType = 1 + ICAAccountType_WITHDRAWAL ICAAccountType = 2 + ICAAccountType_REDEMPTION ICAAccountType = 3 +) + +var ICAAccountType_name = map[int32]string{ + 0: "DELEGATION", + 1: "FEE", + 2: "WITHDRAWAL", + 3: "REDEMPTION", +} + +var ICAAccountType_value = map[string]int32{ + "DELEGATION": 0, + "FEE": 1, + "WITHDRAWAL": 2, + "REDEMPTION": 3, +} + +func (x ICAAccountType) String() string { + return proto.EnumName(ICAAccountType_name, int32(x)) +} + +func (ICAAccountType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_2976ae6e7f6ce824, []int{0} +} + +type ICAAccount struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Target ICAAccountType `protobuf:"varint,3,opt,name=target,proto3,enum=stride.stakeibc.ICAAccountType" json:"target,omitempty"` +} + +func (m *ICAAccount) Reset() { *m = ICAAccount{} } +func (m *ICAAccount) String() string { return proto.CompactTextString(m) } +func (*ICAAccount) ProtoMessage() {} +func (*ICAAccount) Descriptor() ([]byte, []int) { + return fileDescriptor_2976ae6e7f6ce824, []int{0} +} +func (m *ICAAccount) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ICAAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ICAAccount.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 *ICAAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_ICAAccount.Merge(m, src) +} +func (m *ICAAccount) XXX_Size() int { + return m.Size() +} +func (m *ICAAccount) XXX_DiscardUnknown() { + xxx_messageInfo_ICAAccount.DiscardUnknown(m) +} + +var xxx_messageInfo_ICAAccount proto.InternalMessageInfo + +func (m *ICAAccount) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *ICAAccount) GetTarget() ICAAccountType { + if m != nil { + return m.Target + } + return ICAAccountType_DELEGATION +} + +func init() { + proto.RegisterEnum("stride.stakeibc.ICAAccountType", ICAAccountType_name, ICAAccountType_value) + proto.RegisterType((*ICAAccount)(nil), "stride.stakeibc.ICAAccount") +} + +func init() { proto.RegisterFile("stride/stakeibc/ica_account.proto", fileDescriptor_2976ae6e7f6ce824) } + +var fileDescriptor_2976ae6e7f6ce824 = []byte{ + // 291 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0x2f, 0x2e, 0x49, 0xcc, 0x4e, 0xcd, 0x4c, 0x4a, 0xd6, 0xcf, 0x4c, 0x4e, 0x8c, + 0x4f, 0x4c, 0x4e, 0xce, 0x2f, 0xcd, 0x2b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x87, + 0x28, 0xd1, 0x83, 0x29, 0x91, 0x92, 0x4c, 0xce, 0x2f, 0xce, 0xcd, 0x2f, 0x8e, 0x07, 0x4b, 0xeb, + 0x43, 0x38, 0x10, 0xb5, 0x4a, 0xf5, 0x5c, 0x5c, 0x9e, 0xce, 0x8e, 0x8e, 0x10, 0xfd, 0x42, 0x46, + 0x5c, 0xec, 0x89, 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x4e, + 0x12, 0x97, 0xb6, 0xe8, 0x8a, 0x40, 0x35, 0x38, 0x42, 0x64, 0x82, 0x4b, 0x8a, 0x32, 0xf3, 0xd2, + 0x83, 0x60, 0x0a, 0x85, 0xcc, 0xb9, 0xd8, 0x4a, 0x12, 0x8b, 0xd2, 0x53, 0x4b, 0x24, 0x98, 0x15, + 0x18, 0x35, 0xf8, 0x8c, 0xe4, 0xf5, 0xd0, 0xac, 0xd7, 0x43, 0x58, 0x10, 0x52, 0x59, 0x90, 0x1a, + 0x04, 0x55, 0xee, 0xc5, 0xc2, 0xc1, 0x24, 0xc0, 0xac, 0xe5, 0xc9, 0xc5, 0x87, 0x2a, 0x2f, 0xc4, + 0xc7, 0xc5, 0xe5, 0xe2, 0xea, 0xe3, 0xea, 0xee, 0x18, 0xe2, 0xe9, 0xef, 0x27, 0xc0, 0x20, 0xc4, + 0xce, 0xc5, 0xec, 0xe6, 0xea, 0x2a, 0xc0, 0x08, 0x92, 0x08, 0xf7, 0x0c, 0xf1, 0x70, 0x09, 0x72, + 0x0c, 0x77, 0xf4, 0x11, 0x60, 0x02, 0xf1, 0x83, 0x5c, 0x5d, 0x5c, 0x7d, 0x03, 0xc0, 0x0a, 0x99, + 0x9d, 0xbc, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, + 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x30, 0x3d, 0xb3, + 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, 0x18, 0xec, 0x3a, 0x5d, 0x9f, 0xc4, 0xa4, + 0x62, 0x7d, 0x68, 0x58, 0x96, 0x99, 0xeb, 0x57, 0x20, 0x02, 0xb4, 0xa4, 0xb2, 0x20, 0xb5, 0x38, + 0x89, 0x0d, 0x1c, 0x3e, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x62, 0x70, 0xde, 0xb8, 0x70, + 0x01, 0x00, 0x00, +} + +func (m *ICAAccount) 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 *ICAAccount) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ICAAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Target != 0 { + i = encodeVarintIcaAccount(dAtA, i, uint64(m.Target)) + i-- + dAtA[i] = 0x18 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintIcaAccount(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintIcaAccount(dAtA []byte, offset int, v uint64) int { + offset -= sovIcaAccount(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ICAAccount) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovIcaAccount(uint64(l)) + } + if m.Target != 0 { + n += 1 + sovIcaAccount(uint64(m.Target)) + } + return n +} + +func sovIcaAccount(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozIcaAccount(x uint64) (n int) { + return sovIcaAccount(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ICAAccount) 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 ErrIntOverflowIcaAccount + } + 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: ICAAccount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ICAAccount: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcaAccount + } + 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 ErrInvalidLengthIcaAccount + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcaAccount + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + } + m.Target = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcaAccount + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Target |= ICAAccountType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipIcaAccount(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIcaAccount + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipIcaAccount(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, ErrIntOverflowIcaAccount + } + 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, ErrIntOverflowIcaAccount + } + 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, ErrIntOverflowIcaAccount + } + 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, ErrInvalidLengthIcaAccount + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupIcaAccount + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthIcaAccount + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthIcaAccount = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowIcaAccount = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupIcaAccount = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/stakeibc/types/packet.pb.go b/x/stakeibc/types/packet.pb.go new file mode 100644 index 0000000000..59d4083f2e --- /dev/null +++ b/x/stakeibc/types/packet.pb.go @@ -0,0 +1,500 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/stakeibc/packet.proto + +package types + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + 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 + +type StakeibcPacketData struct { + // Types that are valid to be assigned to Packet: + // *StakeibcPacketData_NoData + Packet isStakeibcPacketData_Packet `protobuf_oneof:"packet"` +} + +func (m *StakeibcPacketData) Reset() { *m = StakeibcPacketData{} } +func (m *StakeibcPacketData) String() string { return proto.CompactTextString(m) } +func (*StakeibcPacketData) ProtoMessage() {} +func (*StakeibcPacketData) Descriptor() ([]byte, []int) { + return fileDescriptor_a86fa6a12773333f, []int{0} +} +func (m *StakeibcPacketData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StakeibcPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StakeibcPacketData.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 *StakeibcPacketData) XXX_Merge(src proto.Message) { + xxx_messageInfo_StakeibcPacketData.Merge(m, src) +} +func (m *StakeibcPacketData) XXX_Size() int { + return m.Size() +} +func (m *StakeibcPacketData) XXX_DiscardUnknown() { + xxx_messageInfo_StakeibcPacketData.DiscardUnknown(m) +} + +var xxx_messageInfo_StakeibcPacketData proto.InternalMessageInfo + +type isStakeibcPacketData_Packet interface { + isStakeibcPacketData_Packet() + MarshalTo([]byte) (int, error) + Size() int +} + +type StakeibcPacketData_NoData struct { + NoData *NoData `protobuf:"bytes,1,opt,name=no_data,json=noData,proto3,oneof" json:"no_data,omitempty"` +} + +func (*StakeibcPacketData_NoData) isStakeibcPacketData_Packet() {} + +func (m *StakeibcPacketData) GetPacket() isStakeibcPacketData_Packet { + if m != nil { + return m.Packet + } + return nil +} + +func (m *StakeibcPacketData) GetNoData() *NoData { + if x, ok := m.GetPacket().(*StakeibcPacketData_NoData); ok { + return x.NoData + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*StakeibcPacketData) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*StakeibcPacketData_NoData)(nil), + } +} + +type NoData struct { +} + +func (m *NoData) Reset() { *m = NoData{} } +func (m *NoData) String() string { return proto.CompactTextString(m) } +func (*NoData) ProtoMessage() {} +func (*NoData) Descriptor() ([]byte, []int) { + return fileDescriptor_a86fa6a12773333f, []int{1} +} +func (m *NoData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NoData.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 *NoData) XXX_Merge(src proto.Message) { + xxx_messageInfo_NoData.Merge(m, src) +} +func (m *NoData) XXX_Size() int { + return m.Size() +} +func (m *NoData) XXX_DiscardUnknown() { + xxx_messageInfo_NoData.DiscardUnknown(m) +} + +var xxx_messageInfo_NoData proto.InternalMessageInfo + +func init() { + proto.RegisterType((*StakeibcPacketData)(nil), "stride.stakeibc.StakeibcPacketData") + proto.RegisterType((*NoData)(nil), "stride.stakeibc.NoData") +} + +func init() { proto.RegisterFile("stride/stakeibc/packet.proto", fileDescriptor_a86fa6a12773333f) } + +var fileDescriptor_a86fa6a12773333f = []byte{ + // 189 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x29, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0x2f, 0x2e, 0x49, 0xcc, 0x4e, 0xcd, 0x4c, 0x4a, 0xd6, 0x2f, 0x48, 0x4c, 0xce, + 0x4e, 0x2d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x87, 0xc8, 0xea, 0xc1, 0x64, 0x95, + 0x82, 0xb8, 0x84, 0x82, 0xa1, 0xec, 0x00, 0xb0, 0x42, 0x97, 0xc4, 0x92, 0x44, 0x21, 0x23, 0x2e, + 0xf6, 0xbc, 0xfc, 0xf8, 0x94, 0xc4, 0x92, 0x44, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x71, + 0x3d, 0x34, 0x8d, 0x7a, 0x7e, 0xf9, 0x20, 0x95, 0x1e, 0x0c, 0x41, 0x6c, 0x79, 0x60, 0x96, 0x13, + 0x07, 0x17, 0x1b, 0xc4, 0x2a, 0x25, 0x0e, 0x2e, 0x36, 0x88, 0xac, 0x93, 0xf7, 0x89, 0x47, 0x72, + 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, + 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x19, 0xa6, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, + 0xe7, 0xe7, 0xea, 0x07, 0x83, 0x8d, 0xd6, 0xf5, 0x49, 0x4c, 0x2a, 0xd6, 0x87, 0xba, 0xbe, 0xcc, + 0x5c, 0xbf, 0x02, 0xe1, 0x85, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0x17, 0x8c, 0x01, + 0x01, 0x00, 0x00, 0xff, 0xff, 0xda, 0x2a, 0xb4, 0xa1, 0xe2, 0x00, 0x00, 0x00, +} + +func (m *StakeibcPacketData) 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 *StakeibcPacketData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StakeibcPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Packet != nil { + { + size := m.Packet.Size() + i -= size + if _, err := m.Packet.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *StakeibcPacketData_NoData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StakeibcPacketData_NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NoData != nil { + { + size, err := m.NoData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacket(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *NoData) 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 *NoData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintPacket(dAtA []byte, offset int, v uint64) int { + offset -= sovPacket(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *StakeibcPacketData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packet != nil { + n += m.Packet.Size() + } + return n +} + +func (m *StakeibcPacketData_NoData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoData != nil { + l = m.NoData.Size() + n += 1 + l + sovPacket(uint64(l)) + } + return n +} +func (m *NoData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovPacket(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPacket(x uint64) (n int) { + return sovPacket(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *StakeibcPacketData) 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 ErrIntOverflowPacket + } + 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: StakeibcPacketData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StakeibcPacketData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NoData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacket + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacket + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacket + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NoData{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &StakeibcPacketData_NoData{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPacket(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPacket + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NoData) 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 ErrIntOverflowPacket + } + 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: NoData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NoData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipPacket(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPacket + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPacket(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, ErrIntOverflowPacket + } + 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, ErrIntOverflowPacket + } + 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, ErrIntOverflowPacket + } + 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, ErrInvalidLengthPacket + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPacket + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPacket + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPacket = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPacket = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/stakeibc/types/params.pb.go b/x/stakeibc/types/params.pb.go new file mode 100644 index 0000000000..1682f9a0b8 --- /dev/null +++ b/x/stakeibc/types/params.pb.go @@ -0,0 +1,1066 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/stakeibc/params.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +// Params defines the parameters for the module. +// next id: 18 +type Params struct { + // define epoch lengths, in stride_epochs + RewardsInterval uint64 `protobuf:"varint,1,opt,name=rewards_interval,json=rewardsInterval,proto3" json:"rewards_interval,omitempty"` + DelegateInterval uint64 `protobuf:"varint,6,opt,name=delegate_interval,json=delegateInterval,proto3" json:"delegate_interval,omitempty"` + DepositInterval uint64 `protobuf:"varint,2,opt,name=deposit_interval,json=depositInterval,proto3" json:"deposit_interval,omitempty"` + RedemptionRateInterval uint64 `protobuf:"varint,3,opt,name=redemption_rate_interval,json=redemptionRateInterval,proto3" json:"redemption_rate_interval,omitempty"` + StrideCommission uint64 `protobuf:"varint,4,opt,name=stride_commission,json=strideCommission,proto3" json:"stride_commission,omitempty"` + // zone_com_address stores which addresses to + // send the Stride commission too, as well as what portion + // of the fee each address is entitled to + // TODO implement this + ZoneComAddress map[string]string `protobuf:"bytes,5,rep,name=zone_com_address,json=zoneComAddress,proto3" json:"zone_com_address,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ReinvestInterval uint64 `protobuf:"varint,7,opt,name=reinvest_interval,json=reinvestInterval,proto3" json:"reinvest_interval,omitempty"` + ValidatorRebalancingThreshold uint64 `protobuf:"varint,8,opt,name=validator_rebalancing_threshold,json=validatorRebalancingThreshold,proto3" json:"validator_rebalancing_threshold,omitempty"` + IcaTimeoutNanos uint64 `protobuf:"varint,9,opt,name=ica_timeout_nanos,json=icaTimeoutNanos,proto3" json:"ica_timeout_nanos,omitempty"` + BufferSize uint64 `protobuf:"varint,10,opt,name=buffer_size,json=bufferSize,proto3" json:"buffer_size,omitempty"` + IbcTimeoutBlocks uint64 `protobuf:"varint,11,opt,name=ibc_timeout_blocks,json=ibcTimeoutBlocks,proto3" json:"ibc_timeout_blocks,omitempty"` + FeeTransferTimeoutNanos uint64 `protobuf:"varint,12,opt,name=fee_transfer_timeout_nanos,json=feeTransferTimeoutNanos,proto3" json:"fee_transfer_timeout_nanos,omitempty"` + MaxStakeIcaCallsPerEpoch uint64 `protobuf:"varint,13,opt,name=max_stake_ica_calls_per_epoch,json=maxStakeIcaCallsPerEpoch,proto3" json:"max_stake_ica_calls_per_epoch,omitempty"` + DefaultMinRedemptionRateThreshold uint64 `protobuf:"varint,14,opt,name=default_min_redemption_rate_threshold,json=defaultMinRedemptionRateThreshold,proto3" json:"default_min_redemption_rate_threshold,omitempty"` + DefaultMaxRedemptionRateThreshold uint64 `protobuf:"varint,15,opt,name=default_max_redemption_rate_threshold,json=defaultMaxRedemptionRateThreshold,proto3" json:"default_max_redemption_rate_threshold,omitempty"` + IbcTransferTimeoutNanos uint64 `protobuf:"varint,16,opt,name=ibc_transfer_timeout_nanos,json=ibcTransferTimeoutNanos,proto3" json:"ibc_transfer_timeout_nanos,omitempty"` + SafetyNumValidators uint64 `protobuf:"varint,17,opt,name=safety_num_validators,json=safetyNumValidators,proto3" json:"safety_num_validators,omitempty"` + SafetyMaxSlashPercent uint64 `protobuf:"varint,18,opt,name=safety_max_slash_percent,json=safetyMaxSlashPercent,proto3" json:"safety_max_slash_percent,omitempty"` +} + +func (m *Params) Reset() { *m = Params{} } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_5aeaab6a38c2b438, []int{0} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +func (m *Params) GetRewardsInterval() uint64 { + if m != nil { + return m.RewardsInterval + } + return 0 +} + +func (m *Params) GetDelegateInterval() uint64 { + if m != nil { + return m.DelegateInterval + } + return 0 +} + +func (m *Params) GetDepositInterval() uint64 { + if m != nil { + return m.DepositInterval + } + return 0 +} + +func (m *Params) GetRedemptionRateInterval() uint64 { + if m != nil { + return m.RedemptionRateInterval + } + return 0 +} + +func (m *Params) GetStrideCommission() uint64 { + if m != nil { + return m.StrideCommission + } + return 0 +} + +func (m *Params) GetZoneComAddress() map[string]string { + if m != nil { + return m.ZoneComAddress + } + return nil +} + +func (m *Params) GetReinvestInterval() uint64 { + if m != nil { + return m.ReinvestInterval + } + return 0 +} + +func (m *Params) GetValidatorRebalancingThreshold() uint64 { + if m != nil { + return m.ValidatorRebalancingThreshold + } + return 0 +} + +func (m *Params) GetIcaTimeoutNanos() uint64 { + if m != nil { + return m.IcaTimeoutNanos + } + return 0 +} + +func (m *Params) GetBufferSize() uint64 { + if m != nil { + return m.BufferSize + } + return 0 +} + +func (m *Params) GetIbcTimeoutBlocks() uint64 { + if m != nil { + return m.IbcTimeoutBlocks + } + return 0 +} + +func (m *Params) GetFeeTransferTimeoutNanos() uint64 { + if m != nil { + return m.FeeTransferTimeoutNanos + } + return 0 +} + +func (m *Params) GetMaxStakeIcaCallsPerEpoch() uint64 { + if m != nil { + return m.MaxStakeIcaCallsPerEpoch + } + return 0 +} + +func (m *Params) GetDefaultMinRedemptionRateThreshold() uint64 { + if m != nil { + return m.DefaultMinRedemptionRateThreshold + } + return 0 +} + +func (m *Params) GetDefaultMaxRedemptionRateThreshold() uint64 { + if m != nil { + return m.DefaultMaxRedemptionRateThreshold + } + return 0 +} + +func (m *Params) GetIbcTransferTimeoutNanos() uint64 { + if m != nil { + return m.IbcTransferTimeoutNanos + } + return 0 +} + +func (m *Params) GetSafetyNumValidators() uint64 { + if m != nil { + return m.SafetyNumValidators + } + return 0 +} + +func (m *Params) GetSafetyMaxSlashPercent() uint64 { + if m != nil { + return m.SafetyMaxSlashPercent + } + return 0 +} + +func init() { + proto.RegisterType((*Params)(nil), "stride.stakeibc.Params") + proto.RegisterMapType((map[string]string)(nil), "stride.stakeibc.Params.ZoneComAddressEntry") +} + +func init() { proto.RegisterFile("stride/stakeibc/params.proto", fileDescriptor_5aeaab6a38c2b438) } + +var fileDescriptor_5aeaab6a38c2b438 = []byte{ + // 666 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x4f, 0xdb, 0x3c, + 0x18, 0x6f, 0xf9, 0xf7, 0x82, 0x79, 0x5f, 0x68, 0x0d, 0xef, 0x16, 0x55, 0xa3, 0xb0, 0x49, 0x93, + 0x60, 0x6c, 0xad, 0xc6, 0x0e, 0x20, 0x38, 0x4c, 0x80, 0x98, 0x84, 0x36, 0x50, 0x95, 0xb2, 0x1d, + 0xb8, 0x58, 0x4e, 0xf2, 0xb4, 0xb5, 0x48, 0xec, 0xc8, 0x76, 0xba, 0xb6, 0x9f, 0x62, 0xc7, 0x1d, + 0xf7, 0x71, 0x76, 0x9a, 0x38, 0xee, 0x38, 0xc1, 0x17, 0x99, 0x62, 0xa7, 0x09, 0x45, 0x6c, 0xb7, + 0xf4, 0xf7, 0xaf, 0x8f, 0x7f, 0xb2, 0x1f, 0xf4, 0x44, 0x69, 0xc9, 0x02, 0x68, 0x2a, 0x4d, 0xaf, + 0x80, 0x79, 0x7e, 0x33, 0xa6, 0x92, 0x46, 0xaa, 0x11, 0x4b, 0xa1, 0x05, 0x5e, 0xb6, 0x6c, 0x63, + 0xcc, 0xd6, 0x56, 0xbb, 0xa2, 0x2b, 0x0c, 0xd7, 0x4c, 0xbf, 0xac, 0xec, 0xd9, 0x8f, 0x79, 0x34, + 0xd7, 0x32, 0x3e, 0xbc, 0x85, 0x2a, 0x12, 0x3e, 0x53, 0x19, 0x28, 0xc2, 0xb8, 0x06, 0xd9, 0xa7, + 0xa1, 0x53, 0xde, 0x28, 0x6f, 0xce, 0xb8, 0xcb, 0x19, 0x7e, 0x9a, 0xc1, 0x78, 0x1b, 0x55, 0x03, + 0x08, 0xa1, 0x4b, 0x35, 0x14, 0xda, 0x39, 0xa3, 0xad, 0x8c, 0x89, 0x5c, 0xbc, 0x85, 0x2a, 0x01, + 0xc4, 0x42, 0x31, 0x5d, 0x68, 0xa7, 0x6c, 0x6e, 0x86, 0xe7, 0xd2, 0x3d, 0xe4, 0x48, 0x08, 0x20, + 0x8a, 0x35, 0x13, 0x9c, 0xc8, 0x89, 0xf8, 0x69, 0x63, 0x79, 0x54, 0xf0, 0xee, 0xdd, 0x3f, 0xd9, + 0x46, 0x55, 0x7b, 0x60, 0xe2, 0x8b, 0x28, 0x62, 0x4a, 0x31, 0xc1, 0x9d, 0x19, 0x3b, 0x91, 0x25, + 0x8e, 0x73, 0x1c, 0x7f, 0x44, 0x95, 0x91, 0xe0, 0x46, 0x4a, 0x68, 0x10, 0x48, 0x50, 0xca, 0x99, + 0xdd, 0x98, 0xde, 0x5c, 0xdc, 0xd9, 0x6e, 0xdc, 0xab, 0xad, 0x61, 0xcb, 0x69, 0x5c, 0x0a, 0x9e, + 0x26, 0x1c, 0x5a, 0xf5, 0x09, 0xd7, 0x72, 0xe8, 0x2e, 0x8d, 0x26, 0xc0, 0x74, 0x06, 0x09, 0x8c, + 0xf7, 0x41, 0xdd, 0x39, 0xe9, 0x3f, 0x76, 0x86, 0x31, 0x91, 0x0f, 0xfc, 0x0e, 0xad, 0xf7, 0x69, + 0xc8, 0x02, 0xaa, 0x85, 0x24, 0x12, 0x3c, 0x1a, 0x52, 0xee, 0x33, 0xde, 0x25, 0xba, 0x27, 0x41, + 0xf5, 0x44, 0x18, 0x38, 0xf3, 0xc6, 0xba, 0x96, 0xcb, 0xdc, 0x42, 0x75, 0x31, 0x16, 0xe1, 0x17, + 0xa8, 0xca, 0x7c, 0x4a, 0x34, 0x8b, 0x40, 0x24, 0x9a, 0x70, 0xca, 0x85, 0x72, 0x16, 0x6c, 0xbd, + 0xcc, 0xa7, 0x17, 0x16, 0x3f, 0x4f, 0x61, 0xbc, 0x8e, 0x16, 0xbd, 0xa4, 0xd3, 0x01, 0x49, 0x14, + 0x1b, 0x81, 0x83, 0x8c, 0x0a, 0x59, 0xa8, 0xcd, 0x46, 0x80, 0x5f, 0x22, 0xcc, 0x3c, 0x3f, 0x0f, + 0xf3, 0x42, 0xe1, 0x5f, 0x29, 0x67, 0xd1, 0x1e, 0x81, 0x79, 0x7e, 0x96, 0x76, 0x64, 0x70, 0x7c, + 0x80, 0x6a, 0x1d, 0x00, 0xa2, 0x25, 0xe5, 0x2a, 0x0d, 0x9d, 0x9c, 0xe1, 0x5f, 0xe3, 0x7a, 0xdc, + 0x01, 0xb8, 0xc8, 0x04, 0x13, 0xb3, 0xbc, 0x45, 0x6b, 0x11, 0x1d, 0x10, 0xd3, 0x33, 0x49, 0x4f, + 0xe0, 0xd3, 0x30, 0x54, 0x24, 0x06, 0x49, 0x20, 0x16, 0x7e, 0xcf, 0xf9, 0xcf, 0xf8, 0x9d, 0x88, + 0x0e, 0xda, 0xa9, 0xe6, 0xd4, 0xa7, 0xc7, 0xa9, 0xa2, 0x05, 0xf2, 0x24, 0xe5, 0x71, 0x0b, 0x3d, + 0x0f, 0xa0, 0x43, 0x93, 0x50, 0x93, 0x88, 0x71, 0x72, 0xff, 0xde, 0x14, 0x35, 0x2e, 0x99, 0xa0, + 0xa7, 0x99, 0xf8, 0x8c, 0x71, 0x77, 0xe2, 0x0a, 0x15, 0x55, 0xde, 0x4d, 0xa4, 0x83, 0xbf, 0x24, + 0x2e, 0x4f, 0x26, 0xd2, 0xc1, 0x9f, 0x12, 0x0f, 0x50, 0xcd, 0xf4, 0xf9, 0x70, 0x43, 0x15, 0xdb, + 0x50, 0xda, 0xeb, 0x43, 0x0d, 0xed, 0xa0, 0xff, 0x15, 0xed, 0x80, 0x1e, 0x12, 0x9e, 0x44, 0x24, + 0xbf, 0x05, 0xca, 0xa9, 0x1a, 0xdf, 0x8a, 0x25, 0xcf, 0x93, 0xe8, 0x53, 0x4e, 0xe1, 0x5d, 0xe4, + 0x64, 0x1e, 0x53, 0x6e, 0x48, 0x55, 0x2f, 0xad, 0xd4, 0x07, 0xae, 0x1d, 0x6c, 0x6c, 0x59, 0xe6, + 0x19, 0x1d, 0xb4, 0x53, 0xb6, 0x65, 0xc9, 0xda, 0x21, 0x5a, 0x79, 0xe0, 0x8a, 0xe3, 0x0a, 0x9a, + 0xbe, 0x82, 0xa1, 0x59, 0x03, 0x0b, 0x6e, 0xfa, 0x89, 0x57, 0xd1, 0x6c, 0x9f, 0x86, 0x09, 0x98, + 0x27, 0xbc, 0xe0, 0xda, 0x1f, 0xfb, 0x53, 0x7b, 0xe5, 0xfd, 0x99, 0xaf, 0xdf, 0xd6, 0x4b, 0x47, + 0xef, 0xbf, 0xdf, 0xd4, 0xcb, 0xd7, 0x37, 0xf5, 0xf2, 0xaf, 0x9b, 0x7a, 0xf9, 0xcb, 0x6d, 0xbd, + 0x74, 0x7d, 0x5b, 0x2f, 0xfd, 0xbc, 0xad, 0x97, 0x2e, 0x5f, 0x77, 0x99, 0xee, 0x25, 0x5e, 0xc3, + 0x17, 0x51, 0xb3, 0x6d, 0x5e, 0xd9, 0xab, 0x0f, 0xd4, 0x53, 0xcd, 0x6c, 0x8d, 0xf5, 0x77, 0x9b, + 0x83, 0x62, 0x97, 0xe9, 0x61, 0x0c, 0xca, 0x9b, 0x33, 0x4b, 0xea, 0xcd, 0xef, 0x00, 0x00, 0x00, + 0xff, 0xff, 0xdf, 0x22, 0xed, 0xc0, 0xeb, 0x04, 0x00, 0x00, +} + +func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SafetyMaxSlashPercent != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.SafetyMaxSlashPercent)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } + if m.SafetyNumValidators != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.SafetyNumValidators)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if m.IbcTransferTimeoutNanos != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.IbcTransferTimeoutNanos)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 + } + if m.DefaultMaxRedemptionRateThreshold != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.DefaultMaxRedemptionRateThreshold)) + i-- + dAtA[i] = 0x78 + } + if m.DefaultMinRedemptionRateThreshold != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.DefaultMinRedemptionRateThreshold)) + i-- + dAtA[i] = 0x70 + } + if m.MaxStakeIcaCallsPerEpoch != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.MaxStakeIcaCallsPerEpoch)) + i-- + dAtA[i] = 0x68 + } + if m.FeeTransferTimeoutNanos != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.FeeTransferTimeoutNanos)) + i-- + dAtA[i] = 0x60 + } + if m.IbcTimeoutBlocks != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.IbcTimeoutBlocks)) + i-- + dAtA[i] = 0x58 + } + if m.BufferSize != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.BufferSize)) + i-- + dAtA[i] = 0x50 + } + if m.IcaTimeoutNanos != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.IcaTimeoutNanos)) + i-- + dAtA[i] = 0x48 + } + if m.ValidatorRebalancingThreshold != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.ValidatorRebalancingThreshold)) + i-- + dAtA[i] = 0x40 + } + if m.ReinvestInterval != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.ReinvestInterval)) + i-- + dAtA[i] = 0x38 + } + if m.DelegateInterval != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.DelegateInterval)) + i-- + dAtA[i] = 0x30 + } + if len(m.ZoneComAddress) > 0 { + for k := range m.ZoneComAddress { + v := m.ZoneComAddress[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintParams(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintParams(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintParams(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x2a + } + } + if m.StrideCommission != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.StrideCommission)) + i-- + dAtA[i] = 0x20 + } + if m.RedemptionRateInterval != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.RedemptionRateInterval)) + i-- + dAtA[i] = 0x18 + } + if m.DepositInterval != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.DepositInterval)) + i-- + dAtA[i] = 0x10 + } + if m.RewardsInterval != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.RewardsInterval)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintParams(dAtA []byte, offset int, v uint64) int { + offset -= sovParams(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RewardsInterval != 0 { + n += 1 + sovParams(uint64(m.RewardsInterval)) + } + if m.DepositInterval != 0 { + n += 1 + sovParams(uint64(m.DepositInterval)) + } + if m.RedemptionRateInterval != 0 { + n += 1 + sovParams(uint64(m.RedemptionRateInterval)) + } + if m.StrideCommission != 0 { + n += 1 + sovParams(uint64(m.StrideCommission)) + } + if len(m.ZoneComAddress) > 0 { + for k, v := range m.ZoneComAddress { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovParams(uint64(len(k))) + 1 + len(v) + sovParams(uint64(len(v))) + n += mapEntrySize + 1 + sovParams(uint64(mapEntrySize)) + } + } + if m.DelegateInterval != 0 { + n += 1 + sovParams(uint64(m.DelegateInterval)) + } + if m.ReinvestInterval != 0 { + n += 1 + sovParams(uint64(m.ReinvestInterval)) + } + if m.ValidatorRebalancingThreshold != 0 { + n += 1 + sovParams(uint64(m.ValidatorRebalancingThreshold)) + } + if m.IcaTimeoutNanos != 0 { + n += 1 + sovParams(uint64(m.IcaTimeoutNanos)) + } + if m.BufferSize != 0 { + n += 1 + sovParams(uint64(m.BufferSize)) + } + if m.IbcTimeoutBlocks != 0 { + n += 1 + sovParams(uint64(m.IbcTimeoutBlocks)) + } + if m.FeeTransferTimeoutNanos != 0 { + n += 1 + sovParams(uint64(m.FeeTransferTimeoutNanos)) + } + if m.MaxStakeIcaCallsPerEpoch != 0 { + n += 1 + sovParams(uint64(m.MaxStakeIcaCallsPerEpoch)) + } + if m.DefaultMinRedemptionRateThreshold != 0 { + n += 1 + sovParams(uint64(m.DefaultMinRedemptionRateThreshold)) + } + if m.DefaultMaxRedemptionRateThreshold != 0 { + n += 1 + sovParams(uint64(m.DefaultMaxRedemptionRateThreshold)) + } + if m.IbcTransferTimeoutNanos != 0 { + n += 2 + sovParams(uint64(m.IbcTransferTimeoutNanos)) + } + if m.SafetyNumValidators != 0 { + n += 2 + sovParams(uint64(m.SafetyNumValidators)) + } + if m.SafetyMaxSlashPercent != 0 { + n += 2 + sovParams(uint64(m.SafetyMaxSlashPercent)) + } + return n +} + +func sovParams(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozParams(x uint64) (n int) { + return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Params) 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 ErrIntOverflowParams + } + 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: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RewardsInterval", wireType) + } + m.RewardsInterval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RewardsInterval |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositInterval", wireType) + } + m.DepositInterval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DepositInterval |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RedemptionRateInterval", wireType) + } + m.RedemptionRateInterval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RedemptionRateInterval |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StrideCommission", wireType) + } + m.StrideCommission = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StrideCommission |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ZoneComAddress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ZoneComAddress == nil { + m.ZoneComAddress = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthParams + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthParams + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthParams + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthParams + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipParams(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthParams + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.ZoneComAddress[mapkey] = mapvalue + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegateInterval", wireType) + } + m.DelegateInterval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DelegateInterval |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReinvestInterval", wireType) + } + m.ReinvestInterval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReinvestInterval |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorRebalancingThreshold", wireType) + } + m.ValidatorRebalancingThreshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ValidatorRebalancingThreshold |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IcaTimeoutNanos", wireType) + } + m.IcaTimeoutNanos = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.IcaTimeoutNanos |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BufferSize", wireType) + } + m.BufferSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BufferSize |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IbcTimeoutBlocks", wireType) + } + m.IbcTimeoutBlocks = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.IbcTimeoutBlocks |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeTransferTimeoutNanos", wireType) + } + m.FeeTransferTimeoutNanos = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FeeTransferTimeoutNanos |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxStakeIcaCallsPerEpoch", wireType) + } + m.MaxStakeIcaCallsPerEpoch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxStakeIcaCallsPerEpoch |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultMinRedemptionRateThreshold", wireType) + } + m.DefaultMinRedemptionRateThreshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DefaultMinRedemptionRateThreshold |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultMaxRedemptionRateThreshold", wireType) + } + m.DefaultMaxRedemptionRateThreshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DefaultMaxRedemptionRateThreshold |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IbcTransferTimeoutNanos", wireType) + } + m.IbcTransferTimeoutNanos = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.IbcTransferTimeoutNanos |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SafetyNumValidators", wireType) + } + m.SafetyNumValidators = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SafetyNumValidators |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SafetyMaxSlashPercent", wireType) + } + m.SafetyMaxSlashPercent = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SafetyMaxSlashPercent |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipParams(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthParams + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipParams(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, ErrIntOverflowParams + } + 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, ErrIntOverflowParams + } + 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, ErrIntOverflowParams + } + 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, ErrInvalidLengthParams + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupParams + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthParams + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/stakeibc/types/query.pb.go b/x/stakeibc/types/query.pb.go new file mode 100644 index 0000000000..d9cc9d05b5 --- /dev/null +++ b/x/stakeibc/types/query.pb.go @@ -0,0 +1,4157 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/stakeibc/query.proto + +package types + +import ( + context "context" + fmt "fmt" + query "github.com/cosmos/cosmos-sdk/types/query" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + 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 + +// QueryInterchainAccountFromAddressRequest is the request type for the +// Query/InterchainAccountAddress RPC +type QueryInterchainAccountFromAddressRequest struct { + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"` +} + +func (m *QueryInterchainAccountFromAddressRequest) Reset() { + *m = QueryInterchainAccountFromAddressRequest{} +} +func (m *QueryInterchainAccountFromAddressRequest) String() string { return proto.CompactTextString(m) } +func (*QueryInterchainAccountFromAddressRequest) ProtoMessage() {} +func (*QueryInterchainAccountFromAddressRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{0} +} +func (m *QueryInterchainAccountFromAddressRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryInterchainAccountFromAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryInterchainAccountFromAddressRequest.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 *QueryInterchainAccountFromAddressRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInterchainAccountFromAddressRequest.Merge(m, src) +} +func (m *QueryInterchainAccountFromAddressRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryInterchainAccountFromAddressRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInterchainAccountFromAddressRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryInterchainAccountFromAddressRequest proto.InternalMessageInfo + +func (m *QueryInterchainAccountFromAddressRequest) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *QueryInterchainAccountFromAddressRequest) GetConnectionId() string { + if m != nil { + return m.ConnectionId + } + return "" +} + +// QueryInterchainAccountFromAddressResponse the response type for the +// Query/InterchainAccountAddress RPC +type QueryInterchainAccountFromAddressResponse struct { + InterchainAccountAddress string `protobuf:"bytes,1,opt,name=interchain_account_address,json=interchainAccountAddress,proto3" json:"interchain_account_address,omitempty" yaml:"interchain_account_address"` +} + +func (m *QueryInterchainAccountFromAddressResponse) Reset() { + *m = QueryInterchainAccountFromAddressResponse{} +} +func (m *QueryInterchainAccountFromAddressResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryInterchainAccountFromAddressResponse) ProtoMessage() {} +func (*QueryInterchainAccountFromAddressResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{1} +} +func (m *QueryInterchainAccountFromAddressResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryInterchainAccountFromAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryInterchainAccountFromAddressResponse.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 *QueryInterchainAccountFromAddressResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInterchainAccountFromAddressResponse.Merge(m, src) +} +func (m *QueryInterchainAccountFromAddressResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryInterchainAccountFromAddressResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInterchainAccountFromAddressResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryInterchainAccountFromAddressResponse proto.InternalMessageInfo + +func (m *QueryInterchainAccountFromAddressResponse) GetInterchainAccountAddress() string { + if m != nil { + return m.InterchainAccountAddress + } + return "" +} + +// QueryParamsRequest is request type for the Query/Params RPC method. +type QueryParamsRequest struct { +} + +func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } +func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryParamsRequest) ProtoMessage() {} +func (*QueryParamsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{2} +} +func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsRequest.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 *QueryParamsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsRequest.Merge(m, src) +} +func (m *QueryParamsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo + +// QueryParamsResponse is response type for the Query/Params RPC method. +type QueryParamsResponse struct { + // params holds all the parameters of this module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` +} + +func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } +func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryParamsResponse) ProtoMessage() {} +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{3} +} +func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsResponse.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 *QueryParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsResponse.Merge(m, src) +} +func (m *QueryParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo + +func (m *QueryParamsResponse) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +type QueryGetValidatorsRequest struct { + ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` +} + +func (m *QueryGetValidatorsRequest) Reset() { *m = QueryGetValidatorsRequest{} } +func (m *QueryGetValidatorsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetValidatorsRequest) ProtoMessage() {} +func (*QueryGetValidatorsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{4} +} +func (m *QueryGetValidatorsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetValidatorsRequest.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 *QueryGetValidatorsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetValidatorsRequest.Merge(m, src) +} +func (m *QueryGetValidatorsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetValidatorsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetValidatorsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetValidatorsRequest proto.InternalMessageInfo + +func (m *QueryGetValidatorsRequest) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +type QueryGetValidatorsResponse struct { + Validators []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"` +} + +func (m *QueryGetValidatorsResponse) Reset() { *m = QueryGetValidatorsResponse{} } +func (m *QueryGetValidatorsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetValidatorsResponse) ProtoMessage() {} +func (*QueryGetValidatorsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{5} +} +func (m *QueryGetValidatorsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetValidatorsResponse.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 *QueryGetValidatorsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetValidatorsResponse.Merge(m, src) +} +func (m *QueryGetValidatorsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetValidatorsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetValidatorsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetValidatorsResponse proto.InternalMessageInfo + +func (m *QueryGetValidatorsResponse) GetValidators() []*Validator { + if m != nil { + return m.Validators + } + return nil +} + +type QueryGetHostZoneRequest struct { + ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` +} + +func (m *QueryGetHostZoneRequest) Reset() { *m = QueryGetHostZoneRequest{} } +func (m *QueryGetHostZoneRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetHostZoneRequest) ProtoMessage() {} +func (*QueryGetHostZoneRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{6} +} +func (m *QueryGetHostZoneRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetHostZoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetHostZoneRequest.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 *QueryGetHostZoneRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetHostZoneRequest.Merge(m, src) +} +func (m *QueryGetHostZoneRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetHostZoneRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetHostZoneRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetHostZoneRequest proto.InternalMessageInfo + +func (m *QueryGetHostZoneRequest) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +type QueryGetHostZoneResponse struct { + HostZone HostZone `protobuf:"bytes,1,opt,name=host_zone,json=hostZone,proto3" json:"host_zone"` +} + +func (m *QueryGetHostZoneResponse) Reset() { *m = QueryGetHostZoneResponse{} } +func (m *QueryGetHostZoneResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetHostZoneResponse) ProtoMessage() {} +func (*QueryGetHostZoneResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{7} +} +func (m *QueryGetHostZoneResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetHostZoneResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetHostZoneResponse.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 *QueryGetHostZoneResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetHostZoneResponse.Merge(m, src) +} +func (m *QueryGetHostZoneResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetHostZoneResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetHostZoneResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetHostZoneResponse proto.InternalMessageInfo + +func (m *QueryGetHostZoneResponse) GetHostZone() HostZone { + if m != nil { + return m.HostZone + } + return HostZone{} +} + +type QueryAllHostZoneRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllHostZoneRequest) Reset() { *m = QueryAllHostZoneRequest{} } +func (m *QueryAllHostZoneRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllHostZoneRequest) ProtoMessage() {} +func (*QueryAllHostZoneRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{8} +} +func (m *QueryAllHostZoneRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllHostZoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllHostZoneRequest.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 *QueryAllHostZoneRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllHostZoneRequest.Merge(m, src) +} +func (m *QueryAllHostZoneRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllHostZoneRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllHostZoneRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllHostZoneRequest proto.InternalMessageInfo + +func (m *QueryAllHostZoneRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllHostZoneResponse struct { + HostZone []HostZone `protobuf:"bytes,1,rep,name=host_zone,json=hostZone,proto3" json:"host_zone"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllHostZoneResponse) Reset() { *m = QueryAllHostZoneResponse{} } +func (m *QueryAllHostZoneResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllHostZoneResponse) ProtoMessage() {} +func (*QueryAllHostZoneResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{9} +} +func (m *QueryAllHostZoneResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllHostZoneResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllHostZoneResponse.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 *QueryAllHostZoneResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllHostZoneResponse.Merge(m, src) +} +func (m *QueryAllHostZoneResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllHostZoneResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllHostZoneResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllHostZoneResponse proto.InternalMessageInfo + +func (m *QueryAllHostZoneResponse) GetHostZone() []HostZone { + if m != nil { + return m.HostZone + } + return nil +} + +func (m *QueryAllHostZoneResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryModuleAddressRequest struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *QueryModuleAddressRequest) Reset() { *m = QueryModuleAddressRequest{} } +func (m *QueryModuleAddressRequest) String() string { return proto.CompactTextString(m) } +func (*QueryModuleAddressRequest) ProtoMessage() {} +func (*QueryModuleAddressRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{10} +} +func (m *QueryModuleAddressRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryModuleAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryModuleAddressRequest.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 *QueryModuleAddressRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryModuleAddressRequest.Merge(m, src) +} +func (m *QueryModuleAddressRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryModuleAddressRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryModuleAddressRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryModuleAddressRequest proto.InternalMessageInfo + +func (m *QueryModuleAddressRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type QueryModuleAddressResponse struct { + Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` +} + +func (m *QueryModuleAddressResponse) Reset() { *m = QueryModuleAddressResponse{} } +func (m *QueryModuleAddressResponse) String() string { return proto.CompactTextString(m) } +func (*QueryModuleAddressResponse) ProtoMessage() {} +func (*QueryModuleAddressResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{11} +} +func (m *QueryModuleAddressResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryModuleAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryModuleAddressResponse.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 *QueryModuleAddressResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryModuleAddressResponse.Merge(m, src) +} +func (m *QueryModuleAddressResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryModuleAddressResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryModuleAddressResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryModuleAddressResponse proto.InternalMessageInfo + +func (m *QueryModuleAddressResponse) GetAddr() string { + if m != nil { + return m.Addr + } + return "" +} + +type QueryGetEpochTrackerRequest struct { + EpochIdentifier string `protobuf:"bytes,1,opt,name=epoch_identifier,json=epochIdentifier,proto3" json:"epoch_identifier,omitempty"` +} + +func (m *QueryGetEpochTrackerRequest) Reset() { *m = QueryGetEpochTrackerRequest{} } +func (m *QueryGetEpochTrackerRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetEpochTrackerRequest) ProtoMessage() {} +func (*QueryGetEpochTrackerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{12} +} +func (m *QueryGetEpochTrackerRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetEpochTrackerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetEpochTrackerRequest.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 *QueryGetEpochTrackerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetEpochTrackerRequest.Merge(m, src) +} +func (m *QueryGetEpochTrackerRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetEpochTrackerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetEpochTrackerRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetEpochTrackerRequest proto.InternalMessageInfo + +func (m *QueryGetEpochTrackerRequest) GetEpochIdentifier() string { + if m != nil { + return m.EpochIdentifier + } + return "" +} + +type QueryGetEpochTrackerResponse struct { + EpochTracker EpochTracker `protobuf:"bytes,1,opt,name=epoch_tracker,json=epochTracker,proto3" json:"epoch_tracker"` +} + +func (m *QueryGetEpochTrackerResponse) Reset() { *m = QueryGetEpochTrackerResponse{} } +func (m *QueryGetEpochTrackerResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetEpochTrackerResponse) ProtoMessage() {} +func (*QueryGetEpochTrackerResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{13} +} +func (m *QueryGetEpochTrackerResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetEpochTrackerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetEpochTrackerResponse.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 *QueryGetEpochTrackerResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetEpochTrackerResponse.Merge(m, src) +} +func (m *QueryGetEpochTrackerResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetEpochTrackerResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetEpochTrackerResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetEpochTrackerResponse proto.InternalMessageInfo + +func (m *QueryGetEpochTrackerResponse) GetEpochTracker() EpochTracker { + if m != nil { + return m.EpochTracker + } + return EpochTracker{} +} + +type QueryAllEpochTrackerRequest struct { +} + +func (m *QueryAllEpochTrackerRequest) Reset() { *m = QueryAllEpochTrackerRequest{} } +func (m *QueryAllEpochTrackerRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllEpochTrackerRequest) ProtoMessage() {} +func (*QueryAllEpochTrackerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{14} +} +func (m *QueryAllEpochTrackerRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllEpochTrackerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllEpochTrackerRequest.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 *QueryAllEpochTrackerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllEpochTrackerRequest.Merge(m, src) +} +func (m *QueryAllEpochTrackerRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllEpochTrackerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllEpochTrackerRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllEpochTrackerRequest proto.InternalMessageInfo + +type QueryAllEpochTrackerResponse struct { + EpochTracker []EpochTracker `protobuf:"bytes,1,rep,name=epoch_tracker,json=epochTracker,proto3" json:"epoch_tracker"` +} + +func (m *QueryAllEpochTrackerResponse) Reset() { *m = QueryAllEpochTrackerResponse{} } +func (m *QueryAllEpochTrackerResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllEpochTrackerResponse) ProtoMessage() {} +func (*QueryAllEpochTrackerResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{15} +} +func (m *QueryAllEpochTrackerResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllEpochTrackerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllEpochTrackerResponse.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 *QueryAllEpochTrackerResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllEpochTrackerResponse.Merge(m, src) +} +func (m *QueryAllEpochTrackerResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllEpochTrackerResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllEpochTrackerResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllEpochTrackerResponse proto.InternalMessageInfo + +func (m *QueryAllEpochTrackerResponse) GetEpochTracker() []EpochTracker { + if m != nil { + return m.EpochTracker + } + return nil +} + +type QueryGetNextPacketSequenceRequest struct { + ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` +} + +func (m *QueryGetNextPacketSequenceRequest) Reset() { *m = QueryGetNextPacketSequenceRequest{} } +func (m *QueryGetNextPacketSequenceRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGetNextPacketSequenceRequest) ProtoMessage() {} +func (*QueryGetNextPacketSequenceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{16} +} +func (m *QueryGetNextPacketSequenceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetNextPacketSequenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetNextPacketSequenceRequest.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 *QueryGetNextPacketSequenceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetNextPacketSequenceRequest.Merge(m, src) +} +func (m *QueryGetNextPacketSequenceRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryGetNextPacketSequenceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetNextPacketSequenceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetNextPacketSequenceRequest proto.InternalMessageInfo + +func (m *QueryGetNextPacketSequenceRequest) GetChannelId() string { + if m != nil { + return m.ChannelId + } + return "" +} + +func (m *QueryGetNextPacketSequenceRequest) GetPortId() string { + if m != nil { + return m.PortId + } + return "" +} + +type QueryGetNextPacketSequenceResponse struct { + Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"` +} + +func (m *QueryGetNextPacketSequenceResponse) Reset() { *m = QueryGetNextPacketSequenceResponse{} } +func (m *QueryGetNextPacketSequenceResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGetNextPacketSequenceResponse) ProtoMessage() {} +func (*QueryGetNextPacketSequenceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{17} +} +func (m *QueryGetNextPacketSequenceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryGetNextPacketSequenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryGetNextPacketSequenceResponse.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 *QueryGetNextPacketSequenceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGetNextPacketSequenceResponse.Merge(m, src) +} +func (m *QueryGetNextPacketSequenceResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryGetNextPacketSequenceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGetNextPacketSequenceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryGetNextPacketSequenceResponse proto.InternalMessageInfo + +func (m *QueryGetNextPacketSequenceResponse) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +type QueryAddressUnbondings struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *QueryAddressUnbondings) Reset() { *m = QueryAddressUnbondings{} } +func (m *QueryAddressUnbondings) String() string { return proto.CompactTextString(m) } +func (*QueryAddressUnbondings) ProtoMessage() {} +func (*QueryAddressUnbondings) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{18} +} +func (m *QueryAddressUnbondings) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAddressUnbondings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAddressUnbondings.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 *QueryAddressUnbondings) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAddressUnbondings.Merge(m, src) +} +func (m *QueryAddressUnbondings) XXX_Size() int { + return m.Size() +} +func (m *QueryAddressUnbondings) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAddressUnbondings.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAddressUnbondings proto.InternalMessageInfo + +func (m *QueryAddressUnbondings) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +type QueryAddressUnbondingsResponse struct { + AddressUnbondings []AddressUnbonding `protobuf:"bytes,1,rep,name=address_unbondings,json=addressUnbondings,proto3" json:"address_unbondings"` +} + +func (m *QueryAddressUnbondingsResponse) Reset() { *m = QueryAddressUnbondingsResponse{} } +func (m *QueryAddressUnbondingsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAddressUnbondingsResponse) ProtoMessage() {} +func (*QueryAddressUnbondingsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_494b786fe66f2b80, []int{19} +} +func (m *QueryAddressUnbondingsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAddressUnbondingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAddressUnbondingsResponse.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 *QueryAddressUnbondingsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAddressUnbondingsResponse.Merge(m, src) +} +func (m *QueryAddressUnbondingsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAddressUnbondingsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAddressUnbondingsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAddressUnbondingsResponse proto.InternalMessageInfo + +func (m *QueryAddressUnbondingsResponse) GetAddressUnbondings() []AddressUnbonding { + if m != nil { + return m.AddressUnbondings + } + return nil +} + +func init() { + proto.RegisterType((*QueryInterchainAccountFromAddressRequest)(nil), "stride.stakeibc.QueryInterchainAccountFromAddressRequest") + proto.RegisterType((*QueryInterchainAccountFromAddressResponse)(nil), "stride.stakeibc.QueryInterchainAccountFromAddressResponse") + proto.RegisterType((*QueryParamsRequest)(nil), "stride.stakeibc.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "stride.stakeibc.QueryParamsResponse") + proto.RegisterType((*QueryGetValidatorsRequest)(nil), "stride.stakeibc.QueryGetValidatorsRequest") + proto.RegisterType((*QueryGetValidatorsResponse)(nil), "stride.stakeibc.QueryGetValidatorsResponse") + proto.RegisterType((*QueryGetHostZoneRequest)(nil), "stride.stakeibc.QueryGetHostZoneRequest") + proto.RegisterType((*QueryGetHostZoneResponse)(nil), "stride.stakeibc.QueryGetHostZoneResponse") + proto.RegisterType((*QueryAllHostZoneRequest)(nil), "stride.stakeibc.QueryAllHostZoneRequest") + proto.RegisterType((*QueryAllHostZoneResponse)(nil), "stride.stakeibc.QueryAllHostZoneResponse") + proto.RegisterType((*QueryModuleAddressRequest)(nil), "stride.stakeibc.QueryModuleAddressRequest") + proto.RegisterType((*QueryModuleAddressResponse)(nil), "stride.stakeibc.QueryModuleAddressResponse") + proto.RegisterType((*QueryGetEpochTrackerRequest)(nil), "stride.stakeibc.QueryGetEpochTrackerRequest") + proto.RegisterType((*QueryGetEpochTrackerResponse)(nil), "stride.stakeibc.QueryGetEpochTrackerResponse") + proto.RegisterType((*QueryAllEpochTrackerRequest)(nil), "stride.stakeibc.QueryAllEpochTrackerRequest") + proto.RegisterType((*QueryAllEpochTrackerResponse)(nil), "stride.stakeibc.QueryAllEpochTrackerResponse") + proto.RegisterType((*QueryGetNextPacketSequenceRequest)(nil), "stride.stakeibc.QueryGetNextPacketSequenceRequest") + proto.RegisterType((*QueryGetNextPacketSequenceResponse)(nil), "stride.stakeibc.QueryGetNextPacketSequenceResponse") + proto.RegisterType((*QueryAddressUnbondings)(nil), "stride.stakeibc.QueryAddressUnbondings") + proto.RegisterType((*QueryAddressUnbondingsResponse)(nil), "stride.stakeibc.QueryAddressUnbondingsResponse") +} + +func init() { proto.RegisterFile("stride/stakeibc/query.proto", fileDescriptor_494b786fe66f2b80) } + +var fileDescriptor_494b786fe66f2b80 = []byte{ + // 1156 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x97, 0x4d, 0x6f, 0x1b, 0x45, + 0x18, 0xc7, 0xb3, 0x4d, 0x9a, 0x97, 0x27, 0x89, 0x42, 0x87, 0x88, 0x38, 0xdb, 0xc4, 0x21, 0xd3, + 0xd2, 0xbc, 0x90, 0x7a, 0x89, 0x53, 0x40, 0x8d, 0xa8, 0x20, 0x91, 0xda, 0xc6, 0x50, 0x50, 0x70, + 0xa1, 0x42, 0xe5, 0x60, 0x8d, 0x77, 0x07, 0x7b, 0xd5, 0xf5, 0x8c, 0xbb, 0xbb, 0x0e, 0x09, 0x91, + 0x55, 0x89, 0x4f, 0x50, 0x81, 0xb8, 0x70, 0x2b, 0xe2, 0xc0, 0x99, 0x4f, 0xd1, 0x1b, 0x95, 0xb8, + 0x70, 0x8a, 0x50, 0xc2, 0x27, 0xa8, 0xf8, 0x00, 0x68, 0x67, 0x66, 0xd7, 0xf6, 0xbe, 0x18, 0xa7, + 0x37, 0xcf, 0xcc, 0xf3, 0xf2, 0x9b, 0x67, 0x9e, 0xf9, 0xcf, 0x1a, 0x2e, 0x7b, 0xbe, 0x6b, 0x5b, + 0xd4, 0xf0, 0x7c, 0xf2, 0x88, 0xda, 0x55, 0xd3, 0x78, 0xdc, 0xa2, 0xee, 0x51, 0xa1, 0xe9, 0x72, + 0x9f, 0xa3, 0x19, 0xb9, 0x58, 0x08, 0x17, 0xf5, 0xd9, 0x1a, 0xaf, 0x71, 0xb1, 0x66, 0x04, 0xbf, + 0xa4, 0x99, 0xbe, 0x50, 0xe3, 0xbc, 0xe6, 0x50, 0x83, 0x34, 0x6d, 0x83, 0x30, 0xc6, 0x7d, 0xe2, + 0xdb, 0x9c, 0x79, 0x6a, 0x75, 0xdd, 0xe4, 0x5e, 0x83, 0x7b, 0x46, 0x95, 0x78, 0x54, 0x46, 0x37, + 0x0e, 0x36, 0xab, 0xd4, 0x27, 0x9b, 0x46, 0x93, 0xd4, 0x6c, 0x26, 0x8c, 0xc3, 0x48, 0x71, 0x9a, + 0x26, 0x71, 0x49, 0x23, 0x8c, 0xb4, 0x14, 0x5f, 0x3d, 0x20, 0x8e, 0x6d, 0x11, 0x9f, 0xbb, 0x59, + 0x06, 0x75, 0xee, 0xf9, 0x95, 0xef, 0x38, 0xa3, 0xca, 0xe0, 0x4a, 0xdc, 0x80, 0x36, 0xb9, 0x59, + 0xaf, 0xf8, 0x2e, 0x31, 0x1f, 0xd1, 0x30, 0xca, 0x4a, 0xdc, 0x88, 0x58, 0x96, 0x4b, 0x3d, 0xaf, + 0xd2, 0x62, 0x55, 0xce, 0x2c, 0x9b, 0xd5, 0xa4, 0x21, 0x7e, 0x02, 0xab, 0x9f, 0x07, 0xfb, 0x29, + 0x31, 0x9f, 0xba, 0x66, 0x9d, 0xd8, 0x6c, 0xc7, 0x34, 0x79, 0x8b, 0xf9, 0x77, 0x5c, 0xde, 0xd8, + 0x91, 0x4e, 0x65, 0xfa, 0xb8, 0x45, 0x3d, 0x1f, 0xcd, 0xc2, 0x45, 0xfe, 0x2d, 0xa3, 0x6e, 0x4e, + 0x7b, 0x53, 0x5b, 0x9d, 0x28, 0xcb, 0x01, 0xba, 0x05, 0xd3, 0x26, 0x67, 0x8c, 0x9a, 0x41, 0x0d, + 0x2a, 0xb6, 0x95, 0xbb, 0x10, 0xac, 0xee, 0xe6, 0x5e, 0x9e, 0x2c, 0xcd, 0x1e, 0x91, 0x86, 0xb3, + 0x8d, 0x7b, 0x96, 0x71, 0x79, 0xaa, 0x33, 0x2e, 0x59, 0xf8, 0xa9, 0x06, 0x6b, 0x03, 0x10, 0x78, + 0x4d, 0xce, 0x3c, 0x8a, 0x4c, 0xd0, 0xed, 0xc8, 0xae, 0x42, 0xa4, 0x61, 0x45, 0x6d, 0x4e, 0x72, + 0xed, 0xbe, 0xf5, 0xf2, 0x64, 0x69, 0x59, 0x66, 0xce, 0xb6, 0xc5, 0xe5, 0x9c, 0x1d, 0x4f, 0xa8, + 0x92, 0xe1, 0x59, 0x40, 0x82, 0x68, 0x5f, 0x1c, 0x9c, 0xda, 0x3d, 0xbe, 0x07, 0xaf, 0xf7, 0xcc, + 0x2a, 0xa2, 0x77, 0x61, 0x54, 0x1e, 0xb0, 0xc8, 0x3e, 0x59, 0x9c, 0x2b, 0xc4, 0x1a, 0xae, 0x20, + 0x1d, 0x76, 0x47, 0x9e, 0x9f, 0x2c, 0x0d, 0x95, 0x95, 0x31, 0x7e, 0x0f, 0xe6, 0x45, 0xb4, 0xbb, + 0xd4, 0x7f, 0x10, 0x76, 0x40, 0x54, 0xe8, 0x79, 0x18, 0x97, 0xd0, 0xb6, 0xa5, 0x6a, 0x3d, 0x26, + 0xc6, 0x25, 0x0b, 0x7f, 0x05, 0x7a, 0x9a, 0x9f, 0x82, 0xd9, 0x06, 0x88, 0xfa, 0x29, 0x00, 0x1a, + 0x5e, 0x9d, 0x2c, 0xea, 0x09, 0xa0, 0xc8, 0xb1, 0xdc, 0x65, 0x8d, 0x6f, 0xc0, 0x5c, 0x18, 0x79, + 0x8f, 0x7b, 0xfe, 0x43, 0xce, 0xe8, 0x40, 0x3c, 0xb9, 0xa4, 0x97, 0xa2, 0xf9, 0x00, 0x26, 0xa2, + 0xe6, 0x55, 0xd5, 0x99, 0x4f, 0xc0, 0x84, 0x5e, 0xaa, 0x3e, 0xe3, 0x75, 0x35, 0xc6, 0x44, 0xf1, + 0xec, 0x38, 0x4e, 0x9c, 0xe7, 0x0e, 0x40, 0xe7, 0xda, 0xa9, 0xc8, 0xd7, 0x0a, 0xf2, 0x8e, 0x16, + 0x82, 0x3b, 0x5a, 0x90, 0x0a, 0xa0, 0xee, 0x68, 0x61, 0x9f, 0xd4, 0x42, 0xdf, 0x72, 0x97, 0x27, + 0x7e, 0xa6, 0x29, 0xfa, 0x9e, 0x1c, 0xe9, 0xf4, 0xc3, 0xe7, 0xa2, 0x47, 0x77, 0x7b, 0x10, 0x2f, + 0x08, 0xc4, 0x95, 0xff, 0x45, 0x94, 0xa9, 0x7b, 0x18, 0x0d, 0xd5, 0x28, 0x9f, 0x72, 0xab, 0xe5, + 0xd0, 0xd8, 0x8d, 0x44, 0x30, 0xc2, 0x48, 0x83, 0xaa, 0x43, 0x11, 0xbf, 0xf1, 0x3b, 0xaa, 0x43, + 0x62, 0x0e, 0x6a, 0x57, 0x08, 0x46, 0x82, 0x1b, 0x10, 0x7a, 0x04, 0xbf, 0xf1, 0x1e, 0x5c, 0x0e, + 0xcf, 0xf0, 0x76, 0xa0, 0x25, 0x5f, 0x48, 0x29, 0x09, 0x93, 0xac, 0xc1, 0x6b, 0x52, 0x62, 0x6c, + 0x8b, 0x32, 0xdf, 0xfe, 0xc6, 0x8e, 0x14, 0x60, 0x46, 0xcc, 0x97, 0xa2, 0x69, 0x5c, 0x87, 0x85, + 0xf4, 0x48, 0x2a, 0xfb, 0x1e, 0x4c, 0xf7, 0xa8, 0x95, 0x3a, 0xbb, 0xc5, 0x44, 0x5d, 0xbb, 0xbd, + 0x55, 0x6d, 0xa7, 0x68, 0xd7, 0x1c, 0x5e, 0x54, 0xcc, 0x3b, 0x8e, 0x93, 0xc2, 0x1c, 0x81, 0x24, + 0x96, 0xb3, 0x41, 0x86, 0x5f, 0x0d, 0xe4, 0x6b, 0x58, 0x0e, 0xb7, 0xfc, 0x19, 0x3d, 0xf4, 0xf7, + 0x83, 0x59, 0xff, 0x7e, 0x80, 0xc1, 0xcc, 0xa8, 0x61, 0x17, 0x01, 0xcc, 0x3a, 0x61, 0x8c, 0x3a, + 0x9d, 0x2b, 0x34, 0xa1, 0x66, 0x4a, 0x16, 0x9a, 0x83, 0xb1, 0x26, 0x77, 0xfd, 0x48, 0x3c, 0xcb, + 0xa3, 0xc1, 0xb0, 0x64, 0xe1, 0x8f, 0x00, 0xf7, 0x0b, 0xae, 0x36, 0xa3, 0xc3, 0xb8, 0xa7, 0xe6, + 0x44, 0xec, 0x91, 0x72, 0x34, 0xc6, 0x45, 0x78, 0x43, 0x16, 0x42, 0xf6, 0xc1, 0x97, 0xa1, 0xfc, + 0x7b, 0x28, 0x07, 0x63, 0x3d, 0xba, 0x59, 0x0e, 0x87, 0xf8, 0x10, 0xf2, 0xe9, 0x3e, 0x51, 0xc6, + 0x07, 0x80, 0x12, 0x0f, 0x4a, 0xa8, 0x37, 0xcb, 0x89, 0x1a, 0xc6, 0xe3, 0xa8, 0x3a, 0x5e, 0x22, + 0xf1, 0xf8, 0xc5, 0x7f, 0xa7, 0xe0, 0xa2, 0x48, 0x8d, 0x9e, 0xc0, 0xa8, 0xd4, 0x4d, 0x74, 0x25, + 0x11, 0x2f, 0x29, 0xce, 0xfa, 0xd5, 0xfe, 0x46, 0x12, 0x1b, 0xaf, 0x7f, 0xff, 0xe7, 0x3f, 0x3f, + 0x5e, 0xb8, 0x8a, 0xb0, 0x71, 0x5f, 0x58, 0x3b, 0xa4, 0xea, 0x19, 0xe9, 0xcf, 0x35, 0x7a, 0xa6, + 0x01, 0x74, 0x14, 0x16, 0xad, 0xa7, 0x27, 0x48, 0x93, 0x6f, 0xfd, 0xed, 0x81, 0x6c, 0x15, 0xd3, + 0xb6, 0x60, 0xba, 0x81, 0x8a, 0x8a, 0xe9, 0xfa, 0xbd, 0x34, 0xa8, 0x8e, 0x4e, 0x1b, 0xc7, 0xa1, + 0x14, 0xb7, 0xd1, 0xcf, 0x1a, 0x8c, 0x87, 0x0a, 0x84, 0x56, 0x33, 0xb3, 0xc6, 0xe4, 0x53, 0x5f, + 0x1b, 0xc0, 0x52, 0xd1, 0xdd, 0x14, 0x74, 0x5b, 0x68, 0xb3, 0x2f, 0x5d, 0xa4, 0x93, 0xdd, 0x70, + 0x3f, 0x68, 0x30, 0x19, 0xc6, 0xdb, 0x71, 0x9c, 0x2c, 0xbe, 0xa4, 0xbc, 0x67, 0xf1, 0xa5, 0x88, + 0x34, 0x2e, 0x08, 0xbe, 0x55, 0x74, 0x6d, 0x30, 0x3e, 0xf4, 0xab, 0x06, 0xd3, 0x3d, 0xc2, 0x98, + 0x75, 0xb0, 0x69, 0x72, 0x9b, 0x75, 0xb0, 0xa9, 0x4a, 0x3b, 0xe0, 0xc1, 0x36, 0x84, 0x6f, 0xf8, + 0x55, 0x62, 0x1c, 0x07, 0x12, 0xde, 0x46, 0x3f, 0x69, 0xb0, 0xd0, 0xef, 0x7b, 0x08, 0xdd, 0x4c, + 0x27, 0x19, 0xe0, 0x2b, 0x4e, 0xdf, 0x7e, 0x15, 0x57, 0x75, 0xef, 0x7f, 0xd7, 0x60, 0xaa, 0x5b, + 0x11, 0xd1, 0x46, 0x66, 0x2b, 0xa5, 0xa8, 0xb2, 0x7e, 0x7d, 0x40, 0x6b, 0x55, 0xc1, 0xdb, 0xa2, + 0x82, 0x1f, 0xa2, 0x5b, 0x7d, 0x2b, 0xd8, 0xa3, 0xe3, 0xc6, 0x71, 0xfc, 0xa9, 0x6a, 0xa3, 0x5f, + 0x34, 0x98, 0xe9, 0x8e, 0x1f, 0x34, 0xe3, 0x46, 0x66, 0x8b, 0x9d, 0x83, 0x3b, 0xe3, 0x71, 0xc1, + 0x45, 0xc1, 0xbd, 0x81, 0xd6, 0x07, 0xe7, 0x46, 0x7f, 0x68, 0x80, 0x92, 0x12, 0x8f, 0x8a, 0x99, + 0x15, 0xcb, 0x7c, 0x6c, 0xf4, 0xad, 0x73, 0xf9, 0x28, 0xe6, 0x7d, 0xc1, 0xfc, 0x31, 0xda, 0xeb, + 0xcb, 0xcc, 0xe8, 0xa1, 0x5f, 0x69, 0x8a, 0x08, 0x95, 0xf0, 0x89, 0x11, 0x77, 0x5e, 0x3d, 0x6d, + 0x6d, 0xe3, 0x58, 0x3d, 0x64, 0x6d, 0xf4, 0x9b, 0x06, 0x97, 0x92, 0xaf, 0xce, 0x4a, 0x46, 0x29, + 0xe3, 0x86, 0xba, 0x31, 0xa0, 0xe1, 0x39, 0xa5, 0xaa, 0xf3, 0x5c, 0x19, 0xc7, 0xea, 0xd2, 0xb5, + 0x77, 0x3f, 0x79, 0x7e, 0x9a, 0xd7, 0x5e, 0x9c, 0xe6, 0xb5, 0xbf, 0x4f, 0xf3, 0xda, 0xd3, 0xb3, + 0xfc, 0xd0, 0x8b, 0xb3, 0xfc, 0xd0, 0x5f, 0x67, 0xf9, 0xa1, 0x87, 0x9b, 0x35, 0xdb, 0xaf, 0xb7, + 0xaa, 0x05, 0x93, 0x37, 0xd2, 0xc2, 0x1e, 0xbc, 0x6f, 0x1c, 0x76, 0x62, 0xfb, 0x47, 0x4d, 0xea, + 0x55, 0x47, 0xc5, 0x1f, 0xab, 0xad, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xe8, 0xbd, 0x2e, 0x69, + 0x96, 0x0e, 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 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // Parameters queries the parameters of the module. + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + // Queries a Validator by host zone. + Validators(ctx context.Context, in *QueryGetValidatorsRequest, opts ...grpc.CallOption) (*QueryGetValidatorsResponse, error) + // Queries a HostZone by id. + HostZone(ctx context.Context, in *QueryGetHostZoneRequest, opts ...grpc.CallOption) (*QueryGetHostZoneResponse, error) + // Queries a list of HostZone items. + HostZoneAll(ctx context.Context, in *QueryAllHostZoneRequest, opts ...grpc.CallOption) (*QueryAllHostZoneResponse, error) + // Queries a list of ModuleAddress items. + ModuleAddress(ctx context.Context, in *QueryModuleAddressRequest, opts ...grpc.CallOption) (*QueryModuleAddressResponse, error) + // QueryInterchainAccountFromAddress returns the interchain account for given + // owner address on a given connection pair + InterchainAccountFromAddress(ctx context.Context, in *QueryInterchainAccountFromAddressRequest, opts ...grpc.CallOption) (*QueryInterchainAccountFromAddressResponse, error) + // Queries a EpochTracker by index. + EpochTracker(ctx context.Context, in *QueryGetEpochTrackerRequest, opts ...grpc.CallOption) (*QueryGetEpochTrackerResponse, error) + // Queries a list of EpochTracker items. + EpochTrackerAll(ctx context.Context, in *QueryAllEpochTrackerRequest, opts ...grpc.CallOption) (*QueryAllEpochTrackerResponse, error) + // Queries the next packet sequence for one for a given channel + NextPacketSequence(ctx context.Context, in *QueryGetNextPacketSequenceRequest, opts ...grpc.CallOption) (*QueryGetNextPacketSequenceResponse, error) + // Queries an address's unbondings + AddressUnbondings(ctx context.Context, in *QueryAddressUnbondings, opts ...grpc.CallOption) (*QueryAddressUnbondingsResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/Params", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Validators(ctx context.Context, in *QueryGetValidatorsRequest, opts ...grpc.CallOption) (*QueryGetValidatorsResponse, error) { + out := new(QueryGetValidatorsResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/Validators", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) HostZone(ctx context.Context, in *QueryGetHostZoneRequest, opts ...grpc.CallOption) (*QueryGetHostZoneResponse, error) { + out := new(QueryGetHostZoneResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/HostZone", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) HostZoneAll(ctx context.Context, in *QueryAllHostZoneRequest, opts ...grpc.CallOption) (*QueryAllHostZoneResponse, error) { + out := new(QueryAllHostZoneResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/HostZoneAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ModuleAddress(ctx context.Context, in *QueryModuleAddressRequest, opts ...grpc.CallOption) (*QueryModuleAddressResponse, error) { + out := new(QueryModuleAddressResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/ModuleAddress", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) InterchainAccountFromAddress(ctx context.Context, in *QueryInterchainAccountFromAddressRequest, opts ...grpc.CallOption) (*QueryInterchainAccountFromAddressResponse, error) { + out := new(QueryInterchainAccountFromAddressResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/InterchainAccountFromAddress", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) EpochTracker(ctx context.Context, in *QueryGetEpochTrackerRequest, opts ...grpc.CallOption) (*QueryGetEpochTrackerResponse, error) { + out := new(QueryGetEpochTrackerResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/EpochTracker", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) EpochTrackerAll(ctx context.Context, in *QueryAllEpochTrackerRequest, opts ...grpc.CallOption) (*QueryAllEpochTrackerResponse, error) { + out := new(QueryAllEpochTrackerResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/EpochTrackerAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) NextPacketSequence(ctx context.Context, in *QueryGetNextPacketSequenceRequest, opts ...grpc.CallOption) (*QueryGetNextPacketSequenceResponse, error) { + out := new(QueryGetNextPacketSequenceResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/NextPacketSequence", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) AddressUnbondings(ctx context.Context, in *QueryAddressUnbondings, opts ...grpc.CallOption) (*QueryAddressUnbondingsResponse, error) { + out := new(QueryAddressUnbondingsResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Query/AddressUnbondings", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // Parameters queries the parameters of the module. + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + // Queries a Validator by host zone. + Validators(context.Context, *QueryGetValidatorsRequest) (*QueryGetValidatorsResponse, error) + // Queries a HostZone by id. + HostZone(context.Context, *QueryGetHostZoneRequest) (*QueryGetHostZoneResponse, error) + // Queries a list of HostZone items. + HostZoneAll(context.Context, *QueryAllHostZoneRequest) (*QueryAllHostZoneResponse, error) + // Queries a list of ModuleAddress items. + ModuleAddress(context.Context, *QueryModuleAddressRequest) (*QueryModuleAddressResponse, error) + // QueryInterchainAccountFromAddress returns the interchain account for given + // owner address on a given connection pair + InterchainAccountFromAddress(context.Context, *QueryInterchainAccountFromAddressRequest) (*QueryInterchainAccountFromAddressResponse, error) + // Queries a EpochTracker by index. + EpochTracker(context.Context, *QueryGetEpochTrackerRequest) (*QueryGetEpochTrackerResponse, error) + // Queries a list of EpochTracker items. + EpochTrackerAll(context.Context, *QueryAllEpochTrackerRequest) (*QueryAllEpochTrackerResponse, error) + // Queries the next packet sequence for one for a given channel + NextPacketSequence(context.Context, *QueryGetNextPacketSequenceRequest) (*QueryGetNextPacketSequenceResponse, error) + // Queries an address's unbondings + AddressUnbondings(context.Context, *QueryAddressUnbondings) (*QueryAddressUnbondingsResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} +func (*UnimplementedQueryServer) Validators(ctx context.Context, req *QueryGetValidatorsRequest) (*QueryGetValidatorsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Validators not implemented") +} +func (*UnimplementedQueryServer) HostZone(ctx context.Context, req *QueryGetHostZoneRequest) (*QueryGetHostZoneResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method HostZone not implemented") +} +func (*UnimplementedQueryServer) HostZoneAll(ctx context.Context, req *QueryAllHostZoneRequest) (*QueryAllHostZoneResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method HostZoneAll not implemented") +} +func (*UnimplementedQueryServer) ModuleAddress(ctx context.Context, req *QueryModuleAddressRequest) (*QueryModuleAddressResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ModuleAddress not implemented") +} +func (*UnimplementedQueryServer) InterchainAccountFromAddress(ctx context.Context, req *QueryInterchainAccountFromAddressRequest) (*QueryInterchainAccountFromAddressResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InterchainAccountFromAddress not implemented") +} +func (*UnimplementedQueryServer) EpochTracker(ctx context.Context, req *QueryGetEpochTrackerRequest) (*QueryGetEpochTrackerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochTracker not implemented") +} +func (*UnimplementedQueryServer) EpochTrackerAll(ctx context.Context, req *QueryAllEpochTrackerRequest) (*QueryAllEpochTrackerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochTrackerAll not implemented") +} +func (*UnimplementedQueryServer) NextPacketSequence(ctx context.Context, req *QueryGetNextPacketSequenceRequest) (*QueryGetNextPacketSequenceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NextPacketSequence not implemented") +} +func (*UnimplementedQueryServer) AddressUnbondings(ctx context.Context, req *QueryAddressUnbondings) (*QueryAddressUnbondingsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddressUnbondings not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Validators_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetValidatorsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Validators(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Query/Validators", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Validators(ctx, req.(*QueryGetValidatorsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_HostZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetHostZoneRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).HostZone(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Query/HostZone", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).HostZone(ctx, req.(*QueryGetHostZoneRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_HostZoneAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllHostZoneRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).HostZoneAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Query/HostZoneAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).HostZoneAll(ctx, req.(*QueryAllHostZoneRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ModuleAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryModuleAddressRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ModuleAddress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Query/ModuleAddress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ModuleAddress(ctx, req.(*QueryModuleAddressRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_InterchainAccountFromAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryInterchainAccountFromAddressRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).InterchainAccountFromAddress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Query/InterchainAccountFromAddress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).InterchainAccountFromAddress(ctx, req.(*QueryInterchainAccountFromAddressRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_EpochTracker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetEpochTrackerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EpochTracker(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Query/EpochTracker", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EpochTracker(ctx, req.(*QueryGetEpochTrackerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_EpochTrackerAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllEpochTrackerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EpochTrackerAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Query/EpochTrackerAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EpochTrackerAll(ctx, req.(*QueryAllEpochTrackerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_NextPacketSequence_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGetNextPacketSequenceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).NextPacketSequence(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Query/NextPacketSequence", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).NextPacketSequence(ctx, req.(*QueryGetNextPacketSequenceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_AddressUnbondings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAddressUnbondings) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AddressUnbondings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Query/AddressUnbondings", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AddressUnbondings(ctx, req.(*QueryAddressUnbondings)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "stride.stakeibc.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + { + MethodName: "Validators", + Handler: _Query_Validators_Handler, + }, + { + MethodName: "HostZone", + Handler: _Query_HostZone_Handler, + }, + { + MethodName: "HostZoneAll", + Handler: _Query_HostZoneAll_Handler, + }, + { + MethodName: "ModuleAddress", + Handler: _Query_ModuleAddress_Handler, + }, + { + MethodName: "InterchainAccountFromAddress", + Handler: _Query_InterchainAccountFromAddress_Handler, + }, + { + MethodName: "EpochTracker", + Handler: _Query_EpochTracker_Handler, + }, + { + MethodName: "EpochTrackerAll", + Handler: _Query_EpochTrackerAll_Handler, + }, + { + MethodName: "NextPacketSequence", + Handler: _Query_NextPacketSequence_Handler, + }, + { + MethodName: "AddressUnbondings", + Handler: _Query_AddressUnbondings_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "stride/stakeibc/query.proto", +} + +func (m *QueryInterchainAccountFromAddressRequest) 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 *QueryInterchainAccountFromAddressRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryInterchainAccountFromAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ConnectionId) > 0 { + i -= len(m.ConnectionId) + copy(dAtA[i:], m.ConnectionId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ConnectionId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryInterchainAccountFromAddressResponse) 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 *QueryInterchainAccountFromAddressResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryInterchainAccountFromAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.InterchainAccountAddress) > 0 { + i -= len(m.InterchainAccountAddress) + copy(dAtA[i:], m.InterchainAccountAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.InterchainAccountAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryParamsResponse) 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 *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryGetValidatorsRequest) 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 *QueryGetValidatorsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryGetValidatorsResponse) 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 *QueryGetValidatorsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Validators) > 0 { + for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryGetHostZoneRequest) 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 *QueryGetHostZoneRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetHostZoneRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryGetHostZoneResponse) 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 *QueryGetHostZoneResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetHostZoneResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.HostZone.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryAllHostZoneRequest) 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 *QueryAllHostZoneRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllHostZoneRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllHostZoneResponse) 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 *QueryAllHostZoneResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllHostZoneResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.HostZone) > 0 { + for iNdEx := len(m.HostZone) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.HostZone[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryModuleAddressRequest) 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 *QueryModuleAddressRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryModuleAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryModuleAddressResponse) 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 *QueryModuleAddressResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryModuleAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Addr) > 0 { + i -= len(m.Addr) + copy(dAtA[i:], m.Addr) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Addr))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryGetEpochTrackerRequest) 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 *QueryGetEpochTrackerRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetEpochTrackerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EpochIdentifier) > 0 { + i -= len(m.EpochIdentifier) + copy(dAtA[i:], m.EpochIdentifier) + i = encodeVarintQuery(dAtA, i, uint64(len(m.EpochIdentifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryGetEpochTrackerResponse) 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 *QueryGetEpochTrackerResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetEpochTrackerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.EpochTracker.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *QueryAllEpochTrackerRequest) 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 *QueryAllEpochTrackerRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllEpochTrackerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryAllEpochTrackerResponse) 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 *QueryAllEpochTrackerResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllEpochTrackerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EpochTracker) > 0 { + for iNdEx := len(m.EpochTracker) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EpochTracker[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryGetNextPacketSequenceRequest) 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 *QueryGetNextPacketSequenceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetNextPacketSequenceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PortId) > 0 { + i -= len(m.PortId) + copy(dAtA[i:], m.PortId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.PortId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ChannelId) > 0 { + i -= len(m.ChannelId) + copy(dAtA[i:], m.ChannelId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChannelId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryGetNextPacketSequenceResponse) 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 *QueryGetNextPacketSequenceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryGetNextPacketSequenceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Sequence != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Sequence)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryAddressUnbondings) 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 *QueryAddressUnbondings) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAddressUnbondings) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAddressUnbondingsResponse) 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 *QueryAddressUnbondingsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAddressUnbondingsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AddressUnbondings) > 0 { + for iNdEx := len(m.AddressUnbondings) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AddressUnbondings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryInterchainAccountFromAddressRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.ConnectionId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryInterchainAccountFromAddressResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.InterchainAccountAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryGetValidatorsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetValidatorsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Validators) > 0 { + for _, e := range m.Validators { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryGetHostZoneRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetHostZoneResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.HostZone.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAllHostZoneRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllHostZoneResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.HostZone) > 0 { + for _, e := range m.HostZone { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryModuleAddressRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryModuleAddressResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Addr) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetEpochTrackerRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.EpochIdentifier) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetEpochTrackerResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.EpochTracker.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAllEpochTrackerRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryAllEpochTrackerResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.EpochTracker) > 0 { + for _, e := range m.EpochTracker { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func (m *QueryGetNextPacketSequenceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChannelId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.PortId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryGetNextPacketSequenceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Sequence != 0 { + n += 1 + sovQuery(uint64(m.Sequence)) + } + return n +} + +func (m *QueryAddressUnbondings) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAddressUnbondingsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.AddressUnbondings) > 0 { + for _, e := range m.AddressUnbondings { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryInterchainAccountFromAddressRequest) 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 ErrIntOverflowQuery + } + 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: QueryInterchainAccountFromAddressRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryInterchainAccountFromAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ConnectionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryInterchainAccountFromAddressResponse) 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 ErrIntOverflowQuery + } + 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: QueryInterchainAccountFromAddressResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryInterchainAccountFromAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterchainAccountAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InterchainAccountAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsRequest) 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 ErrIntOverflowQuery + } + 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: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsResponse) 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 ErrIntOverflowQuery + } + 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: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetValidatorsRequest) 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 ErrIntOverflowQuery + } + 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: QueryGetValidatorsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetValidatorsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetValidatorsResponse) 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 ErrIntOverflowQuery + } + 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: QueryGetValidatorsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetValidatorsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Validators = append(m.Validators, &Validator{}) + if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetHostZoneRequest) 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 ErrIntOverflowQuery + } + 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: QueryGetHostZoneRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetHostZoneRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetHostZoneResponse) 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 ErrIntOverflowQuery + } + 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: QueryGetHostZoneResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetHostZoneResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZone", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.HostZone.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllHostZoneRequest) 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 ErrIntOverflowQuery + } + 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: QueryAllHostZoneRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllHostZoneRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllHostZoneResponse) 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 ErrIntOverflowQuery + } + 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: QueryAllHostZoneResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllHostZoneResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZone", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZone = append(m.HostZone, HostZone{}) + if err := m.HostZone[len(m.HostZone)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryModuleAddressRequest) 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 ErrIntOverflowQuery + } + 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: QueryModuleAddressRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryModuleAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryModuleAddressResponse) 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 ErrIntOverflowQuery + } + 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: QueryModuleAddressResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryModuleAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Addr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetEpochTrackerRequest) 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 ErrIntOverflowQuery + } + 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: QueryGetEpochTrackerRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetEpochTrackerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochIdentifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EpochIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetEpochTrackerResponse) 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 ErrIntOverflowQuery + } + 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: QueryGetEpochTrackerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetEpochTrackerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochTracker", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.EpochTracker.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllEpochTrackerRequest) 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 ErrIntOverflowQuery + } + 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: QueryAllEpochTrackerRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllEpochTrackerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllEpochTrackerResponse) 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 ErrIntOverflowQuery + } + 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: QueryAllEpochTrackerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllEpochTrackerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochTracker", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EpochTracker = append(m.EpochTracker, EpochTracker{}) + if err := m.EpochTracker[len(m.EpochTracker)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetNextPacketSequenceRequest) 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 ErrIntOverflowQuery + } + 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: QueryGetNextPacketSequenceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetNextPacketSequenceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChannelId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PortId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryGetNextPacketSequenceResponse) 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 ErrIntOverflowQuery + } + 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: QueryGetNextPacketSequenceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryGetNextPacketSequenceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + } + m.Sequence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Sequence |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAddressUnbondings) 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 ErrIntOverflowQuery + } + 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: QueryAddressUnbondings: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAddressUnbondings: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + 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 ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAddressUnbondingsResponse) 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 ErrIntOverflowQuery + } + 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: QueryAddressUnbondingsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAddressUnbondingsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AddressUnbondings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AddressUnbondings = append(m.AddressUnbondings, AddressUnbonding{}) + if err := m.AddressUnbondings[len(m.AddressUnbondings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrIntOverflowQuery + } + 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, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/stakeibc/types/tx.pb.go b/x/stakeibc/types/tx.pb.go new file mode 100644 index 0000000000..f18ad391ff --- /dev/null +++ b/x/stakeibc/types/tx.pb.go @@ -0,0 +1,5446 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/stakeibc/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" + _ "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 + +type MsgLiquidStake struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` + HostDenom string `protobuf:"bytes,3,opt,name=host_denom,json=hostDenom,proto3" json:"host_denom,omitempty"` +} + +func (m *MsgLiquidStake) Reset() { *m = MsgLiquidStake{} } +func (m *MsgLiquidStake) String() string { return proto.CompactTextString(m) } +func (*MsgLiquidStake) ProtoMessage() {} +func (*MsgLiquidStake) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{0} +} +func (m *MsgLiquidStake) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgLiquidStake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgLiquidStake.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 *MsgLiquidStake) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgLiquidStake.Merge(m, src) +} +func (m *MsgLiquidStake) XXX_Size() int { + return m.Size() +} +func (m *MsgLiquidStake) XXX_DiscardUnknown() { + xxx_messageInfo_MsgLiquidStake.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgLiquidStake proto.InternalMessageInfo + +func (m *MsgLiquidStake) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgLiquidStake) GetHostDenom() string { + if m != nil { + return m.HostDenom + } + return "" +} + +type MsgLiquidStakeResponse struct { +} + +func (m *MsgLiquidStakeResponse) Reset() { *m = MsgLiquidStakeResponse{} } +func (m *MsgLiquidStakeResponse) String() string { return proto.CompactTextString(m) } +func (*MsgLiquidStakeResponse) ProtoMessage() {} +func (*MsgLiquidStakeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{1} +} +func (m *MsgLiquidStakeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgLiquidStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgLiquidStakeResponse.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 *MsgLiquidStakeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgLiquidStakeResponse.Merge(m, src) +} +func (m *MsgLiquidStakeResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgLiquidStakeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgLiquidStakeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgLiquidStakeResponse proto.InternalMessageInfo + +type MsgClearBalance struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` + Channel string `protobuf:"bytes,4,opt,name=channel,proto3" json:"channel,omitempty"` +} + +func (m *MsgClearBalance) Reset() { *m = MsgClearBalance{} } +func (m *MsgClearBalance) String() string { return proto.CompactTextString(m) } +func (*MsgClearBalance) ProtoMessage() {} +func (*MsgClearBalance) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{2} +} +func (m *MsgClearBalance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgClearBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgClearBalance.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 *MsgClearBalance) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgClearBalance.Merge(m, src) +} +func (m *MsgClearBalance) XXX_Size() int { + return m.Size() +} +func (m *MsgClearBalance) XXX_DiscardUnknown() { + xxx_messageInfo_MsgClearBalance.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgClearBalance proto.InternalMessageInfo + +func (m *MsgClearBalance) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgClearBalance) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *MsgClearBalance) GetChannel() string { + if m != nil { + return m.Channel + } + return "" +} + +type MsgClearBalanceResponse struct { +} + +func (m *MsgClearBalanceResponse) Reset() { *m = MsgClearBalanceResponse{} } +func (m *MsgClearBalanceResponse) String() string { return proto.CompactTextString(m) } +func (*MsgClearBalanceResponse) ProtoMessage() {} +func (*MsgClearBalanceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{3} +} +func (m *MsgClearBalanceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgClearBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgClearBalanceResponse.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 *MsgClearBalanceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgClearBalanceResponse.Merge(m, src) +} +func (m *MsgClearBalanceResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgClearBalanceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgClearBalanceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgClearBalanceResponse proto.InternalMessageInfo + +type MsgRedeemStake struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` + HostZone string `protobuf:"bytes,3,opt,name=host_zone,json=hostZone,proto3" json:"host_zone,omitempty"` + Receiver string `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"` +} + +func (m *MsgRedeemStake) Reset() { *m = MsgRedeemStake{} } +func (m *MsgRedeemStake) String() string { return proto.CompactTextString(m) } +func (*MsgRedeemStake) ProtoMessage() {} +func (*MsgRedeemStake) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{4} +} +func (m *MsgRedeemStake) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRedeemStake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRedeemStake.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 *MsgRedeemStake) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRedeemStake.Merge(m, src) +} +func (m *MsgRedeemStake) XXX_Size() int { + return m.Size() +} +func (m *MsgRedeemStake) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRedeemStake.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRedeemStake proto.InternalMessageInfo + +func (m *MsgRedeemStake) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgRedeemStake) GetHostZone() string { + if m != nil { + return m.HostZone + } + return "" +} + +func (m *MsgRedeemStake) GetReceiver() string { + if m != nil { + return m.Receiver + } + return "" +} + +type MsgRedeemStakeResponse struct { +} + +func (m *MsgRedeemStakeResponse) Reset() { *m = MsgRedeemStakeResponse{} } +func (m *MsgRedeemStakeResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRedeemStakeResponse) ProtoMessage() {} +func (*MsgRedeemStakeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{5} +} +func (m *MsgRedeemStakeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRedeemStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRedeemStakeResponse.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 *MsgRedeemStakeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRedeemStakeResponse.Merge(m, src) +} +func (m *MsgRedeemStakeResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRedeemStakeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRedeemStakeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRedeemStakeResponse proto.InternalMessageInfo + +// next: 15 +type MsgRegisterHostZone struct { + ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"` + Bech32Prefix string `protobuf:"bytes,12,opt,name=bech32prefix,proto3" json:"bech32prefix,omitempty"` + HostDenom string `protobuf:"bytes,4,opt,name=host_denom,json=hostDenom,proto3" json:"host_denom,omitempty" yaml:"host_denom"` + IbcDenom string `protobuf:"bytes,5,opt,name=ibc_denom,json=ibcDenom,proto3" json:"ibc_denom,omitempty" yaml:"ibc_denom"` + Creator string `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"` + TransferChannelId string `protobuf:"bytes,10,opt,name=transfer_channel_id,json=transferChannelId,proto3" json:"transfer_channel_id,omitempty" yaml:"transfer_channel_id"` + UnbondingFrequency uint64 `protobuf:"varint,11,opt,name=unbonding_frequency,json=unbondingFrequency,proto3" json:"unbonding_frequency,omitempty" yaml:"unbonding_frequency"` + MinRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,13,opt,name=min_redemption_rate,json=minRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"min_redemption_rate"` + MaxRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,14,opt,name=max_redemption_rate,json=maxRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_redemption_rate"` +} + +func (m *MsgRegisterHostZone) Reset() { *m = MsgRegisterHostZone{} } +func (m *MsgRegisterHostZone) String() string { return proto.CompactTextString(m) } +func (*MsgRegisterHostZone) ProtoMessage() {} +func (*MsgRegisterHostZone) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{6} +} +func (m *MsgRegisterHostZone) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRegisterHostZone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRegisterHostZone.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 *MsgRegisterHostZone) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRegisterHostZone.Merge(m, src) +} +func (m *MsgRegisterHostZone) XXX_Size() int { + return m.Size() +} +func (m *MsgRegisterHostZone) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRegisterHostZone.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRegisterHostZone proto.InternalMessageInfo + +type MsgRegisterHostZoneResponse struct { +} + +func (m *MsgRegisterHostZoneResponse) Reset() { *m = MsgRegisterHostZoneResponse{} } +func (m *MsgRegisterHostZoneResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRegisterHostZoneResponse) ProtoMessage() {} +func (*MsgRegisterHostZoneResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{7} +} +func (m *MsgRegisterHostZoneResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRegisterHostZoneResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRegisterHostZoneResponse.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 *MsgRegisterHostZoneResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRegisterHostZoneResponse.Merge(m, src) +} +func (m *MsgRegisterHostZoneResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRegisterHostZoneResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRegisterHostZoneResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRegisterHostZoneResponse proto.InternalMessageInfo + +type MsgClaimUndelegatedTokens struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // UserUnbondingRecords are keyed on {chain_id}.{epoch}.{sender} + HostZoneId string `protobuf:"bytes,2,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` + Epoch uint64 `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty"` + Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"` +} + +func (m *MsgClaimUndelegatedTokens) Reset() { *m = MsgClaimUndelegatedTokens{} } +func (m *MsgClaimUndelegatedTokens) String() string { return proto.CompactTextString(m) } +func (*MsgClaimUndelegatedTokens) ProtoMessage() {} +func (*MsgClaimUndelegatedTokens) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{8} +} +func (m *MsgClaimUndelegatedTokens) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgClaimUndelegatedTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgClaimUndelegatedTokens.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 *MsgClaimUndelegatedTokens) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgClaimUndelegatedTokens.Merge(m, src) +} +func (m *MsgClaimUndelegatedTokens) XXX_Size() int { + return m.Size() +} +func (m *MsgClaimUndelegatedTokens) XXX_DiscardUnknown() { + xxx_messageInfo_MsgClaimUndelegatedTokens.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgClaimUndelegatedTokens proto.InternalMessageInfo + +func (m *MsgClaimUndelegatedTokens) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgClaimUndelegatedTokens) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +func (m *MsgClaimUndelegatedTokens) GetEpoch() uint64 { + if m != nil { + return m.Epoch + } + return 0 +} + +func (m *MsgClaimUndelegatedTokens) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +type MsgClaimUndelegatedTokensResponse struct { +} + +func (m *MsgClaimUndelegatedTokensResponse) Reset() { *m = MsgClaimUndelegatedTokensResponse{} } +func (m *MsgClaimUndelegatedTokensResponse) String() string { return proto.CompactTextString(m) } +func (*MsgClaimUndelegatedTokensResponse) ProtoMessage() {} +func (*MsgClaimUndelegatedTokensResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{9} +} +func (m *MsgClaimUndelegatedTokensResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgClaimUndelegatedTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgClaimUndelegatedTokensResponse.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 *MsgClaimUndelegatedTokensResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgClaimUndelegatedTokensResponse.Merge(m, src) +} +func (m *MsgClaimUndelegatedTokensResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgClaimUndelegatedTokensResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgClaimUndelegatedTokensResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgClaimUndelegatedTokensResponse proto.InternalMessageInfo + +type MsgRebalanceValidators struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + HostZone string `protobuf:"bytes,2,opt,name=host_zone,json=hostZone,proto3" json:"host_zone,omitempty"` + NumRebalance uint64 `protobuf:"varint,3,opt,name=num_rebalance,json=numRebalance,proto3" json:"num_rebalance,omitempty"` +} + +func (m *MsgRebalanceValidators) Reset() { *m = MsgRebalanceValidators{} } +func (m *MsgRebalanceValidators) String() string { return proto.CompactTextString(m) } +func (*MsgRebalanceValidators) ProtoMessage() {} +func (*MsgRebalanceValidators) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{10} +} +func (m *MsgRebalanceValidators) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRebalanceValidators) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRebalanceValidators.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 *MsgRebalanceValidators) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRebalanceValidators.Merge(m, src) +} +func (m *MsgRebalanceValidators) XXX_Size() int { + return m.Size() +} +func (m *MsgRebalanceValidators) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRebalanceValidators.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRebalanceValidators proto.InternalMessageInfo + +func (m *MsgRebalanceValidators) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgRebalanceValidators) GetHostZone() string { + if m != nil { + return m.HostZone + } + return "" +} + +func (m *MsgRebalanceValidators) GetNumRebalance() uint64 { + if m != nil { + return m.NumRebalance + } + return 0 +} + +type MsgRebalanceValidatorsResponse struct { +} + +func (m *MsgRebalanceValidatorsResponse) Reset() { *m = MsgRebalanceValidatorsResponse{} } +func (m *MsgRebalanceValidatorsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRebalanceValidatorsResponse) ProtoMessage() {} +func (*MsgRebalanceValidatorsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{11} +} +func (m *MsgRebalanceValidatorsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRebalanceValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRebalanceValidatorsResponse.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 *MsgRebalanceValidatorsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRebalanceValidatorsResponse.Merge(m, src) +} +func (m *MsgRebalanceValidatorsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRebalanceValidatorsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRebalanceValidatorsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRebalanceValidatorsResponse proto.InternalMessageInfo + +type MsgAddValidator struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + HostZone string `protobuf:"bytes,2,opt,name=host_zone,json=hostZone,proto3" json:"host_zone,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` + Commission uint64 `protobuf:"varint,5,opt,name=commission,proto3" json:"commission,omitempty"` + Weight uint64 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"` +} + +func (m *MsgAddValidator) Reset() { *m = MsgAddValidator{} } +func (m *MsgAddValidator) String() string { return proto.CompactTextString(m) } +func (*MsgAddValidator) ProtoMessage() {} +func (*MsgAddValidator) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{12} +} +func (m *MsgAddValidator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAddValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAddValidator.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 *MsgAddValidator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAddValidator.Merge(m, src) +} +func (m *MsgAddValidator) XXX_Size() int { + return m.Size() +} +func (m *MsgAddValidator) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAddValidator.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAddValidator proto.InternalMessageInfo + +func (m *MsgAddValidator) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgAddValidator) GetHostZone() string { + if m != nil { + return m.HostZone + } + return "" +} + +func (m *MsgAddValidator) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *MsgAddValidator) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *MsgAddValidator) GetCommission() uint64 { + if m != nil { + return m.Commission + } + return 0 +} + +func (m *MsgAddValidator) GetWeight() uint64 { + if m != nil { + return m.Weight + } + return 0 +} + +type MsgAddValidatorResponse struct { +} + +func (m *MsgAddValidatorResponse) Reset() { *m = MsgAddValidatorResponse{} } +func (m *MsgAddValidatorResponse) String() string { return proto.CompactTextString(m) } +func (*MsgAddValidatorResponse) ProtoMessage() {} +func (*MsgAddValidatorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{13} +} +func (m *MsgAddValidatorResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgAddValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgAddValidatorResponse.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 *MsgAddValidatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgAddValidatorResponse.Merge(m, src) +} +func (m *MsgAddValidatorResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgAddValidatorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgAddValidatorResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgAddValidatorResponse proto.InternalMessageInfo + +type MsgChangeValidatorWeight struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + HostZone string `protobuf:"bytes,2,opt,name=host_zone,json=hostZone,proto3" json:"host_zone,omitempty"` + ValAddr string `protobuf:"bytes,3,opt,name=val_addr,json=valAddr,proto3" json:"val_addr,omitempty"` + Weight uint64 `protobuf:"varint,4,opt,name=weight,proto3" json:"weight,omitempty"` +} + +func (m *MsgChangeValidatorWeight) Reset() { *m = MsgChangeValidatorWeight{} } +func (m *MsgChangeValidatorWeight) String() string { return proto.CompactTextString(m) } +func (*MsgChangeValidatorWeight) ProtoMessage() {} +func (*MsgChangeValidatorWeight) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{14} +} +func (m *MsgChangeValidatorWeight) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgChangeValidatorWeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgChangeValidatorWeight.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 *MsgChangeValidatorWeight) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgChangeValidatorWeight.Merge(m, src) +} +func (m *MsgChangeValidatorWeight) XXX_Size() int { + return m.Size() +} +func (m *MsgChangeValidatorWeight) XXX_DiscardUnknown() { + xxx_messageInfo_MsgChangeValidatorWeight.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgChangeValidatorWeight proto.InternalMessageInfo + +func (m *MsgChangeValidatorWeight) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgChangeValidatorWeight) GetHostZone() string { + if m != nil { + return m.HostZone + } + return "" +} + +func (m *MsgChangeValidatorWeight) GetValAddr() string { + if m != nil { + return m.ValAddr + } + return "" +} + +func (m *MsgChangeValidatorWeight) GetWeight() uint64 { + if m != nil { + return m.Weight + } + return 0 +} + +type MsgChangeValidatorWeightResponse struct { +} + +func (m *MsgChangeValidatorWeightResponse) Reset() { *m = MsgChangeValidatorWeightResponse{} } +func (m *MsgChangeValidatorWeightResponse) String() string { return proto.CompactTextString(m) } +func (*MsgChangeValidatorWeightResponse) ProtoMessage() {} +func (*MsgChangeValidatorWeightResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{15} +} +func (m *MsgChangeValidatorWeightResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgChangeValidatorWeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgChangeValidatorWeightResponse.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 *MsgChangeValidatorWeightResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgChangeValidatorWeightResponse.Merge(m, src) +} +func (m *MsgChangeValidatorWeightResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgChangeValidatorWeightResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgChangeValidatorWeightResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgChangeValidatorWeightResponse proto.InternalMessageInfo + +type MsgDeleteValidator struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + HostZone string `protobuf:"bytes,2,opt,name=host_zone,json=hostZone,proto3" json:"host_zone,omitempty"` + ValAddr string `protobuf:"bytes,3,opt,name=val_addr,json=valAddr,proto3" json:"val_addr,omitempty"` +} + +func (m *MsgDeleteValidator) Reset() { *m = MsgDeleteValidator{} } +func (m *MsgDeleteValidator) String() string { return proto.CompactTextString(m) } +func (*MsgDeleteValidator) ProtoMessage() {} +func (*MsgDeleteValidator) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{16} +} +func (m *MsgDeleteValidator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDeleteValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDeleteValidator.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 *MsgDeleteValidator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeleteValidator.Merge(m, src) +} +func (m *MsgDeleteValidator) XXX_Size() int { + return m.Size() +} +func (m *MsgDeleteValidator) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeleteValidator.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDeleteValidator proto.InternalMessageInfo + +func (m *MsgDeleteValidator) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgDeleteValidator) GetHostZone() string { + if m != nil { + return m.HostZone + } + return "" +} + +func (m *MsgDeleteValidator) GetValAddr() string { + if m != nil { + return m.ValAddr + } + return "" +} + +type MsgDeleteValidatorResponse struct { +} + +func (m *MsgDeleteValidatorResponse) Reset() { *m = MsgDeleteValidatorResponse{} } +func (m *MsgDeleteValidatorResponse) String() string { return proto.CompactTextString(m) } +func (*MsgDeleteValidatorResponse) ProtoMessage() {} +func (*MsgDeleteValidatorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{17} +} +func (m *MsgDeleteValidatorResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDeleteValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDeleteValidatorResponse.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 *MsgDeleteValidatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeleteValidatorResponse.Merge(m, src) +} +func (m *MsgDeleteValidatorResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgDeleteValidatorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeleteValidatorResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDeleteValidatorResponse proto.InternalMessageInfo + +type MsgRestoreInterchainAccount struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + AccountType ICAAccountType `protobuf:"varint,3,opt,name=account_type,json=accountType,proto3,enum=stride.stakeibc.ICAAccountType" json:"account_type,omitempty"` +} + +func (m *MsgRestoreInterchainAccount) Reset() { *m = MsgRestoreInterchainAccount{} } +func (m *MsgRestoreInterchainAccount) String() string { return proto.CompactTextString(m) } +func (*MsgRestoreInterchainAccount) ProtoMessage() {} +func (*MsgRestoreInterchainAccount) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{18} +} +func (m *MsgRestoreInterchainAccount) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRestoreInterchainAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRestoreInterchainAccount.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 *MsgRestoreInterchainAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRestoreInterchainAccount.Merge(m, src) +} +func (m *MsgRestoreInterchainAccount) XXX_Size() int { + return m.Size() +} +func (m *MsgRestoreInterchainAccount) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRestoreInterchainAccount.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRestoreInterchainAccount proto.InternalMessageInfo + +func (m *MsgRestoreInterchainAccount) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgRestoreInterchainAccount) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *MsgRestoreInterchainAccount) GetAccountType() ICAAccountType { + if m != nil { + return m.AccountType + } + return ICAAccountType_DELEGATION +} + +type MsgRestoreInterchainAccountResponse struct { +} + +func (m *MsgRestoreInterchainAccountResponse) Reset() { *m = MsgRestoreInterchainAccountResponse{} } +func (m *MsgRestoreInterchainAccountResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRestoreInterchainAccountResponse) ProtoMessage() {} +func (*MsgRestoreInterchainAccountResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{19} +} +func (m *MsgRestoreInterchainAccountResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRestoreInterchainAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRestoreInterchainAccountResponse.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 *MsgRestoreInterchainAccountResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRestoreInterchainAccountResponse.Merge(m, src) +} +func (m *MsgRestoreInterchainAccountResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRestoreInterchainAccountResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRestoreInterchainAccountResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRestoreInterchainAccountResponse proto.InternalMessageInfo + +type MsgUpdateValidatorSharesExchRate struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + Valoper string `protobuf:"bytes,3,opt,name=valoper,proto3" json:"valoper,omitempty"` +} + +func (m *MsgUpdateValidatorSharesExchRate) Reset() { *m = MsgUpdateValidatorSharesExchRate{} } +func (m *MsgUpdateValidatorSharesExchRate) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateValidatorSharesExchRate) ProtoMessage() {} +func (*MsgUpdateValidatorSharesExchRate) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{20} +} +func (m *MsgUpdateValidatorSharesExchRate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateValidatorSharesExchRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateValidatorSharesExchRate.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 *MsgUpdateValidatorSharesExchRate) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateValidatorSharesExchRate.Merge(m, src) +} +func (m *MsgUpdateValidatorSharesExchRate) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateValidatorSharesExchRate) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateValidatorSharesExchRate.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateValidatorSharesExchRate proto.InternalMessageInfo + +func (m *MsgUpdateValidatorSharesExchRate) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgUpdateValidatorSharesExchRate) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *MsgUpdateValidatorSharesExchRate) GetValoper() string { + if m != nil { + return m.Valoper + } + return "" +} + +type MsgUpdateValidatorSharesExchRateResponse struct { +} + +func (m *MsgUpdateValidatorSharesExchRateResponse) Reset() { + *m = MsgUpdateValidatorSharesExchRateResponse{} +} +func (m *MsgUpdateValidatorSharesExchRateResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateValidatorSharesExchRateResponse) ProtoMessage() {} +func (*MsgUpdateValidatorSharesExchRateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{21} +} +func (m *MsgUpdateValidatorSharesExchRateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateValidatorSharesExchRateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateValidatorSharesExchRateResponse.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 *MsgUpdateValidatorSharesExchRateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateValidatorSharesExchRateResponse.Merge(m, src) +} +func (m *MsgUpdateValidatorSharesExchRateResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateValidatorSharesExchRateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateValidatorSharesExchRateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateValidatorSharesExchRateResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgLiquidStake)(nil), "stride.stakeibc.MsgLiquidStake") + proto.RegisterType((*MsgLiquidStakeResponse)(nil), "stride.stakeibc.MsgLiquidStakeResponse") + proto.RegisterType((*MsgClearBalance)(nil), "stride.stakeibc.MsgClearBalance") + proto.RegisterType((*MsgClearBalanceResponse)(nil), "stride.stakeibc.MsgClearBalanceResponse") + proto.RegisterType((*MsgRedeemStake)(nil), "stride.stakeibc.MsgRedeemStake") + proto.RegisterType((*MsgRedeemStakeResponse)(nil), "stride.stakeibc.MsgRedeemStakeResponse") + proto.RegisterType((*MsgRegisterHostZone)(nil), "stride.stakeibc.MsgRegisterHostZone") + proto.RegisterType((*MsgRegisterHostZoneResponse)(nil), "stride.stakeibc.MsgRegisterHostZoneResponse") + proto.RegisterType((*MsgClaimUndelegatedTokens)(nil), "stride.stakeibc.MsgClaimUndelegatedTokens") + proto.RegisterType((*MsgClaimUndelegatedTokensResponse)(nil), "stride.stakeibc.MsgClaimUndelegatedTokensResponse") + proto.RegisterType((*MsgRebalanceValidators)(nil), "stride.stakeibc.MsgRebalanceValidators") + proto.RegisterType((*MsgRebalanceValidatorsResponse)(nil), "stride.stakeibc.MsgRebalanceValidatorsResponse") + proto.RegisterType((*MsgAddValidator)(nil), "stride.stakeibc.MsgAddValidator") + proto.RegisterType((*MsgAddValidatorResponse)(nil), "stride.stakeibc.MsgAddValidatorResponse") + proto.RegisterType((*MsgChangeValidatorWeight)(nil), "stride.stakeibc.MsgChangeValidatorWeight") + proto.RegisterType((*MsgChangeValidatorWeightResponse)(nil), "stride.stakeibc.MsgChangeValidatorWeightResponse") + proto.RegisterType((*MsgDeleteValidator)(nil), "stride.stakeibc.MsgDeleteValidator") + proto.RegisterType((*MsgDeleteValidatorResponse)(nil), "stride.stakeibc.MsgDeleteValidatorResponse") + proto.RegisterType((*MsgRestoreInterchainAccount)(nil), "stride.stakeibc.MsgRestoreInterchainAccount") + proto.RegisterType((*MsgRestoreInterchainAccountResponse)(nil), "stride.stakeibc.MsgRestoreInterchainAccountResponse") + proto.RegisterType((*MsgUpdateValidatorSharesExchRate)(nil), "stride.stakeibc.MsgUpdateValidatorSharesExchRate") + proto.RegisterType((*MsgUpdateValidatorSharesExchRateResponse)(nil), "stride.stakeibc.MsgUpdateValidatorSharesExchRateResponse") +} + +func init() { proto.RegisterFile("stride/stakeibc/tx.proto", fileDescriptor_9b7e09c9ad51cd54) } + +var fileDescriptor_9b7e09c9ad51cd54 = []byte{ + // 1229 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x4d, 0x6f, 0xdb, 0x46, + 0x13, 0x16, 0x13, 0xc5, 0x91, 0x27, 0xb2, 0x1d, 0xd3, 0x8e, 0x5f, 0x9a, 0x79, 0x2d, 0x29, 0x74, + 0x3f, 0xdc, 0xb4, 0x96, 0x60, 0x3b, 0x40, 0xd1, 0xa0, 0x3d, 0x58, 0x76, 0x83, 0x0a, 0x8d, 0x5b, + 0x80, 0x4e, 0x1a, 0xc0, 0x17, 0x61, 0x45, 0xae, 0x29, 0xc2, 0xe2, 0xae, 0xcc, 0xa5, 0x5c, 0xb9, + 0x87, 0xa2, 0x28, 0x50, 0xa0, 0x97, 0x02, 0xed, 0xa5, 0xc7, 0x22, 0xc7, 0x02, 0x05, 0x7a, 0xca, + 0x8f, 0xf0, 0x31, 0xc8, 0xa9, 0xe8, 0x41, 0x28, 0xec, 0x4b, 0xcf, 0xfe, 0x05, 0x05, 0x97, 0xe4, + 0x8a, 0x94, 0x29, 0xf9, 0x23, 0x45, 0x4f, 0xd2, 0xcc, 0x3c, 0x3b, 0xf3, 0xcc, 0xec, 0xce, 0x70, + 0x17, 0x14, 0xe6, 0xb9, 0xb6, 0x89, 0x2b, 0xcc, 0x43, 0x7b, 0xd8, 0x6e, 0x18, 0x15, 0xaf, 0x5b, + 0x6e, 0xbb, 0xd4, 0xa3, 0xf2, 0x54, 0x60, 0x29, 0x47, 0x16, 0xf5, 0xde, 0x20, 0xd4, 0x36, 0x50, + 0x1d, 0x19, 0x06, 0xed, 0x10, 0x2f, 0x58, 0xa3, 0xce, 0x5a, 0xd4, 0xa2, 0xfc, 0x6f, 0xc5, 0xff, + 0x17, 0x6a, 0xe7, 0x0d, 0xca, 0x1c, 0xca, 0xea, 0x81, 0x21, 0x10, 0x02, 0x93, 0xf6, 0x93, 0x04, + 0x93, 0x5b, 0xcc, 0x7a, 0x6c, 0xef, 0x77, 0x6c, 0x73, 0xdb, 0x77, 0x2c, 0x2b, 0x70, 0xd3, 0x70, + 0x31, 0xf2, 0xa8, 0xab, 0x48, 0x25, 0x69, 0x69, 0x5c, 0x8f, 0x44, 0xf9, 0x11, 0x8c, 0x21, 0xc7, + 0x8f, 0xa6, 0x5c, 0xf3, 0x0d, 0xd5, 0xf2, 0x51, 0xaf, 0x98, 0xf9, 0xb3, 0x57, 0x7c, 0xcb, 0xb2, + 0xbd, 0x66, 0xa7, 0x51, 0x36, 0xa8, 0x13, 0x7a, 0x0f, 0x7f, 0x96, 0x99, 0xb9, 0x57, 0xf1, 0x0e, + 0xdb, 0x98, 0x95, 0x6b, 0xc4, 0xd3, 0xc3, 0xd5, 0xf2, 0x02, 0x40, 0x93, 0x32, 0xaf, 0x6e, 0x62, + 0x42, 0x1d, 0xe5, 0x3a, 0x0f, 0x32, 0xee, 0x6b, 0x36, 0x7d, 0x85, 0xa6, 0xc0, 0x5c, 0x92, 0x92, + 0x8e, 0x59, 0x9b, 0x12, 0x86, 0xb5, 0x5f, 0x25, 0x98, 0xda, 0x62, 0xd6, 0x46, 0x0b, 0x23, 0xb7, + 0x8a, 0x5a, 0x88, 0x18, 0xa3, 0xe8, 0xce, 0x43, 0xce, 0x68, 0x22, 0x9b, 0xd4, 0x6d, 0x33, 0x20, + 0xac, 0xdf, 0xe4, 0x72, 0xcd, 0x8c, 0x65, 0x72, 0xfd, 0xb5, 0x32, 0xf1, 0x83, 0x37, 0x11, 0x21, + 0xb8, 0xa5, 0x64, 0x45, 0x04, 0x5f, 0xd4, 0xe6, 0xe1, 0x7f, 0x03, 0x4c, 0x45, 0x16, 0xbf, 0x05, + 0x35, 0xd7, 0xb1, 0x89, 0xb1, 0xf3, 0x5f, 0xd5, 0xfc, 0x2e, 0xf0, 0x0a, 0xd7, 0xbf, 0xa2, 0x04, + 0x87, 0x25, 0xcf, 0xf9, 0x8a, 0x1d, 0x4a, 0xb0, 0xac, 0x42, 0xce, 0xc5, 0x06, 0xb6, 0x0f, 0xb0, + 0x1b, 0xe6, 0x21, 0xe4, 0x70, 0x37, 0x62, 0x64, 0x45, 0x1e, 0xdf, 0xde, 0x80, 0x19, 0x6e, 0xb2, + 0x6c, 0xe6, 0x61, 0xf7, 0x93, 0xc8, 0xdb, 0x47, 0x30, 0x61, 0x50, 0x42, 0xb0, 0xe1, 0xd9, 0xb4, + 0x5f, 0xfc, 0xaa, 0x72, 0xda, 0x2b, 0xce, 0x1e, 0x22, 0xa7, 0xf5, 0x50, 0x4b, 0x98, 0x35, 0x3d, + 0xdf, 0x97, 0x6b, 0xa6, 0xac, 0x41, 0xbe, 0x81, 0x8d, 0xe6, 0xda, 0x6a, 0xdb, 0xc5, 0xbb, 0x76, + 0x57, 0xc9, 0x73, 0x42, 0x09, 0x9d, 0xfc, 0x20, 0x71, 0x82, 0x38, 0xe5, 0xea, 0x9d, 0xd3, 0x5e, + 0x71, 0x3a, 0xf0, 0xdf, 0xb7, 0x69, 0xb1, 0x83, 0x25, 0xaf, 0xc0, 0xb8, 0xdd, 0x30, 0xc2, 0x45, + 0x37, 0xf8, 0xa2, 0xd9, 0xd3, 0x5e, 0xf1, 0x76, 0xb0, 0x48, 0x98, 0x34, 0x3d, 0x67, 0x37, 0x8c, + 0x60, 0x49, 0x6c, 0x63, 0xc6, 0x92, 0x1b, 0xf3, 0x19, 0xcc, 0x78, 0x2e, 0x22, 0x6c, 0x17, 0xbb, + 0xf5, 0x70, 0xd3, 0xfd, 0x5c, 0x81, 0xbb, 0x2d, 0x9c, 0xf6, 0x8a, 0x6a, 0xe0, 0x36, 0x05, 0xa4, + 0xe9, 0xd3, 0x91, 0x76, 0x23, 0x50, 0xd6, 0x4c, 0xf9, 0x73, 0x98, 0xe9, 0x90, 0x06, 0x25, 0xa6, + 0x4d, 0xac, 0xfa, 0xae, 0x8b, 0xf7, 0x3b, 0x98, 0x18, 0x87, 0xca, 0xad, 0x92, 0xb4, 0x94, 0x8d, + 0xfb, 0x4b, 0x01, 0x69, 0xba, 0x2c, 0xb4, 0x8f, 0x22, 0xa5, 0xdc, 0x82, 0x19, 0xc7, 0x26, 0x75, + 0x17, 0x9b, 0xd8, 0x69, 0xf3, 0x5a, 0xbb, 0xc8, 0xc3, 0xca, 0x04, 0x27, 0xf8, 0xe1, 0x25, 0x8e, + 0xd1, 0x26, 0x36, 0x5e, 0xbd, 0x58, 0x86, 0x70, 0x6e, 0x6c, 0x62, 0x43, 0x9f, 0x76, 0x6c, 0xa2, + 0x0b, 0xbf, 0x3a, 0xf2, 0x30, 0x8f, 0x86, 0xba, 0x67, 0xa2, 0x4d, 0xfe, 0x2b, 0xd1, 0x50, 0x37, + 0x19, 0xed, 0x61, 0xee, 0xfb, 0xe7, 0xc5, 0xcc, 0xdf, 0xcf, 0x8b, 0x19, 0x6d, 0x01, 0xee, 0xa6, + 0x9c, 0x41, 0x71, 0x46, 0xbf, 0x93, 0x60, 0x9e, 0xf7, 0x21, 0xb2, 0x9d, 0xa7, 0xc4, 0xc4, 0x2d, + 0x6c, 0x21, 0x0f, 0x9b, 0x4f, 0xe8, 0x1e, 0x26, 0x6c, 0x44, 0xdb, 0x95, 0x20, 0x2f, 0xda, 0xa5, + 0x3f, 0x3f, 0x20, 0xea, 0x98, 0x9a, 0x29, 0xcf, 0xc2, 0x0d, 0xdc, 0xa6, 0x46, 0x93, 0x37, 0x53, + 0x56, 0x0f, 0x04, 0x79, 0x0e, 0xc6, 0x18, 0x26, 0xa6, 0xe8, 0xa3, 0x50, 0xd2, 0x16, 0xe1, 0xde, + 0x50, 0x1a, 0x82, 0xac, 0x17, 0xb6, 0x5a, 0x23, 0x18, 0x18, 0x5f, 0xa0, 0x96, 0x6d, 0xfa, 0x6c, + 0x46, 0x11, 0x4d, 0xf4, 0xf5, 0xb5, 0x81, 0xbe, 0x5e, 0x84, 0x09, 0xd2, 0x71, 0xea, 0x6e, 0xe4, + 0x31, 0xe4, 0x9a, 0x27, 0x1d, 0x47, 0x44, 0xd1, 0x4a, 0x50, 0x48, 0x8f, 0x2a, 0x78, 0x1d, 0x05, + 0x63, 0x77, 0xdd, 0x34, 0x85, 0xf1, 0xaa, 0x8c, 0x64, 0xc8, 0x12, 0xe4, 0x44, 0x13, 0x88, 0xff, + 0x97, 0x57, 0xe1, 0x26, 0x32, 0x4d, 0x17, 0x33, 0x16, 0x76, 0xb2, 0xf2, 0xea, 0xc5, 0xf2, 0x6c, + 0x78, 0x00, 0xd6, 0x03, 0xcb, 0xb6, 0xe7, 0xda, 0xc4, 0xd2, 0x23, 0xa0, 0x5c, 0x00, 0x30, 0xa8, + 0xe3, 0xd8, 0x8c, 0xd9, 0x94, 0xf0, 0x5e, 0xce, 0xea, 0x31, 0x8d, 0xbf, 0x0f, 0x5f, 0x62, 0xdb, + 0x6a, 0x7a, 0xbc, 0x6d, 0xb3, 0x7a, 0x28, 0x85, 0x63, 0x39, 0x9e, 0x89, 0xc8, 0xf2, 0x17, 0x09, + 0x14, 0x7f, 0x8f, 0x9a, 0x88, 0x58, 0xfd, 0x2a, 0x3c, 0xe3, 0xeb, 0xae, 0x9a, 0xee, 0x1a, 0xe4, + 0x0e, 0x50, 0xab, 0xee, 0xb3, 0x0e, 0xbf, 0x34, 0x23, 0x72, 0x3b, 0x40, 0x2d, 0x5f, 0x13, 0xe3, + 0x9e, 0x4d, 0x70, 0xd7, 0xa0, 0x34, 0x8c, 0x9f, 0x48, 0xe2, 0x1b, 0x09, 0xe4, 0x2d, 0x66, 0x6d, + 0xe2, 0x16, 0xf6, 0xf0, 0x6b, 0xef, 0xd6, 0x55, 0xe8, 0x6b, 0xff, 0x07, 0xf5, 0x2c, 0x03, 0x41, + 0xf0, 0x67, 0x29, 0x6c, 0x58, 0xe6, 0x51, 0x17, 0xd7, 0x88, 0x87, 0x5d, 0xfe, 0x51, 0x5e, 0x0f, + 0xee, 0x31, 0x57, 0xfb, 0x9c, 0x57, 0x21, 0x1f, 0xde, 0x83, 0xea, 0xfe, 0x10, 0xe1, 0x5c, 0x27, + 0x57, 0x8b, 0xe5, 0x81, 0x1b, 0x54, 0xb9, 0xb6, 0xb1, 0x1e, 0xc6, 0x79, 0x72, 0xd8, 0xc6, 0xfa, + 0x2d, 0xd4, 0x17, 0xb4, 0x37, 0x61, 0x71, 0x04, 0x2f, 0xc1, 0x7f, 0x9f, 0x6f, 0xc2, 0xd3, 0xb6, + 0x89, 0x62, 0xd9, 0x6d, 0x37, 0x91, 0x8b, 0xd9, 0xc7, 0x5d, 0xa3, 0xc9, 0x67, 0xe1, 0x95, 0x72, + 0x50, 0xc0, 0xaf, 0x20, 0x6d, 0xe3, 0xb0, 0xd4, 0x7a, 0x24, 0x6a, 0xf7, 0x61, 0xe9, 0xbc, 0x90, + 0x11, 0xbd, 0xd5, 0xdf, 0xc7, 0xe1, 0xfa, 0x16, 0xb3, 0xe4, 0x67, 0x70, 0x2b, 0x7e, 0xa7, 0x3b, + 0x5b, 0x8a, 0xe4, 0x0d, 0x4b, 0x7d, 0xfb, 0x1c, 0x40, 0x14, 0xc0, 0x77, 0x1c, 0xbf, 0xb8, 0xa4, + 0x3a, 0x8e, 0x01, 0xd2, 0x1d, 0xa7, 0xdc, 0x26, 0xe4, 0x5d, 0xb8, 0x7d, 0xe6, 0x26, 0xf1, 0x46, + 0xfa, 0xe2, 0x24, 0x4a, 0x7d, 0xef, 0x22, 0x28, 0x11, 0xa7, 0x0b, 0x73, 0x43, 0xbe, 0x06, 0xf7, + 0xd3, 0xfc, 0xa4, 0x63, 0xd5, 0xd5, 0x8b, 0x63, 0x45, 0x64, 0x0a, 0x33, 0x69, 0xb3, 0x7d, 0x48, + 0x85, 0xce, 0x00, 0xd5, 0xca, 0x05, 0x81, 0x22, 0xe0, 0x0e, 0xe4, 0x13, 0x33, 0xbb, 0x94, 0xe6, + 0x20, 0x8e, 0x50, 0x97, 0xce, 0x43, 0x08, 0xdf, 0x1d, 0xb8, 0x93, 0x3e, 0x29, 0xdf, 0x49, 0xad, + 0x4c, 0x1a, 0x54, 0x5d, 0xb9, 0x30, 0x54, 0x84, 0x35, 0x60, 0x6a, 0x70, 0xb6, 0x2d, 0xa6, 0x79, + 0x19, 0x00, 0xa9, 0xef, 0x5e, 0x00, 0x24, 0x82, 0x7c, 0x0d, 0xca, 0xd0, 0xf9, 0x34, 0xe4, 0xb0, + 0xa5, 0xa3, 0xd5, 0x07, 0x97, 0x41, 0x8b, 0xf8, 0x3f, 0x48, 0xb0, 0x30, 0x7a, 0xc2, 0xa4, 0x56, + 0x6e, 0xe4, 0x12, 0xf5, 0x83, 0x4b, 0x2f, 0x89, 0x9f, 0xa3, 0xc4, 0x93, 0xab, 0x94, 0x7e, 0xf8, + 0xfb, 0x88, 0xf4, 0x73, 0x94, 0xf6, 0x18, 0xaa, 0x7e, 0x7a, 0x74, 0x5c, 0x90, 0x5e, 0x1e, 0x17, + 0xa4, 0xbf, 0x8e, 0x0b, 0xd2, 0x8f, 0x27, 0x85, 0xcc, 0xcb, 0x93, 0x42, 0xe6, 0x8f, 0x93, 0x42, + 0x66, 0x67, 0x25, 0x76, 0x59, 0xdc, 0xe6, 0xde, 0x96, 0x1f, 0xa3, 0x06, 0xab, 0x84, 0xaf, 0xe0, + 0x83, 0xf7, 0x2b, 0xdd, 0xd8, 0xab, 0xd9, 0xbf, 0x3b, 0x36, 0xc6, 0xf8, 0xa3, 0x76, 0xed, 0x9f, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x85, 0x7f, 0x78, 0xff, 0x55, 0x0f, 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 { + LiquidStake(ctx context.Context, in *MsgLiquidStake, opts ...grpc.CallOption) (*MsgLiquidStakeResponse, error) + RedeemStake(ctx context.Context, in *MsgRedeemStake, opts ...grpc.CallOption) (*MsgRedeemStakeResponse, error) + RegisterHostZone(ctx context.Context, in *MsgRegisterHostZone, opts ...grpc.CallOption) (*MsgRegisterHostZoneResponse, error) + ClaimUndelegatedTokens(ctx context.Context, in *MsgClaimUndelegatedTokens, opts ...grpc.CallOption) (*MsgClaimUndelegatedTokensResponse, error) + RebalanceValidators(ctx context.Context, in *MsgRebalanceValidators, opts ...grpc.CallOption) (*MsgRebalanceValidatorsResponse, error) + AddValidator(ctx context.Context, in *MsgAddValidator, opts ...grpc.CallOption) (*MsgAddValidatorResponse, error) + ChangeValidatorWeight(ctx context.Context, in *MsgChangeValidatorWeight, opts ...grpc.CallOption) (*MsgChangeValidatorWeightResponse, error) + DeleteValidator(ctx context.Context, in *MsgDeleteValidator, opts ...grpc.CallOption) (*MsgDeleteValidatorResponse, error) + RestoreInterchainAccount(ctx context.Context, in *MsgRestoreInterchainAccount, opts ...grpc.CallOption) (*MsgRestoreInterchainAccountResponse, error) + UpdateValidatorSharesExchRate(ctx context.Context, in *MsgUpdateValidatorSharesExchRate, opts ...grpc.CallOption) (*MsgUpdateValidatorSharesExchRateResponse, error) + ClearBalance(ctx context.Context, in *MsgClearBalance, opts ...grpc.CallOption) (*MsgClearBalanceResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) LiquidStake(ctx context.Context, in *MsgLiquidStake, opts ...grpc.CallOption) (*MsgLiquidStakeResponse, error) { + out := new(MsgLiquidStakeResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/LiquidStake", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RedeemStake(ctx context.Context, in *MsgRedeemStake, opts ...grpc.CallOption) (*MsgRedeemStakeResponse, error) { + out := new(MsgRedeemStakeResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/RedeemStake", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RegisterHostZone(ctx context.Context, in *MsgRegisterHostZone, opts ...grpc.CallOption) (*MsgRegisterHostZoneResponse, error) { + out := new(MsgRegisterHostZoneResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/RegisterHostZone", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ClaimUndelegatedTokens(ctx context.Context, in *MsgClaimUndelegatedTokens, opts ...grpc.CallOption) (*MsgClaimUndelegatedTokensResponse, error) { + out := new(MsgClaimUndelegatedTokensResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/ClaimUndelegatedTokens", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RebalanceValidators(ctx context.Context, in *MsgRebalanceValidators, opts ...grpc.CallOption) (*MsgRebalanceValidatorsResponse, error) { + out := new(MsgRebalanceValidatorsResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/RebalanceValidators", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) AddValidator(ctx context.Context, in *MsgAddValidator, opts ...grpc.CallOption) (*MsgAddValidatorResponse, error) { + out := new(MsgAddValidatorResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/AddValidator", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ChangeValidatorWeight(ctx context.Context, in *MsgChangeValidatorWeight, opts ...grpc.CallOption) (*MsgChangeValidatorWeightResponse, error) { + out := new(MsgChangeValidatorWeightResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/ChangeValidatorWeight", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) DeleteValidator(ctx context.Context, in *MsgDeleteValidator, opts ...grpc.CallOption) (*MsgDeleteValidatorResponse, error) { + out := new(MsgDeleteValidatorResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/DeleteValidator", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RestoreInterchainAccount(ctx context.Context, in *MsgRestoreInterchainAccount, opts ...grpc.CallOption) (*MsgRestoreInterchainAccountResponse, error) { + out := new(MsgRestoreInterchainAccountResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/RestoreInterchainAccount", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateValidatorSharesExchRate(ctx context.Context, in *MsgUpdateValidatorSharesExchRate, opts ...grpc.CallOption) (*MsgUpdateValidatorSharesExchRateResponse, error) { + out := new(MsgUpdateValidatorSharesExchRateResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/UpdateValidatorSharesExchRate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) ClearBalance(ctx context.Context, in *MsgClearBalance, opts ...grpc.CallOption) (*MsgClearBalanceResponse, error) { + out := new(MsgClearBalanceResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/ClearBalance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { + LiquidStake(context.Context, *MsgLiquidStake) (*MsgLiquidStakeResponse, error) + RedeemStake(context.Context, *MsgRedeemStake) (*MsgRedeemStakeResponse, error) + RegisterHostZone(context.Context, *MsgRegisterHostZone) (*MsgRegisterHostZoneResponse, error) + ClaimUndelegatedTokens(context.Context, *MsgClaimUndelegatedTokens) (*MsgClaimUndelegatedTokensResponse, error) + RebalanceValidators(context.Context, *MsgRebalanceValidators) (*MsgRebalanceValidatorsResponse, error) + AddValidator(context.Context, *MsgAddValidator) (*MsgAddValidatorResponse, error) + ChangeValidatorWeight(context.Context, *MsgChangeValidatorWeight) (*MsgChangeValidatorWeightResponse, error) + DeleteValidator(context.Context, *MsgDeleteValidator) (*MsgDeleteValidatorResponse, error) + RestoreInterchainAccount(context.Context, *MsgRestoreInterchainAccount) (*MsgRestoreInterchainAccountResponse, error) + UpdateValidatorSharesExchRate(context.Context, *MsgUpdateValidatorSharesExchRate) (*MsgUpdateValidatorSharesExchRateResponse, error) + ClearBalance(context.Context, *MsgClearBalance) (*MsgClearBalanceResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) LiquidStake(ctx context.Context, req *MsgLiquidStake) (*MsgLiquidStakeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LiquidStake not implemented") +} +func (*UnimplementedMsgServer) RedeemStake(ctx context.Context, req *MsgRedeemStake) (*MsgRedeemStakeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RedeemStake not implemented") +} +func (*UnimplementedMsgServer) RegisterHostZone(ctx context.Context, req *MsgRegisterHostZone) (*MsgRegisterHostZoneResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RegisterHostZone not implemented") +} +func (*UnimplementedMsgServer) ClaimUndelegatedTokens(ctx context.Context, req *MsgClaimUndelegatedTokens) (*MsgClaimUndelegatedTokensResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClaimUndelegatedTokens not implemented") +} +func (*UnimplementedMsgServer) RebalanceValidators(ctx context.Context, req *MsgRebalanceValidators) (*MsgRebalanceValidatorsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RebalanceValidators not implemented") +} +func (*UnimplementedMsgServer) AddValidator(ctx context.Context, req *MsgAddValidator) (*MsgAddValidatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddValidator not implemented") +} +func (*UnimplementedMsgServer) ChangeValidatorWeight(ctx context.Context, req *MsgChangeValidatorWeight) (*MsgChangeValidatorWeightResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangeValidatorWeight not implemented") +} +func (*UnimplementedMsgServer) DeleteValidator(ctx context.Context, req *MsgDeleteValidator) (*MsgDeleteValidatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteValidator not implemented") +} +func (*UnimplementedMsgServer) RestoreInterchainAccount(ctx context.Context, req *MsgRestoreInterchainAccount) (*MsgRestoreInterchainAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RestoreInterchainAccount not implemented") +} +func (*UnimplementedMsgServer) UpdateValidatorSharesExchRate(ctx context.Context, req *MsgUpdateValidatorSharesExchRate) (*MsgUpdateValidatorSharesExchRateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateValidatorSharesExchRate not implemented") +} +func (*UnimplementedMsgServer) ClearBalance(ctx context.Context, req *MsgClearBalance) (*MsgClearBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClearBalance not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_LiquidStake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgLiquidStake) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).LiquidStake(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Msg/LiquidStake", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).LiquidStake(ctx, req.(*MsgLiquidStake)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RedeemStake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRedeemStake) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RedeemStake(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Msg/RedeemStake", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RedeemStake(ctx, req.(*MsgRedeemStake)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RegisterHostZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRegisterHostZone) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RegisterHostZone(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Msg/RegisterHostZone", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RegisterHostZone(ctx, req.(*MsgRegisterHostZone)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ClaimUndelegatedTokens_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgClaimUndelegatedTokens) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ClaimUndelegatedTokens(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Msg/ClaimUndelegatedTokens", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ClaimUndelegatedTokens(ctx, req.(*MsgClaimUndelegatedTokens)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RebalanceValidators_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRebalanceValidators) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RebalanceValidators(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Msg/RebalanceValidators", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RebalanceValidators(ctx, req.(*MsgRebalanceValidators)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_AddValidator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAddValidator) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AddValidator(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Msg/AddValidator", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AddValidator(ctx, req.(*MsgAddValidator)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ChangeValidatorWeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgChangeValidatorWeight) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ChangeValidatorWeight(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Msg/ChangeValidatorWeight", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ChangeValidatorWeight(ctx, req.(*MsgChangeValidatorWeight)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_DeleteValidator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDeleteValidator) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).DeleteValidator(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Msg/DeleteValidator", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DeleteValidator(ctx, req.(*MsgDeleteValidator)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RestoreInterchainAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRestoreInterchainAccount) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RestoreInterchainAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Msg/RestoreInterchainAccount", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RestoreInterchainAccount(ctx, req.(*MsgRestoreInterchainAccount)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateValidatorSharesExchRate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateValidatorSharesExchRate) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateValidatorSharesExchRate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Msg/UpdateValidatorSharesExchRate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateValidatorSharesExchRate(ctx, req.(*MsgUpdateValidatorSharesExchRate)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_ClearBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgClearBalance) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ClearBalance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Msg/ClearBalance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ClearBalance(ctx, req.(*MsgClearBalance)) + } + return interceptor(ctx, in, info, handler) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "stride.stakeibc.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "LiquidStake", + Handler: _Msg_LiquidStake_Handler, + }, + { + MethodName: "RedeemStake", + Handler: _Msg_RedeemStake_Handler, + }, + { + MethodName: "RegisterHostZone", + Handler: _Msg_RegisterHostZone_Handler, + }, + { + MethodName: "ClaimUndelegatedTokens", + Handler: _Msg_ClaimUndelegatedTokens_Handler, + }, + { + MethodName: "RebalanceValidators", + Handler: _Msg_RebalanceValidators_Handler, + }, + { + MethodName: "AddValidator", + Handler: _Msg_AddValidator_Handler, + }, + { + MethodName: "ChangeValidatorWeight", + Handler: _Msg_ChangeValidatorWeight_Handler, + }, + { + MethodName: "DeleteValidator", + Handler: _Msg_DeleteValidator_Handler, + }, + { + MethodName: "RestoreInterchainAccount", + Handler: _Msg_RestoreInterchainAccount_Handler, + }, + { + MethodName: "UpdateValidatorSharesExchRate", + Handler: _Msg_UpdateValidatorSharesExchRate_Handler, + }, + { + MethodName: "ClearBalance", + Handler: _Msg_ClearBalance_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "stride/stakeibc/tx.proto", +} + +func (m *MsgLiquidStake) 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 *MsgLiquidStake) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgLiquidStake) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.HostDenom) > 0 { + i -= len(m.HostDenom) + copy(dAtA[i:], m.HostDenom) + i = encodeVarintTx(dAtA, i, uint64(len(m.HostDenom))) + i-- + dAtA[i] = 0x1a + } + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgLiquidStakeResponse) 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 *MsgLiquidStakeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgLiquidStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgClearBalance) 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 *MsgClearBalance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgClearBalance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Channel) > 0 { + i -= len(m.Channel) + copy(dAtA[i:], m.Channel) + i = encodeVarintTx(dAtA, i, uint64(len(m.Channel))) + i-- + dAtA[i] = 0x22 + } + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgClearBalanceResponse) 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 *MsgClearBalanceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgClearBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgRedeemStake) 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 *MsgRedeemStake) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRedeemStake) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Receiver) > 0 { + i -= len(m.Receiver) + copy(dAtA[i:], m.Receiver) + i = encodeVarintTx(dAtA, i, uint64(len(m.Receiver))) + i-- + dAtA[i] = 0x22 + } + if len(m.HostZone) > 0 { + i -= len(m.HostZone) + copy(dAtA[i:], m.HostZone) + i = encodeVarintTx(dAtA, i, uint64(len(m.HostZone))) + i-- + dAtA[i] = 0x1a + } + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRedeemStakeResponse) 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 *MsgRedeemStakeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRedeemStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgRegisterHostZone) 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 *MsgRegisterHostZone) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRegisterHostZone) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.MaxRedemptionRate.Size() + i -= size + if _, err := m.MaxRedemptionRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x72 + { + size := m.MinRedemptionRate.Size() + i -= size + if _, err := m.MinRedemptionRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + if len(m.Bech32Prefix) > 0 { + i -= len(m.Bech32Prefix) + copy(dAtA[i:], m.Bech32Prefix) + i = encodeVarintTx(dAtA, i, uint64(len(m.Bech32Prefix))) + i-- + dAtA[i] = 0x62 + } + if m.UnbondingFrequency != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.UnbondingFrequency)) + i-- + dAtA[i] = 0x58 + } + if len(m.TransferChannelId) > 0 { + i -= len(m.TransferChannelId) + copy(dAtA[i:], m.TransferChannelId) + i = encodeVarintTx(dAtA, i, uint64(len(m.TransferChannelId))) + i-- + dAtA[i] = 0x52 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x32 + } + if len(m.IbcDenom) > 0 { + i -= len(m.IbcDenom) + copy(dAtA[i:], m.IbcDenom) + i = encodeVarintTx(dAtA, i, uint64(len(m.IbcDenom))) + i-- + dAtA[i] = 0x2a + } + if len(m.HostDenom) > 0 { + i -= len(m.HostDenom) + copy(dAtA[i:], m.HostDenom) + i = encodeVarintTx(dAtA, i, uint64(len(m.HostDenom))) + i-- + dAtA[i] = 0x22 + } + if len(m.ConnectionId) > 0 { + i -= len(m.ConnectionId) + copy(dAtA[i:], m.ConnectionId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ConnectionId))) + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} + +func (m *MsgRegisterHostZoneResponse) 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 *MsgRegisterHostZoneResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRegisterHostZoneResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgClaimUndelegatedTokens) 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 *MsgClaimUndelegatedTokens) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgClaimUndelegatedTokens) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0x22 + } + if m.Epoch != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Epoch)) + i-- + dAtA[i] = 0x18 + } + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintTx(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgClaimUndelegatedTokensResponse) 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 *MsgClaimUndelegatedTokensResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgClaimUndelegatedTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgRebalanceValidators) 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 *MsgRebalanceValidators) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRebalanceValidators) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NumRebalance != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.NumRebalance)) + i-- + dAtA[i] = 0x18 + } + if len(m.HostZone) > 0 { + i -= len(m.HostZone) + copy(dAtA[i:], m.HostZone) + i = encodeVarintTx(dAtA, i, uint64(len(m.HostZone))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRebalanceValidatorsResponse) 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 *MsgRebalanceValidatorsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRebalanceValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgAddValidator) 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 *MsgAddValidator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAddValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Weight != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Weight)) + i-- + dAtA[i] = 0x30 + } + if m.Commission != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Commission)) + i-- + dAtA[i] = 0x28 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x22 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.HostZone) > 0 { + i -= len(m.HostZone) + copy(dAtA[i:], m.HostZone) + i = encodeVarintTx(dAtA, i, uint64(len(m.HostZone))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgAddValidatorResponse) 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 *MsgAddValidatorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgAddValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgChangeValidatorWeight) 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 *MsgChangeValidatorWeight) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgChangeValidatorWeight) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Weight != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.Weight)) + i-- + dAtA[i] = 0x20 + } + if len(m.ValAddr) > 0 { + i -= len(m.ValAddr) + copy(dAtA[i:], m.ValAddr) + i = encodeVarintTx(dAtA, i, uint64(len(m.ValAddr))) + i-- + dAtA[i] = 0x1a + } + if len(m.HostZone) > 0 { + i -= len(m.HostZone) + copy(dAtA[i:], m.HostZone) + i = encodeVarintTx(dAtA, i, uint64(len(m.HostZone))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgChangeValidatorWeightResponse) 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 *MsgChangeValidatorWeightResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgChangeValidatorWeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgDeleteValidator) 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 *MsgDeleteValidator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDeleteValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ValAddr) > 0 { + i -= len(m.ValAddr) + copy(dAtA[i:], m.ValAddr) + i = encodeVarintTx(dAtA, i, uint64(len(m.ValAddr))) + i-- + dAtA[i] = 0x1a + } + if len(m.HostZone) > 0 { + i -= len(m.HostZone) + copy(dAtA[i:], m.HostZone) + i = encodeVarintTx(dAtA, i, uint64(len(m.HostZone))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDeleteValidatorResponse) 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 *MsgDeleteValidatorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDeleteValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgRestoreInterchainAccount) 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 *MsgRestoreInterchainAccount) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRestoreInterchainAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AccountType != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.AccountType)) + i-- + dAtA[i] = 0x18 + } + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRestoreInterchainAccountResponse) 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 *MsgRestoreInterchainAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRestoreInterchainAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgUpdateValidatorSharesExchRate) 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 *MsgUpdateValidatorSharesExchRate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateValidatorSharesExchRate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Valoper) > 0 { + i -= len(m.Valoper) + copy(dAtA[i:], m.Valoper) + i = encodeVarintTx(dAtA, i, uint64(len(m.Valoper))) + i-- + dAtA[i] = 0x1a + } + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateValidatorSharesExchRateResponse) 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 *MsgUpdateValidatorSharesExchRateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateValidatorSharesExchRateResponse) 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 *MsgLiquidStake) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.HostDenom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgLiquidStakeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgClearBalance) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.Channel) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgClearBalanceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgRedeemStake) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.HostZone) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Receiver) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgRedeemStakeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgRegisterHostZone) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ConnectionId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.HostDenom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.IbcDenom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.TransferChannelId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.UnbondingFrequency != 0 { + n += 1 + sovTx(uint64(m.UnbondingFrequency)) + } + l = len(m.Bech32Prefix) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.MinRedemptionRate.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.MaxRedemptionRate.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgRegisterHostZoneResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgClaimUndelegatedTokens) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Epoch != 0 { + n += 1 + sovTx(uint64(m.Epoch)) + } + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgClaimUndelegatedTokensResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgRebalanceValidators) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.HostZone) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.NumRebalance != 0 { + n += 1 + sovTx(uint64(m.NumRebalance)) + } + return n +} + +func (m *MsgRebalanceValidatorsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgAddValidator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.HostZone) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Commission != 0 { + n += 1 + sovTx(uint64(m.Commission)) + } + if m.Weight != 0 { + n += 1 + sovTx(uint64(m.Weight)) + } + return n +} + +func (m *MsgAddValidatorResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgChangeValidatorWeight) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.HostZone) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ValAddr) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Weight != 0 { + n += 1 + sovTx(uint64(m.Weight)) + } + return n +} + +func (m *MsgChangeValidatorWeightResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgDeleteValidator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.HostZone) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ValAddr) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgDeleteValidatorResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgRestoreInterchainAccount) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.AccountType != 0 { + n += 1 + sovTx(uint64(m.AccountType)) + } + return n +} + +func (m *MsgRestoreInterchainAccountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgUpdateValidatorSharesExchRate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Valoper) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateValidatorSharesExchRateResponse) 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 *MsgLiquidStake) 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: MsgLiquidStake: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgLiquidStake: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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 + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostDenom", 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.HostDenom = string(dAtA[iNdEx:postIndex]) + 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 *MsgLiquidStakeResponse) 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: MsgLiquidStakeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgLiquidStakeResponse: 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 (m *MsgClearBalance) 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: MsgClearBalance: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgClearBalance: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", 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.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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 + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Channel", 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.Channel = string(dAtA[iNdEx:postIndex]) + 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 *MsgClearBalanceResponse) 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: MsgClearBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgClearBalanceResponse: 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 (m *MsgRedeemStake) 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: MsgRedeemStake: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRedeemStake: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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 + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZone", 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.HostZone = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Receiver", 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.Receiver = string(dAtA[iNdEx:postIndex]) + 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 *MsgRedeemStakeResponse) 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: MsgRedeemStakeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRedeemStakeResponse: 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 (m *MsgRegisterHostZone) 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: MsgRegisterHostZone: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRegisterHostZone: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", 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.ConnectionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostDenom", 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.HostDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IbcDenom", 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.IbcDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransferChannelId", 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.TransferChannelId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnbondingFrequency", wireType) + } + m.UnbondingFrequency = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UnbondingFrequency |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bech32Prefix", 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.Bech32Prefix = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinRedemptionRate", 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 + } + if err := m.MinRedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxRedemptionRate", 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 + } + if err := m.MaxRedemptionRate.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 *MsgRegisterHostZoneResponse) 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: MsgRegisterHostZoneResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRegisterHostZoneResponse: 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 (m *MsgClaimUndelegatedTokens) 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: MsgClaimUndelegatedTokens: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgClaimUndelegatedTokens: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", 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.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) + } + m.Epoch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Epoch |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", 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.Sender = string(dAtA[iNdEx:postIndex]) + 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 *MsgClaimUndelegatedTokensResponse) 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: MsgClaimUndelegatedTokensResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgClaimUndelegatedTokensResponse: 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 (m *MsgRebalanceValidators) 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: MsgRebalanceValidators: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRebalanceValidators: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZone", 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.HostZone = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumRebalance", wireType) + } + m.NumRebalance = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumRebalance |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 *MsgRebalanceValidatorsResponse) 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: MsgRebalanceValidatorsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRebalanceValidatorsResponse: 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 (m *MsgAddValidator) 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: MsgAddValidator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAddValidator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZone", 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.HostZone = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", 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.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Commission", wireType) + } + m.Commission = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Commission |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + } + m.Weight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Weight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 *MsgAddValidatorResponse) 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: MsgAddValidatorResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgAddValidatorResponse: 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 (m *MsgChangeValidatorWeight) 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: MsgChangeValidatorWeight: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgChangeValidatorWeight: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZone", 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.HostZone = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValAddr", 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.ValAddr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + } + m.Weight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Weight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 *MsgChangeValidatorWeightResponse) 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: MsgChangeValidatorWeightResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgChangeValidatorWeightResponse: 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 (m *MsgDeleteValidator) 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: MsgDeleteValidator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDeleteValidator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZone", 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.HostZone = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValAddr", 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.ValAddr = string(dAtA[iNdEx:postIndex]) + 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 *MsgDeleteValidatorResponse) 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: MsgDeleteValidatorResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDeleteValidatorResponse: 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 (m *MsgRestoreInterchainAccount) 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: MsgRestoreInterchainAccount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRestoreInterchainAccount: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", 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.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AccountType", wireType) + } + m.AccountType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AccountType |= ICAAccountType(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 *MsgRestoreInterchainAccountResponse) 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: MsgRestoreInterchainAccountResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRestoreInterchainAccountResponse: 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 (m *MsgUpdateValidatorSharesExchRate) 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: MsgUpdateValidatorSharesExchRate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateValidatorSharesExchRate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", 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.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Valoper", 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.Valoper = string(dAtA[iNdEx:postIndex]) + 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 *MsgUpdateValidatorSharesExchRateResponse) 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: MsgUpdateValidatorSharesExchRateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateValidatorSharesExchRateResponse: 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") +) diff --git a/x/stakeibc/types/validator.pb.go b/x/stakeibc/types/validator.pb.go new file mode 100644 index 0000000000..efac42ca85 --- /dev/null +++ b/x/stakeibc/types/validator.pb.go @@ -0,0 +1,828 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/stakeibc/validator.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +type Validator_ValidatorStatus int32 + +const ( + Validator_ACTIVE Validator_ValidatorStatus = 0 + Validator_INACTIVE Validator_ValidatorStatus = 1 +) + +var Validator_ValidatorStatus_name = map[int32]string{ + 0: "ACTIVE", + 1: "INACTIVE", +} + +var Validator_ValidatorStatus_value = map[string]int32{ + "ACTIVE": 0, + "INACTIVE": 1, +} + +func (x Validator_ValidatorStatus) String() string { + return proto.EnumName(Validator_ValidatorStatus_name, int32(x)) +} + +func (Validator_ValidatorStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5d2f32e16bd6ab8f, []int{1, 0} +} + +type ValidatorExchangeRate struct { + InternalTokensToSharesRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=internal_tokens_to_shares_rate,json=internalTokensToSharesRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"internal_tokens_to_shares_rate"` + EpochNumber uint64 `protobuf:"varint,2,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` +} + +func (m *ValidatorExchangeRate) Reset() { *m = ValidatorExchangeRate{} } +func (m *ValidatorExchangeRate) String() string { return proto.CompactTextString(m) } +func (*ValidatorExchangeRate) ProtoMessage() {} +func (*ValidatorExchangeRate) Descriptor() ([]byte, []int) { + return fileDescriptor_5d2f32e16bd6ab8f, []int{0} +} +func (m *ValidatorExchangeRate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorExchangeRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorExchangeRate.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 *ValidatorExchangeRate) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorExchangeRate.Merge(m, src) +} +func (m *ValidatorExchangeRate) XXX_Size() int { + return m.Size() +} +func (m *ValidatorExchangeRate) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorExchangeRate.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorExchangeRate proto.InternalMessageInfo + +func (m *ValidatorExchangeRate) GetEpochNumber() uint64 { + if m != nil { + return m.EpochNumber + } + return 0 +} + +type Validator struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Status Validator_ValidatorStatus `protobuf:"varint,3,opt,name=status,proto3,enum=stride.stakeibc.Validator_ValidatorStatus" json:"status,omitempty"` + CommissionRate uint64 `protobuf:"varint,4,opt,name=commission_rate,json=commissionRate,proto3" json:"commission_rate,omitempty"` + DelegationAmt github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=delegation_amt,json=delegationAmt,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"delegation_amt"` + Weight uint64 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"` + InternalExchangeRate *ValidatorExchangeRate `protobuf:"bytes,7,opt,name=internal_exchange_rate,json=internalExchangeRate,proto3" json:"internal_exchange_rate,omitempty"` +} + +func (m *Validator) Reset() { *m = Validator{} } +func (m *Validator) String() string { return proto.CompactTextString(m) } +func (*Validator) ProtoMessage() {} +func (*Validator) Descriptor() ([]byte, []int) { + return fileDescriptor_5d2f32e16bd6ab8f, []int{1} +} +func (m *Validator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Validator.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 *Validator) XXX_Merge(src proto.Message) { + xxx_messageInfo_Validator.Merge(m, src) +} +func (m *Validator) XXX_Size() int { + return m.Size() +} +func (m *Validator) XXX_DiscardUnknown() { + xxx_messageInfo_Validator.DiscardUnknown(m) +} + +var xxx_messageInfo_Validator proto.InternalMessageInfo + +func (m *Validator) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Validator) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *Validator) GetStatus() Validator_ValidatorStatus { + if m != nil { + return m.Status + } + return Validator_ACTIVE +} + +func (m *Validator) GetCommissionRate() uint64 { + if m != nil { + return m.CommissionRate + } + return 0 +} + +func (m *Validator) GetWeight() uint64 { + if m != nil { + return m.Weight + } + return 0 +} + +func (m *Validator) GetInternalExchangeRate() *ValidatorExchangeRate { + if m != nil { + return m.InternalExchangeRate + } + return nil +} + +func init() { + proto.RegisterEnum("stride.stakeibc.Validator_ValidatorStatus", Validator_ValidatorStatus_name, Validator_ValidatorStatus_value) + proto.RegisterType((*ValidatorExchangeRate)(nil), "stride.stakeibc.ValidatorExchangeRate") + proto.RegisterType((*Validator)(nil), "stride.stakeibc.Validator") +} + +func init() { proto.RegisterFile("stride/stakeibc/validator.proto", fileDescriptor_5d2f32e16bd6ab8f) } + +var fileDescriptor_5d2f32e16bd6ab8f = []byte{ + // 496 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x31, 0x6f, 0xd3, 0x40, + 0x14, 0xf6, 0xd1, 0xe0, 0x92, 0x6b, 0x49, 0xd0, 0x29, 0x54, 0x26, 0x83, 0x13, 0x32, 0x94, 0x08, + 0x14, 0x5b, 0x84, 0x81, 0x85, 0x25, 0xa1, 0x1d, 0x22, 0x50, 0x07, 0x27, 0x74, 0x40, 0x48, 0xd6, + 0xd9, 0x3e, 0xd9, 0x56, 0x62, 0x5f, 0x74, 0xf7, 0x52, 0xca, 0xc6, 0x4f, 0xe0, 0xc7, 0x74, 0x42, + 0x62, 0xef, 0x58, 0x75, 0x42, 0x0c, 0x15, 0x4a, 0xfe, 0x08, 0xea, 0xf9, 0x9c, 0x44, 0x95, 0x18, + 0x3a, 0xf9, 0xbd, 0xcf, 0xef, 0xbd, 0xef, 0x7b, 0xdf, 0xdd, 0xe1, 0x96, 0x04, 0x91, 0x46, 0xcc, + 0x95, 0x40, 0xa7, 0x2c, 0x0d, 0x42, 0xf7, 0x8c, 0xce, 0xd2, 0x88, 0x02, 0x17, 0xce, 0x5c, 0x70, + 0xe0, 0xa4, 0x5e, 0x14, 0x38, 0x65, 0x41, 0xf3, 0x59, 0xc8, 0x65, 0xc6, 0xa5, 0xaf, 0x7e, 0xbb, + 0x45, 0x52, 0xd4, 0x36, 0x1b, 0x31, 0x8f, 0x79, 0x81, 0xdf, 0x46, 0x05, 0xda, 0xf9, 0x85, 0xf0, + 0xd3, 0xd3, 0x72, 0xea, 0xf1, 0x79, 0x98, 0xd0, 0x3c, 0x66, 0x1e, 0x05, 0x46, 0xbe, 0x23, 0x6c, + 0xa7, 0x39, 0x30, 0x91, 0xd3, 0x99, 0x0f, 0x7c, 0xca, 0x72, 0xe9, 0x03, 0xf7, 0x65, 0x42, 0x05, + 0x93, 0xbe, 0xa0, 0xc0, 0x2c, 0xd4, 0x46, 0xdd, 0xea, 0xf0, 0xdd, 0xe5, 0x4d, 0xcb, 0xf8, 0x73, + 0xd3, 0x3a, 0x8c, 0x53, 0x48, 0x16, 0x81, 0x13, 0xf2, 0x4c, 0x33, 0xeb, 0x4f, 0x4f, 0x46, 0x53, + 0x17, 0xbe, 0xcd, 0x99, 0x74, 0x8e, 0x58, 0x78, 0x7d, 0xd1, 0xc3, 0x5a, 0xd8, 0x11, 0x0b, 0xbd, + 0x66, 0xc9, 0x31, 0x51, 0x14, 0x13, 0x3e, 0x56, 0x04, 0x4a, 0xc2, 0x73, 0xbc, 0xcf, 0xe6, 0x3c, + 0x4c, 0xfc, 0x7c, 0x91, 0x05, 0x4c, 0x58, 0x0f, 0xda, 0xa8, 0x5b, 0xf1, 0xf6, 0x14, 0x76, 0xa2, + 0xa0, 0xce, 0xcf, 0x1d, 0x5c, 0x5d, 0xeb, 0x27, 0x04, 0x57, 0x72, 0x9a, 0x69, 0x61, 0x9e, 0x8a, + 0x49, 0x1f, 0xef, 0xd2, 0x28, 0x12, 0x4c, 0x4a, 0xd5, 0x5f, 0x1d, 0x5a, 0xd7, 0x17, 0xbd, 0x86, + 0x56, 0x30, 0x28, 0xfe, 0x8c, 0x41, 0xa4, 0x79, 0xec, 0x95, 0x85, 0x64, 0x88, 0x4d, 0x09, 0x14, + 0x16, 0xd2, 0xda, 0x69, 0xa3, 0x6e, 0xad, 0xff, 0xd2, 0xb9, 0x63, 0xb4, 0xb3, 0xe6, 0xdc, 0x44, + 0x63, 0xd5, 0xe1, 0xe9, 0x4e, 0xf2, 0x02, 0xd7, 0x43, 0x9e, 0x65, 0xa9, 0x94, 0x29, 0xcf, 0x0b, + 0xbf, 0x2a, 0x4a, 0x7f, 0x6d, 0x03, 0xab, 0x2d, 0x3f, 0xe1, 0x5a, 0xc4, 0x66, 0x2c, 0xa6, 0x70, + 0x5b, 0x48, 0x33, 0xb0, 0x1e, 0x2a, 0x9d, 0xce, 0x3d, 0x7c, 0x1d, 0xe5, 0xe0, 0x3d, 0xde, 0x4c, + 0x19, 0x64, 0x40, 0x0e, 0xb0, 0xf9, 0x95, 0xa5, 0x71, 0x02, 0x96, 0xa9, 0x68, 0x75, 0x46, 0xbe, + 0xe0, 0x83, 0xf5, 0xb1, 0x32, 0x7d, 0xe0, 0x85, 0xbc, 0xdd, 0x36, 0xea, 0xee, 0xf5, 0x0f, 0xff, + 0xbf, 0xeb, 0xf6, 0xfd, 0xf0, 0x1a, 0xe5, 0x94, 0x6d, 0xb4, 0xf3, 0x0a, 0xd7, 0xef, 0x18, 0x42, + 0x30, 0x36, 0x07, 0xef, 0x27, 0xa3, 0xd3, 0xe3, 0x27, 0x06, 0xd9, 0xc7, 0x8f, 0x46, 0x27, 0x3a, + 0x43, 0xc3, 0x0f, 0x97, 0x4b, 0x1b, 0x5d, 0x2d, 0x6d, 0xf4, 0x77, 0x69, 0xa3, 0x1f, 0x2b, 0xdb, + 0xb8, 0x5a, 0xd9, 0xc6, 0xef, 0x95, 0x6d, 0x7c, 0x7e, 0xbd, 0xb5, 0xf3, 0x58, 0xc9, 0xe9, 0x7d, + 0xa4, 0x81, 0x74, 0xf5, 0x83, 0x38, 0x7b, 0xeb, 0x9e, 0x6f, 0x5e, 0x85, 0xb2, 0x20, 0x30, 0xd5, + 0x85, 0x7e, 0xf3, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x9b, 0x89, 0xe7, 0x0c, 0x35, 0x03, 0x00, 0x00, +} + +func (m *ValidatorExchangeRate) 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 *ValidatorExchangeRate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorExchangeRate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EpochNumber != 0 { + i = encodeVarintValidator(dAtA, i, uint64(m.EpochNumber)) + i-- + dAtA[i] = 0x10 + } + { + size := m.InternalTokensToSharesRate.Size() + i -= size + if _, err := m.InternalTokensToSharesRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintValidator(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Validator) 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 *Validator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.InternalExchangeRate != nil { + { + size, err := m.InternalExchangeRate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintValidator(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.Weight != 0 { + i = encodeVarintValidator(dAtA, i, uint64(m.Weight)) + i-- + dAtA[i] = 0x30 + } + { + size := m.DelegationAmt.Size() + i -= size + if _, err := m.DelegationAmt.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintValidator(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if m.CommissionRate != 0 { + i = encodeVarintValidator(dAtA, i, uint64(m.CommissionRate)) + i-- + dAtA[i] = 0x20 + } + if m.Status != 0 { + i = encodeVarintValidator(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x18 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintValidator(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintValidator(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintValidator(dAtA []byte, offset int, v uint64) int { + offset -= sovValidator(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ValidatorExchangeRate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.InternalTokensToSharesRate.Size() + n += 1 + l + sovValidator(uint64(l)) + if m.EpochNumber != 0 { + n += 1 + sovValidator(uint64(m.EpochNumber)) + } + return n +} + +func (m *Validator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovValidator(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovValidator(uint64(l)) + } + if m.Status != 0 { + n += 1 + sovValidator(uint64(m.Status)) + } + if m.CommissionRate != 0 { + n += 1 + sovValidator(uint64(m.CommissionRate)) + } + l = m.DelegationAmt.Size() + n += 1 + l + sovValidator(uint64(l)) + if m.Weight != 0 { + n += 1 + sovValidator(uint64(m.Weight)) + } + if m.InternalExchangeRate != nil { + l = m.InternalExchangeRate.Size() + n += 1 + l + sovValidator(uint64(l)) + } + return n +} + +func sovValidator(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozValidator(x uint64) (n int) { + return sovValidator(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ValidatorExchangeRate) 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 ErrIntOverflowValidator + } + 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: ValidatorExchangeRate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidatorExchangeRate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InternalTokensToSharesRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + 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 ErrInvalidLengthValidator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthValidator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.InternalTokensToSharesRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) + } + m.EpochNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipValidator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthValidator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Validator) 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 ErrIntOverflowValidator + } + 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: Validator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Validator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + 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 ErrInvalidLengthValidator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthValidator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + 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 ErrInvalidLengthValidator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthValidator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= Validator_ValidatorStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CommissionRate", wireType) + } + m.CommissionRate = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CommissionRate |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegationAmt", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + 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 ErrInvalidLengthValidator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthValidator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.DelegationAmt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + } + m.Weight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Weight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InternalExchangeRate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthValidator + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthValidator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InternalExchangeRate == nil { + m.InternalExchangeRate = &ValidatorExchangeRate{} + } + if err := m.InternalExchangeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipValidator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthValidator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipValidator(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, ErrIntOverflowValidator + } + 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, ErrIntOverflowValidator + } + 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, ErrIntOverflowValidator + } + 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, ErrInvalidLengthValidator + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupValidator + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthValidator + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthValidator = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowValidator = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupValidator = fmt.Errorf("proto: unexpected end of group") +) From 8da87d628ce6b9d9eaf55498c11ac2496e0bb433 Mon Sep 17 00:00:00 2001 From: Aidan Salzmann Date: Sun, 12 Mar 2023 22:53:15 -0400 Subject: [PATCH 06/10] revert v6->v7 for v2 migrations code --- app/upgrades/v5/upgrades.go | 8 ++++---- app/upgrades/v5/upgrades_test.go | 6 +++--- dockernet/build.sh | 6 +++++- dockernet/start_network.sh | 3 +++ go.mod | 1 + go.sum | 2 ++ x/claim/migrations/v2/convert.go | 2 +- x/claim/migrations/v2/convert_test.go | 2 +- x/claim/migrations/v2/migrations.go | 2 +- x/icacallbacks/migrations/v2/convert.go | 2 +- x/icacallbacks/migrations/v2/convert_test.go | 2 +- x/records/migrations/v2/convert.go | 2 +- x/records/migrations/v2/convert_test.go | 2 +- x/records/migrations/v2/migrations.go | 2 +- x/stakeibc/migrations/v2/convert.go | 2 +- x/stakeibc/migrations/v2/convert_test.go | 2 +- x/stakeibc/migrations/v2/migrations.go | 2 +- 17 files changed, 29 insertions(+), 19 deletions(-) diff --git a/app/upgrades/v5/upgrades.go b/app/upgrades/v5/upgrades.go index 4ff9fd7486..62b06401d9 100644 --- a/app/upgrades/v5/upgrades.go +++ b/app/upgrades/v5/upgrades.go @@ -12,15 +12,15 @@ import ( authz "github.com/cosmos/cosmos-sdk/x/authz" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - claimmigration "github.com/Stride-Labs/stride/v7/x/claim/migrations/v2" + claimmigration "github.com/Stride-Labs/stride/v6/x/claim/migrations/v2" + icacallbacksmigration "github.com/Stride-Labs/stride/v6/x/icacallbacks/migrations/v2" + recordsmigration "github.com/Stride-Labs/stride/v6/x/records/migrations/v2" + stakeibcmigration "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2" claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" - icacallbacksmigration "github.com/Stride-Labs/stride/v7/x/icacallbacks/migrations/v2" icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" interchainquerykeeper "github.com/Stride-Labs/stride/v7/x/interchainquery/keeper" - recordsmigration "github.com/Stride-Labs/stride/v7/x/records/migrations/v2" recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" - stakeibcmigration "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2" stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) diff --git a/app/upgrades/v5/upgrades_test.go b/app/upgrades/v5/upgrades_test.go index 52925c434e..c4c452b85c 100644 --- a/app/upgrades/v5/upgrades_test.go +++ b/app/upgrades/v5/upgrades_test.go @@ -13,17 +13,17 @@ import ( "github.com/Stride-Labs/stride/v7/app" + oldclaimtypes "github.com/Stride-Labs/stride/v6/x/claim/migrations/v2/types" + oldrecordtypes "github.com/Stride-Labs/stride/v6/x/records/migrations/v2/types" + oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" "github.com/Stride-Labs/stride/v7/app/apptesting" upgradev5 "github.com/Stride-Labs/stride/v7/app/upgrades/v5" - oldclaimtypes "github.com/Stride-Labs/stride/v7/x/claim/migrations/v2/types" claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" icqtypes "github.com/Stride-Labs/stride/v7/x/interchainquery/types" recordkeeper "github.com/Stride-Labs/stride/v7/x/records/keeper" - oldrecordtypes "github.com/Stride-Labs/stride/v7/x/records/migrations/v2/types" recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" - oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) diff --git a/dockernet/build.sh b/dockernet/build.sh index ce0f554950..7e9c474d10 100755 --- a/dockernet/build.sh +++ b/dockernet/build.sh @@ -7,6 +7,7 @@ source ${SCRIPT_DIR}/config.sh BUILDDIR="$2" mkdir -p $BUILDDIR + build_local_and_docker() { module="$1" folder="$2" @@ -15,9 +16,10 @@ build_local_and_docker() { printf '%s' "Building $title Locally... " cwd=$PWD cd $folder - GOBIN=$BUILDDIR go install -mod=readonly -trimpath ./... 2>&1 | grep -v -E "deprecated|keychain" | true + GOBIN=$BUILDDIR go install -mod=readonly -trimpath ./... | grep -v -E "deprecated|keychain" | true local_build_succeeded=${PIPESTATUS[0]} cd $cwd + if [[ "$local_build_succeeded" == "0" ]]; then echo "Done" @@ -44,6 +46,7 @@ build_local_and_docker() { return $docker_build_succeeded } + ADMINS_FILE=${DOCKERNET_HOME}/../utils/admins.go ADMINS_FILE_BACKUP=${DOCKERNET_HOME}/../utils/admins.go.main @@ -57,6 +60,7 @@ revert_admin_address() { rm -f ${ADMINS_FILE}-E } + # build docker images and local binaries while getopts sgojthrn flag; do case "${flag}" in diff --git a/dockernet/start_network.sh b/dockernet/start_network.sh index aac5476450..c443508fe4 100755 --- a/dockernet/start_network.sh +++ b/dockernet/start_network.sh @@ -10,6 +10,7 @@ rm -rf $STATE $LOGS mkdir -p $STATE mkdir -p $LOGS + # If we're testing an upgrade, setup cosmovisor if [[ "$UPGRADE_NAME" != "" ]]; then printf "\n>>> UPGRADE ENABLED! ($UPGRADE_NAME)\n\n" @@ -38,11 +39,13 @@ if [[ "$UPGRADE_NAME" != "" ]]; then echo "Done" fi + # Initialize the state for each chain for chain in STRIDE ${HOST_CHAINS[@]}; do bash $SRC/init_chain.sh $chain done + # Start the chain and create the transfer channels bash $SRC/start_chain.sh bash $SRC/start_relayers.sh diff --git a/go.mod b/go.mod index b8de54acaf..f1d10b2a10 100644 --- a/go.mod +++ b/go.mod @@ -5,6 +5,7 @@ go 1.19 require ( cosmossdk.io/errors v1.0.0-beta.7 cosmossdk.io/math v1.0.0-beta.3 + github.com/Stride-Labs/stride/v6 v6.0.0 github.com/cosmos/cosmos-proto v1.0.0-alpha8 github.com/cosmos/cosmos-sdk v0.46.7 github.com/cosmos/gogoproto v1.4.3 diff --git a/go.sum b/go.sum index 80a68050e4..c420991c31 100644 --- a/go.sum +++ b/go.sum @@ -79,6 +79,8 @@ github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMx github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= github.com/Stride-Labs/cast v0.0.3 h1:eM3n/t3hSxb+iw9LDo3r/uGBp3w4U7wPv40GKMtJ1dI= github.com/Stride-Labs/cast v0.0.3/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= +github.com/Stride-Labs/stride/v6 v6.0.0 h1:O2/pcl/VFXeKK3+VYFWveiqR73AYLUdnIRpV/0ho8FE= +github.com/Stride-Labs/stride/v6 v6.0.0/go.mod h1:8sqYiz9JogpNNenlRxXbI9XIpHvbDDxLpakeoCYhDb4= github.com/VictoriaMetrics/fastcache v1.6.0/go.mod h1:0qHz5QP0GMX4pfmMA/zt5RgfNuXJrTP0zS7DqpHGGTw= github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= diff --git a/x/claim/migrations/v2/convert.go b/x/claim/migrations/v2/convert.go index 016a2e8e0f..bb5365df6a 100644 --- a/x/claim/migrations/v2/convert.go +++ b/x/claim/migrations/v2/convert.go @@ -3,7 +3,7 @@ package v2 import ( sdkmath "cosmossdk.io/math" - oldclaimtypes "github.com/Stride-Labs/stride/v7/x/claim/migrations/v2/types" + oldclaimtypes "github.com/Stride-Labs/stride/v6/x/claim/migrations/v2/types" claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" ) diff --git a/x/claim/migrations/v2/convert_test.go b/x/claim/migrations/v2/convert_test.go index a7d401129e..7aebed1468 100644 --- a/x/claim/migrations/v2/convert_test.go +++ b/x/claim/migrations/v2/convert_test.go @@ -10,7 +10,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - oldclaimtypes "github.com/Stride-Labs/stride/v7/x/claim/migrations/v2/types" + oldclaimtypes "github.com/Stride-Labs/stride/v6/x/claim/migrations/v2/types" claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" ) diff --git a/x/claim/migrations/v2/migrations.go b/x/claim/migrations/v2/migrations.go index d259366c1f..ba785400e6 100644 --- a/x/claim/migrations/v2/migrations.go +++ b/x/claim/migrations/v2/migrations.go @@ -7,7 +7,7 @@ import ( errorsmod "cosmossdk.io/errors" - oldclaimtypes "github.com/Stride-Labs/stride/v7/x/claim/migrations/v2/types" + oldclaimtypes "github.com/Stride-Labs/stride/v6/x/claim/migrations/v2/types" claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" ) diff --git a/x/icacallbacks/migrations/v2/convert.go b/x/icacallbacks/migrations/v2/convert.go index 4069a844de..6f885edfd9 100644 --- a/x/icacallbacks/migrations/v2/convert.go +++ b/x/icacallbacks/migrations/v2/convert.go @@ -5,8 +5,8 @@ import ( sdkmath "cosmossdk.io/math" "github.com/golang/protobuf/proto" //nolint:staticcheck + oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" - oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) diff --git a/x/icacallbacks/migrations/v2/convert_test.go b/x/icacallbacks/migrations/v2/convert_test.go index d494e32b43..8d2568e8ab 100644 --- a/x/icacallbacks/migrations/v2/convert_test.go +++ b/x/icacallbacks/migrations/v2/convert_test.go @@ -7,8 +7,8 @@ import ( "github.com/golang/protobuf/proto" //nolint:staticcheck "github.com/stretchr/testify/require" + oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" - oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" ) func TestConvertDelegateCallback(t *testing.T) { diff --git a/x/records/migrations/v2/convert.go b/x/records/migrations/v2/convert.go index ff0ca05d5b..a1675bd862 100644 --- a/x/records/migrations/v2/convert.go +++ b/x/records/migrations/v2/convert.go @@ -3,7 +3,7 @@ package v2 import ( sdkmath "cosmossdk.io/math" - oldrecordstypes "github.com/Stride-Labs/stride/v7/x/records/migrations/v2/types" + oldrecordstypes "github.com/Stride-Labs/stride/v6/x/records/migrations/v2/types" recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" ) diff --git a/x/records/migrations/v2/convert_test.go b/x/records/migrations/v2/convert_test.go index 63ef4242f5..da9ffc0ffd 100644 --- a/x/records/migrations/v2/convert_test.go +++ b/x/records/migrations/v2/convert_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - oldrecordstypes "github.com/Stride-Labs/stride/v7/x/records/migrations/v2/types" + oldrecordstypes "github.com/Stride-Labs/stride/v6/x/records/migrations/v2/types" recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" ) diff --git a/x/records/migrations/v2/migrations.go b/x/records/migrations/v2/migrations.go index d49f3fa557..01c0588ccb 100644 --- a/x/records/migrations/v2/migrations.go +++ b/x/records/migrations/v2/migrations.go @@ -8,7 +8,7 @@ import ( errorsmod "cosmossdk.io/errors" - oldrecordtypes "github.com/Stride-Labs/stride/v7/x/records/migrations/v2/types" + oldrecordtypes "github.com/Stride-Labs/stride/v6/x/records/migrations/v2/types" recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" ) diff --git a/x/stakeibc/migrations/v2/convert.go b/x/stakeibc/migrations/v2/convert.go index 7f1e3ef751..fbd316c5a0 100644 --- a/x/stakeibc/migrations/v2/convert.go +++ b/x/stakeibc/migrations/v2/convert.go @@ -3,7 +3,7 @@ package v2 import ( sdkmath "cosmossdk.io/math" - oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" + oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) diff --git a/x/stakeibc/migrations/v2/convert_test.go b/x/stakeibc/migrations/v2/convert_test.go index 5825d5625a..33fd05505b 100644 --- a/x/stakeibc/migrations/v2/convert_test.go +++ b/x/stakeibc/migrations/v2/convert_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" - oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" + oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) diff --git a/x/stakeibc/migrations/v2/migrations.go b/x/stakeibc/migrations/v2/migrations.go index 72683faab2..2b17072c15 100644 --- a/x/stakeibc/migrations/v2/migrations.go +++ b/x/stakeibc/migrations/v2/migrations.go @@ -8,7 +8,7 @@ import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" + oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) From 1ca7c6cd2d5960b6dfba63603ec096f4639e052e Mon Sep 17 00:00:00 2001 From: Aidan Salzmann Date: Sun, 12 Mar 2023 23:02:01 -0400 Subject: [PATCH 07/10] add back v2 types --- x/claim/migrations/v2/types/params.pb.go | 763 +++++ x/records/migrations/v2/types/genesis.pb.go | 2806 +++++++++++++++++ .../migrations/v2/types/callbacks.pb.go | 2238 +++++++++++++ .../migrations/v2/types/host_zone.pb.go | 1193 +++++++ .../migrations/v2/types/ica_account.pb.go | 392 +++ .../migrations/v2/types/validator.pb.go | 816 +++++ 6 files changed, 8208 insertions(+) create mode 100644 x/claim/migrations/v2/types/params.pb.go create mode 100644 x/records/migrations/v2/types/genesis.pb.go create mode 100644 x/stakeibc/migrations/v2/types/callbacks.pb.go create mode 100644 x/stakeibc/migrations/v2/types/host_zone.pb.go create mode 100644 x/stakeibc/migrations/v2/types/ica_account.pb.go create mode 100644 x/stakeibc/migrations/v2/types/validator.pb.go diff --git a/x/claim/migrations/v2/types/params.pb.go b/x/claim/migrations/v2/types/params.pb.go new file mode 100644 index 0000000000..dd99dc2c06 --- /dev/null +++ b/x/claim/migrations/v2/types/params.pb.go @@ -0,0 +1,763 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/claim/params.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + _ "github.com/gogo/protobuf/types" + github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" + io "io" + math "math" + math_bits "math/bits" + time "time" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf +var _ = time.Kitchen + +// 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 + +// Params defines the claim module's parameters. +type Params struct { + Airdrops []*Airdrop `protobuf:"bytes,1,rep,name=airdrops,proto3" json:"airdrops,omitempty"` +} + +func (m *Params) Reset() { *m = Params{} } +func (m *Params) String() string { return proto.CompactTextString(m) } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_dd7ac871d3875dc3, []int{0} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +func (m *Params) GetAirdrops() []*Airdrop { + if m != nil { + return m.Airdrops + } + return nil +} + +type Airdrop struct { + AirdropIdentifier string `protobuf:"bytes,1,opt,name=airdrop_identifier,json=airdropIdentifier,proto3" json:"airdrop_identifier,omitempty" yaml:"airdrop_identifier"` + // seconds + AirdropStartTime time.Time `protobuf:"bytes,2,opt,name=airdrop_start_time,json=airdropStartTime,proto3,stdtime" json:"airdrop_start_time" yaml:"airdrop_start_time"` + // seconds + AirdropDuration time.Duration `protobuf:"bytes,3,opt,name=airdrop_duration,json=airdropDuration,proto3,stdduration" json:"airdrop_duration,omitempty" yaml:"airdrop_duration"` + // denom of claimable asset + ClaimDenom string `protobuf:"bytes,4,opt,name=claim_denom,json=claimDenom,proto3" json:"claim_denom,omitempty"` + // airdrop distribution account + DistributorAddress string `protobuf:"bytes,5,opt,name=distributor_address,json=distributorAddress,proto3" json:"distributor_address,omitempty"` + // ustrd tokens claimed so far in the current period + ClaimedSoFar int64 `protobuf:"varint,6,opt,name=claimed_so_far,json=claimedSoFar,proto3" json:"claimed_so_far,omitempty"` +} + +func (m *Airdrop) Reset() { *m = Airdrop{} } +func (m *Airdrop) String() string { return proto.CompactTextString(m) } +func (*Airdrop) ProtoMessage() {} +func (*Airdrop) Descriptor() ([]byte, []int) { + return fileDescriptor_dd7ac871d3875dc3, []int{1} +} +func (m *Airdrop) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Airdrop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Airdrop.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 *Airdrop) XXX_Merge(src proto.Message) { + xxx_messageInfo_Airdrop.Merge(m, src) +} +func (m *Airdrop) XXX_Size() int { + return m.Size() +} +func (m *Airdrop) XXX_DiscardUnknown() { + xxx_messageInfo_Airdrop.DiscardUnknown(m) +} + +var xxx_messageInfo_Airdrop proto.InternalMessageInfo + +func (m *Airdrop) GetAirdropIdentifier() string { + if m != nil { + return m.AirdropIdentifier + } + return "" +} + +func (m *Airdrop) GetAirdropStartTime() time.Time { + if m != nil { + return m.AirdropStartTime + } + return time.Time{} +} + +func (m *Airdrop) GetAirdropDuration() time.Duration { + if m != nil { + return m.AirdropDuration + } + return 0 +} + +func (m *Airdrop) GetClaimDenom() string { + if m != nil { + return m.ClaimDenom + } + return "" +} + +func (m *Airdrop) GetDistributorAddress() string { + if m != nil { + return m.DistributorAddress + } + return "" +} + +func (m *Airdrop) GetClaimedSoFar() int64 { + if m != nil { + return m.ClaimedSoFar + } + return 0 +} + +func init() { + proto.RegisterType((*Params)(nil), "stride.claim.V2Params") + proto.RegisterType((*Airdrop)(nil), "stride.claim.V2Airdrop") +} + +func init() { proto.RegisterFile("stride/claim/params.proto", fileDescriptor_dd7ac871d3875dc3) } + +var fileDescriptor_dd7ac871d3875dc3 = []byte{ + // 445 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0x3d, 0x8f, 0xd3, 0x30, + 0x18, 0xc7, 0x6b, 0x0a, 0x05, 0xdc, 0x13, 0x2f, 0x06, 0x44, 0x5a, 0x89, 0xa4, 0x8a, 0x40, 0xea, + 0x00, 0xb6, 0x38, 0x98, 0x60, 0x6a, 0x75, 0x42, 0x20, 0xdd, 0x80, 0x52, 0x26, 0x96, 0xc8, 0x39, + 0xbb, 0xc1, 0x52, 0x5d, 0x47, 0xb6, 0x8b, 0xe8, 0x27, 0x60, 0xbd, 0x91, 0x8f, 0x74, 0x62, 0xba, + 0x91, 0x29, 0xa0, 0x76, 0x63, 0xbc, 0x4f, 0x80, 0xec, 0x38, 0x77, 0xc7, 0x75, 0x4b, 0x7e, 0xff, + 0xff, 0xf3, 0xea, 0x07, 0x0e, 0x8c, 0xd5, 0x82, 0x71, 0x72, 0xb4, 0xa0, 0x42, 0x92, 0x8a, 0x6a, + 0x2a, 0x0d, 0xae, 0xb4, 0xb2, 0x0a, 0xed, 0x35, 0x12, 0xf6, 0xd2, 0xf0, 0x61, 0xa9, 0x4a, 0xe5, + 0x05, 0xe2, 0xbe, 0x1a, 0xcf, 0x30, 0x2e, 0x95, 0x2a, 0x17, 0x9c, 0xf8, 0xbf, 0x62, 0x35, 0x27, + 0x6c, 0xa5, 0xa9, 0x15, 0x6a, 0x19, 0xf4, 0xe4, 0xaa, 0x6e, 0x85, 0xe4, 0xc6, 0x52, 0x59, 0x35, + 0x86, 0xf4, 0x2d, 0xec, 0x7d, 0xf4, 0x45, 0xd1, 0x4b, 0x78, 0x8b, 0x0a, 0xcd, 0xb4, 0xaa, 0x4c, + 0x04, 0x46, 0xdd, 0x71, 0x7f, 0xff, 0x11, 0xbe, 0xdc, 0x01, 0x9e, 0x34, 0x6a, 0x76, 0x6e, 0x4b, + 0x7f, 0x76, 0xe1, 0xcd, 0x40, 0xd1, 0x21, 0x44, 0x81, 0xe7, 0x82, 0xf1, 0xa5, 0x15, 0x73, 0xc1, + 0x75, 0x04, 0x46, 0x60, 0x7c, 0x7b, 0xfa, 0xe4, 0xac, 0x4e, 0x06, 0x6b, 0x2a, 0x17, 0x6f, 0xd2, + 0x5d, 0x4f, 0x9a, 0xdd, 0x0f, 0xf0, 0xc3, 0x39, 0x43, 0xea, 0x22, 0x9b, 0xb1, 0x54, 0xdb, 0xdc, + 0xf5, 0x1d, 0x5d, 0x1b, 0x81, 0x71, 0x7f, 0x7f, 0x88, 0x9b, 0xa1, 0x70, 0x3b, 0x14, 0xfe, 0xd4, + 0x0e, 0x35, 0x7d, 0x76, 0x52, 0x27, 0x9d, 0xdd, 0x6a, 0x17, 0x39, 0xd2, 0xe3, 0xdf, 0x09, 0xc8, + 0xee, 0x05, 0x61, 0xe6, 0xb8, 0x8b, 0x46, 0xdf, 0x01, 0x6c, 0x61, 0xde, 0xee, 0x30, 0xea, 0xfa, + 0x7a, 0x83, 0x9d, 0x7a, 0x07, 0xc1, 0x30, 0x9d, 0xb8, 0x72, 0x7f, 0xeb, 0x64, 0x78, 0x35, 0xf4, + 0xb9, 0x92, 0xc2, 0x72, 0x59, 0xd9, 0xf5, 0x59, 0x9d, 0x3c, 0xfe, 0xbf, 0x99, 0xd6, 0x93, 0xfe, + 0x70, 0xad, 0xdc, 0x0d, 0xb8, 0xcd, 0x89, 0x12, 0xd8, 0xf7, 0xfb, 0xce, 0x19, 0x5f, 0x2a, 0x19, + 0x5d, 0x77, 0x1b, 0xcc, 0xa0, 0x47, 0x07, 0x8e, 0x20, 0x02, 0x1f, 0x30, 0xe1, 0x5e, 0xa6, 0x58, + 0x59, 0xa5, 0x73, 0xca, 0x98, 0xe6, 0xc6, 0x44, 0x37, 0xbc, 0x11, 0x5d, 0x92, 0x26, 0x8d, 0x82, + 0x9e, 0xc2, 0x3b, 0x3e, 0x9c, 0xb3, 0xdc, 0xa8, 0x7c, 0x4e, 0x75, 0xd4, 0x1b, 0x81, 0x71, 0x37, + 0xdb, 0x0b, 0x74, 0xa6, 0xde, 0x51, 0x3d, 0x7d, 0x7f, 0xb2, 0x89, 0xc1, 0xe9, 0x26, 0x06, 0x7f, + 0x36, 0x31, 0x38, 0xde, 0xc6, 0x9d, 0xd3, 0x6d, 0xdc, 0xf9, 0xb5, 0x8d, 0x3b, 0x9f, 0x71, 0x29, + 0xec, 0x97, 0x55, 0x81, 0x8f, 0x94, 0x24, 0x33, 0x7f, 0x11, 0x2f, 0x0e, 0x69, 0x61, 0x48, 0x38, + 0xdd, 0xaf, 0xaf, 0xc9, 0xb7, 0x70, 0xbf, 0x76, 0x5d, 0x71, 0x53, 0xf4, 0xfc, 0xa2, 0x5e, 0xfd, + 0x0b, 0x00, 0x00, 0xff, 0xff, 0x1a, 0xdb, 0x32, 0x0a, 0xdc, 0x02, 0x00, 0x00, +} + +func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Airdrops) > 0 { + for iNdEx := len(m.Airdrops) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Airdrops[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Airdrop) 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 *Airdrop) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Airdrop) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ClaimedSoFar != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.ClaimedSoFar)) + i-- + dAtA[i] = 0x30 + } + if len(m.DistributorAddress) > 0 { + i -= len(m.DistributorAddress) + copy(dAtA[i:], m.DistributorAddress) + i = encodeVarintParams(dAtA, i, uint64(len(m.DistributorAddress))) + i-- + dAtA[i] = 0x2a + } + if len(m.ClaimDenom) > 0 { + i -= len(m.ClaimDenom) + copy(dAtA[i:], m.ClaimDenom) + i = encodeVarintParams(dAtA, i, uint64(len(m.ClaimDenom))) + i-- + dAtA[i] = 0x22 + } + n1, err1 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.AirdropDuration, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.AirdropDuration):]) + if err1 != nil { + return 0, err1 + } + i -= n1 + i = encodeVarintParams(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0x1a + n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.AirdropStartTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.AirdropStartTime):]) + if err2 != nil { + return 0, err2 + } + i -= n2 + i = encodeVarintParams(dAtA, i, uint64(n2)) + i-- + dAtA[i] = 0x12 + if len(m.AirdropIdentifier) > 0 { + i -= len(m.AirdropIdentifier) + copy(dAtA[i:], m.AirdropIdentifier) + i = encodeVarintParams(dAtA, i, uint64(len(m.AirdropIdentifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintParams(dAtA []byte, offset int, v uint64) int { + offset -= sovParams(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Airdrops) > 0 { + for _, e := range m.Airdrops { + l = e.Size() + n += 1 + l + sovParams(uint64(l)) + } + } + return n +} + +func (m *Airdrop) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AirdropIdentifier) + if l > 0 { + n += 1 + l + sovParams(uint64(l)) + } + l = github_com_gogo_protobuf_types.SizeOfStdTime(m.AirdropStartTime) + n += 1 + l + sovParams(uint64(l)) + l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.AirdropDuration) + n += 1 + l + sovParams(uint64(l)) + l = len(m.ClaimDenom) + if l > 0 { + n += 1 + l + sovParams(uint64(l)) + } + l = len(m.DistributorAddress) + if l > 0 { + n += 1 + l + sovParams(uint64(l)) + } + if m.ClaimedSoFar != 0 { + n += 1 + sovParams(uint64(m.ClaimedSoFar)) + } + return n +} + +func sovParams(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozParams(x uint64) (n int) { + return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Params) 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 ErrIntOverflowParams + } + 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: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Airdrops", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Airdrops = append(m.Airdrops, &Airdrop{}) + if err := m.Airdrops[len(m.Airdrops)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipParams(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthParams + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Airdrop) 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 ErrIntOverflowParams + } + 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: Airdrop: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Airdrop: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropIdentifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + 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 ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AirdropIdentifier = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropStartTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.AirdropStartTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AirdropDuration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.AirdropDuration, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + 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 ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClaimDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DistributorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + 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 ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DistributorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimedSoFar", wireType) + } + m.ClaimedSoFar = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ClaimedSoFar |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipParams(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthParams + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipParams(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, ErrIntOverflowParams + } + 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, ErrIntOverflowParams + } + 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, ErrIntOverflowParams + } + 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, ErrInvalidLengthParams + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupParams + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthParams + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/records/migrations/v2/types/genesis.pb.go b/x/records/migrations/v2/types/genesis.pb.go new file mode 100644 index 0000000000..4c7e5c7679 --- /dev/null +++ b/x/records/migrations/v2/types/genesis.pb.go @@ -0,0 +1,2806 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/records/genesis.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/gogo/protobuf/grpc" + proto "github.com/gogo/protobuf/proto" + grpc "google.golang.org/grpc" + 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 + +type DepositRecord_Status int32 + +const ( + // in transfer queue to be sent to the delegation ICA + DepositRecord_TRANSFER_QUEUE DepositRecord_Status = 0 + // transfer in progress (IBC packet sent, ack not received) + DepositRecord_TRANSFER_IN_PROGRESS DepositRecord_Status = 2 + // in staking queue on delegation ICA + DepositRecord_DELEGATION_QUEUE DepositRecord_Status = 1 + // staking in progress (ICA packet sent, ack not received) + DepositRecord_DELEGATION_IN_PROGRESS DepositRecord_Status = 3 +) + +var DepositRecord_Status_name = map[int32]string{ + 0: "TRANSFER_QUEUE", + 2: "TRANSFER_IN_PROGRESS", + 1: "DELEGATION_QUEUE", + 3: "DELEGATION_IN_PROGRESS", +} + +var DepositRecord_Status_value = map[string]int32{ + "TRANSFER_QUEUE": 0, + "TRANSFER_IN_PROGRESS": 2, + "DELEGATION_QUEUE": 1, + "DELEGATION_IN_PROGRESS": 3, +} + +func (x DepositRecord_Status) String() string { + return proto.EnumName(DepositRecord_Status_name, int32(x)) +} + +func (DepositRecord_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{4, 0} +} + +type DepositRecord_Source int32 + +const ( + DepositRecord_STRIDE DepositRecord_Source = 0 + DepositRecord_WITHDRAWAL_ICA DepositRecord_Source = 1 +) + +var DepositRecord_Source_name = map[int32]string{ + 0: "STRIDE", + 1: "WITHDRAWAL_ICA", +} + +var DepositRecord_Source_value = map[string]int32{ + "STRIDE": 0, + "WITHDRAWAL_ICA": 1, +} + +func (x DepositRecord_Source) String() string { + return proto.EnumName(DepositRecord_Source_name, int32(x)) +} + +func (DepositRecord_Source) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{4, 1} +} + +type HostZoneUnbonding_Status int32 + +const ( + // tokens bonded on delegate account + HostZoneUnbonding_UNBONDING_QUEUE HostZoneUnbonding_Status = 0 + HostZoneUnbonding_UNBONDING_IN_PROGRESS HostZoneUnbonding_Status = 3 + // unbonding completed on delegate account + HostZoneUnbonding_EXIT_TRANSFER_QUEUE HostZoneUnbonding_Status = 1 + HostZoneUnbonding_EXIT_TRANSFER_IN_PROGRESS HostZoneUnbonding_Status = 4 + // transfer success + HostZoneUnbonding_CLAIMABLE HostZoneUnbonding_Status = 2 +) + +var HostZoneUnbonding_Status_name = map[int32]string{ + 0: "UNBONDING_QUEUE", + 3: "UNBONDING_IN_PROGRESS", + 1: "EXIT_TRANSFER_QUEUE", + 4: "EXIT_TRANSFER_IN_PROGRESS", + 2: "CLAIMABLE", +} + +var HostZoneUnbonding_Status_value = map[string]int32{ + "UNBONDING_QUEUE": 0, + "UNBONDING_IN_PROGRESS": 3, + "EXIT_TRANSFER_QUEUE": 1, + "EXIT_TRANSFER_IN_PROGRESS": 4, + "CLAIMABLE": 2, +} + +func (x HostZoneUnbonding_Status) String() string { + return proto.EnumName(HostZoneUnbonding_Status_name, int32(x)) +} + +func (HostZoneUnbonding_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{5, 0} +} + +type UserRedemptionRecord struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` + Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` + Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` + Denom string `protobuf:"bytes,5,opt,name=denom,proto3" json:"denom,omitempty"` + HostZoneId string `protobuf:"bytes,6,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` + EpochNumber uint64 `protobuf:"varint,7,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` + ClaimIsPending bool `protobuf:"varint,8,opt,name=claim_is_pending,json=claimIsPending,proto3" json:"claim_is_pending,omitempty"` +} + +func (m *UserRedemptionRecord) Reset() { *m = UserRedemptionRecord{} } +func (m *UserRedemptionRecord) String() string { return proto.CompactTextString(m) } +func (*UserRedemptionRecord) ProtoMessage() {} +func (*UserRedemptionRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{0} +} +func (m *UserRedemptionRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserRedemptionRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserRedemptionRecord.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 *UserRedemptionRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserRedemptionRecord.Merge(m, src) +} +func (m *UserRedemptionRecord) XXX_Size() int { + return m.Size() +} +func (m *UserRedemptionRecord) XXX_DiscardUnknown() { + xxx_messageInfo_UserRedemptionRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_UserRedemptionRecord proto.InternalMessageInfo + +func (m *UserRedemptionRecord) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *UserRedemptionRecord) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *UserRedemptionRecord) GetReceiver() string { + if m != nil { + return m.Receiver + } + return "" +} + +func (m *UserRedemptionRecord) GetAmount() uint64 { + if m != nil { + return m.Amount + } + return 0 +} + +func (m *UserRedemptionRecord) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *UserRedemptionRecord) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +func (m *UserRedemptionRecord) GetEpochNumber() uint64 { + if m != nil { + return m.EpochNumber + } + return 0 +} + +func (m *UserRedemptionRecord) GetClaimIsPending() bool { + if m != nil { + return m.ClaimIsPending + } + return false +} + +// Params defines the parameters for the module. +type Params struct { +} + +func (m *Params) Reset() { *m = Params{} } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{1} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +type RecordsPacketData struct { + // Types that are valid to be assigned to Packet: + // *RecordsPacketData_NoData + Packet isRecordsPacketData_Packet `protobuf_oneof:"packet"` +} + +func (m *RecordsPacketData) Reset() { *m = RecordsPacketData{} } +func (m *RecordsPacketData) String() string { return proto.CompactTextString(m) } +func (*RecordsPacketData) ProtoMessage() {} +func (*RecordsPacketData) Descriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{2} +} +func (m *RecordsPacketData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RecordsPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RecordsPacketData.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 *RecordsPacketData) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecordsPacketData.Merge(m, src) +} +func (m *RecordsPacketData) XXX_Size() int { + return m.Size() +} +func (m *RecordsPacketData) XXX_DiscardUnknown() { + xxx_messageInfo_RecordsPacketData.DiscardUnknown(m) +} + +var xxx_messageInfo_RecordsPacketData proto.InternalMessageInfo + +type isRecordsPacketData_Packet interface { + isRecordsPacketData_Packet() + MarshalTo([]byte) (int, error) + Size() int +} + +type RecordsPacketData_NoData struct { + NoData *NoData `protobuf:"bytes,1,opt,name=no_data,json=noData,proto3,oneof" json:"no_data,omitempty"` +} + +func (*RecordsPacketData_NoData) isRecordsPacketData_Packet() {} + +func (m *RecordsPacketData) GetPacket() isRecordsPacketData_Packet { + if m != nil { + return m.Packet + } + return nil +} + +func (m *RecordsPacketData) GetNoData() *NoData { + if x, ok := m.GetPacket().(*RecordsPacketData_NoData); ok { + return x.NoData + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*RecordsPacketData) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*RecordsPacketData_NoData)(nil), + } +} + +type NoData struct { +} + +func (m *NoData) Reset() { *m = NoData{} } +func (m *NoData) String() string { return proto.CompactTextString(m) } +func (*NoData) ProtoMessage() {} +func (*NoData) Descriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{3} +} +func (m *NoData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NoData.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 *NoData) XXX_Merge(src proto.Message) { + xxx_messageInfo_NoData.Merge(m, src) +} +func (m *NoData) XXX_Size() int { + return m.Size() +} +func (m *NoData) XXX_DiscardUnknown() { + xxx_messageInfo_NoData.DiscardUnknown(m) +} + +var xxx_messageInfo_NoData proto.InternalMessageInfo + +type DepositRecord struct { + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` + HostZoneId string `protobuf:"bytes,4,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` + Status DepositRecord_Status `protobuf:"varint,6,opt,name=status,proto3,enum=stride.records.DepositRecord_Status" json:"status,omitempty"` + DepositEpochNumber uint64 `protobuf:"varint,7,opt,name=deposit_epoch_number,json=depositEpochNumber,proto3" json:"deposit_epoch_number,omitempty"` + Source DepositRecord_Source `protobuf:"varint,8,opt,name=source,proto3,enum=stride.records.DepositRecord_Source" json:"source,omitempty"` +} + +func (m *DepositRecord) Reset() { *m = DepositRecord{} } +func (m *DepositRecord) String() string { return proto.CompactTextString(m) } +func (*DepositRecord) ProtoMessage() {} +func (*DepositRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{4} +} +func (m *DepositRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DepositRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DepositRecord.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 *DepositRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_DepositRecord.Merge(m, src) +} +func (m *DepositRecord) XXX_Size() int { + return m.Size() +} +func (m *DepositRecord) XXX_DiscardUnknown() { + xxx_messageInfo_DepositRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_DepositRecord proto.InternalMessageInfo + +func (m *DepositRecord) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *DepositRecord) GetAmount() int64 { + if m != nil { + return m.Amount + } + return 0 +} + +func (m *DepositRecord) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *DepositRecord) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +func (m *DepositRecord) GetStatus() DepositRecord_Status { + if m != nil { + return m.Status + } + return DepositRecord_TRANSFER_QUEUE +} + +func (m *DepositRecord) GetDepositEpochNumber() uint64 { + if m != nil { + return m.DepositEpochNumber + } + return 0 +} + +func (m *DepositRecord) GetSource() DepositRecord_Source { + if m != nil { + return m.Source + } + return DepositRecord_STRIDE +} + +type HostZoneUnbonding struct { + StTokenAmount uint64 `protobuf:"varint,1,opt,name=st_token_amount,json=stTokenAmount,proto3" json:"st_token_amount,omitempty"` + NativeTokenAmount uint64 `protobuf:"varint,2,opt,name=native_token_amount,json=nativeTokenAmount,proto3" json:"native_token_amount,omitempty"` + Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` + HostZoneId string `protobuf:"bytes,4,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` + UnbondingTime uint64 `protobuf:"varint,5,opt,name=unbonding_time,json=unbondingTime,proto3" json:"unbonding_time,omitempty"` + Status HostZoneUnbonding_Status `protobuf:"varint,6,opt,name=status,proto3,enum=stride.records.HostZoneUnbonding_Status" json:"status,omitempty"` + UserRedemptionRecords []string `protobuf:"bytes,7,rep,name=user_redemption_records,json=userRedemptionRecords,proto3" json:"user_redemption_records,omitempty"` +} + +func (m *HostZoneUnbonding) Reset() { *m = HostZoneUnbonding{} } +func (m *HostZoneUnbonding) String() string { return proto.CompactTextString(m) } +func (*HostZoneUnbonding) ProtoMessage() {} +func (*HostZoneUnbonding) Descriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{5} +} +func (m *HostZoneUnbonding) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HostZoneUnbonding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_HostZoneUnbonding.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 *HostZoneUnbonding) XXX_Merge(src proto.Message) { + xxx_messageInfo_HostZoneUnbonding.Merge(m, src) +} +func (m *HostZoneUnbonding) XXX_Size() int { + return m.Size() +} +func (m *HostZoneUnbonding) XXX_DiscardUnknown() { + xxx_messageInfo_HostZoneUnbonding.DiscardUnknown(m) +} + +var xxx_messageInfo_HostZoneUnbonding proto.InternalMessageInfo + +func (m *HostZoneUnbonding) GetStTokenAmount() uint64 { + if m != nil { + return m.StTokenAmount + } + return 0 +} + +func (m *HostZoneUnbonding) GetNativeTokenAmount() uint64 { + if m != nil { + return m.NativeTokenAmount + } + return 0 +} + +func (m *HostZoneUnbonding) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *HostZoneUnbonding) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +func (m *HostZoneUnbonding) GetUnbondingTime() uint64 { + if m != nil { + return m.UnbondingTime + } + return 0 +} + +func (m *HostZoneUnbonding) GetStatus() HostZoneUnbonding_Status { + if m != nil { + return m.Status + } + return HostZoneUnbonding_UNBONDING_QUEUE +} + +func (m *HostZoneUnbonding) GetUserRedemptionRecords() []string { + if m != nil { + return m.UserRedemptionRecords + } + return nil +} + +type EpochUnbondingRecord struct { + EpochNumber uint64 `protobuf:"varint,1,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` + HostZoneUnbondings []*HostZoneUnbonding `protobuf:"bytes,3,rep,name=host_zone_unbondings,json=hostZoneUnbondings,proto3" json:"host_zone_unbondings,omitempty"` +} + +func (m *EpochUnbondingRecord) Reset() { *m = EpochUnbondingRecord{} } +func (m *EpochUnbondingRecord) String() string { return proto.CompactTextString(m) } +func (*EpochUnbondingRecord) ProtoMessage() {} +func (*EpochUnbondingRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{6} +} +func (m *EpochUnbondingRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EpochUnbondingRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EpochUnbondingRecord.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 *EpochUnbondingRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_EpochUnbondingRecord.Merge(m, src) +} +func (m *EpochUnbondingRecord) XXX_Size() int { + return m.Size() +} +func (m *EpochUnbondingRecord) XXX_DiscardUnknown() { + xxx_messageInfo_EpochUnbondingRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_EpochUnbondingRecord proto.InternalMessageInfo + +func (m *EpochUnbondingRecord) GetEpochNumber() uint64 { + if m != nil { + return m.EpochNumber + } + return 0 +} + +func (m *EpochUnbondingRecord) GetHostZoneUnbondings() []*HostZoneUnbonding { + if m != nil { + return m.HostZoneUnbondings + } + return nil +} + +// GenesisState defines the recordπs module's genesis state. +// next id: 9 +type GenesisState struct { + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` + UserRedemptionRecordList []UserRedemptionRecord `protobuf:"bytes,3,rep,name=user_redemption_record_list,json=userRedemptionRecordList,proto3" json:"user_redemption_record_list"` + UserRedemptionRecordCount uint64 `protobuf:"varint,4,opt,name=user_redemption_record_count,json=userRedemptionRecordCount,proto3" json:"user_redemption_record_count,omitempty"` + EpochUnbondingRecordList []EpochUnbondingRecord `protobuf:"bytes,5,rep,name=epoch_unbonding_record_list,json=epochUnbondingRecordList,proto3" json:"epoch_unbonding_record_list"` + DepositRecordList []DepositRecord `protobuf:"bytes,7,rep,name=deposit_record_list,json=depositRecordList,proto3" json:"deposit_record_list"` + DepositRecordCount uint64 `protobuf:"varint,8,opt,name=deposit_record_count,json=depositRecordCount,proto3" json:"deposit_record_count,omitempty"` +} + +func (m *GenesisState) Reset() { *m = GenesisState{} } +func (m *GenesisState) String() string { return proto.CompactTextString(m) } +func (*GenesisState) ProtoMessage() {} +func (*GenesisState) Descriptor() ([]byte, []int) { + return fileDescriptor_98cfd0253c8b6797, []int{7} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func (m *GenesisState) GetPortId() string { + if m != nil { + return m.PortId + } + return "" +} + +func (m *GenesisState) GetUserRedemptionRecordList() []UserRedemptionRecord { + if m != nil { + return m.UserRedemptionRecordList + } + return nil +} + +func (m *GenesisState) GetUserRedemptionRecordCount() uint64 { + if m != nil { + return m.UserRedemptionRecordCount + } + return 0 +} + +func (m *GenesisState) GetEpochUnbondingRecordList() []EpochUnbondingRecord { + if m != nil { + return m.EpochUnbondingRecordList + } + return nil +} + +func (m *GenesisState) GetDepositRecordList() []DepositRecord { + if m != nil { + return m.DepositRecordList + } + return nil +} + +func (m *GenesisState) GetDepositRecordCount() uint64 { + if m != nil { + return m.DepositRecordCount + } + return 0 +} + +func init() { + proto.RegisterEnum("stride.records.V2DepositRecord_Status", DepositRecord_Status_name, DepositRecord_Status_value) + proto.RegisterEnum("stride.records.V2DepositRecord_Source", DepositRecord_Source_name, DepositRecord_Source_value) + proto.RegisterEnum("stride.records.V2HostZoneUnbonding_Status", HostZoneUnbonding_Status_name, HostZoneUnbonding_Status_value) + proto.RegisterType((*UserRedemptionRecord)(nil), "stride.records.V2UserRedemptionRecord") + proto.RegisterType((*Params)(nil), "stride.records.V2Params") + proto.RegisterType((*RecordsPacketData)(nil), "stride.records.V2RecordsPacketData") + proto.RegisterType((*NoData)(nil), "stride.records.V2NoData") + proto.RegisterType((*DepositRecord)(nil), "stride.records.V2DepositRecord") + proto.RegisterType((*HostZoneUnbonding)(nil), "stride.records.V2HostZoneUnbonding") + proto.RegisterType((*EpochUnbondingRecord)(nil), "stride.records.V2EpochUnbondingRecord") + proto.RegisterType((*GenesisState)(nil), "stride.records.V2GenesisState") +} + +func init() { proto.RegisterFile("stride/records/genesis.proto", fileDescriptor_98cfd0253c8b6797) } + +var fileDescriptor_98cfd0253c8b6797 = []byte{ + // 944 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcf, 0x6e, 0xdb, 0xc6, + 0x13, 0x16, 0x45, 0x8a, 0x92, 0xc7, 0xb6, 0x22, 0xaf, 0x15, 0x9b, 0x76, 0x12, 0x45, 0x21, 0x7e, + 0xbf, 0x42, 0x97, 0x4a, 0xa9, 0x1b, 0xf4, 0x50, 0x14, 0x68, 0x25, 0x4b, 0xb5, 0x69, 0x28, 0xb2, + 0xba, 0x92, 0x90, 0x22, 0x17, 0x82, 0x12, 0x17, 0xd2, 0x22, 0x11, 0x57, 0xe0, 0xae, 0x8c, 0xb6, + 0x97, 0xbe, 0x42, 0x0f, 0x3d, 0xf4, 0xd8, 0xb7, 0xe8, 0x13, 0x14, 0xc8, 0x31, 0xc7, 0x9e, 0x8a, + 0xc2, 0x7e, 0x88, 0x1e, 0x7a, 0x29, 0xb8, 0x5c, 0xcb, 0xd4, 0x9f, 0x24, 0x40, 0x6f, 0xdc, 0x6f, + 0x66, 0x76, 0x66, 0xbe, 0x19, 0x7e, 0x0b, 0x0f, 0xb9, 0x08, 0xa9, 0x4f, 0x6a, 0x21, 0x19, 0xb1, + 0xd0, 0xe7, 0xb5, 0x31, 0x09, 0x08, 0xa7, 0xbc, 0x3a, 0x0b, 0x99, 0x60, 0x28, 0x1f, 0x5b, 0xab, + 0xca, 0x7a, 0x5c, 0x1c, 0xb3, 0x31, 0x93, 0xa6, 0x5a, 0xf4, 0x15, 0x7b, 0xd9, 0x7f, 0x6b, 0x50, + 0x1c, 0x70, 0x12, 0x62, 0xe2, 0x93, 0xe9, 0x4c, 0x50, 0x16, 0x60, 0xe9, 0x8f, 0xf2, 0x90, 0xa6, + 0xbe, 0xa5, 0x95, 0xb5, 0xca, 0x16, 0x4e, 0x53, 0x1f, 0x1d, 0x80, 0xc9, 0x49, 0xe0, 0x93, 0xd0, + 0x4a, 0x4b, 0x4c, 0x9d, 0xd0, 0x31, 0xe4, 0x42, 0x32, 0x22, 0xf4, 0x8a, 0x84, 0x96, 0x2e, 0x2d, + 0x8b, 0x73, 0x14, 0xe3, 0x4d, 0xd9, 0x3c, 0x10, 0x96, 0x51, 0xd6, 0x2a, 0x06, 0x56, 0x27, 0x54, + 0x84, 0x8c, 0x4f, 0x02, 0x36, 0xb5, 0x32, 0x32, 0x20, 0x3e, 0xa0, 0x32, 0xec, 0x4c, 0x18, 0x17, + 0xee, 0x0f, 0x2c, 0x20, 0x2e, 0xf5, 0x2d, 0x53, 0x1a, 0x21, 0xc2, 0x5e, 0xb2, 0x80, 0x38, 0x3e, + 0x7a, 0x02, 0x3b, 0x64, 0xc6, 0x46, 0x13, 0x37, 0x98, 0x4f, 0x87, 0x24, 0xb4, 0xb2, 0xf2, 0xd6, + 0x6d, 0x89, 0x75, 0x24, 0x84, 0x2a, 0x50, 0x18, 0xbd, 0xf6, 0xe8, 0xd4, 0xa5, 0xdc, 0x9d, 0x91, + 0xc0, 0xa7, 0xc1, 0xd8, 0xca, 0x95, 0xb5, 0x4a, 0x0e, 0xe7, 0x25, 0xee, 0xf0, 0x6e, 0x8c, 0xda, + 0x79, 0x30, 0xbb, 0x5e, 0xe8, 0x4d, 0xf9, 0xe7, 0xc6, 0x2f, 0xbf, 0x3e, 0x4e, 0xd9, 0x5d, 0xd8, + 0x8b, 0x5b, 0xe7, 0x5d, 0x6f, 0xf4, 0x8a, 0x88, 0xa6, 0x27, 0x3c, 0xf4, 0x09, 0x64, 0x03, 0xe6, + 0xfa, 0x9e, 0xf0, 0x24, 0x15, 0xdb, 0x27, 0x07, 0xd5, 0x65, 0x5a, 0xab, 0x1d, 0x16, 0x39, 0x9e, + 0xa7, 0xb0, 0x19, 0xc8, 0xaf, 0x46, 0x0e, 0xcc, 0x99, 0xbc, 0xc0, 0xce, 0x81, 0x19, 0x5b, 0xed, + 0xdf, 0x74, 0xd8, 0x6d, 0x92, 0x19, 0xe3, 0x54, 0xac, 0xd1, 0x6b, 0xdc, 0xd2, 0xab, 0xa8, 0x8a, + 0xe8, 0xd5, 0xd7, 0xa9, 0xd2, 0xdf, 0x47, 0x95, 0xb1, 0x46, 0xd5, 0x17, 0x60, 0x72, 0xe1, 0x89, + 0x39, 0x97, 0x34, 0xe6, 0x4f, 0xfe, 0xb7, 0x5a, 0xf7, 0x52, 0x39, 0xd5, 0x9e, 0xf4, 0xc5, 0x2a, + 0x06, 0x3d, 0x85, 0xa2, 0x1f, 0xdb, 0xdd, 0x0d, 0x84, 0x23, 0x65, 0x6b, 0x25, 0x78, 0x8f, 0xf2, + 0xb1, 0x79, 0x38, 0x22, 0x92, 0xed, 0x0f, 0xe7, 0x93, 0xbe, 0x58, 0xc5, 0xd8, 0x13, 0x30, 0xe3, + 0x0a, 0x10, 0x82, 0x7c, 0x1f, 0xd7, 0x3b, 0xbd, 0xaf, 0x5b, 0xd8, 0xfd, 0x66, 0xd0, 0x1a, 0xb4, + 0x0a, 0x29, 0x64, 0x41, 0x71, 0x81, 0x39, 0x1d, 0xb7, 0x8b, 0x2f, 0xcf, 0x70, 0xab, 0xd7, 0x2b, + 0xa4, 0x51, 0x11, 0x0a, 0xcd, 0x56, 0xbb, 0x75, 0x56, 0xef, 0x3b, 0x97, 0x1d, 0xe5, 0xaf, 0xa1, + 0x63, 0x38, 0x48, 0xa0, 0xc9, 0x08, 0xdd, 0xae, 0x80, 0x19, 0xe7, 0x46, 0x00, 0x66, 0xaf, 0x8f, + 0x9d, 0x66, 0x94, 0x01, 0x41, 0xfe, 0x85, 0xd3, 0x3f, 0x6f, 0xe2, 0xfa, 0x8b, 0x7a, 0xdb, 0x75, + 0x4e, 0xeb, 0x05, 0xed, 0xc2, 0xc8, 0x65, 0x0a, 0xa6, 0xfd, 0xbb, 0x0e, 0x7b, 0xe7, 0x8a, 0xd6, + 0x41, 0x30, 0x64, 0x72, 0x77, 0xd0, 0x47, 0x70, 0x8f, 0x0b, 0x57, 0xb0, 0x57, 0x24, 0x70, 0xd5, + 0xd8, 0xe2, 0x51, 0xee, 0x72, 0xd1, 0x8f, 0xd0, 0x7a, 0x3c, 0xbd, 0x2a, 0xec, 0x07, 0x9e, 0xa0, + 0x57, 0x64, 0xd9, 0x37, 0x2d, 0x7d, 0xf7, 0x62, 0x53, 0xd2, 0xff, 0xbf, 0x4e, 0xfb, 0xff, 0x90, + 0x9f, 0xdf, 0x16, 0xe7, 0x0a, 0x3a, 0x25, 0xf2, 0xcf, 0x32, 0xf0, 0xee, 0x02, 0xed, 0xd3, 0x29, + 0x41, 0x5f, 0xad, 0x2c, 0x45, 0x65, 0x75, 0x48, 0x6b, 0x9d, 0xae, 0x2e, 0xc6, 0x67, 0x70, 0x38, + 0xe7, 0x24, 0x74, 0xc3, 0x85, 0x5c, 0xb8, 0x2a, 0xd6, 0xca, 0x96, 0xf5, 0xca, 0x16, 0xbe, 0x3f, + 0xdf, 0x20, 0x26, 0xdc, 0xfe, 0x71, 0x31, 0xe0, 0x7d, 0xb8, 0x37, 0xe8, 0x34, 0x2e, 0x3b, 0x4d, + 0xa7, 0x73, 0xb6, 0x98, 0xf0, 0x11, 0xdc, 0xbf, 0x03, 0x97, 0x06, 0x86, 0x0e, 0x61, 0xbf, 0xf5, + 0xad, 0xd3, 0x77, 0x57, 0xb6, 0x42, 0x43, 0x8f, 0xe0, 0x68, 0xd9, 0x90, 0x8c, 0x33, 0xd0, 0x2e, + 0x6c, 0x9d, 0xb6, 0xeb, 0xce, 0xf3, 0x7a, 0xa3, 0xdd, 0x2a, 0xa4, 0xed, 0x9f, 0x35, 0x28, 0xca, + 0x7d, 0x5d, 0xb4, 0xa6, 0x7e, 0xc4, 0x55, 0x4d, 0xd1, 0xd6, 0x35, 0xa5, 0x07, 0xc5, 0x3b, 0xfe, + 0x17, 0x8c, 0x72, 0x4b, 0x2f, 0xeb, 0x95, 0xed, 0x93, 0x27, 0x1f, 0x24, 0x11, 0xa3, 0xc9, 0x2a, + 0xc4, 0x2f, 0x8c, 0x5c, 0xba, 0xa0, 0xdb, 0xff, 0xe8, 0xb0, 0x73, 0x16, 0xcb, 0x76, 0xc4, 0x0f, + 0x41, 0xcf, 0x22, 0xf5, 0x88, 0x54, 0xe9, 0x5d, 0x7a, 0x13, 0x6b, 0x56, 0xc3, 0x78, 0xf3, 0xe7, + 0xe3, 0x14, 0x56, 0xbe, 0xe8, 0x10, 0xb2, 0x33, 0x16, 0x8a, 0x68, 0x39, 0x94, 0x3a, 0x47, 0x47, + 0xc7, 0x47, 0x14, 0x1e, 0x6c, 0x9e, 0x97, 0xfb, 0x9a, 0x72, 0xa1, 0x3a, 0x58, 0xfb, 0x57, 0x37, + 0x3d, 0x08, 0x2a, 0xa3, 0xb5, 0x69, 0xbe, 0x6d, 0xca, 0x05, 0xfa, 0x12, 0x1e, 0xbe, 0x23, 0xd5, + 0x28, 0xf1, 0x04, 0x1c, 0x6d, 0x8a, 0x3f, 0x95, 0xcb, 0x4f, 0xe1, 0x41, 0x3c, 0x89, 0xbb, 0x55, + 0x4e, 0xd6, 0x9a, 0xd9, 0x5c, 0xeb, 0xa6, 0xa1, 0xde, 0xd6, 0x4a, 0x36, 0xd8, 0x64, 0xad, 0x3d, + 0xd8, 0xbf, 0xd5, 0xb7, 0x64, 0x8a, 0xac, 0x4c, 0xf1, 0xe8, 0xbd, 0xd2, 0xa5, 0xee, 0xde, 0xf3, + 0x93, 0xa0, 0xbc, 0x34, 0x21, 0x9a, 0x4b, 0x8d, 0xe7, 0x96, 0x44, 0x33, 0xd1, 0xf1, 0x49, 0x06, + 0xf4, 0xe7, 0x7c, 0xdc, 0xb8, 0x78, 0x73, 0x5d, 0xd2, 0xde, 0x5e, 0x97, 0xb4, 0xbf, 0xae, 0x4b, + 0xda, 0x4f, 0x37, 0xa5, 0xd4, 0xdb, 0x9b, 0x52, 0xea, 0x8f, 0x9b, 0x52, 0xea, 0xe5, 0xd3, 0x31, + 0x15, 0x93, 0xf9, 0xb0, 0x3a, 0x62, 0xd3, 0x5a, 0x4f, 0x16, 0xf5, 0x71, 0xdb, 0x1b, 0xf2, 0x9a, + 0x7a, 0xf8, 0xaf, 0x9e, 0xd5, 0xbe, 0x5b, 0xbc, 0xfe, 0xe2, 0xfb, 0x19, 0xe1, 0x43, 0x53, 0x3e, + 0xeb, 0x9f, 0xfe, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x71, 0xad, 0x82, 0x28, 0x1c, 0x08, 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 { +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "stride.records.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{}, + Metadata: "stride/records/genesis.proto", +} + +func (m *UserRedemptionRecord) 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 *UserRedemptionRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserRedemptionRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ClaimIsPending { + i-- + if m.ClaimIsPending { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.EpochNumber != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.EpochNumber)) + i-- + dAtA[i] = 0x38 + } + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0x32 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x2a + } + if m.Amount != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.Amount)) + i-- + dAtA[i] = 0x20 + } + if len(m.Receiver) > 0 { + i -= len(m.Receiver) + copy(dAtA[i:], m.Receiver) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Receiver))) + i-- + dAtA[i] = 0x1a + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RecordsPacketData) 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 *RecordsPacketData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RecordsPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Packet != nil { + { + size := m.Packet.Size() + i -= size + if _, err := m.Packet.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *RecordsPacketData_NoData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RecordsPacketData_NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NoData != nil { + { + size, err := m.NoData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *NoData) 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 *NoData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *DepositRecord) 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 *DepositRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DepositRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Source != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.Source)) + i-- + dAtA[i] = 0x40 + } + if m.DepositEpochNumber != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.DepositEpochNumber)) + i-- + dAtA[i] = 0x38 + } + if m.Status != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x30 + } + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0x22 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x1a + } + if m.Amount != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.Amount)) + i-- + dAtA[i] = 0x10 + } + if m.Id != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *HostZoneUnbonding) 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 *HostZoneUnbonding) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HostZoneUnbonding) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.UserRedemptionRecords) > 0 { + for iNdEx := len(m.UserRedemptionRecords) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.UserRedemptionRecords[iNdEx]) + copy(dAtA[i:], m.UserRedemptionRecords[iNdEx]) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.UserRedemptionRecords[iNdEx]))) + i-- + dAtA[i] = 0x3a + } + } + if m.Status != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x30 + } + if m.UnbondingTime != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.UnbondingTime)) + i-- + dAtA[i] = 0x28 + } + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0x22 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x1a + } + if m.NativeTokenAmount != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.NativeTokenAmount)) + i-- + dAtA[i] = 0x10 + } + if m.StTokenAmount != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.StTokenAmount)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *EpochUnbondingRecord) 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 *EpochUnbondingRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EpochUnbondingRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.HostZoneUnbondings) > 0 { + for iNdEx := len(m.HostZoneUnbondings) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.HostZoneUnbondings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.EpochNumber != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.EpochNumber)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DepositRecordCount != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.DepositRecordCount)) + i-- + dAtA[i] = 0x40 + } + if len(m.DepositRecordList) > 0 { + for iNdEx := len(m.DepositRecordList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DepositRecordList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.EpochUnbondingRecordList) > 0 { + for iNdEx := len(m.EpochUnbondingRecordList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EpochUnbondingRecordList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.UserRedemptionRecordCount != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.UserRedemptionRecordCount)) + i-- + dAtA[i] = 0x20 + } + if len(m.UserRedemptionRecordList) > 0 { + for iNdEx := len(m.UserRedemptionRecordList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UserRedemptionRecordList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.PortId) > 0 { + i -= len(m.PortId) + copy(dAtA[i:], m.PortId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.PortId))) + i-- + dAtA[i] = 0x12 + } + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *UserRedemptionRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.Receiver) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.Amount != 0 { + n += 1 + sovGenesis(uint64(m.Amount)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.EpochNumber != 0 { + n += 1 + sovGenesis(uint64(m.EpochNumber)) + } + if m.ClaimIsPending { + n += 2 + } + return n +} + +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RecordsPacketData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packet != nil { + n += m.Packet.Size() + } + return n +} + +func (m *RecordsPacketData_NoData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoData != nil { + l = m.NoData.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} +func (m *NoData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *DepositRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovGenesis(uint64(m.Id)) + } + if m.Amount != 0 { + n += 1 + sovGenesis(uint64(m.Amount)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.Status != 0 { + n += 1 + sovGenesis(uint64(m.Status)) + } + if m.DepositEpochNumber != 0 { + n += 1 + sovGenesis(uint64(m.DepositEpochNumber)) + } + if m.Source != 0 { + n += 1 + sovGenesis(uint64(m.Source)) + } + return n +} + +func (m *HostZoneUnbonding) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StTokenAmount != 0 { + n += 1 + sovGenesis(uint64(m.StTokenAmount)) + } + if m.NativeTokenAmount != 0 { + n += 1 + sovGenesis(uint64(m.NativeTokenAmount)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.UnbondingTime != 0 { + n += 1 + sovGenesis(uint64(m.UnbondingTime)) + } + if m.Status != 0 { + n += 1 + sovGenesis(uint64(m.Status)) + } + if len(m.UserRedemptionRecords) > 0 { + for _, s := range m.UserRedemptionRecords { + l = len(s) + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *EpochUnbondingRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EpochNumber != 0 { + n += 1 + sovGenesis(uint64(m.EpochNumber)) + } + if len(m.HostZoneUnbondings) > 0 { + for _, e := range m.HostZoneUnbondings { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = len(m.PortId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.UserRedemptionRecordList) > 0 { + for _, e := range m.UserRedemptionRecordList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if m.UserRedemptionRecordCount != 0 { + n += 1 + sovGenesis(uint64(m.UserRedemptionRecordCount)) + } + if len(m.EpochUnbondingRecordList) > 0 { + for _, e := range m.EpochUnbondingRecordList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.DepositRecordList) > 0 { + for _, e := range m.DepositRecordList { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if m.DepositRecordCount != 0 { + n += 1 + sovGenesis(uint64(m.DepositRecordCount)) + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *UserRedemptionRecord) 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 ErrIntOverflowGenesis + } + 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: UserRedemptionRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserRedemptionRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Receiver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + m.Amount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Amount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) + } + m.EpochNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimIsPending", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ClaimIsPending = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Params) 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 ErrIntOverflowGenesis + } + 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: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RecordsPacketData) 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 ErrIntOverflowGenesis + } + 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: RecordsPacketData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RecordsPacketData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NoData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NoData{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &RecordsPacketData_NoData{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NoData) 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 ErrIntOverflowGenesis + } + 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: NoData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NoData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DepositRecord) 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 ErrIntOverflowGenesis + } + 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: DepositRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DepositRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + m.Amount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Amount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= DepositRecord_Status(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositEpochNumber", wireType) + } + m.DepositEpochNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DepositEpochNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + m.Source = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Source |= DepositRecord_Source(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HostZoneUnbonding) 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 ErrIntOverflowGenesis + } + 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: HostZoneUnbonding: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HostZoneUnbonding: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StTokenAmount", wireType) + } + m.StTokenAmount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StTokenAmount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NativeTokenAmount", wireType) + } + m.NativeTokenAmount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NativeTokenAmount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnbondingTime", wireType) + } + m.UnbondingTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UnbondingTime |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= HostZoneUnbonding_Status(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecords", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserRedemptionRecords = append(m.UserRedemptionRecords, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EpochUnbondingRecord) 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 ErrIntOverflowGenesis + } + 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: EpochUnbondingRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EpochUnbondingRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) + } + m.EpochNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneUnbondings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneUnbondings = append(m.HostZoneUnbondings, &HostZoneUnbonding{}) + if err := m.HostZoneUnbondings[len(m.HostZoneUnbondings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GenesisState) 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 ErrIntOverflowGenesis + } + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + 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 ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PortId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecordList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserRedemptionRecordList = append(m.UserRedemptionRecordList, UserRedemptionRecord{}) + if err := m.UserRedemptionRecordList[len(m.UserRedemptionRecordList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecordCount", wireType) + } + m.UserRedemptionRecordCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UserRedemptionRecordCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochUnbondingRecordList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EpochUnbondingRecordList = append(m.EpochUnbondingRecordList, EpochUnbondingRecord{}) + if err := m.EpochUnbondingRecordList[len(m.EpochUnbondingRecordList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositRecordList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DepositRecordList = append(m.DepositRecordList, DepositRecord{}) + if err := m.DepositRecordList[len(m.DepositRecordList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositRecordCount", wireType) + } + m.DepositRecordCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DepositRecordCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrIntOverflowGenesis + } + 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, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/stakeibc/migrations/v2/types/callbacks.pb.go b/x/stakeibc/migrations/v2/types/callbacks.pb.go new file mode 100644 index 0000000000..a17458ac27 --- /dev/null +++ b/x/stakeibc/migrations/v2/types/callbacks.pb.go @@ -0,0 +1,2238 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/stakeibc/callbacks.proto + +package types + +import ( + fmt "fmt" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +// ---------------------- Delegation Callbacks ---------------------- // +type SplitDelegation struct { + Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` + Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (m *SplitDelegation) Reset() { *m = SplitDelegation{} } +func (m *SplitDelegation) String() string { return proto.CompactTextString(m) } +func (*SplitDelegation) ProtoMessage() {} +func (*SplitDelegation) Descriptor() ([]byte, []int) { + return fileDescriptor_f41c99b09b96a5ac, []int{0} +} +func (m *SplitDelegation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SplitDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SplitDelegation.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 *SplitDelegation) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitDelegation.Merge(m, src) +} +func (m *SplitDelegation) XXX_Size() int { + return m.Size() +} +func (m *SplitDelegation) XXX_DiscardUnknown() { + xxx_messageInfo_SplitDelegation.DiscardUnknown(m) +} + +var xxx_messageInfo_SplitDelegation proto.InternalMessageInfo + +func (m *SplitDelegation) GetValidator() string { + if m != nil { + return m.Validator + } + return "" +} + +func (m *SplitDelegation) GetAmount() uint64 { + if m != nil { + return m.Amount + } + return 0 +} + +type DelegateCallback struct { + HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` + DepositRecordId uint64 `protobuf:"varint,2,opt,name=deposit_record_id,json=depositRecordId,proto3" json:"deposit_record_id,omitempty"` + SplitDelegations []*SplitDelegation `protobuf:"bytes,3,rep,name=split_delegations,json=splitDelegations,proto3" json:"split_delegations,omitempty"` +} + +func (m *DelegateCallback) Reset() { *m = DelegateCallback{} } +func (m *DelegateCallback) String() string { return proto.CompactTextString(m) } +func (*DelegateCallback) ProtoMessage() {} +func (*DelegateCallback) Descriptor() ([]byte, []int) { + return fileDescriptor_f41c99b09b96a5ac, []int{1} +} +func (m *DelegateCallback) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DelegateCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DelegateCallback.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 *DelegateCallback) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelegateCallback.Merge(m, src) +} +func (m *DelegateCallback) XXX_Size() int { + return m.Size() +} +func (m *DelegateCallback) XXX_DiscardUnknown() { + xxx_messageInfo_DelegateCallback.DiscardUnknown(m) +} + +var xxx_messageInfo_DelegateCallback proto.InternalMessageInfo + +func (m *DelegateCallback) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +func (m *DelegateCallback) GetDepositRecordId() uint64 { + if m != nil { + return m.DepositRecordId + } + return 0 +} + +func (m *DelegateCallback) GetSplitDelegations() []*SplitDelegation { + if m != nil { + return m.SplitDelegations + } + return nil +} + +type ClaimCallback struct { + UserRedemptionRecordId string `protobuf:"bytes,1,opt,name=user_redemption_record_id,json=userRedemptionRecordId,proto3" json:"user_redemption_record_id,omitempty"` + ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + EpochNumber uint64 `protobuf:"varint,3,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` +} + +func (m *ClaimCallback) Reset() { *m = ClaimCallback{} } +func (m *ClaimCallback) String() string { return proto.CompactTextString(m) } +func (*ClaimCallback) ProtoMessage() {} +func (*ClaimCallback) Descriptor() ([]byte, []int) { + return fileDescriptor_f41c99b09b96a5ac, []int{2} +} +func (m *ClaimCallback) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClaimCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ClaimCallback.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 *ClaimCallback) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClaimCallback.Merge(m, src) +} +func (m *ClaimCallback) XXX_Size() int { + return m.Size() +} +func (m *ClaimCallback) XXX_DiscardUnknown() { + xxx_messageInfo_ClaimCallback.DiscardUnknown(m) +} + +var xxx_messageInfo_ClaimCallback proto.InternalMessageInfo + +func (m *ClaimCallback) GetUserRedemptionRecordId() string { + if m != nil { + return m.UserRedemptionRecordId + } + return "" +} + +func (m *ClaimCallback) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *ClaimCallback) GetEpochNumber() uint64 { + if m != nil { + return m.EpochNumber + } + return 0 +} + +// ---------------------- Reinvest Callback ---------------------- // +type ReinvestCallback struct { + ReinvestAmount types.Coin `protobuf:"bytes,1,opt,name=reinvest_amount,json=reinvestAmount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"reinvest_amount"` + HostZoneId string `protobuf:"bytes,3,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` +} + +func (m *ReinvestCallback) Reset() { *m = ReinvestCallback{} } +func (m *ReinvestCallback) String() string { return proto.CompactTextString(m) } +func (*ReinvestCallback) ProtoMessage() {} +func (*ReinvestCallback) Descriptor() ([]byte, []int) { + return fileDescriptor_f41c99b09b96a5ac, []int{3} +} +func (m *ReinvestCallback) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReinvestCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReinvestCallback.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 *ReinvestCallback) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReinvestCallback.Merge(m, src) +} +func (m *ReinvestCallback) XXX_Size() int { + return m.Size() +} +func (m *ReinvestCallback) XXX_DiscardUnknown() { + xxx_messageInfo_ReinvestCallback.DiscardUnknown(m) +} + +var xxx_messageInfo_ReinvestCallback proto.InternalMessageInfo + +func (m *ReinvestCallback) GetReinvestAmount() types.Coin { + if m != nil { + return m.ReinvestAmount + } + return types.Coin{} +} + +func (m *ReinvestCallback) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +// ---------------------- Undelegation Callbacks ---------------------- // +type UndelegateCallback struct { + HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` + SplitDelegations []*SplitDelegation `protobuf:"bytes,2,rep,name=split_delegations,json=splitDelegations,proto3" json:"split_delegations,omitempty"` + EpochUnbondingRecordIds []uint64 `protobuf:"varint,3,rep,packed,name=epoch_unbonding_record_ids,json=epochUnbondingRecordIds,proto3" json:"epoch_unbonding_record_ids,omitempty"` +} + +func (m *UndelegateCallback) Reset() { *m = UndelegateCallback{} } +func (m *UndelegateCallback) String() string { return proto.CompactTextString(m) } +func (*UndelegateCallback) ProtoMessage() {} +func (*UndelegateCallback) Descriptor() ([]byte, []int) { + return fileDescriptor_f41c99b09b96a5ac, []int{4} +} +func (m *UndelegateCallback) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UndelegateCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UndelegateCallback.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 *UndelegateCallback) XXX_Merge(src proto.Message) { + xxx_messageInfo_UndelegateCallback.Merge(m, src) +} +func (m *UndelegateCallback) XXX_Size() int { + return m.Size() +} +func (m *UndelegateCallback) XXX_DiscardUnknown() { + xxx_messageInfo_UndelegateCallback.DiscardUnknown(m) +} + +var xxx_messageInfo_UndelegateCallback proto.InternalMessageInfo + +func (m *UndelegateCallback) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +func (m *UndelegateCallback) GetSplitDelegations() []*SplitDelegation { + if m != nil { + return m.SplitDelegations + } + return nil +} + +func (m *UndelegateCallback) GetEpochUnbondingRecordIds() []uint64 { + if m != nil { + return m.EpochUnbondingRecordIds + } + return nil +} + +// ---------------------- Redemption Callbacks ---------------------- // +type RedemptionCallback struct { + HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` + EpochUnbondingRecordIds []uint64 `protobuf:"varint,2,rep,packed,name=epoch_unbonding_record_ids,json=epochUnbondingRecordIds,proto3" json:"epoch_unbonding_record_ids,omitempty"` +} + +func (m *RedemptionCallback) Reset() { *m = RedemptionCallback{} } +func (m *RedemptionCallback) String() string { return proto.CompactTextString(m) } +func (*RedemptionCallback) ProtoMessage() {} +func (*RedemptionCallback) Descriptor() ([]byte, []int) { + return fileDescriptor_f41c99b09b96a5ac, []int{5} +} +func (m *RedemptionCallback) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RedemptionCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RedemptionCallback.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 *RedemptionCallback) XXX_Merge(src proto.Message) { + xxx_messageInfo_RedemptionCallback.Merge(m, src) +} +func (m *RedemptionCallback) XXX_Size() int { + return m.Size() +} +func (m *RedemptionCallback) XXX_DiscardUnknown() { + xxx_messageInfo_RedemptionCallback.DiscardUnknown(m) +} + +var xxx_messageInfo_RedemptionCallback proto.InternalMessageInfo + +func (m *RedemptionCallback) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +func (m *RedemptionCallback) GetEpochUnbondingRecordIds() []uint64 { + if m != nil { + return m.EpochUnbondingRecordIds + } + return nil +} + +type Rebalancing struct { + SrcValidator string `protobuf:"bytes,1,opt,name=src_validator,json=srcValidator,proto3" json:"src_validator,omitempty"` + DstValidator string `protobuf:"bytes,2,opt,name=dst_validator,json=dstValidator,proto3" json:"dst_validator,omitempty"` + Amt uint64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"` +} + +func (m *Rebalancing) Reset() { *m = Rebalancing{} } +func (m *Rebalancing) String() string { return proto.CompactTextString(m) } +func (*Rebalancing) ProtoMessage() {} +func (*Rebalancing) Descriptor() ([]byte, []int) { + return fileDescriptor_f41c99b09b96a5ac, []int{6} +} +func (m *Rebalancing) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Rebalancing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Rebalancing.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 *Rebalancing) XXX_Merge(src proto.Message) { + xxx_messageInfo_Rebalancing.Merge(m, src) +} +func (m *Rebalancing) XXX_Size() int { + return m.Size() +} +func (m *Rebalancing) XXX_DiscardUnknown() { + xxx_messageInfo_Rebalancing.DiscardUnknown(m) +} + +var xxx_messageInfo_Rebalancing proto.InternalMessageInfo + +func (m *Rebalancing) GetSrcValidator() string { + if m != nil { + return m.SrcValidator + } + return "" +} + +func (m *Rebalancing) GetDstValidator() string { + if m != nil { + return m.DstValidator + } + return "" +} + +func (m *Rebalancing) GetAmt() uint64 { + if m != nil { + return m.Amt + } + return 0 +} + +type RebalanceCallback struct { + HostZoneId string `protobuf:"bytes,1,opt,name=host_zone_id,json=hostZoneId,proto3" json:"host_zone_id,omitempty"` + Rebalancings []*Rebalancing `protobuf:"bytes,2,rep,name=rebalancings,proto3" json:"rebalancings,omitempty"` +} + +func (m *RebalanceCallback) Reset() { *m = RebalanceCallback{} } +func (m *RebalanceCallback) String() string { return proto.CompactTextString(m) } +func (*RebalanceCallback) ProtoMessage() {} +func (*RebalanceCallback) Descriptor() ([]byte, []int) { + return fileDescriptor_f41c99b09b96a5ac, []int{7} +} +func (m *RebalanceCallback) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RebalanceCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RebalanceCallback.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 *RebalanceCallback) XXX_Merge(src proto.Message) { + xxx_messageInfo_RebalanceCallback.Merge(m, src) +} +func (m *RebalanceCallback) XXX_Size() int { + return m.Size() +} +func (m *RebalanceCallback) XXX_DiscardUnknown() { + xxx_messageInfo_RebalanceCallback.DiscardUnknown(m) +} + +var xxx_messageInfo_RebalanceCallback proto.InternalMessageInfo + +func (m *RebalanceCallback) GetHostZoneId() string { + if m != nil { + return m.HostZoneId + } + return "" +} + +func (m *RebalanceCallback) GetRebalancings() []*Rebalancing { + if m != nil { + return m.Rebalancings + } + return nil +} + +func init() { + proto.RegisterType((*SplitDelegation)(nil), "stride.stakeibc.V2SplitDelegation") + proto.RegisterType((*DelegateCallback)(nil), "stride.stakeibc.V2DelegateCallback") + proto.RegisterType((*ClaimCallback)(nil), "stride.stakeibc.V2laimCallback") + proto.RegisterType((*ReinvestCallback)(nil), "stride.stakeibc.V2ReinvestCallback") + proto.RegisterType((*UndelegateCallback)(nil), "stride.stakeibc.V2UndelegateCallback") + proto.RegisterType((*RedemptionCallback)(nil), "stride.stakeibc.V2RedemptionCallback") + proto.RegisterType((*Rebalancing)(nil), "stride.stakeibc.V2Rebalancing") + proto.RegisterType((*RebalanceCallback)(nil), "stride.stakeibc.V2RebalanceCallback") +} + +func init() { proto.RegisterFile("stride/stakeibc/callbacks.proto", fileDescriptor_f41c99b09b96a5ac) } + +var fileDescriptor_f41c99b09b96a5ac = []byte{ + // 610 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0x8e, 0x9b, 0xaa, 0xd0, 0x49, 0x4a, 0x52, 0x0b, 0x95, 0xb4, 0xaa, 0xdc, 0xe0, 0x1e, 0xa8, + 0x90, 0x6a, 0xab, 0x85, 0x0b, 0xe2, 0x02, 0x2d, 0x12, 0xaa, 0xf8, 0x39, 0xb8, 0x2a, 0x87, 0x5e, + 0xac, 0xf5, 0xee, 0x2a, 0x59, 0xd5, 0xde, 0x8d, 0x76, 0x36, 0xe1, 0xe7, 0x09, 0x38, 0xf2, 0x1a, + 0x70, 0xe1, 0x1d, 0x38, 0xf5, 0xd8, 0x23, 0x27, 0x40, 0xed, 0x8b, 0x20, 0xaf, 0xed, 0x24, 0x4d, + 0x51, 0xa5, 0x72, 0xb2, 0xf7, 0x9b, 0x6f, 0x67, 0xbe, 0xd9, 0x6f, 0x76, 0x61, 0x03, 0x8d, 0x16, + 0x8c, 0x87, 0x68, 0xc8, 0x09, 0x17, 0x09, 0x0d, 0x29, 0x49, 0xd3, 0x84, 0xd0, 0x13, 0x0c, 0x06, + 0x5a, 0x19, 0xe5, 0xb6, 0x0a, 0x42, 0x50, 0x11, 0xd6, 0xee, 0xf6, 0x54, 0x4f, 0xd9, 0x58, 0x98, + 0xff, 0x15, 0xb4, 0x35, 0x8f, 0x2a, 0xcc, 0x14, 0x86, 0x09, 0x41, 0x1e, 0x8e, 0x76, 0x12, 0x6e, + 0xc8, 0x4e, 0x48, 0x95, 0x90, 0x45, 0xdc, 0x7f, 0x09, 0xad, 0xc3, 0x41, 0x2a, 0xcc, 0x0b, 0x9e, + 0xf2, 0x1e, 0x31, 0x42, 0x49, 0x77, 0x1d, 0x16, 0x47, 0x24, 0x15, 0x8c, 0x18, 0xa5, 0x3b, 0x4e, + 0xd7, 0xd9, 0x5a, 0x8c, 0x26, 0x80, 0xbb, 0x02, 0x0b, 0x24, 0x53, 0x43, 0x69, 0x3a, 0x73, 0x5d, + 0x67, 0x6b, 0x3e, 0x2a, 0x57, 0xfe, 0x77, 0x07, 0xda, 0x65, 0x12, 0xbe, 0x5f, 0x6a, 0x75, 0xbb, + 0xd0, 0xec, 0x2b, 0x34, 0xf1, 0x27, 0x25, 0x79, 0x2c, 0x58, 0x99, 0x0d, 0x72, 0xec, 0x58, 0x49, + 0x7e, 0xc0, 0xdc, 0x87, 0xb0, 0xcc, 0xf8, 0x40, 0xa1, 0x30, 0xb1, 0xe6, 0x54, 0x69, 0x96, 0xd3, + 0x8a, 0xcc, 0xad, 0x32, 0x10, 0x59, 0xfc, 0x80, 0xb9, 0x6f, 0x60, 0x19, 0x73, 0xad, 0x31, 0x1b, + 0x8b, 0xc5, 0x4e, 0xbd, 0x5b, 0xdf, 0x6a, 0xec, 0x76, 0x83, 0x99, 0xe3, 0x08, 0x66, 0xba, 0x8a, + 0xda, 0x78, 0x19, 0x40, 0xff, 0xb3, 0x03, 0x4b, 0xfb, 0x29, 0x11, 0xd9, 0x58, 0xee, 0x13, 0x58, + 0x1d, 0x22, 0xd7, 0xb1, 0xe6, 0x8c, 0x67, 0x83, 0x9c, 0x35, 0x25, 0xaa, 0xd0, 0xbe, 0x92, 0x13, + 0xa2, 0x71, 0x7c, 0xac, 0x6d, 0x15, 0x6e, 0xd3, 0x3e, 0x11, 0xb2, 0x92, 0xbf, 0x18, 0xdd, 0xb2, + 0xeb, 0x03, 0xe6, 0xde, 0x87, 0x26, 0x1f, 0x28, 0xda, 0x8f, 0xe5, 0x30, 0x4b, 0xb8, 0xee, 0xd4, + 0x6d, 0x77, 0x0d, 0x8b, 0xbd, 0xb5, 0x90, 0xff, 0xd5, 0x81, 0x76, 0xc4, 0x85, 0x1c, 0x71, 0x34, + 0x63, 0x35, 0x08, 0x2d, 0x5d, 0x62, 0x71, 0x79, 0xe4, 0xb9, 0x86, 0xc6, 0xee, 0x6a, 0x50, 0x98, + 0x1a, 0xe4, 0xa6, 0x06, 0xa5, 0xa9, 0xc1, 0xbe, 0x12, 0x72, 0x2f, 0x3c, 0xfd, 0xb5, 0x51, 0xfb, + 0xf6, 0x7b, 0xe3, 0x41, 0x4f, 0x98, 0xfe, 0x30, 0x09, 0xa8, 0xca, 0xc2, 0x72, 0x02, 0x8a, 0xcf, + 0x36, 0xb2, 0x93, 0xd0, 0x7c, 0x1c, 0x70, 0xb4, 0x1b, 0xa2, 0x3b, 0x55, 0x89, 0xe7, 0xb6, 0xc2, + 0x15, 0xc7, 0xea, 0xb3, 0x8e, 0xf9, 0x3f, 0x1c, 0x70, 0x8f, 0x24, 0xbb, 0xb9, 0xd5, 0xff, 0xb4, + 0x6f, 0xee, 0x7f, 0xed, 0x73, 0x9f, 0xc2, 0x5a, 0x71, 0xac, 0x43, 0x99, 0x28, 0xc9, 0x84, 0xec, + 0x4d, 0xcc, 0x2a, 0xc6, 0x62, 0x3e, 0xba, 0x67, 0x19, 0x47, 0x15, 0xa1, 0x72, 0x0b, 0x7d, 0x04, + 0x77, 0x62, 0xe2, 0x0d, 0x7a, 0xb8, 0xbe, 0xe8, 0xdc, 0xf5, 0x45, 0x05, 0x34, 0x22, 0x9e, 0x90, + 0x94, 0x48, 0x2a, 0x64, 0xcf, 0xdd, 0x84, 0x25, 0xd4, 0x34, 0x9e, 0xbd, 0x6b, 0x4d, 0xd4, 0xf4, + 0xdd, 0xf8, 0xba, 0x6d, 0xc2, 0x12, 0x43, 0x33, 0x45, 0x2a, 0x86, 0xab, 0xc9, 0xd0, 0x4c, 0x48, + 0x6d, 0xa8, 0x93, 0xcc, 0x94, 0x83, 0x95, 0xff, 0xfa, 0xef, 0x61, 0xb9, 0x2a, 0x75, 0x13, 0x8b, + 0x9e, 0x41, 0x53, 0x4f, 0x14, 0x56, 0xee, 0xac, 0x5f, 0x71, 0x67, 0xaa, 0x8d, 0xe8, 0xd2, 0x8e, + 0xbd, 0x57, 0xa7, 0xe7, 0x9e, 0x73, 0x76, 0xee, 0x39, 0x7f, 0xce, 0x3d, 0xe7, 0xcb, 0x85, 0x57, + 0x3b, 0xbb, 0xf0, 0x6a, 0x3f, 0x2f, 0xbc, 0xda, 0xf1, 0xce, 0xd4, 0x48, 0x1e, 0xda, 0x7c, 0xdb, + 0xaf, 0x49, 0x82, 0x61, 0xf9, 0xd0, 0x8d, 0x1e, 0x87, 0x1f, 0x26, 0xaf, 0x9d, 0x9d, 0xd0, 0x64, + 0xc1, 0xbe, 0x51, 0x8f, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0xe7, 0x83, 0x0f, 0xbb, 0x0d, 0x05, + 0x00, 0x00, +} + +func (m *SplitDelegation) 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 *SplitDelegation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SplitDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Amount != 0 { + i = encodeVarintCallbacks(dAtA, i, uint64(m.Amount)) + i-- + dAtA[i] = 0x10 + } + if len(m.Validator) > 0 { + i -= len(m.Validator) + copy(dAtA[i:], m.Validator) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.Validator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DelegateCallback) 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 *DelegateCallback) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegateCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SplitDelegations) > 0 { + for iNdEx := len(m.SplitDelegations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SplitDelegations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCallbacks(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.DepositRecordId != 0 { + i = encodeVarintCallbacks(dAtA, i, uint64(m.DepositRecordId)) + i-- + dAtA[i] = 0x10 + } + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ClaimCallback) 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 *ClaimCallback) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClaimCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EpochNumber != 0 { + i = encodeVarintCallbacks(dAtA, i, uint64(m.EpochNumber)) + i-- + dAtA[i] = 0x18 + } + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0x12 + } + if len(m.UserRedemptionRecordId) > 0 { + i -= len(m.UserRedemptionRecordId) + copy(dAtA[i:], m.UserRedemptionRecordId) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.UserRedemptionRecordId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ReinvestCallback) 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 *ReinvestCallback) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReinvestCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0x1a + } + { + size, err := m.ReinvestAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCallbacks(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *UndelegateCallback) 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 *UndelegateCallback) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UndelegateCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EpochUnbondingRecordIds) > 0 { + dAtA3 := make([]byte, len(m.EpochUnbondingRecordIds)*10) + var j2 int + for _, num := range m.EpochUnbondingRecordIds { + for num >= 1<<7 { + dAtA3[j2] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j2++ + } + dAtA3[j2] = uint8(num) + j2++ + } + i -= j2 + copy(dAtA[i:], dAtA3[:j2]) + i = encodeVarintCallbacks(dAtA, i, uint64(j2)) + i-- + dAtA[i] = 0x1a + } + if len(m.SplitDelegations) > 0 { + for iNdEx := len(m.SplitDelegations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SplitDelegations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCallbacks(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RedemptionCallback) 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 *RedemptionCallback) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RedemptionCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EpochUnbondingRecordIds) > 0 { + dAtA5 := make([]byte, len(m.EpochUnbondingRecordIds)*10) + var j4 int + for _, num := range m.EpochUnbondingRecordIds { + for num >= 1<<7 { + dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j4++ + } + dAtA5[j4] = uint8(num) + j4++ + } + i -= j4 + copy(dAtA[i:], dAtA5[:j4]) + i = encodeVarintCallbacks(dAtA, i, uint64(j4)) + i-- + dAtA[i] = 0x12 + } + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Rebalancing) 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 *Rebalancing) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Rebalancing) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Amt != 0 { + i = encodeVarintCallbacks(dAtA, i, uint64(m.Amt)) + i-- + dAtA[i] = 0x18 + } + if len(m.DstValidator) > 0 { + i -= len(m.DstValidator) + copy(dAtA[i:], m.DstValidator) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.DstValidator))) + i-- + dAtA[i] = 0x12 + } + if len(m.SrcValidator) > 0 { + i -= len(m.SrcValidator) + copy(dAtA[i:], m.SrcValidator) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.SrcValidator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RebalanceCallback) 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 *RebalanceCallback) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RebalanceCallback) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Rebalancings) > 0 { + for iNdEx := len(m.Rebalancings) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Rebalancings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCallbacks(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.HostZoneId) > 0 { + i -= len(m.HostZoneId) + copy(dAtA[i:], m.HostZoneId) + i = encodeVarintCallbacks(dAtA, i, uint64(len(m.HostZoneId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintCallbacks(dAtA []byte, offset int, v uint64) int { + offset -= sovCallbacks(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SplitDelegation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Validator) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + if m.Amount != 0 { + n += 1 + sovCallbacks(uint64(m.Amount)) + } + return n +} + +func (m *DelegateCallback) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + if m.DepositRecordId != 0 { + n += 1 + sovCallbacks(uint64(m.DepositRecordId)) + } + if len(m.SplitDelegations) > 0 { + for _, e := range m.SplitDelegations { + l = e.Size() + n += 1 + l + sovCallbacks(uint64(l)) + } + } + return n +} + +func (m *ClaimCallback) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.UserRedemptionRecordId) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + if m.EpochNumber != 0 { + n += 1 + sovCallbacks(uint64(m.EpochNumber)) + } + return n +} + +func (m *ReinvestCallback) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ReinvestAmount.Size() + n += 1 + l + sovCallbacks(uint64(l)) + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + return n +} + +func (m *UndelegateCallback) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + if len(m.SplitDelegations) > 0 { + for _, e := range m.SplitDelegations { + l = e.Size() + n += 1 + l + sovCallbacks(uint64(l)) + } + } + if len(m.EpochUnbondingRecordIds) > 0 { + l = 0 + for _, e := range m.EpochUnbondingRecordIds { + l += sovCallbacks(uint64(e)) + } + n += 1 + sovCallbacks(uint64(l)) + l + } + return n +} + +func (m *RedemptionCallback) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + if len(m.EpochUnbondingRecordIds) > 0 { + l = 0 + for _, e := range m.EpochUnbondingRecordIds { + l += sovCallbacks(uint64(e)) + } + n += 1 + sovCallbacks(uint64(l)) + l + } + return n +} + +func (m *Rebalancing) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SrcValidator) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + l = len(m.DstValidator) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + if m.Amt != 0 { + n += 1 + sovCallbacks(uint64(m.Amt)) + } + return n +} + +func (m *RebalanceCallback) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostZoneId) + if l > 0 { + n += 1 + l + sovCallbacks(uint64(l)) + } + if len(m.Rebalancings) > 0 { + for _, e := range m.Rebalancings { + l = e.Size() + n += 1 + l + sovCallbacks(uint64(l)) + } + } + return n +} + +func sovCallbacks(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozCallbacks(x uint64) (n int) { + return sovCallbacks(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SplitDelegation) 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 ErrIntOverflowCallbacks + } + 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: SplitDelegation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SplitDelegation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Validator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + m.Amount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Amount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DelegateCallback) 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 ErrIntOverflowCallbacks + } + 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: DelegateCallback: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DelegateCallback: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositRecordId", wireType) + } + m.DepositRecordId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DepositRecordId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SplitDelegations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCallbacks + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SplitDelegations = append(m.SplitDelegations, &SplitDelegation{}) + if err := m.SplitDelegations[len(m.SplitDelegations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClaimCallback) 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 ErrIntOverflowCallbacks + } + 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: ClaimCallback: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClaimCallback: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserRedemptionRecordId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserRedemptionRecordId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) + } + m.EpochNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReinvestCallback) 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 ErrIntOverflowCallbacks + } + 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: ReinvestCallback: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReinvestCallback: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReinvestAmount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCallbacks + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ReinvestAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UndelegateCallback) 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 ErrIntOverflowCallbacks + } + 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: UndelegateCallback: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UndelegateCallback: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SplitDelegations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCallbacks + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SplitDelegations = append(m.SplitDelegations, &SplitDelegation{}) + if err := m.SplitDelegations[len(m.SplitDelegations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EpochUnbondingRecordIds = append(m.EpochUnbondingRecordIds, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthCallbacks + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.EpochUnbondingRecordIds) == 0 { + m.EpochUnbondingRecordIds = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EpochUnbondingRecordIds = append(m.EpochUnbondingRecordIds, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field EpochUnbondingRecordIds", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RedemptionCallback) 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 ErrIntOverflowCallbacks + } + 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: RedemptionCallback: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RedemptionCallback: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EpochUnbondingRecordIds = append(m.EpochUnbondingRecordIds, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthCallbacks + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.EpochUnbondingRecordIds) == 0 { + m.EpochUnbondingRecordIds = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EpochUnbondingRecordIds = append(m.EpochUnbondingRecordIds, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field EpochUnbondingRecordIds", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rebalancing) 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 ErrIntOverflowCallbacks + } + 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: Rebalancing: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Rebalancing: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SrcValidator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SrcValidator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DstValidator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DstValidator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Amt", wireType) + } + m.Amt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Amt |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RebalanceCallback) 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 ErrIntOverflowCallbacks + } + 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: RebalanceCallback: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RebalanceCallback: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostZoneId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + 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 ErrInvalidLengthCallbacks + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostZoneId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rebalancings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCallbacks + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCallbacks + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCallbacks + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Rebalancings = append(m.Rebalancings, &Rebalancing{}) + if err := m.Rebalancings[len(m.Rebalancings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCallbacks(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCallbacks + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipCallbacks(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, ErrIntOverflowCallbacks + } + 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, ErrIntOverflowCallbacks + } + 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, ErrIntOverflowCallbacks + } + 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, ErrInvalidLengthCallbacks + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupCallbacks + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthCallbacks + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthCallbacks = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCallbacks = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCallbacks = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/stakeibc/migrations/v2/types/host_zone.pb.go b/x/stakeibc/migrations/v2/types/host_zone.pb.go new file mode 100644 index 0000000000..c61faeb6ef --- /dev/null +++ b/x/stakeibc/migrations/v2/types/host_zone.pb.go @@ -0,0 +1,1193 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/stakeibc/host_zone.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +// next id: 19 +type HostZone struct { + ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` + Bech32Prefix string `protobuf:"bytes,17,opt,name=bech32prefix,proto3" json:"bech32prefix,omitempty"` + TransferChannelId string `protobuf:"bytes,12,opt,name=transfer_channel_id,json=transferChannelId,proto3" json:"transfer_channel_id,omitempty"` + Validators []*Validator `protobuf:"bytes,3,rep,name=validators,proto3" json:"validators,omitempty"` + BlacklistedValidators []*Validator `protobuf:"bytes,4,rep,name=blacklisted_validators,json=blacklistedValidators,proto3" json:"blacklisted_validators,omitempty"` + WithdrawalAccount *ICAAccount `protobuf:"bytes,5,opt,name=withdrawal_account,json=withdrawalAccount,proto3" json:"withdrawal_account,omitempty"` + FeeAccount *ICAAccount `protobuf:"bytes,6,opt,name=fee_account,json=feeAccount,proto3" json:"fee_account,omitempty"` + DelegationAccount *ICAAccount `protobuf:"bytes,7,opt,name=delegation_account,json=delegationAccount,proto3" json:"delegation_account,omitempty"` + RedemptionAccount *ICAAccount `protobuf:"bytes,16,opt,name=redemption_account,json=redemptionAccount,proto3" json:"redemption_account,omitempty"` + // ibc denom on stride + IbcDenom string `protobuf:"bytes,8,opt,name=ibc_denom,json=ibcDenom,proto3" json:"ibc_denom,omitempty"` + // native denom on host zone + HostDenom string `protobuf:"bytes,9,opt,name=host_denom,json=hostDenom,proto3" json:"host_denom,omitempty"` + // TODO(TEST-68): Should we make this an array and store the last n redemption + // rates then calculate a TWARR? + LastRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,10,opt,name=last_redemption_rate,json=lastRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"last_redemption_rate"` + RedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,11,opt,name=redemption_rate,json=redemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"redemption_rate"` + // stores how many days we should wait before issuing unbondings + UnbondingFrequency uint64 `protobuf:"varint,14,opt,name=unbonding_frequency,json=unbondingFrequency,proto3" json:"unbonding_frequency,omitempty"` + // TODO(TEST-101) int to dec + StakedBal uint64 `protobuf:"varint,13,opt,name=staked_bal,json=stakedBal,proto3" json:"staked_bal,omitempty"` + Address string `protobuf:"bytes,18,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` +} + +func (m *HostZone) Reset() { *m = HostZone{} } +func (m *HostZone) String() string { return proto.CompactTextString(m) } +func (*HostZone) ProtoMessage() {} +func (*HostZone) Descriptor() ([]byte, []int) { + return fileDescriptor_f81bf5b42c61245a, []int{0} +} +func (m *HostZone) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HostZone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_HostZone.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 *HostZone) XXX_Merge(src proto.Message) { + xxx_messageInfo_HostZone.Merge(m, src) +} +func (m *HostZone) XXX_Size() int { + return m.Size() +} +func (m *HostZone) XXX_DiscardUnknown() { + xxx_messageInfo_HostZone.DiscardUnknown(m) +} + +var xxx_messageInfo_HostZone proto.InternalMessageInfo + +func (m *HostZone) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *HostZone) GetConnectionId() string { + if m != nil { + return m.ConnectionId + } + return "" +} + +func (m *HostZone) GetBech32Prefix() string { + if m != nil { + return m.Bech32Prefix + } + return "" +} + +func (m *HostZone) GetTransferChannelId() string { + if m != nil { + return m.TransferChannelId + } + return "" +} + +func (m *HostZone) GetValidators() []*Validator { + if m != nil { + return m.Validators + } + return nil +} + +func (m *HostZone) GetBlacklistedValidators() []*Validator { + if m != nil { + return m.BlacklistedValidators + } + return nil +} + +func (m *HostZone) GetWithdrawalAccount() *ICAAccount { + if m != nil { + return m.WithdrawalAccount + } + return nil +} + +func (m *HostZone) GetFeeAccount() *ICAAccount { + if m != nil { + return m.FeeAccount + } + return nil +} + +func (m *HostZone) GetDelegationAccount() *ICAAccount { + if m != nil { + return m.DelegationAccount + } + return nil +} + +func (m *HostZone) GetRedemptionAccount() *ICAAccount { + if m != nil { + return m.RedemptionAccount + } + return nil +} + +func (m *HostZone) GetIbcDenom() string { + if m != nil { + return m.IbcDenom + } + return "" +} + +func (m *HostZone) GetHostDenom() string { + if m != nil { + return m.HostDenom + } + return "" +} + +func (m *HostZone) GetUnbondingFrequency() uint64 { + if m != nil { + return m.UnbondingFrequency + } + return 0 +} + +func (m *HostZone) GetStakedBal() uint64 { + if m != nil { + return m.StakedBal + } + return 0 +} + +func (m *HostZone) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func init() { + proto.RegisterType((*HostZone)(nil), "stride.stakeibc.V2HostZone") +} + +func init() { proto.RegisterFile("stride/stakeibc/host_zone.proto", fileDescriptor_f81bf5b42c61245a) } + +var fileDescriptor_f81bf5b42c61245a = []byte{ + // 619 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xcb, 0x4e, 0x1b, 0x3f, + 0x14, 0xc6, 0x33, 0x7f, 0xf8, 0x93, 0xc4, 0xe1, 0x6a, 0x68, 0x35, 0x80, 0x9a, 0xa4, 0xa9, 0x54, + 0x65, 0x51, 0x66, 0x54, 0xe8, 0x0a, 0xb1, 0xe1, 0xa2, 0xaa, 0xa1, 0xdd, 0x74, 0x2a, 0xb1, 0x60, + 0x33, 0xf2, 0xd8, 0x27, 0x89, 0xc5, 0xc4, 0x4e, 0xc7, 0x0e, 0x97, 0x3e, 0x45, 0x1f, 0xa6, 0x0f, + 0xc1, 0x12, 0x75, 0x55, 0x75, 0x81, 0x2a, 0x90, 0xfa, 0x00, 0x7d, 0x82, 0x6a, 0x3c, 0x33, 0x99, + 0x21, 0x2c, 0x60, 0xd1, 0x55, 0xc6, 0xe7, 0xfb, 0xbe, 0x9f, 0xed, 0x63, 0xc7, 0xa8, 0xa1, 0x74, + 0xc4, 0x19, 0xb8, 0x4a, 0x93, 0x13, 0xe0, 0x01, 0x75, 0xfb, 0x52, 0x69, 0xff, 0x8b, 0x14, 0xe0, + 0x0c, 0x23, 0xa9, 0x25, 0x5e, 0x48, 0x0c, 0x4e, 0x66, 0x58, 0xbb, 0x97, 0x38, 0x25, 0x21, 0x67, + 0x44, 0xcb, 0x28, 0x49, 0xac, 0x3d, 0x9f, 0x34, 0x70, 0x4a, 0x7c, 0x42, 0xa9, 0x1c, 0x09, 0x9d, + 0x5a, 0x56, 0x7a, 0xb2, 0x27, 0xcd, 0xa7, 0x1b, 0x7f, 0xa5, 0xd5, 0x55, 0x2a, 0xd5, 0x40, 0x2a, + 0x3f, 0x11, 0x92, 0x41, 0x22, 0xb5, 0x7e, 0x97, 0x51, 0xe5, 0x9d, 0x54, 0xfa, 0x58, 0x0a, 0xc0, + 0xab, 0xa8, 0x42, 0xfb, 0x84, 0x0b, 0x9f, 0x33, 0xdb, 0x6a, 0x5a, 0xed, 0xaa, 0x57, 0x36, 0xe3, + 0x0e, 0xc3, 0x2f, 0xd0, 0x1c, 0x95, 0x42, 0x00, 0xd5, 0x5c, 0x1a, 0xfd, 0x3f, 0xa3, 0xcf, 0xe6, + 0xc5, 0x0e, 0xc3, 0x2d, 0x34, 0x1b, 0x00, 0xed, 0x6f, 0x6d, 0x0e, 0x23, 0xe8, 0xf2, 0x73, 0x7b, + 0x29, 0xf1, 0x14, 0x6b, 0xd8, 0x41, 0xcb, 0x3a, 0x22, 0x42, 0x75, 0x21, 0xf2, 0x69, 0x9f, 0x08, + 0x01, 0x61, 0x8c, 0x9b, 0x35, 0xd6, 0xa5, 0x4c, 0xda, 0x4f, 0x94, 0x0e, 0xc3, 0xdb, 0x08, 0x8d, + 0xfb, 0xa0, 0xec, 0xa9, 0xe6, 0x54, 0xbb, 0xb6, 0xb9, 0xe6, 0x4c, 0xf4, 0xce, 0x39, 0xca, 0x2c, + 0x5e, 0xc1, 0x8d, 0x3f, 0xa2, 0xa7, 0x41, 0x48, 0xe8, 0x49, 0xc8, 0x95, 0x06, 0xe6, 0x17, 0x38, + 0xd3, 0x0f, 0x72, 0x9e, 0x14, 0x92, 0x47, 0x39, 0xf2, 0x10, 0xe1, 0x33, 0xae, 0xfb, 0x2c, 0x22, + 0x67, 0x24, 0xcc, 0x9a, 0x6f, 0xff, 0xdf, 0xb4, 0xda, 0xb5, 0xcd, 0xf5, 0x7b, 0xb8, 0xce, 0xfe, + 0xee, 0x6e, 0x62, 0xf1, 0x96, 0xf2, 0x58, 0x5a, 0xc2, 0x3b, 0xa8, 0xd6, 0x05, 0x18, 0x43, 0x66, + 0x1e, 0x86, 0xa0, 0x2e, 0x40, 0x96, 0x3e, 0x44, 0x98, 0x41, 0x08, 0x3d, 0x62, 0x4e, 0x24, 0x83, + 0x94, 0x1f, 0xb1, 0x92, 0x3c, 0x56, 0x60, 0x45, 0xc0, 0x60, 0x30, 0xbc, 0xc3, 0x5a, 0x7c, 0x04, + 0x2b, 0x8f, 0x65, 0xac, 0x75, 0x54, 0xe5, 0x01, 0xf5, 0x19, 0x08, 0x39, 0xb0, 0x2b, 0xe6, 0x58, + 0x2b, 0x3c, 0xa0, 0x07, 0xf1, 0x18, 0x3f, 0x43, 0xc8, 0xfc, 0x0f, 0x12, 0xb5, 0x6a, 0xd4, 0x6a, + 0x5c, 0x49, 0x64, 0x81, 0x56, 0x42, 0xa2, 0xb4, 0x5f, 0x58, 0x4c, 0x44, 0x34, 0xd8, 0x28, 0x36, + 0xee, 0xed, 0x5c, 0x5e, 0x37, 0x4a, 0x3f, 0xaf, 0x1b, 0x2f, 0x7b, 0x5c, 0xf7, 0x47, 0x81, 0x43, + 0xe5, 0x20, 0xbd, 0xcc, 0xe9, 0xcf, 0x86, 0x62, 0x27, 0xae, 0xbe, 0x18, 0x82, 0x72, 0x0e, 0x80, + 0x7e, 0xff, 0xb6, 0x81, 0xd2, 0xbb, 0x7e, 0x00, 0xd4, 0xc3, 0x31, 0xd9, 0x1b, 0x83, 0x3d, 0xa2, + 0x01, 0x03, 0x5a, 0x98, 0x9c, 0xaa, 0xf6, 0x0f, 0xa6, 0x9a, 0x8f, 0xee, 0x4e, 0xe3, 0xa2, 0xe5, + 0x91, 0x08, 0xa4, 0x60, 0x5c, 0xf4, 0xfc, 0x6e, 0x04, 0x9f, 0x47, 0x20, 0xe8, 0x85, 0x3d, 0xdf, + 0xb4, 0xda, 0xd3, 0x1e, 0x1e, 0x4b, 0x6f, 0x33, 0x25, 0x6e, 0x93, 0xe9, 0x36, 0xf3, 0x03, 0x12, + 0xda, 0x73, 0xc6, 0x57, 0x4d, 0x2a, 0x7b, 0x24, 0xc4, 0xaf, 0x50, 0x99, 0x30, 0x16, 0x81, 0x52, + 0x36, 0x36, 0xcb, 0xc5, 0x7f, 0xae, 0x1b, 0xf3, 0x17, 0x64, 0x10, 0x6e, 0xb7, 0x52, 0xa1, 0xe5, + 0x65, 0x96, 0xc3, 0xe9, 0xca, 0xc2, 0xe2, 0xe2, 0xde, 0xfb, 0xcb, 0x9b, 0xba, 0x75, 0x75, 0x53, + 0xb7, 0x7e, 0xdd, 0xd4, 0xad, 0xaf, 0xb7, 0xf5, 0xd2, 0xd5, 0x6d, 0xbd, 0xf4, 0xe3, 0xb6, 0x5e, + 0x3a, 0x7e, 0x5d, 0xd8, 0xe3, 0x27, 0x73, 0xd4, 0x1b, 0x1f, 0x48, 0xa0, 0xdc, 0xf4, 0xb5, 0x39, + 0x7d, 0xe3, 0x9e, 0xe7, 0x4f, 0x8e, 0xd9, 0x72, 0x30, 0x63, 0x1e, 0x8f, 0xad, 0xbf, 0x01, 0x00, + 0x00, 0xff, 0xff, 0x55, 0xf2, 0x88, 0xfa, 0xe5, 0x04, 0x00, 0x00, +} + +func (m *HostZone) 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 *HostZone) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HostZone) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintHostZone(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } + if len(m.Bech32Prefix) > 0 { + i -= len(m.Bech32Prefix) + copy(dAtA[i:], m.Bech32Prefix) + i = encodeVarintHostZone(dAtA, i, uint64(len(m.Bech32Prefix))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + if m.RedemptionAccount != nil { + { + size, err := m.RedemptionAccount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + if m.UnbondingFrequency != 0 { + i = encodeVarintHostZone(dAtA, i, uint64(m.UnbondingFrequency)) + i-- + dAtA[i] = 0x70 + } + if m.StakedBal != 0 { + i = encodeVarintHostZone(dAtA, i, uint64(m.StakedBal)) + i-- + dAtA[i] = 0x68 + } + if len(m.TransferChannelId) > 0 { + i -= len(m.TransferChannelId) + copy(dAtA[i:], m.TransferChannelId) + i = encodeVarintHostZone(dAtA, i, uint64(len(m.TransferChannelId))) + i-- + dAtA[i] = 0x62 + } + { + size := m.RedemptionRate.Size() + i -= size + if _, err := m.RedemptionRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + { + size := m.LastRedemptionRate.Size() + i -= size + if _, err := m.LastRedemptionRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + if len(m.HostDenom) > 0 { + i -= len(m.HostDenom) + copy(dAtA[i:], m.HostDenom) + i = encodeVarintHostZone(dAtA, i, uint64(len(m.HostDenom))) + i-- + dAtA[i] = 0x4a + } + if len(m.IbcDenom) > 0 { + i -= len(m.IbcDenom) + copy(dAtA[i:], m.IbcDenom) + i = encodeVarintHostZone(dAtA, i, uint64(len(m.IbcDenom))) + i-- + dAtA[i] = 0x42 + } + if m.DelegationAccount != nil { + { + size, err := m.DelegationAccount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.FeeAccount != nil { + { + size, err := m.FeeAccount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.WithdrawalAccount != nil { + { + size, err := m.WithdrawalAccount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.BlacklistedValidators) > 0 { + for iNdEx := len(m.BlacklistedValidators) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.BlacklistedValidators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Validators) > 0 { + for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.ConnectionId) > 0 { + i -= len(m.ConnectionId) + copy(dAtA[i:], m.ConnectionId) + i = encodeVarintHostZone(dAtA, i, uint64(len(m.ConnectionId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintHostZone(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintHostZone(dAtA []byte, offset int, v uint64) int { + offset -= sovHostZone(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *HostZone) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovHostZone(uint64(l)) + } + l = len(m.ConnectionId) + if l > 0 { + n += 1 + l + sovHostZone(uint64(l)) + } + if len(m.Validators) > 0 { + for _, e := range m.Validators { + l = e.Size() + n += 1 + l + sovHostZone(uint64(l)) + } + } + if len(m.BlacklistedValidators) > 0 { + for _, e := range m.BlacklistedValidators { + l = e.Size() + n += 1 + l + sovHostZone(uint64(l)) + } + } + if m.WithdrawalAccount != nil { + l = m.WithdrawalAccount.Size() + n += 1 + l + sovHostZone(uint64(l)) + } + if m.FeeAccount != nil { + l = m.FeeAccount.Size() + n += 1 + l + sovHostZone(uint64(l)) + } + if m.DelegationAccount != nil { + l = m.DelegationAccount.Size() + n += 1 + l + sovHostZone(uint64(l)) + } + l = len(m.IbcDenom) + if l > 0 { + n += 1 + l + sovHostZone(uint64(l)) + } + l = len(m.HostDenom) + if l > 0 { + n += 1 + l + sovHostZone(uint64(l)) + } + l = m.LastRedemptionRate.Size() + n += 1 + l + sovHostZone(uint64(l)) + l = m.RedemptionRate.Size() + n += 1 + l + sovHostZone(uint64(l)) + l = len(m.TransferChannelId) + if l > 0 { + n += 1 + l + sovHostZone(uint64(l)) + } + if m.StakedBal != 0 { + n += 1 + sovHostZone(uint64(m.StakedBal)) + } + if m.UnbondingFrequency != 0 { + n += 1 + sovHostZone(uint64(m.UnbondingFrequency)) + } + if m.RedemptionAccount != nil { + l = m.RedemptionAccount.Size() + n += 2 + l + sovHostZone(uint64(l)) + } + l = len(m.Bech32Prefix) + if l > 0 { + n += 2 + l + sovHostZone(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 2 + l + sovHostZone(uint64(l)) + } + return n +} + +func sovHostZone(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozHostZone(x uint64) (n int) { + return sovHostZone(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *HostZone) 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 ErrIntOverflowHostZone + } + 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: HostZone: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HostZone: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ConnectionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthHostZone + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Validators = append(m.Validators, &Validator{}) + if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlacklistedValidators", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthHostZone + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BlacklistedValidators = append(m.BlacklistedValidators, &Validator{}) + if err := m.BlacklistedValidators[len(m.BlacklistedValidators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WithdrawalAccount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthHostZone + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.WithdrawalAccount == nil { + m.WithdrawalAccount = &ICAAccount{} + } + if err := m.WithdrawalAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeAccount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthHostZone + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FeeAccount == nil { + m.FeeAccount = &ICAAccount{} + } + if err := m.FeeAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegationAccount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthHostZone + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DelegationAccount == nil { + m.DelegationAccount = &ICAAccount{} + } + if err := m.DelegationAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IbcDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IbcDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastRedemptionRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.LastRedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RedemptionRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.RedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransferChannelId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TransferChannelId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StakedBal", wireType) + } + m.StakedBal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StakedBal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnbondingFrequency", wireType) + } + m.UnbondingFrequency = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UnbondingFrequency |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RedemptionAccount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthHostZone + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RedemptionAccount == nil { + m.RedemptionAccount = &ICAAccount{} + } + if err := m.RedemptionAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bech32Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Bech32Prefix = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + 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 ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipHostZone(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthHostZone + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipHostZone(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, ErrIntOverflowHostZone + } + 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, ErrIntOverflowHostZone + } + 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, ErrIntOverflowHostZone + } + 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, ErrInvalidLengthHostZone + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupHostZone + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthHostZone + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthHostZone = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowHostZone = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupHostZone = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/stakeibc/migrations/v2/types/ica_account.pb.go b/x/stakeibc/migrations/v2/types/ica_account.pb.go new file mode 100644 index 0000000000..6619090e53 --- /dev/null +++ b/x/stakeibc/migrations/v2/types/ica_account.pb.go @@ -0,0 +1,392 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/stakeibc/ica_account.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + proto "github.com/gogo/protobuf/proto" + 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 + +type ICAAccountType int32 + +const ( + ICAAccountType_DELEGATION ICAAccountType = 0 + ICAAccountType_FEE ICAAccountType = 1 + ICAAccountType_WITHDRAWAL ICAAccountType = 2 + ICAAccountType_REDEMPTION ICAAccountType = 3 +) + +var ICAAccountType_name = map[int32]string{ + 0: "DELEGATION", + 1: "FEE", + 2: "WITHDRAWAL", + 3: "REDEMPTION", +} + +var ICAAccountType_value = map[string]int32{ + "DELEGATION": 0, + "FEE": 1, + "WITHDRAWAL": 2, + "REDEMPTION": 3, +} + +func (x ICAAccountType) String() string { + return proto.EnumName(ICAAccountType_name, int32(x)) +} + +func (ICAAccountType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_2976ae6e7f6ce824, []int{0} +} + +// TODO(TEST-XX): Update these fields to be more useful (e.g. balances should be +// coins, maybe store port name directly) +type ICAAccount struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Target ICAAccountType `protobuf:"varint,3,opt,name=target,proto3,enum=stride.stakeibc.ICAAccountType" json:"target,omitempty"` +} + +func (m *ICAAccount) Reset() { *m = ICAAccount{} } +func (m *ICAAccount) String() string { return proto.CompactTextString(m) } +func (*ICAAccount) ProtoMessage() {} +func (*ICAAccount) Descriptor() ([]byte, []int) { + return fileDescriptor_2976ae6e7f6ce824, []int{0} +} +func (m *ICAAccount) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ICAAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ICAAccount.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 *ICAAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_ICAAccount.Merge(m, src) +} +func (m *ICAAccount) XXX_Size() int { + return m.Size() +} +func (m *ICAAccount) XXX_DiscardUnknown() { + xxx_messageInfo_ICAAccount.DiscardUnknown(m) +} + +var xxx_messageInfo_ICAAccount proto.InternalMessageInfo + +func (m *ICAAccount) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *ICAAccount) GetTarget() ICAAccountType { + if m != nil { + return m.Target + } + return ICAAccountType_DELEGATION +} + +func init() { + proto.RegisterEnum("stride.stakeibc.V2ICAAccountType", ICAAccountType_name, ICAAccountType_value) + proto.RegisterType((*ICAAccount)(nil), "stride.stakeibc.V2ICAAccount") +} + +func init() { proto.RegisterFile("stride/stakeibc/ica_account.proto", fileDescriptor_2976ae6e7f6ce824) } + +var fileDescriptor_2976ae6e7f6ce824 = []byte{ + // 285 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2c, 0x2e, 0x29, 0xca, + 0x4c, 0x49, 0xd5, 0x2f, 0x2e, 0x49, 0xcc, 0x4e, 0xcd, 0x4c, 0x4a, 0xd6, 0xcf, 0x4c, 0x4e, 0x8c, + 0x4f, 0x4c, 0x4e, 0xce, 0x2f, 0xcd, 0x2b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x87, + 0x28, 0xd1, 0x83, 0x29, 0x91, 0x92, 0x4c, 0xce, 0x2f, 0xce, 0xcd, 0x2f, 0x8e, 0x07, 0x4b, 0xeb, + 0x43, 0x38, 0x10, 0xb5, 0x4a, 0x95, 0x5c, 0x5c, 0x9e, 0xce, 0x8e, 0x8e, 0x10, 0xfd, 0x42, 0x46, + 0x5c, 0xec, 0x89, 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x4e, + 0x12, 0x97, 0xb6, 0xe8, 0x8a, 0x40, 0x35, 0x38, 0x42, 0x64, 0x82, 0x4b, 0x8a, 0x32, 0xf3, 0xd2, + 0x83, 0x60, 0x0a, 0x85, 0xcc, 0xb9, 0xd8, 0x4a, 0x12, 0x8b, 0xd2, 0x53, 0x4b, 0x24, 0x98, 0x15, + 0x18, 0x35, 0xf8, 0x8c, 0xe4, 0xf5, 0xd0, 0xac, 0xd7, 0x43, 0x58, 0x10, 0x52, 0x59, 0x90, 0x1a, + 0x04, 0x55, 0xae, 0xe5, 0xc9, 0xc5, 0x87, 0x2a, 0x23, 0xc4, 0xc7, 0xc5, 0xe5, 0xe2, 0xea, 0xe3, + 0xea, 0xee, 0x18, 0xe2, 0xe9, 0xef, 0x27, 0xc0, 0x20, 0xc4, 0xce, 0xc5, 0xec, 0xe6, 0xea, 0x2a, + 0xc0, 0x08, 0x92, 0x08, 0xf7, 0x0c, 0xf1, 0x70, 0x09, 0x72, 0x0c, 0x77, 0xf4, 0x11, 0x60, 0x02, + 0xf1, 0x83, 0x5c, 0x5d, 0x5c, 0x7d, 0x03, 0xc0, 0x0a, 0x99, 0x9d, 0xbc, 0x4f, 0x3c, 0x92, 0x63, + 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, + 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x30, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, + 0x3f, 0x57, 0x3f, 0x18, 0xec, 0x2e, 0x5d, 0x9f, 0xc4, 0xa4, 0x62, 0x7d, 0x68, 0x28, 0x96, 0x99, + 0xe8, 0x57, 0x20, 0x82, 0xb2, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x1c, 0x32, 0xc6, 0x80, + 0x00, 0x00, 0x00, 0xff, 0xff, 0xcd, 0x18, 0xc2, 0x7b, 0x6a, 0x01, 0x00, 0x00, +} + +func (m *ICAAccount) 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 *ICAAccount) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ICAAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Target != 0 { + i = encodeVarintIcaAccount(dAtA, i, uint64(m.Target)) + i-- + dAtA[i] = 0x18 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintIcaAccount(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintIcaAccount(dAtA []byte, offset int, v uint64) int { + offset -= sovIcaAccount(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ICAAccount) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovIcaAccount(uint64(l)) + } + if m.Target != 0 { + n += 1 + sovIcaAccount(uint64(m.Target)) + } + return n +} + +func sovIcaAccount(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozIcaAccount(x uint64) (n int) { + return sovIcaAccount(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ICAAccount) 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 ErrIntOverflowIcaAccount + } + 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: ICAAccount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ICAAccount: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcaAccount + } + 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 ErrInvalidLengthIcaAccount + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcaAccount + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + } + m.Target = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcaAccount + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Target |= ICAAccountType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipIcaAccount(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIcaAccount + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipIcaAccount(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, ErrIntOverflowIcaAccount + } + 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, ErrIntOverflowIcaAccount + } + 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, ErrIntOverflowIcaAccount + } + 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, ErrInvalidLengthIcaAccount + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupIcaAccount + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthIcaAccount + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthIcaAccount = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowIcaAccount = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupIcaAccount = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/stakeibc/migrations/v2/types/validator.pb.go b/x/stakeibc/migrations/v2/types/validator.pb.go new file mode 100644 index 0000000000..8c282396e6 --- /dev/null +++ b/x/stakeibc/migrations/v2/types/validator.pb.go @@ -0,0 +1,816 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stride/stakeibc/validator.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/gogo/protobuf/proto" + 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 + +type Validator_ValidatorStatus int32 + +const ( + Validator_ACTIVE Validator_ValidatorStatus = 0 + Validator_INACTIVE Validator_ValidatorStatus = 1 +) + +var Validator_ValidatorStatus_name = map[int32]string{ + 0: "ACTIVE", + 1: "INACTIVE", +} + +var Validator_ValidatorStatus_value = map[string]int32{ + "ACTIVE": 0, + "INACTIVE": 1, +} + +func (x Validator_ValidatorStatus) String() string { + return proto.EnumName(Validator_ValidatorStatus_name, int32(x)) +} + +func (Validator_ValidatorStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5d2f32e16bd6ab8f, []int{1, 0} +} + +type ValidatorExchangeRate struct { + InternalTokensToSharesRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=internal_tokens_to_shares_rate,json=internalTokensToSharesRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"internal_tokens_to_shares_rate"` + EpochNumber uint64 `protobuf:"varint,2,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` +} + +func (m *ValidatorExchangeRate) Reset() { *m = ValidatorExchangeRate{} } +func (m *ValidatorExchangeRate) String() string { return proto.CompactTextString(m) } +func (*ValidatorExchangeRate) ProtoMessage() {} +func (*ValidatorExchangeRate) Descriptor() ([]byte, []int) { + return fileDescriptor_5d2f32e16bd6ab8f, []int{0} +} +func (m *ValidatorExchangeRate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorExchangeRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorExchangeRate.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 *ValidatorExchangeRate) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorExchangeRate.Merge(m, src) +} +func (m *ValidatorExchangeRate) XXX_Size() int { + return m.Size() +} +func (m *ValidatorExchangeRate) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorExchangeRate.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorExchangeRate proto.InternalMessageInfo + +func (m *ValidatorExchangeRate) GetEpochNumber() uint64 { + if m != nil { + return m.EpochNumber + } + return 0 +} + +type Validator struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Status Validator_ValidatorStatus `protobuf:"varint,3,opt,name=status,proto3,enum=stride.stakeibc.Validator_ValidatorStatus" json:"status,omitempty"` + CommissionRate uint64 `protobuf:"varint,4,opt,name=commission_rate,json=commissionRate,proto3" json:"commission_rate,omitempty"` + DelegationAmt uint64 `protobuf:"varint,5,opt,name=delegation_amt,json=delegationAmt,proto3" json:"delegation_amt,omitempty"` + Weight uint64 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"` + InternalExchangeRate *ValidatorExchangeRate `protobuf:"bytes,7,opt,name=internal_exchange_rate,json=internalExchangeRate,proto3" json:"internal_exchange_rate,omitempty"` +} + +func (m *Validator) Reset() { *m = Validator{} } +func (m *Validator) String() string { return proto.CompactTextString(m) } +func (*Validator) ProtoMessage() {} +func (*Validator) Descriptor() ([]byte, []int) { + return fileDescriptor_5d2f32e16bd6ab8f, []int{1} +} +func (m *Validator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Validator.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 *Validator) XXX_Merge(src proto.Message) { + xxx_messageInfo_Validator.Merge(m, src) +} +func (m *Validator) XXX_Size() int { + return m.Size() +} +func (m *Validator) XXX_DiscardUnknown() { + xxx_messageInfo_Validator.DiscardUnknown(m) +} + +var xxx_messageInfo_Validator proto.InternalMessageInfo + +func (m *Validator) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Validator) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *Validator) GetStatus() Validator_ValidatorStatus { + if m != nil { + return m.Status + } + return Validator_ACTIVE +} + +func (m *Validator) GetCommissionRate() uint64 { + if m != nil { + return m.CommissionRate + } + return 0 +} + +func (m *Validator) GetDelegationAmt() uint64 { + if m != nil { + return m.DelegationAmt + } + return 0 +} + +func (m *Validator) GetWeight() uint64 { + if m != nil { + return m.Weight + } + return 0 +} + +func (m *Validator) GetInternalExchangeRate() *ValidatorExchangeRate { + if m != nil { + return m.InternalExchangeRate + } + return nil +} + +func init() { + proto.RegisterEnum("stride.stakeibc.V2Validator_ValidatorStatus", Validator_ValidatorStatus_name, Validator_ValidatorStatus_value) + proto.RegisterType((*ValidatorExchangeRate)(nil), "stride.stakeibc.V2ValidatorExchangeRate") + proto.RegisterType((*Validator)(nil), "stride.stakeibc.V2Validator") +} + +func init() { proto.RegisterFile("stride/stakeibc/validator.proto", fileDescriptor_5d2f32e16bd6ab8f) } + +var fileDescriptor_5d2f32e16bd6ab8f = []byte{ + // 486 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0x31, 0x6f, 0xd3, 0x40, + 0x14, 0xce, 0xd1, 0xe0, 0x92, 0x6b, 0x49, 0xd0, 0x29, 0x54, 0x26, 0x83, 0x13, 0x22, 0x51, 0x22, + 0x50, 0x6c, 0x11, 0x18, 0x59, 0x12, 0xda, 0xa1, 0x02, 0x75, 0x70, 0xa2, 0x0e, 0x08, 0xc9, 0x3a, + 0xdb, 0x4f, 0xb6, 0x95, 0xd8, 0x17, 0xf9, 0x5e, 0x4a, 0xd9, 0x98, 0x99, 0xf8, 0x31, 0x5d, 0xd9, + 0x3b, 0x56, 0x9d, 0x10, 0x43, 0x85, 0x92, 0x3f, 0x82, 0x7a, 0x3e, 0x27, 0x51, 0x25, 0xa6, 0x7b, + 0xef, 0x7b, 0xdf, 0xbb, 0xef, 0xbb, 0x7b, 0x8f, 0xb6, 0x25, 0xe6, 0x49, 0x08, 0x8e, 0x44, 0x3e, + 0x85, 0xc4, 0x0f, 0x9c, 0x73, 0x3e, 0x4b, 0x42, 0x8e, 0x22, 0xb7, 0xe7, 0xb9, 0x40, 0xc1, 0x1a, + 0x05, 0xc1, 0x2e, 0x09, 0xad, 0x67, 0x81, 0x90, 0xa9, 0x90, 0x9e, 0x2a, 0x3b, 0x45, 0x52, 0x70, + 0x5b, 0xcd, 0x48, 0x44, 0xa2, 0xc0, 0xef, 0xa2, 0x02, 0xed, 0xfe, 0x22, 0xf4, 0xe9, 0x59, 0x79, + 0xeb, 0xf1, 0x45, 0x10, 0xf3, 0x2c, 0x02, 0x97, 0x23, 0xb0, 0xef, 0x84, 0x5a, 0x49, 0x86, 0x90, + 0x67, 0x7c, 0xe6, 0xa1, 0x98, 0x42, 0x26, 0x3d, 0x14, 0x9e, 0x8c, 0x79, 0x0e, 0xd2, 0xcb, 0x39, + 0x82, 0x49, 0x3a, 0xa4, 0x57, 0x1b, 0xbd, 0xbf, 0xba, 0x6d, 0x57, 0xfe, 0xdc, 0xb6, 0x0f, 0xa3, + 0x04, 0xe3, 0x85, 0x6f, 0x07, 0x22, 0xd5, 0xca, 0xfa, 0xe8, 0xcb, 0x70, 0xea, 0xe0, 0xb7, 0x39, + 0x48, 0xfb, 0x08, 0x82, 0x9b, 0xcb, 0x3e, 0xd5, 0xc6, 0x8e, 0x20, 0x70, 0x5b, 0xa5, 0xc6, 0x44, + 0x49, 0x4c, 0xc4, 0x58, 0x09, 0x28, 0x0b, 0xcf, 0xe9, 0x3e, 0xcc, 0x45, 0x10, 0x7b, 0xd9, 0x22, + 0xf5, 0x21, 0x37, 0x1f, 0x74, 0x48, 0xaf, 0xea, 0xee, 0x29, 0xec, 0x54, 0x41, 0xdd, 0x1f, 0x3b, + 0xb4, 0xb6, 0xf6, 0xcf, 0x18, 0xad, 0x66, 0x3c, 0xd5, 0xc6, 0x5c, 0x15, 0xb3, 0x01, 0xdd, 0xe5, + 0x61, 0x98, 0x83, 0x94, 0xaa, 0xbf, 0x36, 0x32, 0x6f, 0x2e, 0xfb, 0x4d, 0xed, 0x60, 0x58, 0x54, + 0xc6, 0x98, 0x27, 0x59, 0xe4, 0x96, 0x44, 0x36, 0xa2, 0x86, 0x44, 0x8e, 0x0b, 0x69, 0xee, 0x74, + 0x48, 0xaf, 0x3e, 0x78, 0x65, 0xdf, 0xfb, 0x68, 0x7b, 0xad, 0xb9, 0x89, 0xc6, 0xaa, 0xc3, 0xd5, + 0x9d, 0xec, 0x25, 0x6d, 0x04, 0x22, 0x4d, 0x13, 0x29, 0x13, 0x91, 0x15, 0xff, 0x55, 0x55, 0xfe, + 0xeb, 0x1b, 0x58, 0xbd, 0xf2, 0x05, 0xad, 0x87, 0x30, 0x83, 0x88, 0xe3, 0x1d, 0x91, 0xa7, 0x68, + 0x3e, 0x54, 0xbc, 0xc7, 0x1b, 0x74, 0x98, 0x22, 0x3b, 0xa0, 0xc6, 0x57, 0x48, 0xa2, 0x18, 0x4d, + 0x43, 0x95, 0x75, 0xc6, 0xbe, 0xd0, 0x83, 0xf5, 0x98, 0x40, 0x0f, 0xb0, 0x90, 0xdb, 0xed, 0x90, + 0xde, 0xde, 0xe0, 0xf0, 0xff, 0xde, 0xb7, 0xe7, 0xed, 0x36, 0xcb, 0x5b, 0xb6, 0xd1, 0xee, 0x6b, + 0xda, 0xb8, 0xf7, 0x40, 0x46, 0xa9, 0x31, 0xfc, 0x30, 0x39, 0x39, 0x3b, 0x7e, 0x52, 0x61, 0xfb, + 0xf4, 0xd1, 0xc9, 0xa9, 0xce, 0xc8, 0xe8, 0xe3, 0xd5, 0xd2, 0x22, 0xd7, 0x4b, 0x8b, 0xfc, 0x5d, + 0x5a, 0xe4, 0xe7, 0xca, 0xaa, 0x5c, 0xaf, 0xac, 0xca, 0xef, 0x95, 0x55, 0xf9, 0xfc, 0x66, 0x6b, + 0x37, 0xc6, 0xca, 0x4e, 0xff, 0x13, 0xf7, 0xa5, 0xa3, 0x17, 0xfc, 0xfc, 0x9d, 0x73, 0xb1, 0xd9, + 0x72, 0xb5, 0x2a, 0xbe, 0xa1, 0x16, 0xf4, 0xed, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x61, 0x12, + 0xd4, 0xa2, 0x05, 0x03, 0x00, 0x00, +} + +func (m *ValidatorExchangeRate) 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 *ValidatorExchangeRate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorExchangeRate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EpochNumber != 0 { + i = encodeVarintValidator(dAtA, i, uint64(m.EpochNumber)) + i-- + dAtA[i] = 0x10 + } + { + size := m.InternalTokensToSharesRate.Size() + i -= size + if _, err := m.InternalTokensToSharesRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintValidator(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Validator) 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 *Validator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.InternalExchangeRate != nil { + { + size, err := m.InternalExchangeRate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintValidator(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.Weight != 0 { + i = encodeVarintValidator(dAtA, i, uint64(m.Weight)) + i-- + dAtA[i] = 0x30 + } + if m.DelegationAmt != 0 { + i = encodeVarintValidator(dAtA, i, uint64(m.DelegationAmt)) + i-- + dAtA[i] = 0x28 + } + if m.CommissionRate != 0 { + i = encodeVarintValidator(dAtA, i, uint64(m.CommissionRate)) + i-- + dAtA[i] = 0x20 + } + if m.Status != 0 { + i = encodeVarintValidator(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x18 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintValidator(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintValidator(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintValidator(dAtA []byte, offset int, v uint64) int { + offset -= sovValidator(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ValidatorExchangeRate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.InternalTokensToSharesRate.Size() + n += 1 + l + sovValidator(uint64(l)) + if m.EpochNumber != 0 { + n += 1 + sovValidator(uint64(m.EpochNumber)) + } + return n +} + +func (m *Validator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovValidator(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovValidator(uint64(l)) + } + if m.Status != 0 { + n += 1 + sovValidator(uint64(m.Status)) + } + if m.CommissionRate != 0 { + n += 1 + sovValidator(uint64(m.CommissionRate)) + } + if m.DelegationAmt != 0 { + n += 1 + sovValidator(uint64(m.DelegationAmt)) + } + if m.Weight != 0 { + n += 1 + sovValidator(uint64(m.Weight)) + } + if m.InternalExchangeRate != nil { + l = m.InternalExchangeRate.Size() + n += 1 + l + sovValidator(uint64(l)) + } + return n +} + +func sovValidator(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozValidator(x uint64) (n int) { + return sovValidator(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ValidatorExchangeRate) 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 ErrIntOverflowValidator + } + 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: ValidatorExchangeRate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidatorExchangeRate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InternalTokensToSharesRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + 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 ErrInvalidLengthValidator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthValidator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.InternalTokensToSharesRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochNumber", wireType) + } + m.EpochNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipValidator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthValidator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Validator) 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 ErrIntOverflowValidator + } + 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: Validator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Validator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + 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 ErrInvalidLengthValidator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthValidator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + 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 ErrInvalidLengthValidator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthValidator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= Validator_ValidatorStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CommissionRate", wireType) + } + m.CommissionRate = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CommissionRate |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegationAmt", wireType) + } + m.DelegationAmt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DelegationAmt |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + } + m.Weight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Weight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InternalExchangeRate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowValidator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthValidator + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthValidator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InternalExchangeRate == nil { + m.InternalExchangeRate = &ValidatorExchangeRate{} + } + if err := m.InternalExchangeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipValidator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthValidator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipValidator(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, ErrIntOverflowValidator + } + 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, ErrIntOverflowValidator + } + 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, ErrIntOverflowValidator + } + 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, ErrInvalidLengthValidator + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupValidator + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthValidator + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthValidator = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowValidator = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupValidator = fmt.Errorf("proto: unexpected end of group") +) From 9c8cd18aaf1c598a17c75b5c1df2931441ffbfe7 Mon Sep 17 00:00:00 2001 From: Aidan Salzmann Date: Sun, 12 Mar 2023 23:24:26 -0400 Subject: [PATCH 08/10] revert v7->v6 --- app/upgrades/v5/upgrades.go | 8 ++++---- app/upgrades/v5/upgrades_test.go | 6 +++--- go.mod | 1 - go.sum | 2 -- x/claim/migrations/v2/convert.go | 2 +- x/claim/migrations/v2/convert_test.go | 2 +- x/claim/migrations/v2/migrations.go | 2 +- x/icacallbacks/migrations/v2/convert.go | 2 +- x/icacallbacks/migrations/v2/convert_test.go | 2 +- x/records/migrations/v2/convert.go | 2 +- x/records/migrations/v2/convert_test.go | 2 +- x/records/migrations/v2/migrations.go | 2 +- x/stakeibc/migrations/v2/convert.go | 2 +- x/stakeibc/migrations/v2/convert_test.go | 2 +- x/stakeibc/migrations/v2/migrations.go | 2 +- 15 files changed, 18 insertions(+), 21 deletions(-) diff --git a/app/upgrades/v5/upgrades.go b/app/upgrades/v5/upgrades.go index 62b06401d9..4ff9fd7486 100644 --- a/app/upgrades/v5/upgrades.go +++ b/app/upgrades/v5/upgrades.go @@ -12,15 +12,15 @@ import ( authz "github.com/cosmos/cosmos-sdk/x/authz" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - claimmigration "github.com/Stride-Labs/stride/v6/x/claim/migrations/v2" - icacallbacksmigration "github.com/Stride-Labs/stride/v6/x/icacallbacks/migrations/v2" - recordsmigration "github.com/Stride-Labs/stride/v6/x/records/migrations/v2" - stakeibcmigration "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2" + claimmigration "github.com/Stride-Labs/stride/v7/x/claim/migrations/v2" claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" + icacallbacksmigration "github.com/Stride-Labs/stride/v7/x/icacallbacks/migrations/v2" icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" interchainquerykeeper "github.com/Stride-Labs/stride/v7/x/interchainquery/keeper" + recordsmigration "github.com/Stride-Labs/stride/v7/x/records/migrations/v2" recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + stakeibcmigration "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2" stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) diff --git a/app/upgrades/v5/upgrades_test.go b/app/upgrades/v5/upgrades_test.go index c4c452b85c..52925c434e 100644 --- a/app/upgrades/v5/upgrades_test.go +++ b/app/upgrades/v5/upgrades_test.go @@ -13,17 +13,17 @@ import ( "github.com/Stride-Labs/stride/v7/app" - oldclaimtypes "github.com/Stride-Labs/stride/v6/x/claim/migrations/v2/types" - oldrecordtypes "github.com/Stride-Labs/stride/v6/x/records/migrations/v2/types" - oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" "github.com/Stride-Labs/stride/v7/app/apptesting" upgradev5 "github.com/Stride-Labs/stride/v7/app/upgrades/v5" + oldclaimtypes "github.com/Stride-Labs/stride/v7/x/claim/migrations/v2/types" claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" icqtypes "github.com/Stride-Labs/stride/v7/x/interchainquery/types" recordkeeper "github.com/Stride-Labs/stride/v7/x/records/keeper" + oldrecordtypes "github.com/Stride-Labs/stride/v7/x/records/migrations/v2/types" recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) diff --git a/go.mod b/go.mod index f1d10b2a10..b8de54acaf 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,6 @@ go 1.19 require ( cosmossdk.io/errors v1.0.0-beta.7 cosmossdk.io/math v1.0.0-beta.3 - github.com/Stride-Labs/stride/v6 v6.0.0 github.com/cosmos/cosmos-proto v1.0.0-alpha8 github.com/cosmos/cosmos-sdk v0.46.7 github.com/cosmos/gogoproto v1.4.3 diff --git a/go.sum b/go.sum index c420991c31..80a68050e4 100644 --- a/go.sum +++ b/go.sum @@ -79,8 +79,6 @@ github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMx github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= github.com/Stride-Labs/cast v0.0.3 h1:eM3n/t3hSxb+iw9LDo3r/uGBp3w4U7wPv40GKMtJ1dI= github.com/Stride-Labs/cast v0.0.3/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= -github.com/Stride-Labs/stride/v6 v6.0.0 h1:O2/pcl/VFXeKK3+VYFWveiqR73AYLUdnIRpV/0ho8FE= -github.com/Stride-Labs/stride/v6 v6.0.0/go.mod h1:8sqYiz9JogpNNenlRxXbI9XIpHvbDDxLpakeoCYhDb4= github.com/VictoriaMetrics/fastcache v1.6.0/go.mod h1:0qHz5QP0GMX4pfmMA/zt5RgfNuXJrTP0zS7DqpHGGTw= github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= diff --git a/x/claim/migrations/v2/convert.go b/x/claim/migrations/v2/convert.go index bb5365df6a..016a2e8e0f 100644 --- a/x/claim/migrations/v2/convert.go +++ b/x/claim/migrations/v2/convert.go @@ -3,7 +3,7 @@ package v2 import ( sdkmath "cosmossdk.io/math" - oldclaimtypes "github.com/Stride-Labs/stride/v6/x/claim/migrations/v2/types" + oldclaimtypes "github.com/Stride-Labs/stride/v7/x/claim/migrations/v2/types" claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" ) diff --git a/x/claim/migrations/v2/convert_test.go b/x/claim/migrations/v2/convert_test.go index 7aebed1468..a7d401129e 100644 --- a/x/claim/migrations/v2/convert_test.go +++ b/x/claim/migrations/v2/convert_test.go @@ -10,7 +10,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - oldclaimtypes "github.com/Stride-Labs/stride/v6/x/claim/migrations/v2/types" + oldclaimtypes "github.com/Stride-Labs/stride/v7/x/claim/migrations/v2/types" claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" ) diff --git a/x/claim/migrations/v2/migrations.go b/x/claim/migrations/v2/migrations.go index ba785400e6..d259366c1f 100644 --- a/x/claim/migrations/v2/migrations.go +++ b/x/claim/migrations/v2/migrations.go @@ -7,7 +7,7 @@ import ( errorsmod "cosmossdk.io/errors" - oldclaimtypes "github.com/Stride-Labs/stride/v6/x/claim/migrations/v2/types" + oldclaimtypes "github.com/Stride-Labs/stride/v7/x/claim/migrations/v2/types" claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" ) diff --git a/x/icacallbacks/migrations/v2/convert.go b/x/icacallbacks/migrations/v2/convert.go index 6f885edfd9..4069a844de 100644 --- a/x/icacallbacks/migrations/v2/convert.go +++ b/x/icacallbacks/migrations/v2/convert.go @@ -5,8 +5,8 @@ import ( sdkmath "cosmossdk.io/math" "github.com/golang/protobuf/proto" //nolint:staticcheck - oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) diff --git a/x/icacallbacks/migrations/v2/convert_test.go b/x/icacallbacks/migrations/v2/convert_test.go index 8d2568e8ab..d494e32b43 100644 --- a/x/icacallbacks/migrations/v2/convert_test.go +++ b/x/icacallbacks/migrations/v2/convert_test.go @@ -7,8 +7,8 @@ import ( "github.com/golang/protobuf/proto" //nolint:staticcheck "github.com/stretchr/testify/require" - oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types" + oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" ) func TestConvertDelegateCallback(t *testing.T) { diff --git a/x/records/migrations/v2/convert.go b/x/records/migrations/v2/convert.go index a1675bd862..ff0ca05d5b 100644 --- a/x/records/migrations/v2/convert.go +++ b/x/records/migrations/v2/convert.go @@ -3,7 +3,7 @@ package v2 import ( sdkmath "cosmossdk.io/math" - oldrecordstypes "github.com/Stride-Labs/stride/v6/x/records/migrations/v2/types" + oldrecordstypes "github.com/Stride-Labs/stride/v7/x/records/migrations/v2/types" recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" ) diff --git a/x/records/migrations/v2/convert_test.go b/x/records/migrations/v2/convert_test.go index da9ffc0ffd..63ef4242f5 100644 --- a/x/records/migrations/v2/convert_test.go +++ b/x/records/migrations/v2/convert_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - oldrecordstypes "github.com/Stride-Labs/stride/v6/x/records/migrations/v2/types" + oldrecordstypes "github.com/Stride-Labs/stride/v7/x/records/migrations/v2/types" recordstypes "github.com/Stride-Labs/stride/v7/x/records/types" ) diff --git a/x/records/migrations/v2/migrations.go b/x/records/migrations/v2/migrations.go index 01c0588ccb..d49f3fa557 100644 --- a/x/records/migrations/v2/migrations.go +++ b/x/records/migrations/v2/migrations.go @@ -8,7 +8,7 @@ import ( errorsmod "cosmossdk.io/errors" - oldrecordtypes "github.com/Stride-Labs/stride/v6/x/records/migrations/v2/types" + oldrecordtypes "github.com/Stride-Labs/stride/v7/x/records/migrations/v2/types" recordtypes "github.com/Stride-Labs/stride/v7/x/records/types" ) diff --git a/x/stakeibc/migrations/v2/convert.go b/x/stakeibc/migrations/v2/convert.go index fbd316c5a0..7f1e3ef751 100644 --- a/x/stakeibc/migrations/v2/convert.go +++ b/x/stakeibc/migrations/v2/convert.go @@ -3,7 +3,7 @@ package v2 import ( sdkmath "cosmossdk.io/math" - oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" + oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) diff --git a/x/stakeibc/migrations/v2/convert_test.go b/x/stakeibc/migrations/v2/convert_test.go index 33fd05505b..5825d5625a 100644 --- a/x/stakeibc/migrations/v2/convert_test.go +++ b/x/stakeibc/migrations/v2/convert_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" - oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" + oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) diff --git a/x/stakeibc/migrations/v2/migrations.go b/x/stakeibc/migrations/v2/migrations.go index 2b17072c15..72683faab2 100644 --- a/x/stakeibc/migrations/v2/migrations.go +++ b/x/stakeibc/migrations/v2/migrations.go @@ -8,7 +8,7 @@ import ( errorsmod "cosmossdk.io/errors" sdk "github.com/cosmos/cosmos-sdk/types" - oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" + oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) From 5ed0c4a7dd19f6e7995e25a488125899a1626348 Mon Sep 17 00:00:00 2001 From: Aidan Salzmann Date: Sun, 12 Mar 2023 23:35:50 -0400 Subject: [PATCH 09/10] v6->v7!!! --- app/upgrades/v7/upgrades.go | 14 +++++++------- app/upgrades/v7/upgrades_test.go | 12 ++++++------ x/interchainquery/keeper/queries_test.go | 6 +++--- x/stakeibc/keeper/icqcallbacks_fee_balance.go | 12 ++++++------ x/stakeibc/keeper/icqcallbacks_fee_balance_test.go | 10 +++++----- x/stakeibc/keeper/reward_allocation.go | 2 +- 6 files changed, 28 insertions(+), 28 deletions(-) diff --git a/app/upgrades/v7/upgrades.go b/app/upgrades/v7/upgrades.go index 3790a08770..23f78bc365 100644 --- a/app/upgrades/v7/upgrades.go +++ b/app/upgrades/v7/upgrades.go @@ -21,13 +21,13 @@ import ( icahosttypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/host/types" transfertypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types" - "github.com/Stride-Labs/stride/v6/utils" - epochskeeper "github.com/Stride-Labs/stride/v6/x/epochs/keeper" - epochstypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - mintkeeper "github.com/Stride-Labs/stride/v6/x/mint/keeper" - minttypes "github.com/Stride-Labs/stride/v6/x/mint/types" - stakeibckeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + epochskeeper "github.com/Stride-Labs/stride/v7/x/epochs/keeper" + epochstypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + mintkeeper "github.com/Stride-Labs/stride/v7/x/mint/keeper" + minttypes "github.com/Stride-Labs/stride/v7/x/mint/types" + stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // Note: ensure these values are properly set before running upgrade diff --git a/app/upgrades/v7/upgrades_test.go b/app/upgrades/v7/upgrades_test.go index 5a4df56af2..8a80ee9eb9 100644 --- a/app/upgrades/v7/upgrades_test.go +++ b/app/upgrades/v7/upgrades_test.go @@ -9,16 +9,16 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/Stride-Labs/stride/v6/app" - "github.com/Stride-Labs/stride/v6/app/apptesting" - v7 "github.com/Stride-Labs/stride/v6/app/upgrades/v7" - epochstypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/app" + "github.com/Stride-Labs/stride/v7/app/apptesting" + v7 "github.com/Stride-Labs/stride/v7/app/upgrades/v7" + epochstypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" // This isn't the exact type host zone schema as the one that's will be in the store // before the upgrade, but the only thing that matters, for the sake of the test, // is that it doesn't have min/max redemption rate as attributes - oldstakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/migrations/v2/types" + oldstakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/migrations/v2/types" ) var ( diff --git a/x/interchainquery/keeper/queries_test.go b/x/interchainquery/keeper/queries_test.go index dd2cb2f411..a69a42b13f 100644 --- a/x/interchainquery/keeper/queries_test.go +++ b/x/interchainquery/keeper/queries_test.go @@ -8,8 +8,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - "github.com/Stride-Labs/stride/v6/x/interchainquery/keeper" - "github.com/Stride-Labs/stride/v6/x/interchainquery/types" + "github.com/Stride-Labs/stride/v7/x/interchainquery/keeper" + "github.com/Stride-Labs/stride/v7/x/interchainquery/types" ) func TestUnmarshalAmountFromBalanceQuery(t *testing.T) { @@ -121,4 +121,4 @@ func TestUnmarshalAmountFromBalanceQuery(t *testing.T) { } }) } -} \ No newline at end of file +} diff --git a/x/stakeibc/keeper/icqcallbacks_fee_balance.go b/x/stakeibc/keeper/icqcallbacks_fee_balance.go index 329ddb8c85..4f525dbea4 100644 --- a/x/stakeibc/keeper/icqcallbacks_fee_balance.go +++ b/x/stakeibc/keeper/icqcallbacks_fee_balance.go @@ -10,11 +10,11 @@ import ( clienttypes "github.com/cosmos/ibc-go/v5/modules/core/02-client/types" channeltypes "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types" - "github.com/Stride-Labs/stride/v6/utils" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - icqkeeper "github.com/Stride-Labs/stride/v6/x/interchainquery/keeper" - icqtypes "github.com/Stride-Labs/stride/v6/x/interchainquery/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/utils" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + icqkeeper "github.com/Stride-Labs/stride/v7/x/interchainquery/keeper" + icqtypes "github.com/Stride-Labs/stride/v7/x/interchainquery/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // FeeBalanceCallback is a callback handler for FeeBalnce queries. @@ -89,4 +89,4 @@ func FeeBalanceCallback(k Keeper, ctx sdk.Context, args []byte, query icqtypes.Q } return nil -} \ No newline at end of file +} diff --git a/x/stakeibc/keeper/icqcallbacks_fee_balance_test.go b/x/stakeibc/keeper/icqcallbacks_fee_balance_test.go index ccf448174c..ec66aafd18 100644 --- a/x/stakeibc/keeper/icqcallbacks_fee_balance_test.go +++ b/x/stakeibc/keeper/icqcallbacks_fee_balance_test.go @@ -8,10 +8,10 @@ import ( icatypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/types" - epochtypes "github.com/Stride-Labs/stride/v6/x/epochs/types" - icqtypes "github.com/Stride-Labs/stride/v6/x/interchainquery/types" - stakeibckeeper "github.com/Stride-Labs/stride/v6/x/stakeibc/keeper" - stakeibctypes "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + epochtypes "github.com/Stride-Labs/stride/v7/x/epochs/types" + icqtypes "github.com/Stride-Labs/stride/v7/x/interchainquery/types" + stakeibckeeper "github.com/Stride-Labs/stride/v7/x/stakeibc/keeper" + stakeibctypes "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) type FeeBalanceICQCallbackState struct { @@ -223,4 +223,4 @@ func (s *KeeperTestSuite) TestFeeBalanceCallback_FailedSubmitTx() { err := stakeibckeeper.FeeBalanceCallback(s.App.StakeibcKeeper, s.Ctx, tc.validArgs.callbackArgs, tc.validArgs.query) s.Require().ErrorContains(err, "Failed to SubmitTxs") s.Require().ErrorContains(err, "invalid connection id, connection-X not found") -} \ No newline at end of file +} diff --git a/x/stakeibc/keeper/reward_allocation.go b/x/stakeibc/keeper/reward_allocation.go index ac0b7510ea..c6562d8f29 100644 --- a/x/stakeibc/keeper/reward_allocation.go +++ b/x/stakeibc/keeper/reward_allocation.go @@ -8,7 +8,7 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/Stride-Labs/stride/v6/x/stakeibc/types" + "github.com/Stride-Labs/stride/v7/x/stakeibc/types" ) // Liquid Stake Reward Collector Balance From a13e717cc2b751ef16a7f98325ad2d62adeff4cd Mon Sep 17 00:00:00 2001 From: Aidan Salzmann Date: Sun, 12 Mar 2023 23:47:06 -0400 Subject: [PATCH 10/10] fix import --- app/upgrades.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/upgrades.go b/app/upgrades.go index 105c8940e9..7c7d1ae591 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -5,7 +5,6 @@ import ( storetypes "github.com/cosmos/cosmos-sdk/store/types" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - v7 "github.com/osmosis-labs/osmosis/v9/app/upgrades/v7" authz "github.com/cosmos/cosmos-sdk/x/authz" @@ -14,6 +13,7 @@ import ( v4 "github.com/Stride-Labs/stride/v7/app/upgrades/v4" v5 "github.com/Stride-Labs/stride/v7/app/upgrades/v5" v6 "github.com/Stride-Labs/stride/v7/app/upgrades/v6" + v7 "github.com/Stride-Labs/stride/v7/app/upgrades/v7" autopilottypes "github.com/Stride-Labs/stride/v7/x/autopilot/types" claimtypes "github.com/Stride-Labs/stride/v7/x/claim/types" icacallbacktypes "github.com/Stride-Labs/stride/v7/x/icacallbacks/types"