diff --git a/api/onex/market/member.pulsar.go b/api/onex/market/member.pulsar.go new file mode 100644 index 0000000..b85535c --- /dev/null +++ b/api/onex/market/member.pulsar.go @@ -0,0 +1,972 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package market + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Member protoreflect.MessageDescriptor + fd_Member_pair protoreflect.FieldDescriptor + fd_Member_denomA protoreflect.FieldDescriptor + fd_Member_denomB protoreflect.FieldDescriptor + fd_Member_balance protoreflect.FieldDescriptor + fd_Member_previous protoreflect.FieldDescriptor + fd_Member_limit protoreflect.FieldDescriptor + fd_Member_stop protoreflect.FieldDescriptor +) + +func init() { + file_onex_market_member_proto_init() + md_Member = File_onex_market_member_proto.Messages().ByName("Member") + fd_Member_pair = md_Member.Fields().ByName("pair") + fd_Member_denomA = md_Member.Fields().ByName("denomA") + fd_Member_denomB = md_Member.Fields().ByName("denomB") + fd_Member_balance = md_Member.Fields().ByName("balance") + fd_Member_previous = md_Member.Fields().ByName("previous") + fd_Member_limit = md_Member.Fields().ByName("limit") + fd_Member_stop = md_Member.Fields().ByName("stop") +} + +var _ protoreflect.Message = (*fastReflection_Member)(nil) + +type fastReflection_Member Member + +func (x *Member) ProtoReflect() protoreflect.Message { + return (*fastReflection_Member)(x) +} + +func (x *Member) slowProtoReflect() protoreflect.Message { + mi := &file_onex_market_member_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_Member_messageType fastReflection_Member_messageType +var _ protoreflect.MessageType = fastReflection_Member_messageType{} + +type fastReflection_Member_messageType struct{} + +func (x fastReflection_Member_messageType) Zero() protoreflect.Message { + return (*fastReflection_Member)(nil) +} +func (x fastReflection_Member_messageType) New() protoreflect.Message { + return new(fastReflection_Member) +} +func (x fastReflection_Member_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Member +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Member) Descriptor() protoreflect.MessageDescriptor { + return md_Member +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_Member) Type() protoreflect.MessageType { + return _fastReflection_Member_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Member) New() protoreflect.Message { + return new(fastReflection_Member) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Member) Interface() protoreflect.ProtoMessage { + return (*Member)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_Member) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pair != "" { + value := protoreflect.ValueOfString(x.Pair) + if !f(fd_Member_pair, value) { + return + } + } + if x.DenomA != "" { + value := protoreflect.ValueOfString(x.DenomA) + if !f(fd_Member_denomA, value) { + return + } + } + if x.DenomB != "" { + value := protoreflect.ValueOfString(x.DenomB) + if !f(fd_Member_denomB, value) { + return + } + } + if x.Balance != "" { + value := protoreflect.ValueOfString(x.Balance) + if !f(fd_Member_balance, value) { + return + } + } + if x.Previous != "" { + value := protoreflect.ValueOfString(x.Previous) + if !f(fd_Member_previous, value) { + return + } + } + if x.Limit != uint64(0) { + value := protoreflect.ValueOfUint64(x.Limit) + if !f(fd_Member_limit, value) { + return + } + } + if x.Stop != uint64(0) { + value := protoreflect.ValueOfUint64(x.Stop) + if !f(fd_Member_stop, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Member) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "onex.market.Member.pair": + return x.Pair != "" + case "onex.market.Member.denomA": + return x.DenomA != "" + case "onex.market.Member.denomB": + return x.DenomB != "" + case "onex.market.Member.balance": + return x.Balance != "" + case "onex.market.Member.previous": + return x.Previous != "" + case "onex.market.Member.limit": + return x.Limit != uint64(0) + case "onex.market.Member.stop": + return x.Stop != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: onex.market.Member")) + } + panic(fmt.Errorf("message onex.market.Member does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Member) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "onex.market.Member.pair": + x.Pair = "" + case "onex.market.Member.denomA": + x.DenomA = "" + case "onex.market.Member.denomB": + x.DenomB = "" + case "onex.market.Member.balance": + x.Balance = "" + case "onex.market.Member.previous": + x.Previous = "" + case "onex.market.Member.limit": + x.Limit = uint64(0) + case "onex.market.Member.stop": + x.Stop = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: onex.market.Member")) + } + panic(fmt.Errorf("message onex.market.Member does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Member) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "onex.market.Member.pair": + value := x.Pair + return protoreflect.ValueOfString(value) + case "onex.market.Member.denomA": + value := x.DenomA + return protoreflect.ValueOfString(value) + case "onex.market.Member.denomB": + value := x.DenomB + return protoreflect.ValueOfString(value) + case "onex.market.Member.balance": + value := x.Balance + return protoreflect.ValueOfString(value) + case "onex.market.Member.previous": + value := x.Previous + return protoreflect.ValueOfString(value) + case "onex.market.Member.limit": + value := x.Limit + return protoreflect.ValueOfUint64(value) + case "onex.market.Member.stop": + value := x.Stop + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: onex.market.Member")) + } + panic(fmt.Errorf("message onex.market.Member does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Member) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "onex.market.Member.pair": + x.Pair = value.Interface().(string) + case "onex.market.Member.denomA": + x.DenomA = value.Interface().(string) + case "onex.market.Member.denomB": + x.DenomB = value.Interface().(string) + case "onex.market.Member.balance": + x.Balance = value.Interface().(string) + case "onex.market.Member.previous": + x.Previous = value.Interface().(string) + case "onex.market.Member.limit": + x.Limit = value.Uint() + case "onex.market.Member.stop": + x.Stop = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: onex.market.Member")) + } + panic(fmt.Errorf("message onex.market.Member does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Member) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "onex.market.Member.pair": + panic(fmt.Errorf("field pair of message onex.market.Member is not mutable")) + case "onex.market.Member.denomA": + panic(fmt.Errorf("field denomA of message onex.market.Member is not mutable")) + case "onex.market.Member.denomB": + panic(fmt.Errorf("field denomB of message onex.market.Member is not mutable")) + case "onex.market.Member.balance": + panic(fmt.Errorf("field balance of message onex.market.Member is not mutable")) + case "onex.market.Member.previous": + panic(fmt.Errorf("field previous of message onex.market.Member is not mutable")) + case "onex.market.Member.limit": + panic(fmt.Errorf("field limit of message onex.market.Member is not mutable")) + case "onex.market.Member.stop": + panic(fmt.Errorf("field stop of message onex.market.Member is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: onex.market.Member")) + } + panic(fmt.Errorf("message onex.market.Member does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Member) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "onex.market.Member.pair": + return protoreflect.ValueOfString("") + case "onex.market.Member.denomA": + return protoreflect.ValueOfString("") + case "onex.market.Member.denomB": + return protoreflect.ValueOfString("") + case "onex.market.Member.balance": + return protoreflect.ValueOfString("") + case "onex.market.Member.previous": + return protoreflect.ValueOfString("") + case "onex.market.Member.limit": + return protoreflect.ValueOfUint64(uint64(0)) + case "onex.market.Member.stop": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: onex.market.Member")) + } + panic(fmt.Errorf("message onex.market.Member does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Member) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in onex.market.Member", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Member) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Member) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Member) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Member) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Member) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Pair) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.DenomA) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.DenomB) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Balance) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Previous) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Limit != 0 { + n += 1 + runtime.Sov(uint64(x.Limit)) + } + if x.Stop != 0 { + n += 1 + runtime.Sov(uint64(x.Stop)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*Member) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Stop != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Stop)) + i-- + dAtA[i] = 0x38 + } + if x.Limit != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Limit)) + i-- + dAtA[i] = 0x30 + } + if len(x.Previous) > 0 { + i -= len(x.Previous) + copy(dAtA[i:], x.Previous) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Previous))) + i-- + dAtA[i] = 0x2a + } + if len(x.Balance) > 0 { + i -= len(x.Balance) + copy(dAtA[i:], x.Balance) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Balance))) + i-- + dAtA[i] = 0x22 + } + if len(x.DenomB) > 0 { + i -= len(x.DenomB) + copy(dAtA[i:], x.DenomB) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DenomB))) + i-- + dAtA[i] = 0x1a + } + if len(x.DenomA) > 0 { + i -= len(x.DenomA) + copy(dAtA[i:], x.DenomA) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DenomA))) + i-- + dAtA[i] = 0x12 + } + if len(x.Pair) > 0 { + i -= len(x.Pair) + copy(dAtA[i:], x.Pair) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Pair))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*Member) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Member: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pair", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Pair = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DenomA", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.DenomA = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DenomB", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.DenomB = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Balance = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Previous", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Previous = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + x.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Limit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Stop", wireType) + } + x.Stop = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Stop |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: onex/market/member.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Member struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Pair string `protobuf:"bytes,1,opt,name=pair,proto3" json:"pair,omitempty"` + DenomA string `protobuf:"bytes,2,opt,name=denomA,proto3" json:"denomA,omitempty"` + DenomB string `protobuf:"bytes,3,opt,name=denomB,proto3" json:"denomB,omitempty"` + Balance string `protobuf:"bytes,4,opt,name=balance,proto3" json:"balance,omitempty"` + Previous string `protobuf:"bytes,5,opt,name=previous,proto3" json:"previous,omitempty"` + Limit uint64 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"` + Stop uint64 `protobuf:"varint,7,opt,name=stop,proto3" json:"stop,omitempty"` +} + +func (x *Member) Reset() { + *x = Member{} + if protoimpl.UnsafeEnabled { + mi := &file_onex_market_member_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Member) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Member) ProtoMessage() {} + +// Deprecated: Use Member.ProtoReflect.Descriptor instead. +func (*Member) Descriptor() ([]byte, []int) { + return file_onex_market_member_proto_rawDescGZIP(), []int{0} +} + +func (x *Member) GetPair() string { + if x != nil { + return x.Pair + } + return "" +} + +func (x *Member) GetDenomA() string { + if x != nil { + return x.DenomA + } + return "" +} + +func (x *Member) GetDenomB() string { + if x != nil { + return x.DenomB + } + return "" +} + +func (x *Member) GetBalance() string { + if x != nil { + return x.Balance + } + return "" +} + +func (x *Member) GetPrevious() string { + if x != nil { + return x.Previous + } + return "" +} + +func (x *Member) GetLimit() uint64 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *Member) GetStop() uint64 { + if x != nil { + return x.Stop + } + return 0 +} + +var File_onex_market_member_proto protoreflect.FileDescriptor + +var file_onex_market_member_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x6f, 0x6e, 0x65, 0x78, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x2f, 0x6d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x6f, 0x6e, 0x65, 0x78, + 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x22, 0xac, 0x01, 0x0a, 0x06, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x70, 0x61, 0x69, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x41, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x41, 0x12, 0x16, + 0x0a, 0x06, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x42, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x42, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, + 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, + 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, + 0x69, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x6f, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x04, 0x73, 0x74, 0x6f, 0x70, 0x42, 0x89, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x6f, + 0x6e, 0x65, 0x78, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x42, 0x0b, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1c, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6f, 0x6e, 0x65, 0x78, + 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0xa2, 0x02, 0x03, 0x4f, 0x4d, 0x58, 0xaa, 0x02, 0x0b, + 0x4f, 0x6e, 0x65, 0x78, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0xca, 0x02, 0x0b, 0x4f, 0x6e, + 0x65, 0x78, 0x5c, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0xe2, 0x02, 0x17, 0x4f, 0x6e, 0x65, 0x78, + 0x5c, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x4f, 0x6e, 0x65, 0x78, 0x3a, 0x3a, 0x4d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_onex_market_member_proto_rawDescOnce sync.Once + file_onex_market_member_proto_rawDescData = file_onex_market_member_proto_rawDesc +) + +func file_onex_market_member_proto_rawDescGZIP() []byte { + file_onex_market_member_proto_rawDescOnce.Do(func() { + file_onex_market_member_proto_rawDescData = protoimpl.X.CompressGZIP(file_onex_market_member_proto_rawDescData) + }) + return file_onex_market_member_proto_rawDescData +} + +var file_onex_market_member_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_onex_market_member_proto_goTypes = []interface{}{ + (*Member)(nil), // 0: onex.market.Member +} +var file_onex_market_member_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_onex_market_member_proto_init() } +func file_onex_market_member_proto_init() { + if File_onex_market_member_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_onex_market_member_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Member); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_onex_market_member_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_onex_market_member_proto_goTypes, + DependencyIndexes: file_onex_market_member_proto_depIdxs, + MessageInfos: file_onex_market_member_proto_msgTypes, + }.Build() + File_onex_market_member_proto = out.File + file_onex_market_member_proto_rawDesc = nil + file_onex_market_member_proto_goTypes = nil + file_onex_market_member_proto_depIdxs = nil +} diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 90b475f..03d08c2 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -13156,42 +13156,6 @@ paths: description: MsgUpdateParams is the Msg/UpdateParams request type. tags: - Msg - /onex/market/params: - get: - summary: Parameters queries the parameters of the module. - operationId: OnexMarketQuery_Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query /onex.market.Msg/CreatePool: post: operationId: OnexMarketMsg_CreatePool @@ -13286,6 +13250,42 @@ paths: description: MsgUpdateParams is the Msg/UpdateParams request type. tags: - Msg + /onex/market/params: + get: + summary: Parameters queries the parameters of the module. + operationId: OnexMarketQuery_Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query definitions: cosmos.auth.v1beta1.MsgUpdateParams: type: object @@ -20421,16 +20421,6 @@ definitions: onex.denom.Params: type: object description: Params defines the parameters for the module. - onex.market.Params: - type: object - description: Params defines the parameters for the module. - onex.market.QueryParamsResponse: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - description: QueryParamsResponse is response type for the Query/Params RPC method. onex.market.MsgCreatePool: type: object properties: @@ -20459,3 +20449,13 @@ definitions: description: |- MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message. + onex.market.Params: + type: object + description: Params defines the parameters for the module. + onex.market.QueryParamsResponse: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + description: QueryParamsResponse is response type for the Query/Params RPC method. diff --git a/proto/onex/market/member.proto b/proto/onex/market/member.proto new file mode 100644 index 0000000..7188cd5 --- /dev/null +++ b/proto/onex/market/member.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; +package onex.market; + +option go_package = "onex/x/market/types"; + +message Member { + + string pair = 1; + string denomA = 2; + string denomB = 3; + string balance = 4; + string previous = 5; + uint64 limit = 6; + uint64 stop = 7; +} diff --git a/x/market/types/member.pb.go b/x/market/types/member.pb.go new file mode 100644 index 0000000..4f6b6bd --- /dev/null +++ b/x/market/types/member.pb.go @@ -0,0 +1,592 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: onex/market/member.proto + +package types + +import ( + fmt "fmt" + proto "github.com/cosmos/gogoproto/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 Member struct { + Pair string `protobuf:"bytes,1,opt,name=pair,proto3" json:"pair,omitempty"` + DenomA string `protobuf:"bytes,2,opt,name=denomA,proto3" json:"denomA,omitempty"` + DenomB string `protobuf:"bytes,3,opt,name=denomB,proto3" json:"denomB,omitempty"` + Balance string `protobuf:"bytes,4,opt,name=balance,proto3" json:"balance,omitempty"` + Previous string `protobuf:"bytes,5,opt,name=previous,proto3" json:"previous,omitempty"` + Limit uint64 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"` + Stop uint64 `protobuf:"varint,7,opt,name=stop,proto3" json:"stop,omitempty"` +} + +func (m *Member) Reset() { *m = Member{} } +func (m *Member) String() string { return proto.CompactTextString(m) } +func (*Member) ProtoMessage() {} +func (*Member) Descriptor() ([]byte, []int) { + return fileDescriptor_8367e44475f24af7, []int{0} +} +func (m *Member) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Member.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Member) XXX_Merge(src proto.Message) { + xxx_messageInfo_Member.Merge(m, src) +} +func (m *Member) XXX_Size() int { + return m.Size() +} +func (m *Member) XXX_DiscardUnknown() { + xxx_messageInfo_Member.DiscardUnknown(m) +} + +var xxx_messageInfo_Member proto.InternalMessageInfo + +func (m *Member) GetPair() string { + if m != nil { + return m.Pair + } + return "" +} + +func (m *Member) GetDenomA() string { + if m != nil { + return m.DenomA + } + return "" +} + +func (m *Member) GetDenomB() string { + if m != nil { + return m.DenomB + } + return "" +} + +func (m *Member) GetBalance() string { + if m != nil { + return m.Balance + } + return "" +} + +func (m *Member) GetPrevious() string { + if m != nil { + return m.Previous + } + return "" +} + +func (m *Member) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *Member) GetStop() uint64 { + if m != nil { + return m.Stop + } + return 0 +} + +func init() { + proto.RegisterType((*Member)(nil), "onex.market.Member") +} + +func init() { proto.RegisterFile("onex/market/member.proto", fileDescriptor_8367e44475f24af7) } + +var fileDescriptor_8367e44475f24af7 = []byte{ + // 212 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x8f, 0x31, 0x4e, 0x87, 0x30, + 0x14, 0x87, 0xa9, 0x42, 0xd1, 0xba, 0x55, 0x63, 0x5e, 0x1c, 0x1a, 0xe2, 0xc4, 0x22, 0x0c, 0x9e, + 0x40, 0x76, 0x17, 0x46, 0xb7, 0xa2, 0x6f, 0x68, 0xa4, 0xb4, 0x29, 0xd5, 0xe8, 0x2d, 0x3c, 0x88, + 0x07, 0x71, 0x64, 0x74, 0x34, 0x70, 0x11, 0xc3, 0x43, 0xc9, 0x7f, 0x7b, 0xdf, 0xf7, 0x2d, 0xef, + 0x27, 0xc0, 0x0d, 0xf8, 0x56, 0x5b, 0x1d, 0x9e, 0x31, 0xd6, 0x16, 0x6d, 0x87, 0xa1, 0xf2, 0xc1, + 0x45, 0x27, 0xcf, 0xd6, 0x52, 0x6d, 0xe5, 0xfa, 0x93, 0x09, 0x7e, 0x4f, 0x55, 0x4a, 0x91, 0x7a, + 0x6d, 0x02, 0xb0, 0x82, 0x95, 0xa7, 0x2d, 0xdd, 0xf2, 0x52, 0xf0, 0x27, 0x1c, 0x9c, 0xbd, 0x83, + 0x23, 0xb2, 0x7f, 0xb4, 0xfb, 0x06, 0x8e, 0x0f, 0x7c, 0x23, 0x41, 0xe4, 0x9d, 0xee, 0xf5, 0xf0, + 0x88, 0x90, 0x52, 0xf8, 0x47, 0x79, 0x25, 0x4e, 0x7c, 0xc0, 0x57, 0xe3, 0x5e, 0x46, 0xc8, 0x28, + 0xed, 0x2c, 0x2f, 0x44, 0xd6, 0x1b, 0x6b, 0x22, 0xf0, 0x82, 0x95, 0x69, 0xbb, 0xc1, 0xfa, 0xcf, + 0x18, 0x9d, 0x87, 0x9c, 0x24, 0xdd, 0xcd, 0xcd, 0xd7, 0xac, 0xd8, 0x34, 0x2b, 0xf6, 0x33, 0x2b, + 0xf6, 0xb1, 0xa8, 0x64, 0x5a, 0x54, 0xf2, 0xbd, 0xa8, 0xe4, 0xe1, 0x9c, 0xf6, 0xee, 0x8b, 0xe3, + 0xbb, 0xc7, 0xb1, 0xe3, 0xb4, 0xf8, 0xf6, 0x37, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x96, 0x02, 0x95, + 0x0d, 0x01, 0x00, 0x00, +} + +func (m *Member) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Member) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Stop != 0 { + i = encodeVarintMember(dAtA, i, uint64(m.Stop)) + i-- + dAtA[i] = 0x38 + } + if m.Limit != 0 { + i = encodeVarintMember(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x30 + } + if len(m.Previous) > 0 { + i -= len(m.Previous) + copy(dAtA[i:], m.Previous) + i = encodeVarintMember(dAtA, i, uint64(len(m.Previous))) + i-- + dAtA[i] = 0x2a + } + if len(m.Balance) > 0 { + i -= len(m.Balance) + copy(dAtA[i:], m.Balance) + i = encodeVarintMember(dAtA, i, uint64(len(m.Balance))) + i-- + dAtA[i] = 0x22 + } + if len(m.DenomB) > 0 { + i -= len(m.DenomB) + copy(dAtA[i:], m.DenomB) + i = encodeVarintMember(dAtA, i, uint64(len(m.DenomB))) + i-- + dAtA[i] = 0x1a + } + if len(m.DenomA) > 0 { + i -= len(m.DenomA) + copy(dAtA[i:], m.DenomA) + i = encodeVarintMember(dAtA, i, uint64(len(m.DenomA))) + i-- + dAtA[i] = 0x12 + } + if len(m.Pair) > 0 { + i -= len(m.Pair) + copy(dAtA[i:], m.Pair) + i = encodeVarintMember(dAtA, i, uint64(len(m.Pair))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMember(dAtA []byte, offset int, v uint64) int { + offset -= sovMember(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Member) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Pair) + if l > 0 { + n += 1 + l + sovMember(uint64(l)) + } + l = len(m.DenomA) + if l > 0 { + n += 1 + l + sovMember(uint64(l)) + } + l = len(m.DenomB) + if l > 0 { + n += 1 + l + sovMember(uint64(l)) + } + l = len(m.Balance) + if l > 0 { + n += 1 + l + sovMember(uint64(l)) + } + l = len(m.Previous) + if l > 0 { + n += 1 + l + sovMember(uint64(l)) + } + if m.Limit != 0 { + n += 1 + sovMember(uint64(m.Limit)) + } + if m.Stop != 0 { + n += 1 + sovMember(uint64(m.Stop)) + } + return n +} + +func sovMember(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMember(x uint64) (n int) { + return sovMember(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Member) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMember + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Member: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pair", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMember + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMember + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMember + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Pair = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DenomA", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMember + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMember + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMember + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DenomA = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DenomB", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMember + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMember + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMember + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DenomB = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMember + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMember + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMember + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Balance = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Previous", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMember + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMember + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMember + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Previous = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + 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 ErrIntOverflowMember + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Stop", wireType) + } + m.Stop = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMember + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Stop |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipMember(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMember + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMember(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, ErrIntOverflowMember + } + 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, ErrIntOverflowMember + } + 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, ErrIntOverflowMember + } + 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, ErrInvalidLengthMember + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMember + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMember + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMember = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMember = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMember = fmt.Errorf("proto: unexpected end of group") +)